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 cdestigter)

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)

by cdestigter, 11 years ago

Attachment: cm.tif added

by cdestigter, 11 years ago

Attachment: inch.tif added

comment:1 by cdestigter, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.