Git Product home page Git Product logo

gdal-docker's Introduction

GDAL Docker Images

NB: As of GDAL version 1.11.2 the image has been renamed from homme/gdal to geodata/gdal.

This is an Ubuntu derived image containing the Geospatial Data Abstraction Library (GDAL) compiled with a broad range of drivers. The build process is based on that defined in the GDAL TravisCI tests.

Each branch in the git repository corresponds to a supported GDAL version (e.g. 1.11.2) with the master branch following GDAL master. These branch names are reflected in the image tags on the Docker Index (e.g. branch 1.11.2 corresponds to the image geodata/gdal:1.11.2).

Usage

Running the container without any arguments will by default output the GDAL version string as well as the supported raster and vector formats:

docker run geodata/gdal

The following command will open a bash shell in an Ubuntu based environment with GDAL available:

docker run -t -i geodata/gdal /bin/bash

You will most likely want to work with data on the host system from within the docker container, in which case run the container with the -v option. Assuming you have a raster called test.tif in your current working directory on your host system, running the following command should invoke gdalinfo on test.tif:

docker run -v $(pwd):/data geodata/gdal gdalinfo test.tif

This works because the current working directory is set to /data in the container, and you have mapped the current working directory on your host to /data.

Note that the image tagged latest, GDAL represents the latest code at the time the image was built. If you want to include the most up-to-date commits then you need to build the docker image yourself locally along these lines:

docker build -t geodata/gdal:local git://github.com/geo-data/gdal-docker/

gdal-docker's People

Contributors

homme avatar nf-ci-user avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gdal-docker's Issues

Adding gdal2tiles_parallel.py to makefile

Adding gdal2tiles_parallel.py will save lots of time generating the tiles across multiple cores.

At the moment the gdal2tiles.py only uses 1 core per process, it would be nice to run this process over 32 cores.

The guys at RGI are maintaining Geopackage Python tools:

@homme Let me know if you have time to do it, or I can do a pull request, but I'm still new with Linux build. You seem to be the expert based on your Makefile! :)

Build failed

I tried building today and it failed. I don't really know much about Docker as I am still learning the basics, and I thought trying to get GDAL in a running container would be a good exercise. Anyway I tried running the build command at the end of the README and I get this at the end of the log:

Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
patching file ./gdal/ci/travis/trusty_clang/before_install.sh
Hunk #2 succeeded at 60 with fuzz 1.
patching file ./gdal/ci/travis/trusty_clang/install.sh
Hunk #1 FAILED at 17.
Hunk #3 succeeded at 52 with fuzz 1 (offset -3 lines).
1 out of 3 hunks FAILED -- saving rejects to file ./gdal/ci/travis/trusty_clang/install.sh.rej
The command '/bin/sh -c /usr/local/src/gdal-docker/build.sh' returned a non-zero code: 1

Full log at: https://pastebin.com/i9qQqf5E

netcdf-python support?

I used geo-data/gdal-docker a lot since it provides sufficient environment for remote sensing application. However, I wonder how to add netcdf support for that?

https://github.com/Unidata/netcdf4-python

​It seems ​gdal-docker already has netcdf and hdf, but without a netcdf-python interface.

Cannot open files via host mounted Network File System volume.

I am trying to run this volume mounted docker container on top of a host which has an NFS. However, whenever I use the python gdal.Open command on a file that exists, it will hang indefinitely.

Here are the commands to reproduce the issue using amazon EFS

  1. Spin up a machine and mount the EFS file system.
mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 <your-fs-id>.efs.<your-region.amazonaws.com:/ /mnt/efs
  1. Run the container and mount the NFS volume
sudo docker run -it -v /mnt/efs:/mnt/efs geodata/gdal /bin/bash
  1. Run the gdal.Open command in python
from osgeo import gdal
gdal.Open("/mnt/efs/<file>")

Interestingly I can run os level commands on files in the EFS no problem. For example if I copy the /mnt/efs/<file> into a local directory. The gdal command works fine on the local file.

Adding branch for GDAL 2.1

Hi,

Thanks for your great work!

Would be great if we could have GDAL 2.1 also available, now as it is released officially few weeks ago. I could also create a branch with trunk replaced with 2.1.

Though I'm not sure how to push that stuff then to dockerhub.

Thanks!

A Question

I'm sorry, this is a question. Where is the gdal.so located on the VM?

old google code url fails for mdb-sqlite

/usr/bin/wget --no-verbose http://mdb-sqlite.googlecode.com/files/mdb-sqlite-1.0.2.tar.bz2 -O /tmp/mdb-sqlite-1.0.2.tar.bz2 \ && touch -c /tmp/mdb-sqlite-1.0.2.tar.bz2 http://mdb-sqlite.googlecode.com/files/mdb-sqlite-1.0.2.tar.bz2: 2016-09-02 21:32:00 ERROR 404: Not Found.

Pushing to Heroku

Hi,
Does it work normally when we push it to Heroku registry?
please share your experiences.
regards

Docker Image for GDAL 2.2.0 release

Any chance you could build the docker image for the newly released stable GDAL 2.2.0 Version?
I tried it myself, but had problems with getting the ubuntugis packages, that I wasn't able to fix with my limited Linux knowledge.

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.