[Gdal-dev] Get a pixel from a lat/lon.

Frank Warmerdam warmerdam at pobox.com
Thu Sep 30 16:23:54 EDT 2004


Ken Sewell wrote:
> Frank,
> 	Thanks for your help, the GDALInvGeoTransform and
> GDALApplyGeoTransform worked.  One quick correction, shouldn't the formula
> below read like this:
> 
> 
>>     x = adfInvGeoTransform[0] + adfInvGeoTransform[1] * dfGeoX
>>                               + adfInvGeoTransform[2] * dfGeoY;
>>     y = adfInvGeoTransform[3] + adfInvGeoTransform[4] * dfGeoX
>>                               + adfInvGeoTransform[5] * dfGeoY;

Ken,

Yes, you are right.  Sorry about that.

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