LineString Polygon RelativeTo Tracker

Copyright © 2015 Open Geospatial Consortium 75

8.3.7 Point

[Constructorstring id, double[] pos, optional PointDict initDict] interface Point : GMLGeometry { attribute double[] pos; readonly attribute string srsName; readonly attribute string srsDimension; }; dictionary PointDict { string srsName; string srsDimension; };

8.3.8 LineString

[Constructorstring id, Point[] posList] interface LineString : GMLGeometry { readonly attribute string id; attribute Point[] posList; }; Remark: The descriptive specification allows setting the srsName and srsDimension for the entire LineString, as well as single Points separately. The scripting specification only supports setting the srsName for each single Point. In case the srsName and srsDimension should be set for the entire LineString, the implementation needs to make sure it runs through the entire list of Points and sets the srsName and srsDimension accordingly.

8.3.9 Polygon

[Constructorstring id, LineString exterior, optional PolygonDict initDict] interface Polygon : GMLGeometry { readonly attribute string id; attribute LineString[] interior; attribute LineString exterior; }; dictionary PolygonDict { LineString[] interior; }; Remark 1: As LinearRings are closed LineStrings from a technical perspective, ARMLs ECMAScript bindings avoid an additional LinearRing type and use LineString instead. Remark 2: The descriptive specification allows setting the srsName and srsDimension for the entire Polygon, as well as single LinearRings and Points separately. The scripting specification only supports setting the srsName for each single Point. In case the srsName and srsDimension should be set for the entire Polygon or LinearRing, the implementation needs to make sure it runs through the entire list of Points and sets the srsName and srsDimension accordingly.

8.3.10 RelativeTo

[Constructorobject ref, GMLGeometry gmlGeometry] interface RelativeTo : ARAnchor { Copyright © 2015 Open Geospatial Consortium 76 readonly attribute object ref; attribute GMLGeometry gmlGeometry; }; ref can either be an object or a String with its value set to user, thus the type has to be a general object.

8.3.11 Tracker

[Constructorstring uri, optional TrackerDict initDict] interface Tracker : ARElement { readonly attribute string uri; attribute string src; }; dictionary TrackerDict : ARElementDict { string src; };

8.3.12 Trackable