Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

peak2osm

Merge peak names and elevations from Kartverket to OSM in Norway

Usage

python peak2osm.py <municipality>

Workflow

This script merges peak names from Kartverket SSR and elevations from Kartverket N50 with existing peaks in OSM.

Typical workflow:

  1. Run peaks2osm for a given municipality

    It will produce three source files for reference in addition to the merged file (for example named peaks_3430_Os.osm):

    • Current OSM peaks
    • N50 peaks
    • SSR peaks
  2. Handle potential duplicates

    • Search for DUPLICATE to discover identical or similar names within a distance of 1000 meters.
    • Merge names or remove duplicate.
  3. Handle close peaks with conflicting names

    • Search for CLOSE to discover close peaks (within 50 meters) which have different names.
    • Determine how alternative names for the same peak should be tagged, for example using alt_name=*, or if the peaks could be slightly relocated.
  4. Check close peaks without conflicting names

    • Search for CHECK to discover other close peaks (within 300 meters).
    • Determine if the peaks should be merged or slightly relocated.
  5. Check merged peaks

    • Search for example GAP>50 to check if the merged peak now have the correct location. The number represents the gap in meters.
  6. Check tagging for certain peak types

    • SSR_TYPE=berg - Check if natural=cliff is a better tag.
    • SSR_TYPE=rygg - Check natural=hill vs natural=ridge.
    • SSR_TYPE=hei or SSR_TYPE=ås - Check for a better location or natural=ridge as these names often have a fuzzy location.
  7. Check for dupliactes across the municipality boundary

    • Search for new and select OpenStreetMap as background imagery to discover any potential duplicates just across the municipality boundary.
  8. Check natural=peak

    • With the Kartverket topo map as background imagery, check if more peaks should get natural=peak tagging.
    • You may want to use search using the N50=* tag to filter the most prominent peaks, as determined by Kartverket for N50.
  9. Resolve tagging conflicts

    • OSM_ele=* - Contains the current elevation in OSM.
    • OSM_name= - Contains the current spelling of name= in OSM.
    • OSM_place=peak - Contains the current place=* tag in OSM.
  10. Check place=locality

    • Remove for natural=peak
    • Remove if name=* is missing
    • Add for natural=hill, cliff, ridge
  11. Upload to OSM

    • Remove remaining uppercase tags and upload to OSM.

References

About

Merge peak names and elevations from Kartverket to OSM in Norway

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages