lukefi / metsi

Other
3 stars 0 forks source link

Forest data model (conversion): Municipality number missing with SMK XML #24

Closed Sorvalampi closed 1 year ago

Sorvalampi commented 1 year ago

Forest data model (conversion): Municipality number missing with SMK XML.

Should be near the end of stand info row.

jpy-luke commented 1 year ago

This data is not available in the XML file. Looking at the standard[1], it is part of the ForestPropertyData type as RealEstates subtype. We only get the Stands subtype. I checked that this situation exists directly in SMK API results[2]. I have no other solution for this than making SMK Browser also query for the RealEstates in SMK API or get it from MML API results and include it in this file, or something along those lines.

1: Metsätietostandardi

2: API example&stdVersion=MV1.9)

jpy-luke commented 1 year ago

This is now set to -1 for SMK XML source. Proper source for the data needs to be established in creation of the XML file or by creating a separate process for augmenting that file.

jpy-luke commented 1 year ago

https://github.com/menu-hanke/smk-browser/issues/27 proposed for adding this properly into the XML.