# create a feature of interest based on identifiers
foiIDs <- list("urn:ogc:object:feature:1", "urn:ogc:object:feature:2")
foiObj <- sosCreateFeatureOfInterest(objectIDs = foiIDs[1:2])
print(foiObj)
# create a bounding box matrix and use it to create a spatial feature of interest
bboxMatrix <- sosCreateBBoxMatrix(lowLat = 50.0, lowLon = 7.0,
uppLat = 53.0, uppLon = 10.0)
foiBBox <- sosCreateFeatureOfInterest(bbox = bboxMatrix,
srsName = "urn:ogc:def:crs:EPSG:6.8:4326")
print(foiBBox)
# create a foi with a bounding box
bbox <- sosCreateBBOX(lowLat = 50.0, lowLon = 7.0, uppLat = 53.0,
uppLon = 10.0, srsName = "urn:ogc:def:crs:EPSG:6.8:4326",
srsDimension = as.integer(2), axisLabels = "lat,lon",
uomLabels = "deg,deg", propertyName = "bboxName")
foiBBox2 <- sosCreateFeatureOfInterest(spatialOps = bbox)
print(foiBBox2)
## Not run:
# last.period <- sosCreateTimePeriod(sos = mySOS,
# begin = (Sys.time() - 3600 * 24 * 7), end = Sys.time())
#
# oneWeek.period <- sosCreateTimePeriod(sos = mySOS,
# begin = as.POSIXct("2010/01/01"), end = as.POSIXct("2010/01/07"))
# oneWeek.eventTime <- sosCreateEventTimeList(oneWeek.period)
#
# sosCreateTime(sos = mySOS, time = "2007-07-07 07:00::2008-08-08 08:00")
# sosCreateTime(sos = mySOS, time = "2007-07-07 07:00/2010-10-10 10:00")
#
# sosCreateTime(sos = mySOS, time = "::2007-08-05")
# sosCreateTime(sos = mySOS, time = "2007-08-05/")
# ## End(Not run)
Run the code above in your browser using DataLab