#5749 closed defect (fixed)
gdal_retile.py does not work with input images of different resolutions
Reported by: | pabercrombie | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | Utilities | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
gdal_retile.py does not work properly if the input files use different pixel sizes. The expected behavior is that retile would resample pixels according to the normal gdal promotion/demotion rules, as is done in gdal_merge.py.
The attached patch file modifies gdal_retile.py to resample pixels using the same logic as gdal_merge.py. Also included is a simple unit of tiling source images of differing resolutions.
Attachments (2)
Change History (5)
by , 9 years ago
Attachment: | gdal_retile.patch added |
---|
by , 9 years ago
Attachment: | test_gdal_retile.patch added |
---|
Unit test to verify proper tiling of images of different resolutions.
comment:1 by , 9 years ago
Component: | default → Utilities |
---|---|
Milestone: | → 2.0 |
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 6 years ago
This patch had a side effect which created linear artifacts into combined tiles sometimes. See discussion in https://github.com/OSGeo/gdal/issues/670. Fix was done per https://github.com/OSGeo/gdal/commit/a767b4ab5cd85e0e2884759a8b8b70fe0e8475b2
Patch file for gdal_retile.py