| arc.shape-class {arcgisbinding} | R Documentation |
arc.shape is geometry collection
arc.shape is attached to an ArcGIS data.frame as the
attribute "shape". Each element corresponds to one record in
the input data frame. Points are presented as an array of lists, with
each list containing (x, y, Z, M), where
d <- arc.open(system.file("extdata", "ca_ozone_pts.shp",
package="arcgisbinding"))
arc.df <- arc.select(d, "FID")
shape <- arc.shape(arc.df)
# create data.frame with X and Y columns
df <- data.frame(arc.df, X=shape$x, Y=shape$y)
# print out row #42
df[42,]