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 ...
getObservation
call that is done within this function.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}
)url
:"character"
: The endpoint of the service, e.g. http://myUrl.org/SOS1/sos
.method
:"character"
: The method, or transport protocol, see SosSupportedConnectionMethods
for available ones.version
:"character"
: The connected service's version, e.g. "1.0.0"
.capabilities
:"OwsCapabilities"
~~ parsers
:"list"
~~ encoders
:"list"
~~ dataFieldConverters
:"list"
: A list of named functions to be used by the parsing methods to convert data values to the correct R type, see SosDataFieldConvertingFunctions
for the default functions and how to add your own converters.curlHandle
:"CURLHandle"
: The curl options to be passed on to the methods getURL
and postForm
from the package RCurl.curlOptions
:"ANY"
: The curl handle to be passed on to the methods getURL
and postForm
from the package RCurl.timeFormat
:"character"
: The time format to be used or decoding and encoding time character strings to and from POSIXt
classes.verboseOutput
:"logical"
: Trigger parameter for extensive debugging information on the console.switchCoordinates
:"logical"
: Trigger switching of lat/long during parsing stage.signature(obj = "SOS")
: ... signature(sos = "SOS")
: To retrieve the full original service metadata document.signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(obj = "SOS")
: ... signature(obj = "SOS")
: ... signature(obj = "SOS")
: ... signature(sos = "...")
: ... signature(obj = "character")
: ... signature(sos = "SOS", operation = "character", type = "character")
: Get the distributed computing platform URL for the given operation and method type. If type is missing, the function returns all available DCPs. signature(sos = "SOS")
: ... signature(obj = "list")
: ... signature(obj = "list")
: ... signature(obj = "character")
: Get an object of class sp:::CRS
for a given OGC URN depicting a reference system, like urn:ogc:def:crs:EPSG:1000
.signature(sos = "SOS")
: ... signature(obj = "...")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS", offeringId = "character")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS", operationName = "character")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: Accessor function for the procedures of a SOS
(via list in capabilities of GetObservation
operation) or a SosObservationOffering
.signature(sos = "SOS")
: TBD: add missing signatures ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(sos = "SOS")
: ... signature(obj = "SOS")
: Accessor function for the event time period from the GetObservation operations metadata.signature(sos = "SOS")
: Accessor function for the filter capabilities of a SOS object.The document is available for download at http://www.opengeospatial.org/standards/sos.
SOS
and the package vignette for general description of use.showClass("SOS")
## Not run:
# # 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)
#
# # create a CRS object from a URN CRS string
# sosGetCRS("urn:ogc:def:crs:EPSG:4217")
#
# # create the URL to a GET request for GetCapabilities
# sosCapabilitiesUrl(mysos)
# ## End(Not run)
Run the code above in your browser using DataLab