This project is work in procgress as of April 2019.
A set of tools and documentation meant to help processing Naturvårdsverket's Nationella Marktäckedata (NMD) of Sweden.
remap-raster.py
- simplify GeoTIFF by replacing some valuesprocess-osmxml.py
- fix warnings and simplify XML obtained on an intermediate stage of data import
- Import of raster and remapping of some value that will have identical tags in the end.
gdal_sieve
is used to remove tiny (4 pixels or less) groups of pixels. - The raster image undergoes vectorization with GDAL tools.
- Smoothing of rasterization artefacts with
v.generalize
filters of the GRASS toolset to make it look more natural. Two algorithms are used successively to obtain the best result: Chaiken and Douglas-Pecker. - Filtering out of irrelevant data: water, residential, roads etc. Mostly forests and meadows/grass are preserved.
- Automated removal of certain types of self-intersections, merging of duplicate nodes.
- Automated removal of small objects (approximately less than 12 nodes and 120 meters in perimeter) to keep the high-frequency spatial noise low.
- Simplification of large multipolygon outer ways to keep them under 1000 of nodes with different JOSM filters.
- Manual splitting of larger multipolygons to keep them under 1000 nodes.