Skip to contents

Get WMS or WFS Capabilities

Usage

argentum_get_capabilities(url, max_tries = 3, timeout = 30)

Arguments

url

The full URL of the WMS or WFS service, including all parameters

max_tries

The maximum number of attempts to connect

timeout

The timeout for each attempt in seconds

Value

An XML document containing the service capabilities

Examples

# \donttest{
try({
  capabilities <- argentum_get_capabilities("http://example.com/wfs")
  print(capabilities)
})
#> Requesting capabilities from: http://example.com/wfs
#> Attempt 1 failed. Retrying...
#> Attempt 2 failed. Retrying...
#> Error in value[[3L]](cond) : 
#>   Failed to retrieve capabilities after 3 attempts: Could not resolve hostname [example.com]: Could not resolve host: example.com
# }