arc.open {arcgisbinding}R Documentation

Open dataset, table, or layer

Description

Open ArcGIS datasets, tables and layers. Returns a new arc.dataset-class object which contains details on both the spatial information and attribute information (data frame) contained within the dataset.

Usage

arc.open(path)

Arguments

path

file path or layer name

Value

An arc.dataset object

Supported Formats

References

Note

Paths must be properly quoted for the Windows platform. There are two styles of paths that work within R on Windows:

Network paths can be accessed with a leading \\\\host\share or //host/share path. To access tables and data within a Feature Dataset, reference the full path to the dataset, which follows the structure: <directory>/<Geodatabase Name>/<feature dataset name>/<dataset name>. So for a table called table1 located in a feature dataset fdataset within a Geodatabase called data.gdb, the full path might be: C:/Workspace/data.gdb/fdataset/table1

See Also

arc.dataset-class

Examples

ozone.file <- system.file("extdata", "ca_ozone_pts.shp",
                          package="arcgisbinding")
d <- arc.open(ozone.file)
cat('all fields:', names(d@fields), fill = TRUE) # print all fields

[Package arcgisbinding version 1.0.0.124 Index]