Skip to content

Selecting a raster cell which contains a point of given coordinates

3 messages · luca candeloro, Tom Gottfried, Robert J. Hijmans

#
Suppose you want to know the attribute values of the grid cell:
?over
?overlay

regards,
Tom

Am 18.02.2011 08:56, schrieb luca candeloro:

  
    
#
Luca, you can do:

library(raster)
r <- raster(Map)
cellFromXY(r, Gattia)


Robert