Learn R Programming

sos4R (version 0.1-15)

GmlDirectPosition-class: Classes and Construction Functions from the GML Namespace

Description

Classes for GML elements and their respective construction functions. See the referenced specification for details.

Usage

GmlDirectPosition(pos, srsName = as.character(NA), srsDimension = NA_integer_, axisLabels = as.character(NA), uomLabels = as.character(NA))
GmlDirectPositionLatLon(lat, lon, srsName = as.character(NA), srsDimension = NA_integer_, axisLabels = as.character(NA), uomLabels = as.character(NA))
GmlEnvelope(lowerCorner, upperCorner, srsName = as.character(NA), srsDimension = NA_integer_, axisLabels = as.character(NA), uomLabels = as.character(NA))
GmlFeatureCollection(featureMembers, id = as.character(NA))
GmlPoint(pos, id = as.character(NA), srsName = as.character(NA), srsDimension = NA_integer_, axisLabels = as.character(NA), uomLabels = as.character(NA))
GmlPointProperty(href = as.character(NA), point = NULL)
GmlFeatureProperty(href = as.character(NA), feature = NULL)
GmlTimeInstant(timePosition, id = as.character(NA), relatedTimes = list(NA), frame = as.character(NA))
GmlTimeInstantProperty(href = as.character(NA), time = NULL)
GmlTimeInterval(interval, unit, radix = NA, factor = NA)
GmlTimePeriod(begin = NULL, beginPosition = NULL, end = NULL, endPosition = NULL, duration = as.character(NA), timeInterval = NULL, id = as.character(NA), relatedTimes = list(NA), frame = as.character(NA))
GmlTimePosition(time, frame = as.character(NA), calendarEraName = as.character(NA), indeterminatePosition = as.character(NA))
GmlMeasure(value, uom)

Arguments

axisLabels
See corresponding slot description.
begin
See corresponding slot description.
beginPosition
See corresponding slot description.
calendarEraName
See corresponding slot description.
duration
See corresponding slot description.
end
See corresponding slot description.
endPosition
See corresponding slot description.
factor
See corresponding slot description.
feature
See corresponding slot description.
featureMembers
See corresponding slot description.
frame
See corresponding slot description.
href
See corresponding slot description.
id
See corresponding slot description.
indeterminatePosition
See corresponding slot description.
interval
See corresponding slot description.
lat
Latitude coordinate parameter.
lon
Longitue coordinate parameter.
lowerCorner
See corresponding slot description.
point
See corresponding slot description.
pos
See corresponding slot description.
radix
See corresponding slot description.
relatedTimes
See corresponding slot description.
srsDimension
See corresponding slot description.
srsName
See corresponding slot description.
time
See corresponding slot description.
timeInterval
See corresponding slot description.
timePosition
See corresponding slot description.
unit
See corresponding slot description.
uomLabels
See corresponding slot description.
upperCorner
See corresponding slot description.
value
See slot description.
uom
See slot description.

Value

  • The construction functions return an object of the respective class.

Objects from this classes

Objects can be created by calling the according construction functions. e.g. in the form GmlPoint(...).

Extends

GmlFeature: Class "GmlFeatureOrNULL", directly.

GmlFeatureCollection: Class "GmlFeature", directly. Class "GmlFeatureOrNULL", by class "GmlFeature", distance 2.

GmlLineString: Class "GmlGeometry", directly.

GmlPoint: Class "GmlGeometry", directly.

GmlTimeGeometricPrimitive: Class "GmlTimePrimitive", directly. Class "GmlTimeObject", by class "GmlTimePrimitive", distance 2. Class "GmlTimeObjectOrNULL", by class "GmlTimePrimitive", distance 3.

GmlTimeInstant: Class "GmlTimeGeometricPrimitive", directly. Class "GmlTimeInstantOrNULL", directly. Class "GmlTimePrimitive", by class "GmlTimeGeometricPrimitive", distance 2. Class "GmlTimeObject", by class "GmlTimeGeometricPrimitive", distance 3. Class "GmlTimeObjectOrNULL", by class "GmlTimeGeometricPrimitive", distance 4.

GmlTimeInstantProperty: Class "GmlTimeGeometricPrimitive", directly. Class "GmlTimeInstantPropertyOrNULL", directly. Class "GmlTimePrimitive", by class "GmlTimeGeometricPrimitive", distance 2. Class "GmlTimeObject", by class "GmlTimeGeometricPrimitive", distance 3. Class "GmlTimeObjectOrNULL", by class "GmlTimeGeometricPrimitive", distance 4.

GmlTimeInterval: Class "GmlTimeIntervalOrNULL", directly.

GmlTimeObject: Class "GmlTimeObjectOrNULL", directly.

GmlTimePrimitive: Class "GmlTimeObject", directly. Class "GmlTimeObjectOrNULL", by class "GmlTimeObject", distance 2.

Virtual Classes

No objects may be created from the following virtual classes: GmlFeature, GmlTimeObject, GmlTimePrimitive, GmlTimeGeometricPrimitive, GmlGeometry, all ...OrNULL classes.

Details

The "...OrNULL" classes are used to model optional slots.

References

GML specification at http://www.opengeospatial.org/standards/gml.

Examples

Run this code
showClass("GmlDirectPosition")
showClass("GmlEnvelope")
showClass("GmlFeature")
showClass("GmlFeatureCollection")
showClass("GmlFeatureOrNULL")
showClass("GmlFeatureProperty")
showClass("GmlGeometry")
showClass("GmlLineString")
showClass("GmlPoint")
showClass("GmlPointProperty")
showClass("GmlPolygon")
showClass("GmlTimeGeometricPrimitive")
showClass("GmlTimeInstant")
showClass("GmlTimeInstantOrNULL")
showClass("GmlTimeInstantProperty")
showClass("GmlTimeInstantPropertyOrNULL")
showClass("GmlTimeInterval")
showClass("GmlTimeIntervalOrNULL")
showClass("GmlTimeObject")
showClass("GmlTimeObjectOrNULL")
showClass("GmlTimePeriod")
showClass("GmlTimePosition")
showClass("GmlTimePositionOrNULL")
showClass("GmlTimePrimitive")

# create direct position
pos1 <- GmlDirectPosition(pos = "7.0 52.0")
show(pos1)

# create envelope
env1 <- GmlEnvelope(upperCorner = pos1, lowerCorner = GmlDirectPosition("6.0 51.0"))
print(env1)

# wrap elements in feature collection
GmlFeatureCollection(id = "001", featureMembers=list(pos1, env1))

# create point with ID
point1 <- GmlPoint(pos = pos1, id = "002")

# create point properties
GmlPointProperty(href = "http://link.to/point")
GmlPointProperty(point = point1)

# time interval of one day
GmlTimeInterval(interval = "1", unit = "d")

# referenced feature
GmlFeatureProperty(href = "http://link.to/feature")

# create a time position and wrap it into a time instant
timePos1 <- GmlTimePosition(time = as.POSIXct("2010-01-01"))

# create direct or referenced time instant
timeInst1 <- GmlTimeInstant(timePosition = timePos1)
timeInst1

GmlTimeInstantProperty(href = "http://link.to/timeInstant")

# create different variants of time periods
# one hour with time positions
GmlTimePeriod(beginPosition = timePos1, endPosition = GmlTimePosition(time = timePos1@time+3600))

# one week backwards from now
aWeekAgo <- GmlTimeInstantProperty(time = GmlTimeInstant(time = GmlTimePosition(time = Sys.time()-(3600*24*7))))
now <- GmlTimeInstantProperty(time = GmlTimeInstant(time = GmlTimePosition(time = Sys.time())))
GmlTimePeriod(begin = aWeekAgo, end = now)

Run the code above in your browser using DataLab