R/sf-methods.R

Defines functions st_crs.ImageServer st_crs.FeatureLayer

# st_crs method for feature layer
st_crs.FeatureLayer <- function(obj, ...) {
  sf::st_crs(obj[["extent"]][["spatialReference"]][["latestWkid"]])
}

st_crs.ImageServer <- function(obj, ...) {
  sf::st_crs(obj[["extent"]][["spatialReference"]][["latestWkid"]])
}


# Implement `st_transform()`

Try the arcgislayers package in your browser

Any scripts or data that you put into this service are public.

arcgislayers documentation built on May 29, 2024, 10:42 a.m.