Merge peak names and elevations from Kartverket to OSM in Norway
python peak2osm.py <municipality>
This script merges peak names from Kartverket SSR and elevations from Kartverket N50 with existing peaks in OSM.
Typical workflow:
-
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
-
Handle potential duplicates
- Search for
DUPLICATE
to discover identical or similar names within a distance of 1000 meters. - Merge names or remove duplicate.
- Search for
-
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.
- Search for
-
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.
- Search for
-
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.
- Search for example
-
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.
-
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.
- Search for
-
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.
-
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.
-
Check place=locality
- Remove for natural=peak
- Remove if name=* is missing
- Add for natural=hill, cliff, ridge
-
Upload to OSM
- Remove remaining uppercase tags and upload to OSM.
- ssr2osm på GitHub
- n50osm på GitHub
- Kartverket SSR place name import wiki
- Kartverket topo import wiki