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.

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.