marxanweb / general

Issues tracker, installers, registry, test data and example developer apps for Marxan Web
European Union Public License 1.2
2 stars 2 forks source link

preprocessFeature error #286

Closed andrewcottam closed 3 years ago

andrewcottam commented 3 years ago

Screenshot 2020-10-28 at 14 42 21

This only happened for a couple of users and occurs when you try to preprocess a continuous variable feature that was imported in the training session file.

andrewcottam commented 3 years ago

This occurred for the following projects: mollymccannon i like fish number two column feature.value does not exist abigailfrench2 AbigailProject column feature.value does not exist abigail2 AbigailProject column feature.value does not exist

andrewcottam commented 3 years ago

For the mollymccannon project the feature in question is 'MC_Fish_Caranx_Ignobilis' which is not a continuous variable feature so why is it trying to summarise the value field?

And this is weird, in the project the feature has not been preprocessed but has a target area and an area protected:

Screenshot 2020-10-28 at 21 04 59

All of the features after this have not been preprocessed.

Screenshot 2020-10-28 at 21 14 43

andrewcottam commented 3 years ago

The error comes from here.

Some features are ST_MultiPolygon and so when preprocessing occurs it treats these as ST_Points and looks for a value field