Giter VIP home page Giter VIP logo

ssr2osm's Introduction

ssr2osm

Extract and convert place names from Kartverket SSR to OpenStreetMap.

Usage

python3 ssr2osm.py <municipality> [<name type>] [-all] [-wfs]

Parameters:

  • Municipality: Name of municipality or county to extract. "Norway" will convert all municipalities.
  • Name type: Name type to extract, for example "turisthytte", "serveringssted", "kirke", "nesISjø" etc. Combine with "Norway" to extract all occurrences of the name type for the whole country, or combine with municipality or county name. Case sensitive paramter. Plese see navnetyper_tagged.json for list of available name types.
  • -all: Also include place names without the main name=* tag, for example with only loc_name=* or old_name=*, or with no OSM feature tagging.
  • -wfs: Query WFS service instead of loading predefined files. Quicker for modest name type queries, but considerably slower for municipalities.
  • -nobuilding: Skip relocation of nodes to outside buildings.

Examples:

  • Vestre Toten municipality: python3 ssr2osm.py "Vestre Toten"
  • Kautokeino municipality, including places without full tagging: python3 ssr2osm.py Kautokeino -all
  • Trøndelag county: python3 ssr2osm.py Trøndelag
  • All municipalities in Norway (in separate files): python3 ssr2osm.py Norge
  • Historic settlements in Innlandet: python3 ssr2osm.py Innlandet historiskBosetting
  • Churches in Norway, from WFS: python3 ssr2osm.py Norge kirke -wfs

Changelog

  • 1.2: Support new N100 and N50 specifications; Only one name in name=*.
  • 1.0: New major version
    • Load N50 and N100 to get place name ranks for adjusting place=village, quarter, hamlet.
    • Load building footprints to relocate place name node outside of building (for farm, isolated_dwelling etc).
    • If more than one place name in name=* then put the others in alt_name=* + fixme.
    • Mark only non-priority place names as duplicate (improved sorting).
  • 0.6: Check for duplicate place names (identical name=*).
  • 0.5: Add WFS query option.
  • 0.4: Do not use name:no=* unless a different language is present (no special process for sami municipalities).
  • 0.3: Fix for historic names.
  • 0.2: First version.

References

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.