arc.shapeinfo: Get geometry information

arc.shapeinfoR Documentation

Get geometry information

Description

arc.shapeinfo provides details on what type of geometry is stored within the dataset, and the spatial reference of the geometry. The well-known text, WKT, allows interoperable transfer of the spatial reference system (CRS) between environments. The WKID is a numeric value that ArcGIS uses to precisely specify a projection.

Usage

  ## S4 method for signature 'arc.shape'
arc.shapeinfo(object)
  ## S4 method for signature 'arc.feature'
arc.shapeinfo(object)

Arguments

object

arc.feature-class or arc.shape-class object

Value

returns named list of :

type

geometry type: "Point", "Polyline", or "Polygon"

hasZ

TRUE if geometry includes Z-values

hasM

TRUE if geometry includes M-values

WKT

well-known text representation of the shape's spatial reference

WKID

well-known ID of the shape's spatial reference

References

  1. ArcGIS REST API: Using spatial references

  2. Spatial reference lookup

See Also

arc.open, arc.shape

Examples

d <- arc.open(system.file("extdata", "ca_ozone_pts.shp", package="arcgisbinding"))
# from arc.feature
info <- arc.shapeinfo(d)
info$WKT   # print dataset spatial reference

# from arc.shape
df <- arc.select(d, 'ozone')
info <- arc.shapeinfo(arc.shape(df))


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