Opened 13 years ago

Closed 10 years ago

#48 closed defect (fixed)

[PATCH] Fix GTIFGetEllipsoidInfo() to work with nEllipseCode = 7007

Reported by: rouault Owned by: warmerdam
Priority: normal Milestone:
Component: libgeotiff Version: 1.3.0
Keywords: Cc:

Description

Interesting issue I found with external libgeotiff and not internal libgeotiff. The issue in GTIFGetEllipsoidInfo() is that the pszFilename = CSVFilename("ellipsoid.csv" ); gets overriden by unit_of_measure.csv after the call to GTIFGetUOMLengthInfo( nUOMLength, NULL, &dfToMeters ) when the UOM is not one of the hard-coded value. This is due to CSVFilename() returning a static value.

In GDAL, cpl_csv.cpp is more evolved than geotiff's cpl_csv.c, hence that issue doesn't show with internal libgeotiff

Attachments (1)

ticket_48.patch (1.2 KB ) - added by rouault 13 years ago.

Download all attachments as: .zip

Change History (2)

by rouault, 13 years ago

Attachment: ticket_48.patch added

comment:1 by hobu, 10 years ago

Resolution: fixed
Status: newclosed

This appears fixed in trunk now. Closing...

Note: See TracTickets for help on using tickets.