Ticket #51 (closed defect: fixed)
GTIFGetDefn() ignores user defined linear units
| Reported by: | warmerdam | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Component: | libgeotiff |
| Version: | 1.3.0 | Keywords: | ProjLinearUnitSizeGeoKey |
| Cc: |
Description
Given the attached GeoTIFF file with a report like:
Geotiff_Information:
Version: 1
Key_Revision: 1.0
Tagged_Information:
ModelTiepointTag (2,3):
0 0 0
440720 3751320 0
ModelPixelScaleTag (1,3):
3072 3072 0
End_Of_Tags.
Keyed_Information:
GTModelTypeGeoKey (Short,1): ModelTypeProjected
GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
GTCitationGeoKey (Ascii,27): "Mount Dillon / Tobago Grid"
GeogCitationGeoKey (Ascii,13): "Mount Dillon"
GeogAngularUnitsGeoKey (Short,1): Angular_Degree
ProjectedCSTypeGeoKey (Short,1): Unknown-2066
PCSCitationGeoKey (Ascii,23): "LUnits = Clarke's link"
ProjLinearUnitsGeoKey (Short,1): User-Defined
ProjLinearUnitSizeGeoKey (Double,1): 0.201166195164
End_Of_Keys.
End_Of_Geotiff.
The GTIFGetDefn() function does not return the user defined units properly. An inspection of GTIFGetDefn() (and geo_normalize.c in general) shows the ProjLinearUnitSizeGeoKey? is never used.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

