Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.26 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.26 KB

progress-visualizer

Visualizing progress of various projects in the norwegian OSM-mapping community

Made possible with:

Update kommuner.geojson

Using kartverket api:

  1. Download geojson from https://api.kartverket.no/kommuneinfo/v1/kommuner/illustrasjonskart

Fetch from overpass turbo and simplify (not needed)

  1. Go to Overpass Turbo and run https://overpass-turbo.eu/#
[out:json][timeout:25];
{{geocodeArea:Norge}}->.searchArea;
wr["admin_level"="7"](area.searchArea);
out geom;
  1. Export to GeoJSON
  2. Simplify with https://www.npmjs.com/package/simplify-geojson: cat kommuner2024.geojson | simplify-geojson -t 0.01 > kommuner2024-simplified.geojson
  3. Remove unnecessary @relations from all features in geojson array with cat kommuner2024-simplified.geojson | jq 'del(.features[].properties["@relations"])' > kommuner2024-simplified-reduced.geojson
  4. Delete all points from the geojson file by searching for Type": "Point