https://github.com/osmcode/osm-gis-export
Export OSM data to GIS formats like Shapefiles, Spatialite or PostGIS.
https://github.com/osmcode/osm-gis-export
openstreetmap
Last synced: 2 months ago
JSON representation
Export OSM data to GIS formats like Shapefiles, Spatialite or PostGIS.
- Host: GitHub
- URL: https://github.com/osmcode/osm-gis-export
- Owner: osmcode
- License: bsl-1.0
- Created: 2015-08-22T08:17:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T18:29:59.000Z (7 months ago)
- Last Synced: 2025-04-17T14:39:01.420Z (3 months ago)
- Topics: openstreetmap
- Language: C++
- Homepage: https://osmcode.org/osm-gis-export/
- Size: 86.9 KB
- Stars: 23
- Watchers: 9
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# OSM GIS Export
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.[](https://github.com/osmcode/osm-gis-export/actions)
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-devProtozero
Need at least version 1.5.1
https://github.com/mapbox/protozero
Debian/Ubuntu: libprotozero-devgdalcpp
https://github.com/joto/gdalcpp
Included in the libosmium repository.bz2lib (for reading and writing bzipped files)
http://www.bzip.org/
Debian/Ubuntu: libbz2-devCMake (for building)
https://www.cmake.org/
Debian/Ubuntu: cmakeExpat (for parsing XML files)
https://libexpat.github.io
Debian/Ubuntu: libexpat1-dev
openSUSE: libexpat-develGDAL/OGR
https://gdal.org/
Debian/Ubuntu: libgdal-devzlib (for PBF support)
https://www.zlib.net/
Debian/Ubuntu: zlib1g-dev
openSUSE: zlib-devel## Installing dependencies
### On Debian/Ubuntu
apt-get install cmake libosmium2-dev libgdal-dev libproj-dev
In addition you might want to look at https://github.com/osmcode/osmium-proj if
you are using PROJ 6 or above.## Building
[CMake](https://www.cmake.org) 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](https://github.com/osmcode/osm-gis-export).