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

Frank Warmerdam warmerdam at pobox.com
Wed Sep 29 22:58:28 EDT 2004

Ken Sewell wrote:
> Given a lat/lon can GDAL tell me what pixel is associated with it(if
> any)?  I've found the function that will give me the lat/lon from the
> pixel, but I can't seem to find one that gives me a pixel from a lat/lon?
> Does such a function exist within GDAL?  Thanks.


Generally speaking, going from lat/long to pixel is the same process as
going from pixel to lat/long.  Can you show how you are doing from
pixel to lat/long?

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