Giter Club home page Giter Club logo

docker-python-gdal's Introduction

๐Ÿณ python-gdal

BuildPullsSize

Python + GDAL/OGR Docker image

Get and compile the latest stable GDAL/OGR sources from official repository.

Usage

Dockerfile provide defaults when executing a container:

$ docker run andrejreznik/python-gdal:stable

Will output Python, pip and GDAL versions:

Python 3.12.4
pip 24.1.1 from /usr/local/pyenv/versions/3.12.4/lib/python3.12/site-packages/pip (python 3.12)
GDAL 3.9.1, released 2024/06/22

Run container and start an interactive bash session as root

$ docker run -it andrejreznik/python-gdal:stable bash

Tags and versions

You can also use a specific version of Python or GDAL by appropriate tag

$ docker run andrejreznik/python-gdal:py3.7.3-gdal3.0.0

or build your own image with passed build args

$ make image GDAL_VERSION=3.8.4 PYTHON_VERSION=3.11

docker-python-gdal's People

Contributors

andrii-rieznik avatar dependabot-preview[bot] avatar endast avatar rafaelbernard 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

Watchers

 avatar  avatar  avatar  avatar

docker-python-gdal's Issues

Provide stable tags

Hi !

Nice image which does what is advertised ! Thanks.

It would be nice to provide stable tags (that do not change over time) such as (for the current Dockerfile) :

  • py3.7.3-gdal3.0.0

Currently, the stable tag will likely change when GDAL or python version is bumped.

Thanks,

Olivier

gdal2tiles.py doesn't work

Hi !

It seems gdal2tiles.py (and other scripts) are installed, but for some reason, running gdal2tiles.py --help returns this error :

$> gdal2tiles.py test.tifTraceback (most recent call last):
  File "/usr/local/bin/gdal2tiles.py", line 4, in <module>
    __import__('pkg_resources').run_script('GDAL==3.0.0', 'gdal2tiles.py')
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1444, in run_script
    .format(**locals()),
pkg_resources.ResolutionError: Script 'scripts/gdal2tiles.py' not found in metadata at '/usr/local/lib/python3.7/site-packages/GDAL-3.0.0-py3.7.egg-info'

The script works well when ran from site-packages directly:

$> /usr/local/lib/python3.7/site-packages/GDAL-3.0.0-py3.7-linux-x86_64.egg/EGG-INFO/scripts/gdal2tiles.py test.tif
Generating Base Tiles:
0...10...
....

Not really sure why this is happening...

Cheers !

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.