lukefi / metsi

Other
3 stars 1 forks source link

Data conversion (gpkg) crashes when stand attribute is null #61

Open reettalempinen opened 3 months ago

reettalempinen commented 3 months ago

As stands are retrieved from geopackage database, stand attribute 'subgroup' is normally returned as integer (e.g.1). But if there is even one stand having a null value for subgroup, it is returned as decimal (e.g. 1.0) for all stands . Data conversion crashes while converting this unknown category value into internal category value.

The same problem may appear also for other attributes and data sources.

reettalempinen commented 3 months ago

Example case:

Error message: ValueError: '1.0' is not a valid ForestCentreSoilPeatlandCategory