You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is some older code, not really maintained, but could be useful, so we
keep it here.
A bunch of programs to export OSM data into GIS formats such as Shapefiles,
PostgreSQL or Spatialite.
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++14 compliant compiler. 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
gdalcpp
https://github.com/joto/gdalcpp
Included in the libosmium repository.
bz2lib (for reading and writing bzipped files)
https://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
https://gdal.org/
Debian/Ubuntu: libgdal-dev
zlib (for PBF support)
https://www.zlib.net/
Debian/Ubuntu: zlib1g-dev
openSUSE: zlib-devel