[R-sig-Geo] Shapefile to raster and crop a raster (error)

Robert Hijmans r.hijmans at gmail.com
Tue Apr 12 06:46:43 CEST 2011


> bio1ai <- crop(bio1, ai) 
> Error in intersectExtent(x, y) : Invalid extent 

This somewhat cryptic error message means that the extent of y does not
overlap with the extent of x. Hence y cannot be used to crop x. 


Perhaps this happens because bio1 is in lon/lat while ai is in UTM or
another projection. 


View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Shapefile-to-raster-and-crop-a-raster-error-tp6262811p6263823.html
Sent from the R-sig-geo mailing list archive at Nabble.com.

More information about the R-sig-Geo mailing list