Ticket #51 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

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

51.tif Download (0.5 KB) - added by warmerdam 13 months ago.
Misinterpreted file.

Change History

Changed 13 months ago by warmerdam

Misinterpreted file.

Changed 13 months ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk (r2208).

Note: See TracTickets for help on using tickets.