[Gdal-dev] GetProjectionRef() returns an empty string.
Gillian Walter
gillian.walter at atlantis-scientific.com
Wed Mar 16 09:06:33 EST 2005
Hi,
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.
Gillian
Michele Sanges wrote:
> Hi all,
>
> I'm testing my program by means the example map files available at
> ftp://ftp.remotesensing.org/gdal/data/.
> 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?
> Thanks.
>
> Michele Sanges
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at xserve.flids.com
> http://xserve.flids.com/mailman/listinfo/gdal-dev
More information about the Gdal-dev
mailing list