Skip to content
Prev 4817 / 29559 Next

Confused by overlay(x = "SpatialPixelsDataFrame", y = "SpatialPoints")

David Wahlund wrote:
There is one except that it is y="SpatialPolygons" rather than 
"SpatialPolygon":

 > showMethods(overlay)
Function: overlay (package sp)
x="SpatialGridDataFrame", y="SpatialPoints"
x="SpatialGrid", y="SpatialPoints"
x="SpatialPixelsDataFrame", y="SpatialPoints"
x="SpatialPixelsDataFrame", y="SpatialPolygons"
    (inherited from: x="SpatialPointsDataFrame", y="SpatialPolygons")
x="SpatialPixels", y="SpatialPoints"
x="SpatialPointsDataFrame", y="SpatialPolygons"
x="SpatialPoints", y="SpatialPolygons"
x="SpatialPolygons", y="SpatialPoints"

(note that it's only visible this way only after you've used it)
This is wrong; where exactly does it say so? Documentation is a bit 
scattered sometimes.
Do you manage to get the pixels you want from the indexes returned?
--
Edzer