Giter Site home page Giter Site logo

nmd-osm-tools's Introduction

nmd-osm-tools

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 values
  • process-osmxml.py - fix warnings and simplify XML obtained on an intermediate stage of data import

Data flow import overview

  1. 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.
  2. The raster image undergoes vectorization with GDAL tools.
  3. 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.
  4. Filtering out of irrelevant data: water, residential, roads etc. Mostly forests and meadows/grass are preserved.
  5. Automated removal of certain types of self-intersections, merging of duplicate nodes.
  6. Automated removal of small objects (approximately less than 12 nodes and 120 meters in perimeter) to keep the high-frequency spatial noise low.
  7. Simplification of large multipolygon outer ways to keep them under 1000 of nodes with different JOSM filters.
  8. Manual splitting of larger multipolygons to keep them under 1000 nodes.

References

  • Import plan: wiki
  • Mailing list discussion: link
  • Source data: link

nmd-osm-tools's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.