arc.shapeinfo | R Documentation |
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.
## S4 method for signature 'arc.shape'
arc.shapeinfo(object)
## S4 method for signature 'arc.feature'
arc.shapeinfo(object)
object |
arc.feature-class or arc.shape-class object |
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 |
arc.open
,
arc.shape
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.