Learn R Programming

ows4R (version 0.2)

WMSClient: WMSClient

Description

WMSClient

Arguments

Value

Object of R6Class with methods for interfacing an OGC Web Map Service.

Format

R6Class object.

Methods

new(url, serviceVersion, user, pwd, logger)

This method is used to instantiate a WMSClient with the url of the OGC service. Authentication is supported using basic auth (using user/pwd arguments), bearer token (using token argument), or custom (using headers argument). By default, the logger argument will be set to NULL (no logger). This argument accepts two possible values: INFO: to print only ows4R logs, DEBUG: to print more verbose logs

getCapabilities()

Get service capabilities. Inherited from OWS Client

reloadCapabilities()

Reload service capabilities

Examples

Run this code
# NOT RUN {
   #example based on a WMS endpoint responding at http://localhost:8080/geoserver/wms
   wms <- WMSClient$new("http://localhost:8080/geoserver/wms", serviceVersion = "1.1.1")
   
   #get capabilities
   caps <- wms$getCapabilities()
   
   #get feature info
   
   #Advanced examples at https://github.com/eblondel/ows4R/wiki#wms
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab