Learn R Programming

sos4R (version 0.1-15)

SOS-class: Class, and Construction and Accessor Functions for "SOS"

Description

Base class of a connection to a Sensor Observation Service.

Usage

SOS(url, method = SosDefaultConnectionMethod(), version = "1.0.0", parsers = SosParsingFunctions(), encoders = SosEncodingFunctions(), dataFieldConverters = SosDataFieldConvertingFunctions(), curlOptions = list(), curlHandle = getCurlHandle(), timeFormat = sosDefaultTimeFormat, verboseOutput = FALSE, switchCoordinates = FALSE, ...)

# accessor methods ...

Arguments

url
See the corresponding slot description.
method
See the corresponding slot description.
version
See the corresponding slot description.
parsers
See the corresponding slot description.
encoders
See the corresponding slot description.
dataFieldConverters
See the corresponding slot description.
curlOptions
See the corresponding slot description.
curlHandle
See the corresponding slot description.
timeFormat
See the corresponding slot description.
verboseOutput
See the corresponding slot description.
switchCoordinates
See the corresponding slot description.
...
Additional parameters that are passed on to the getObservation call that is done within this function.

Value

  • The construction functions returns an object of class SOS-class.

Objects from the Class

Objects can be created by calls to the construction function of the form SOS(...).

Object from the class can be used in calls to function for metadata retrieval of sensors (link{describeSensor-methods}) and observation data queries (link{getObservation-methods} and link{getObservationById-methods})

Details

From the introduction of the specification document: The goal of SOS is to provide access to observations from sensors and sensor systems in a standard way that is consistent for all sensor systems including remote, in-situ, fixed and mobile sensors.

References

Na, A., Priest, M. (Eds.), Sensor Observation Service, Open Geospatial Consortium Inc., OGC 06-009r6, Version: 1.0

The document is available for download at http://www.opengeospatial.org/standards/sos.

See Also

See also creation function SOS and the package vignette for general description of use.

Examples

Run this code
showClass("SOS")

# create a SOS connection
mysos <- SOS(url = "http://mysos.org/sos")

# create a SOS connetion with a specific connection method and time format
mysos <- SOS(url = "http://mysos.org/sos",
    method = "GET", timeFormat = "
# turn on verbose output for all methods and functions
SOS(url = "http://mysos.org/sos", verboseOutput = TRUE)

# get the meaning of an exception code
sosExceptionCodeMeaning(ex@exceptionCode)

# print the changes document
sosChanges()

# create a CRS object from a URN CRS string
sosGetCRS("urn:ogc:def:crs:EPSG:4217")

Run the code above in your browser using DataLab