arc2sf | R Documentation |
sf
objectOpens an ArcGIS feature class and converts it to the sf
spatial data format.
arc2sf(fc_path)
fc_path |
character; Path to the ArcGIS geodatabase feature class. |
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.
The specified ArcGIS feature class as an sf
object.
arcgisbinding
https://r-arcgis.github.io/assets/arcgisbinding-vignette.html
The sf2arc
function for saving data back to an ESRI
spatial dataset.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.