Container for running ogr2osm in an OS agnostic environment. ogr2osm is a tool for converting geospatial data in a format supported by ogr into OSM format.
Updated to use Python3 to allow non-clumsy Unicode
docker build -t ogr2osm .After the initial setup, you can convert data by following these steps:
ogr2osm-container)[inputdata] for the file that contains the source data, and [output.osm] with the desired filename of the osm data:docker run -it --rm -v $(pwd):/data ogr2osm python ogr2osm.py /data/[inputdata] -o /data/[output.osm]
for example:docker run -it --rm -v $(pwd):/data ogr2osm python ogr2osm.py /data/roads_senegal.shp -o /data/roads-sen.osmThis command will run ogr2osm with the default settings, but you can pass https://github.com/pnorman/ogr2osm#usage
no matching manifest for windows/amd64 in the manifest list
If you get this message while building on Windows, make sure that you are using Linux Containers and run the docker build -t ogr2osm . again.
docker: Error response from daemon: create ${pwd}: "${pwd}" includes invalid characters for a local volume name
You are likely running this in Command Prompt on Windows. If you have Windows 10, consider using Powershell instead and run the same command again.
To fix this in Command Prompt, substitute ${pwd} for the full path of the folder you are in. For example:
docker run -it --rm -v C:\Users\John\ogr2osm-container:/data ogr2osm python ogr2osm.py /data/roads_senegal.shp -o /data/roads-sen.osm
Content type
Image
Digest
Size
183 MB
Last updated
almost 7 years ago
docker pull eltele/ogr2osm