Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdal_retile.py: resolution handling #9854

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DirkThalheim
Copy link

What does this PR do?

This adds an option to gdal_retile for calculating image pyramids for specific resolutions/pixel sizes. This can be used instead of specifying the number of levels. For example:
gdal_retile.py -pyramidOnly -ps 4096 4096 -res 1.0,5.0,25.0 -targetDir out/pyramid input/*.tif
Will create an image pyramid with

  • level 1: 1 m/pixel
  • level 2: 5 m/pixel
  • level 3: 25 m/pixel
    (assuming the input data uses as units meter)

What are related issues/pull requests?

Tasklist

  • Make sure code is correctly formatted (cf pre-commit configuration)
  • Add test case(s)
  • Add documentation
  • Updated Python API documentation (swig/include/python/docs/)
  • Review
  • Adjust for comments
  • All CI builds and checks have passed

Environment

Provide environment details, if relevant:

  • OS:
  • Compiler:

@rouault
Copy link
Member

rouault commented May 5, 2024

Existings tests are broken by the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants