Opened 12 years ago

Closed 12 years ago

#51 closed defect (fixed)

GTIFGetDefn() ignores user defined linear units

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
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 (1)

51.tif (530 bytes ) - added by warmerdam 12 years ago.
Misinterpreted file.

Download all attachments as: .zip

Change History (2)

by warmerdam, 12 years ago

Attachment: 51.tif added

Misinterpreted file.

comment:1 by warmerdam, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk (r2208).

Note: See TracTickets for help on using tickets.