[Gdal-dev] reading linear units from GeoTIFF broken?
Frank Warmerdam
warmerdam at pobox.com
Tue Dec 3 09:19:44 EST 2002
Vladimir Slepnev wrote:
> write it into a newly created GeoTIFF file through GDAL (SetProjection()),
> here's a piece of listgeo info for the newly written file:
>
> Keyed_Information:
> GTModelTypeGeoKey (Short,1): ModelTypeProjected
> GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
> GTCitationGeoKey (Ascii,33): "UTM Zone 13, Northern Hemisphere"
> GeographicTypeGeoKey (Short,1): GCS_WGS_84
> ProjectedCSTypeGeoKey (Short,1): User-Defined
> ProjectionGeoKey (Short,1): Proj_UTM_zone_13N
> ProjLinearUnitsGeoKey (Short,1): Linear_Foot
> End_Of_Keys.
> End_Of_Geotiff.
Vladimir,
I get the same results in the GeoTIFF file.
> read the same file through GDAL, get the WKT projection string
> (GetProjectionRef()):
>
> PROJCS["unnamed",GEOGCS["WGS
> 84",DATUM["WGS_1984",SPHEROID[,6378137,298.2572235630016,AUTHORITY["EPSG",70
> 30]],AUTHORITY["EPSG",6326]],PRIMEM["Greenwich",0],UNIT["degree",0.017453292
> 5199433],AUTHORITY["EPSG",4326]],PROJECTION["Transverse_Mercator"],PARAMETER
> ["latitude_of_origin",0],PARAMETER["central_meridian",-105],PARAMETER["scale
> _factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing
> ",0],UNIT["unknown",1]]
For me the unit is read back properly. I suspect the new EPSG 6.2.2 .csv
files are not being found correctly. Have you done a 'make install'? If
not, what is your GEOTIFF_CSV set to? You can likely work around this
by defining the GEOTIFF_CSV environment variable and pointing it to your
gdal/data directory, but the default situation is that the .csv files
should be installed in /usr/local/share/gdal and that the default search
rules in GDAL should find them there.
It would appear that isn't happening in your case.
> Once again, sorry for the inconvenience...
> our correspondence seems to be a major part of gdal-dev by now :-)
> And thanks a lot for your help with all this stuff.
No sweat. You are helping me fix bugs, and improve the driver with very
cogent bug reports.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list