Skip to contents

Negotiates the protocol version by trying the newest first and falling back, which is what makes the package work against both GeoServer and ArcGIS Server deployments. The parsed document is cached; see argentum_cache_path().

Usage

argentum_capabilities(
  x,
  service = c("wfs", "wms"),
  version = NULL,
  refresh = FALSE
)

Arguments

x

An organization name from argentum_organizations(), or a service URL. Any query string on the URL is discarded and rebuilt.

service

"wfs" or "wms".

version

Force a protocol version, e.g. "1.1.0". If NULL (default) versions are tried newest-first.

refresh

Ignore the cache and re-request the document.

Value

An object of class argentum_capabilities: an xml_document with service, version and url attributes.

Examples

# \donttest{
cap <- argentum_capabilities("https://wms.ign.gob.ar/geoserver/ows", "wfs")
#> Requesting WFS 2.0.0 capabilities from <https://wms.ign.gob.ar/geoserver/ows>
cap
#> <argentum_capabilities>
#>  Service: WFS 2.0.0
#>  Endpoint: <https://wms.ign.gob.ar/geoserver/ows>
#>  Title: WFS Instituto Geográfico Nacional
# }