[gdal-dev] Get pixel value by lat and long

Frank Warmerdam warmerdam at pobox.com
Mon Jan 12 17:55:44 EST 2009


Clay, Bruce wrote:
> I have searched the web and not found any methods to call so I thought I 
> would check before writing one.
> 
>  
> 
> I need to get the pixel value of a land use raster based on a user 
> selected latitude and longitude.
> 
> I know I can get the spatial reference of raster and the pixel size to 
> calculate the right band but this seems like a function that would 
> already be some level of the library already. 
> 
> Is there a method that I missed somewhere?

Bruce,

I am not aware of any convenience function for this sort of task in GDAL.

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