Simple wrappers around docker and OGR commands to expose ogr2ogr
and ogrinfo
using the latest builds. You need to be careful to always put absolute paths to your local data so the docker image can access it.
Last active
December 5, 2019 08:45
-
-
Save jsanz/8703e1d27f1f8514c388afb6f27d7b04 to your computer and use it in GitHub Desktop.
Docker wrapper for OGR commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run --rm --network=host -u $(id -u ${USER}):$(id -g ${USER}) \ | |
-v /home:/home \ | |
osgeo/gdal:alpine-small-latest \ | |
ogr2ogr "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run --rm --network=host -u $(id -u ${USER}):$(id -g ${USER}) \ | |
-v /home:/home \ | |
osgeo/gdal:alpine-small-latest \ | |
ogrinfo "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment