arc_spatial_references {arcgeocoder} | R Documentation |
ESRI (ArcGIS) Spatial Reference data base
Description
Database of available spatial references (CRS) in tibble
format.
Format
A tibble
with
9,364 rows
and fields:
- projtype
Projection type (
"ProjectedCoordinateSystems", "GeographicCoordinateSystems","VerticalCoordinateSystems"
)- wkid
Well-Known ID
- latestWkid
Most recent
wkid
, in case thatwkid
is deprecated- authority
wkid
authority (Esri or EPSG)- deprecated
Logical indicating if
wkid
is deprecated- description
Human-readable description of the
wkid
- areaname
Use area of the
wkid
- wkt
Representation of
wkid
in Well-Known Text (WKT). Useful when working with sf or terra
Details
This data base is useful when using the outsr
parameter of the functions.
Some projections ids have changed over time, for example Web Mercator is
wkid = 102100
is deprecated and currently is wkid = 3857
. However, both
values would work, and they would return similar results.
Note
Data extracted on 14 January 2023.
Source
ESRI Projection Engine factory
See Also
Other datasets:
arc_categories
Examples
# Get all possible valuesdata("arc_spatial_references")
arc_spatial_references
# Request with deprecated Web Mercator
library(dplyr)
wkid <- arc_spatial_references %>%
filter(latestWkid == 3857 & deprecated == TRUE) %>%
slice(1)
glimpse(wkid)
add <- arc_geo("London, United Kingdom", outsr = wkid$wkid)
# Note values lat, lon and wkid. latestwkid give the current valid wkid
add %>%
select(lat, lon, wkid, latestWkid) %>%
glimpse()
# See with sf
try(sf::st_crs(wkid$wkid))
# But
try(sf::st_crs(wkid$latestWkid))
# or
try(sf::st_crs(wkid$wkt))