Code Monkey home page Code Monkey logo

osm-gis-export's Introduction

OSM GIS Export

THIS IS A VERY PRELIMINARY VERSION JUST MOVED HERE FROM THE LIBOSMIUM EXAMPLES!

A bunch of programs to export OSM data into GIS formats such as Shapefiles, PostgreSQL or Spatialite.

Travis Build Status Appveyor Build status

Sorry, do docs yet. You have to look at the source code and change it according to your needs. This software can be used as basis for your own experiments, but you need to understand C++ for that. There is no one-size-fits-all solution here. Use osmium_toogr as a basis if you only need nodes or ways, no (multi)polygons. Use osmium_toogr2 as basis if you also need multipolygon support.

Requires

You need a C++11 compliant compiler. GCC 4.8 and later as well as clang 3.4 and later are known to work. You also need the following libraries:

Osmium Library
    Need at least version 2.13.1
    https://osmcode.org/libosmium
    Debian/Ubuntu: libosmium2-dev

Protozero
    Need at least version 1.5.1
    https://github.com/mapbox/protozero
    Debian/Ubuntu: libprotozero-dev

Utfcpp
    http://utfcpp.sourceforge.net/
    Debian/Ubuntu: libutfcpp-dev
    Also included in the libosmium repository.

gdalcpp
    https://github.com/joto/gdalcpp
    Also included in the libosmium repository.

bz2lib (for reading and writing bzipped files)
    http://www.bzip.org/
    Debian/Ubuntu: libbz2-dev

CMake (for building)
    https://www.cmake.org/
    Debian/Ubuntu: cmake

Expat (for parsing XML files)
    https://libexpat.github.io
    Debian/Ubuntu: libexpat1-dev
    openSUSE: libexpat-devel

GDAL/OGR
    http://gdal.org/
    Debian/Ubuntu: libgdal-dev

zlib (for PBF support)
    https://www.zlib.net/
    Debian/Ubuntu: zlib1g-dev
    openSUSE: zlib-devel

Proj.4
    https://trac.osgeo.org/proj/
    Debian/Ubuntu: libproj-dev

Installing dependencies

On Debian/Ubuntu

apt-get install cmake libosmium2-dev libgdal-dev libproj-dev

Building

CMake is used for building.

To build run:

mkdir build
cd build
cmake ..
make

License

OSM GIS Export is available under the Boost Software License. See LICENSE.txt.

Authors

OSM GIS Export was mainly written and is maintained by Jochen Topf ([email protected]). See the git commit log for other authors.

Contact

Bug reports, questions etc. should be directed to the issue tracker.

osm-gis-export's People

Contributors

joto avatar lonvia avatar sebastic avatar wilhelmberg avatar wosch avatar

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.