[gdal-dev] Re: GCP list projection

Frank Warmerdam warmerdam at pobox.com
Fri Feb 18 10:34:00 EST 2011


On 11-02-18 03:39 AM, Vadim Shlyakhov wrote:
> So, if you have GCP SRS, you don't need SRS set at the dataset level, do you?

Vadim,

Correct.

> BTW I've noticed if a dataset doesn't have a geotransform, then
> ds.GetGeoTransform() returns (0.0, 1.0, 0.0, 0.0, 0.0, 1.0). Is that a feature
> or a bug?

As mentioned, this the fallback value when there isn't one.  But the method
should return CE_Failure on failure so you can distinguish whether the
unity transform is "real" or just a filler value.

So I consider it a feature.

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