Learn R Programming

sos4R (version 0.1-15)

Defaults: Default Parameter Settings and Handling Functions

Description

These values are default parameters and handling functions for connections and requests to, as well as response processing of ansers from, Sensor Observation Services. These allow to simplify a SOS connection for the most common use cases and non-expert users.

Usage

SosDefaultConnectionMethod()

SosParsingFunctions(..., include = character(0), exclude = character(0)) SosEncodingFunctions(..., include = character(0), exclude = character(0)) SosDataFieldConvertingFunctions(..., include = character(0), exclude = character(0))

SosDisabledParsers()

SosExampleServices()

SosDefaults()

Arguments

...
Named references to functions to be used for the respective element during parsing, encoding oder conversion, e.g. "myUnit" = myUnitParser.
include
A list of names of elements whose functions shall be included in the returned list, e.g. include = c("GetObservation", "DescribeSensor"). This inclusion is done after replacing the default functions based on the ... argume
exclude
A list of names of elements whose functions shall be excluced in the returned list, e.g. exclude = c("DescribeSensor"). This exclusion is done after replacing the default functions based on the ... argument.

Details

The default values are strongly related to what is actually implemented in the package, but also often resemble the (hopefully) most common use cases.

Some defaults are accessed directly, others should be accessed using a function. The latter is required for cases where a runtime evaluation is needed, e.g. for default values of construction functions.

A special case are the functions to access the default functions for specific purposes, which are the parsing functions, the encoding functions and the field converting functions. See the examples on how to use them.

The function SosDisabledParsers can be used to use no parsing at all (despite the parsing for the capabilities response, which is required for establishing a connection to a SOS. This function is helpful to inspect the unprocessed responses from a service.

The default parameter values are: [object Object]