Opened 11 years ago
Last modified 11 years ago
#5069 closed defect
gdalwarp fails warping tiffs with different resolution units — at Version 1
Reported by: | cdestigter | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | 1.10.0 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
We've got two tiffs here, one with pixels/inch and the other with pixels/cm resolution units. Goodness knows why, but I'd assume gdal could multiply out the resolutions properly when merging them.
rm -f out.tif ; gdalwarp -of GTiff -co TILED=YES -co COMPRESS=DEFLATE -te 19296899.6093 -4620876.43484 19453442.6432 -4464333.40091 -ts 500 500 inch.tif cm.tif out.tif
Creating output file that is 500P x 500L. Processing input file inch.tif. 0...10...20...30...40...50...60...70...80...90...100 - done. Processing input file cm.tif. 0...10...20...30...40...50...60...70...80...90...100 - done. ERROR 1: _TIFFVSetField:out.tif: Bad value 0 for "ResolutionUnit" tag
Our gdal was built from our github fork, ie https://github.com/koordinates/gdal/tree/252ed79 which is basically 1.10 branch from about 10 days ago.
Change History (3)
Note:
See TracTickets
for help on using tickets.