Classes, construction functions, and accessor functions for elements from the OGC specification “OpenGIS(R) Sensor Model Language (SensorML) Implementation Specification”.

The only class at the moment is "SensorML" which wraps an "XMLInternalDocument" and some additional information. This strongly depends on the SensorML Profile for Discovery to find the respective paramters.

Objects from the Class

Objects can be created by calls to the construction method in the form SensorML(...).

Slots

xml:

Object of class "XMLInternalDocument", holds the XML representation of the sensor description.

coords:

Object of class "data.frame", holds the position of the sensor.

id:

Object of class "character", the main identifier of the sensor.

name:

Object of class "character", a naming identifier of the sensor.

description:

Object of class "character", a normal text description of the sensor.

boundedBy:

Object of class "matrix", the bounding box of the sensor.

Methods

show

signature(object = "SensorML"): Prints a short statement to the command line.

plot

signature(object = "SensorML"): Plots the sensor using coercion to an object of class "Spatial".

References

Botts, M., Robin, A. (Eds.), OpenGIS(R) Sensor Model Language (SensorML) Implementation Specification, Open Geospatial Consortium: 07-000.

Houbie, F., Skivee F., Robin A., Jirka S., Broering, A., Nuest D. (2009): OGC(R) Catalogue Services Specification 2.0 - Extension Package for ebRIM Application Profile: SensorML. OGC Discussion Paper. Open Geospatial Consortium: 09-163. http://portal.opengeospatial.org/files/?artifact_id=37944.

See also

Examples

showClass("SensorML")
#> Class "SensorML" [package "sos4R"] #> #> Slots: #> #> Name: xml coords id name description #> Class: xml_document data.frame character character character #> #> Name: boundedBy #> Class: matrix
mySOS <- SOS(url = "http://sensorweb.demo.52north.org/sensorwebtestbed/service/kvp", binding = "KVP")
#> [sos4R] Created SOS for URL http://sensorweb.demo.52north.org/sensorwebtestbed/service/kvp
mySensor <- describeSensor(sos = mySOS, procedure = sosProcedures(mySOS)[[1]], outputFormat = 'text/xml; subtype="sensorML/1.0.1"', # space is needed! ) class(mySensor)
#> [1] "SensorML" #> attr(,"package") #> [1] "sos4R"
print(mySensor)
#> Object of class SensorML (see @xml for full document). #> ID: ws2500 #> name: 52n-elv-ws2500 #> description: NA #> coords: 51.934814453125, 7.652428150177, -Inf #> boundedBy: 7.652428150177, 51.934814453125, 7.652428150177, 51.934814453125
sosId(mySensor)
#> [1] "ws2500"
sosName(mySensor)
#> [1] "52n-elv-ws2500"
sosBoundedBy(mySensor)
#> min max #> coords.lon 7.652428 7.652428 #> coords.lat 51.934814 51.934814 #> attr(,"referenceFrame") #> [1] "4326"
sosCoordinates(mySensor)
#> y x z #> ws2500 51.93481 7.652428 -Inf
sosGetCRS(mySensor)
#> CRS arguments: #> +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 #> +towgs84=0,0,0
# NOT RUN { plot(mySensor) # }