Giter VIP home page Giter VIP logo

topo2osm's Introduction

topo2osm

Converts N50 map data downloaded from Kartverket (SOSI format) to the OpenStreetMap format (.osm). This is a forked version of kartverket2osm originally made by tibnor, and adds several new OSM area types and has support for Karverket's updated file format.

This README describes the Kartverket-to-OSM conversion scripts. If you've downloaded a zip archive with generated OSM files, you only need to use the replaceWithOsm.py script, which is described in the section "Oppsett" on the OSM wiki page Topography import for Norway (Norwegian).

Prerequisites

Usage

First-time setup (Ubuntu 16.04+)

  1. Install sosi2osm:
sudo apt-get install sosi2osm
  1. Install the packages NumPy, Geographiclib and utm for Python, e.g. using pip:
pip install numpy geographiclib utm
  1. Install GDAL
sudo apt install gdal-bin python-gdal

Converting from SOSI to OSM

  1. Download the appropriate N50 SOSI files from Kartverket and place the zip files in the N50 folder
  2. Download the digital elevation models (DEM) files for the same areas as step 1. It's recommended to download the DTM 10 files from Kartverket. Files for the whole country can be downloaded from hoydedata.no. Extract the DEM files into the DEM folder.
  3. Open the kartverket2osm folder in a terminal window, and run parseAll.sh:
./parseAll.sh

Components

riverturner.py: Turns streams and river such that the first node in way is higher than the last point. Requires utm package with small modification (https://github.com/tibnor/utm)

elevation.py: Finds the elevation of a UTM32 koordinate from statens kartverk DEM files located in child folder DEM.

mergeroad.py: NOT WORKING. Compares ways in a.osm with b.osm. Outputs ways which are in a.osm and is not close to any similar way in b.osm.

topo2osm's People

Contributors

mathias-s avatar nkamapper avatar tibnor avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nkamapper

topo2osm's Issues

Residential areas missing

Seems residential areas are missing in converted files.
Comparing the lua files the only difference I can find is that in the sosi files this is "Tettbebyggelse" while lua files specifies TettBebyggelse".
Could this be enough to throw it off?

Python3 support

Hi Mathias,

have you ever tried to convert your tool to Python3?

Noen justeringer

Noen observasjoner:

  • Objekttypen "InnsjøElvSperre" tagges nå som waterway=weir. Kan det være feil? Kartverkets definisjon er "hjelpelinje for avgrensning av innsjø mot elv eller kanal/grøft", som bare er en fiktiv linje. Kan heller ikke se noen bygget terskel der objekttypen er brukt.
  • Objekttypen "Steintipp" ser ut til å mangle. "Permanent massedeponering som ikke er skogbevokst og er dominerende i landskapet (og lignende laget i forbindelse med gruvedrift eller vassdragsutbygging)". Brukes også om store fyllingsdammer. LItt usikker på hvordan den bør tagges. Landuse=landfill? Eller er den bare for søppelfyllinger?
  • Objekttypen "Foss" mangler.
  • Objekttypen "Lufthavn" mangler. Bare én node med navn på flyplassen osv.

New file names from Kartverket break .sh files

Not sure what section needs modification, but affected files are parseArea.sh, parseCoast.sh and parseWater.sh

Today file names are in this format:
Basisdata_0427_Elverum_25833_N50Kartdata_SOSI.zip
Basisdata_0427_Elverum_25833_N50Arealdekke_SOSI.sos

Flytte til osmno?

Hei, kunne du tenke deg å flytte hele kartverket2osm til osmno?

Det er behov for å gjøre noen endringer nå, og best å "originalen" ett sted uten for mange forks.

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.