[Gdal-dev] GetProjectionRef() returns an empty string.
gillian.walter at atlantis-scientific.com
Wed Mar 16 09:06:33 EST 2005
If an image is geocoded with ground control points rather than an affine
transform (geotransform), you use GetGCPProjection() rather than
GetProjectionRef() to get the projection string. The ottawa patch
probably uses gcps.
Michele Sanges wrote:
> Hi all,
> I'm testing my program by means the example map files available at
> I'm comparing the result string returned by the
> GDALDataset::GetProjectionRef() method, with the same information
> printed out by the OpenEV program, for any of these files.
> I notice that for some file, for example "/aaigrid/095b_dem_90m.asc",
> the string printed out is the same; for other files, for example
> "/ceos/ottawa_patch.img", the OpenEV program prints the projetion
> string while my call to GetProjectionRef() method return an empty
> string (not NULL). Does someone can give me some suggestions?
> Michele Sanges
> Gdal-dev mailing list
> Gdal-dev at xserve.flids.com
More information about the Gdal-dev