Skip to content
Prev 25901 / 29559 Next

Compatibility between sf and raster

Dear list members,

Is there any plan to make compatible the sf and the raster packages?

library(sf)
library(raster)
Reading layer `nc' from data source
`/Library/Frameworks/R.framework/Versions/3.4/Resources/library/sf/shape/nc.shp'
using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
geometry type:  MULTIPOLYGON
dimension:      XY
bbox:           xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax:
36.58965
epsg (SRID):    4267
proj4string:    +proj=longlat +datum=NAD27 +no_defs
Error in (function (classes, fdef, mtable)  :
  unable to find an inherited method for function ?raster? for signature
?"sf"?