Skip to main content

This gdal-utils Python package is a sub-set of the GDAL Osgeo Python package.

If you’ve installed the GDAL package you have these utils. However you may wish to get a newer version of the utilities without changing GDAL, that’s what this package is for.

For using and developing the utils please refer to the osgeo documentation and to the GDAL API Tutorial.

We don’t systematically test the utils against a different versions of gdal. Versioning of GDAL and gdal-utils are independent from each other, today’s gdal-utils v3.3 works with GDAL v3.4 but it might not with v3.2. We recommend upgrading to the latest versions of each as general practice. See ‘Packaging’ below for how to test compatibility.

Dependencies

  • gdal (the osgeo package)

  • numpy (1.0.0 or greater) and header files (numpy-devel) (not explicitly required, but many examples and utilities will not work without it)

Installation

gdal-utils can be installed from pypi.org:

$ python -m pip install gdal-utils

After install the utilities are in PYTHYONHOME\Scripts and can be invoked like regular programs, gdal_edit instead of gdal_edit.py or python path/to/gdal_edit.py for example.

Packaging

Starting March 2022 installing gdal-utils with pip will use Setuptools’ _console_scripts_, which turn the scripts into native platform executables that call the script using the appropriate platform interpreter. This means you no longer need to something similar as a post-install step. If this causes problems with your distribution please file an issue on Github.

Recipe for testing gdal-utils compatibility against your installed GDAL binaries:

# Get installed GDAL version
export _GDALVER=`gdal-config --version``

# verify python osgeo is present
python -c "from osgeo import gdal;print(f'Python Osgeo version: {gdal.__version__}')"

git clone https://github.com/OSGeo/gdal.git --depth=50
git remote set-branches origin "*"
git fetch -v --depth=50

# Install current version of gdal-utils
cd swig/python/gdal-utils
pip install .
# OR, to use published PyPi.org version:
# pip install gdal-utils

# set source code tree to match binary gdal version
git checkout v$_GDALVER

cd gdal/autotest
python install -r requirements.txt
pytest ./pyscripts

Coding best practices

Use existing scripts for style guidelines, newer ones are generally more pythonic than old ones.

Passes _flake8_ lint test.

When called without arguments script should return a message prefixed ‘Usage: ` and use return code 2.:

» gdal_edit
Usage: gdal_edit [--help-general] [-ro] [-a_srs <srs_def>]
    ...
    [-unsetmd] [-oo <NAME>=<VALUE>]... [-mo <META-TAG>=<VALUE>]... <datasetname>

Edit in place various information of an existing GDAL dataset.

Release files for gdal-utils 3.13.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for gdal-utils 3.13.3.0
File Interpreter ABI Platform
gdal_utils-3.13.3.0-py3-none-any.whl Python 3 none any Details

Release files / gdal_utils-3.13.3.0-py3-none-any.whl

Download URL gdal_utils-3.13.3.0-py3-none-any.whl
Size 308.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0afab8bd2fe6c6fca0aba13b5d0f72cbf6c3bfe1628c34e8b195a621ce8e7b5
BLAKE2b-256 checksum
How to use checksums
a42602f657b9809c979a95a40bb674ecb9538d2662d03e7ef7d7c617974072ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.13.3.0 This release

1 release file

3.9.3.0

1 release file

3.9.2.0

1 release file

3.9.1.0

1 release file

3.9.0.0

1 release file

3.8.4.0

1 release file

3.8.2.0

1 release file

3.8.1.0

1 release file

3.8.0.0

1 release file

3.7.2.0

1 release file

3.7.1.0

1 release file

3.7.0.0

1 release file

3.6.4.0

1 release file

3.6.3.0

1 release file

3.6.1.0

1 release file

3.6.0.0

1 release file

3.5.3.0

1 release file

3.5.2.0

1 release file

3.5.0.0

1 release file

3.3.3.0

1 release file

3.3.0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page