Convert to (sp) SpatialDataFrame, (sf) Simple Feature | R Documentation |
Convert an ArcGIS arc.data
to the equivalent sp
data frame
type. The output types that can be generated: SpatialPointsDataFrame
,
SpatialLinesDataFrame
, or SpatialPolygonsDataFrame
.
Convert an arc.raster
object to a SpatialGridDataFrame
object.
Convert an ArcGIS arc.data
to the equivalent sfc
object
type. The output types that can be generated:
POINT
, MULTIPOINT
, POLYGON
, MULTIPOLYGON
, LINESTRING
, MULTILINESTRING
.
arc.data2sp(x, ...)
arc.data2sf(x, ...)
x |
|
... |
optional additional argument such |
sp::Spatial*DataFrame object.
sf::sfc object.
arc.open
,
arc.select
arc.raster
d <- arc.select(arc.open(system.file("extdata", "ca_ozone_pts.shp", package="arcgisbinding")), 'ozone')
require("sp")
df.sp <- arc.data2sp(d)
## Not run: spplot(df.sp)
require("sf")
df.sf <- arc.data2sf(d)
## Not run: plot(df.sf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.