arc.data2sp-sf: Convert 'arc.data' or 'arc.raster' object to 'sp' -...

Convert to (sp) SpatialDataFrame, (sf) Simple FeatureR Documentation

Convert 'arc.data' or 'arc.raster' object to 'sp' - SpatialDataFrame object or 'sf' - Simple Feature object

Description

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.

Usage

arc.data2sp(x, ...)
arc.data2sf(x, ...)

Arguments

x

arc.data object, result of arc.select or arc.raster.

...

optional additional argument such wkt WKT spatial reference or crs coordinate reference string to assign to return object

Value

sp::Spatial*DataFrame object.

sf::sfc object.

See Also

arc.open, arc.select arc.raster

Examples


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)



R-ArcGIS/r-bridge documentation built on May 3, 2024, 9:47 a.m.