Giter Site home page Giter Site logo

ssr2osm's Introduction

ssr2osm

Scripts for converting data from Sentralt stadnamnregister to the OpenStreetMap file format(s).

Prerequisites

R (http://www.r-project.org/) with the packages rjson, plyr, and stringr.

Usage

  1. Download GeoJSON files from http://data.kartverket.no/stedsnavn/GeoJSON/Fylker/.

  2. Edit the first lines of the script r-scripts/ssr2osm.R to point to a downloaded file, the kommune number (four digits) for the output and the output file name.

  3. Change to the r-scripts directory

     cd r-scripts
    
  4. Run the ssr2srm.R script

     Rscript ssr2srm.R
    

Getting prerequisites on Ubuntu

Optionally, add RTAN archive to get a more recent R:

  • Add the line

      deb http://cran.uib.no/bin/linux/ubuntu lucid/
    

    to /etc/apt/sources.list. Replace lucid with your Ubuntu version and cran.uib.no with your favourite mirror.

  • Update and upgrade

      sudo apt-get update
      sudo apt-get dist-upgrade
    

Install the development package so that packages can be compiled:

    sudo apt-get install r-base-dev

Install packages from R:

    sudo R
    > install.packages()

For more detailed instructions, see http://cran.r-project.org/bin/linux/ubuntu/README

ssr2osm's People

Contributors

gomyhr avatar huftis avatar

Watchers

 avatar  avatar  avatar

Forkers

gomyhr

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.