public class TrackValidator extends Object
<complexType name="TrackType">
<complexContent>
<extension base="kml:AbstractGeometryType">
<all>
<element ref="kml:extrude" minOccurs="0"/>
<element ref="kml:tessellate" minOccurs="0"/>
<group ref="kml:AltitudeModeGroup"/>
<element ref="kml:when" minOccurs="0" maxOccurs="unbounded"/>
<element ref="kml:coord" minOccurs="0" maxOccurs="unbounded"/>
<element ref="kml:angles" minOccurs="0" maxOccurs="unbounded"/>
<element ref="kml:Model" minOccurs="0"/>
<element ref="kml:ExtendedData" minOccurs="0"/>
</all>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
(package private) static com.vividsolutions.jts.geom.Envelope |
CRS_EXTENT |
(package private) org.opengis.cite.validation.ValidationErrorHandler |
errHandler |
| Constructor and Description |
|---|
TrackValidator()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkAngles(Element track)
Verifies that each kml:angles element contained by a Track satisfies the
following constraints: (a) it contains a space-delimited list of numeric
values; (b) if the track has no associated model, then only one angle
(heading) is specified.
|
(package private) void |
checkCoordList(Element track)
Verifies that the coordinates specifying the track positions (kml:coord)
consist of space-delimited numeric values in the applicable coordinate
reference system (default CRS).
|
String |
getErrorMessages()
Returns the error messages reported during the last call to
isValid. |
(package private) double[] |
getNumericValues(Node node)
Gets the content of the given node as an array of numeric values.
|
boolean |
isValid(Node node)
Validates the content of a kml:Track element by checking the constraints
defined by the following test cases:
ATC-146: Track positions
ATC-147: Track properties constitute parallel array
ATC-148: Track orientations
|
void |
reset()
Resets the error handler.
|
static final com.vividsolutions.jts.geom.Envelope CRS_EXTENT
org.opengis.cite.validation.ValidationErrorHandler errHandler
public String getErrorMessages()
isValid.public void reset()
public boolean isValid(Node node)
node - A kml:Track element.void checkCoordList(Element track)
track - A kml:Track elementvoid checkAngles(Element track)
track - A kml:Track elementdouble[] getNumericValues(Node node)
node - A node containing a sequence of space-separated values, all of
which are presumed to be a parsable double.Copyright © 2016 Open Geospatial Consortium. All rights reserved.