public class CoordinatesValidator extends Object
<xsd:element name="coordinates" type="kml:coordinatesType"/> <xsd:simpleType name="coordinatesType"> <xsd:list itemType="string"/> </xsd:simpleType>
The OGC KML specifications define a compound geographic 3D coordinate reference system in Annex B.
| Modifier and Type | Field and Description |
|---|---|
(package private) org.opengis.cite.validation.ValidationErrorHandler |
errHandler |
| Constructor and Description |
|---|
CoordinatesValidator()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessages()
Returns the error messages reported during the last call to
isValid. |
boolean |
isValid(Node node)
Validates coordinate tuples by checking the following:
the length of the tuple sequence
coordinate values are numeric
tuple dimension (must be 2-3)
|
void |
reset()
Resets the error handler.
|
public String getErrorMessages()
isValid.public void reset()
public boolean isValid(Node node)
node - An Element node that contains a kml:coordinates element.Copyright © 2016 Open Geospatial Consortium. All rights reserved.