arc.shape2sp-sf: Convert 'arc.shape' geometry object to sp::Spatial* - Spatial...

Convert to sp::Spatial* - Spatial geometry, sf::sfc - Simple Feature geometryR Documentation

Convert 'arc.shape' geometry object to sp::Spatial* - Spatial geometry or sf::sfc - simple feature geometry

Description

Convert arc.shape-class to sp spatial geometry: SpatialPoints, SpatialLines, or SpatialPolygons. Similar to arc.data2sp.

Convert arc.shape-class to sfc simple feature geometry: POINT, MULTIPOINT, POLYGON, MULTIPOLYGON, LINESTRING, MULTILINESTRING. Similar to arc.data2sf.

Usage

arc.shape2sp(shape, ...)
arc.shape2sf(shape, ...)

Arguments

shape

arc.shape-class

...

optional wkt WKT spatial reference or crs spatial reference string to assigne to return object

Value

an object of class sp::Spatial*.

an object of class sf::sfc, which is a classed list-column with simple feature geometries.

See Also

arc.shape, arc.data2sp arc.data2sf

Examples

d <- arc.select(arc.open(system.file("extdata", "ca_ozone_pts.shp", package="arcgisbinding")), 'ozone')
x <- arc.shape(d)


geom <- arc.shape2sp(x)
## Not run: plot(geom)


geom <- arc.shape2sf(x)
## Not run: plot(geom)


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