arc_open | R Documentation |
Provided a URL, create an object referencing the remote resource. The resultant object acts as a reference to the remote data source.
arc_open(url, token = arc_token())
url |
The url of the remote resource. Must be of length one. |
token |
your authorization token. |
To extract data from the remote resource utilize arc_select()
for objects of class
FeatureLayer
or Table
. For ImageServer
s, utilize arc_raster()
.
Depending on the provided URL returns a FeatureLayer
, Table
, FeatureServer
, ImageServer
, or MapServer
. Each of these objects is a named list containing the properties of the service.
arc_select arc_raster
## Not run:
# FeatureLayer
furl <- paste0(
"https://services3.arcgis.com/ZvidGQkLaDJxRSJ2/arcgis/rest/services/",
"PLACES_LocalData_for_BetterHealth/FeatureServer/0"
)
arc_open(furl)
# Table
furl <- paste0(
"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/",
"USA_Wetlands/FeatureServer/1"
)
arc_open(furl)
# ImageServer
arc_open(
"https://landsat2.arcgis.com/arcgis/rest/services/Landsat/MS/ImageServer"
)
# FeatureServer
furl <- paste0(
"https://services3.arcgis.com/ZvidGQkLaDJxRSJ2/arcgis/rest/services/",
"PLACES_LocalData_for_BetterHealth/FeatureServer"
)
arc_open(furl)
# MapServer
map_url <- paste0(
"https://services.arcgisonline.com/ArcGIS/rest/services/",
"World_Imagery/MapServer"
)
arc_open(map_url)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.