Opened 16 years ago

Closed 16 years ago

#2038 closed defect (duplicate)

gdaltransform/gdalwarp -tps: incorrect results for some control point sets

Reported by: janh Owned by: warmerdam
Priority: normal Milestone: 1.4.5
Component: default Version: unspecified
Severity: normal Keywords: gdaltransformer tps
Cc:

Description

For some sets of control points gdaltransform and gdalwarp give incorrect results when using the -tps option. Adding or removing a control point almost always gives correct results. AFAICS, when wrong, the transformed x-coordinate gets very big, or even overflows into a negative number. Gdalwarp shows this error sometimes at the beginning, while computing the boundaries of the output-file. It then gives messages like: output file > 4 G, or; negative output file boundaries.

Attached three almost identical gdaltransform scripts, with respectively 17, 18 and 19 control points. Only with 18 control point the transformed x-value leaps out of bounds

Attachments (3)

gdaltransform_17.sh (1.3 KB ) - added by janh 16 years ago.
gdaltransform_18.sh (1.4 KB ) - added by janh 16 years ago.
gdaltransform_19.sh (1.4 KB ) - added by janh 16 years ago.

Download all attachments as: .zip

Change History (4)

by janh, 16 years ago

Attachment: gdaltransform_17.sh added

by janh, 16 years ago

Attachment: gdaltransform_18.sh added

by janh, 16 years ago

Attachment: gdaltransform_19.sh added

comment:1 by Even Rouault, 16 years ago

Keywords: gdaltransformer tps added
Milestone: 1.4.5
Resolution: duplicate
Status: newclosed

This bug is clearly a duplicate of #2300 and after updating to r14117, I confirm it is now fixed.

Note: See TracTickets for help on using tickets.