arc2sf: Converts ArcGIS feature class to an 'sf' object

View source: R/arc2sf.R

arc2sfR Documentation

Converts ArcGIS feature class to an sf object

Description

Opens an ArcGIS feature class and converts it to the sf spatial data format.

Usage

arc2sf(fc_path)

Arguments

fc_path

character; Path to the ArcGIS geodatabase feature class.

Details

The arc2sf function requires the prior installation of the arcgisbinding package AND a licensed installation of ESRI ArcGIS Desktop or ArcGIS Pro. The arcgisbinding package can be installed from within ArcGIS Pro or by following the instructions at https://r-arcgis.github.io/assets/arcgisbinding-vignette.html for ArcGIS Desktop users.

Value

The specified ArcGIS feature class as an sf object.

References

ESRI ArcGIS Desktop, ArcGIS Pro

https://pro.arcgis.com/

arcgisbinding

https://r-arcgis.github.io/assets/arcgisbinding-vignette.html

See Also

The sf2arc function for saving data back to an ESRI spatial dataset.

Examples


library(sf)
library(arcgisbinding)
arc.check_product()

# Path to an ESRI geodatabase feature class
fc_path_in <- file.path(system.file("extdata", "testing_data.gdb",
                        package = "fluvgeo"),
                        "feature_dataset/riffle_channel")

# Convert the ArcGIS polyline feature class to an `sf` object
fc_sf <- arc2sf(fc_path = fc_path_in)



FluvialGeomorph/fluvgeo documentation built on April 12, 2024, 5:35 p.m.