edzer / sp

Classes and methods for spatial data

Home Page:http://edzer.github.io/sp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issue in rasterize

spedygiorgio opened this issue · comments

I was trying to rasterize a SpatialPolygonDataFrame but it seems to throw an error. A similar issue has been posted in SO http://gis.stackexchange.com/questions/64343/r-raster-package-rasterize-failingno-slots. dataset attached.
geodata.zip

Code that throws an error below:

grandine.raster<-rasterize(x=grandineMap,y=fulminazione,grandineMap$GRIDCODE,fun=mean,na.rm=TRUE)

@spedygiorgio rasterize is not a function from package sp, but is a function from package raster.

Answer is on SO.