public class GeoExtentValidator extends Object
| Constructor and Description |
|---|
GeoExtentValidator()
Constructor with default error handler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessages()
Returns the error messages reported during the last validation episode.
|
Iterator<org.opengis.cite.validation.ValidationError> |
getErrors()
Returns the errors reported during the last validation episode.
|
(package private) Map<String,Double> |
getNumericProperties(Node node,
Map<String,Double> defaults)
Builds a Map containing the numeric values conveyed by the child elements
of the given node.
|
void |
reset()
Resets the error handler.
|
(package private) boolean |
validateBox(Node boxNode)
Validates a bounding box.
|
boolean |
validateQuadrilateral(Node latlonQuad)
Checks that a kml:LatLonQuad element has valid coordinates and satisfies
the following additional constraints:
the four coordinate tuples are specified in counter-clockwise order
(the interior is to the left of the boundary curve), with the first
coordinate corresponding to the lower-left corner of the overlayed image;
the quadrilateral is convex (every interior angle <= 180 degrees).
|
boolean |
validGeoExtent(Node node) |
public GeoExtentValidator()
public String getErrorMessages()
public Iterator<org.opengis.cite.validation.ValidationError> getErrors()
public void reset()
public boolean validGeoExtent(Node node)
public boolean validateQuadrilateral(Node latlonQuad)
latlonQuad - A kml:LatLonQuad element.boolean validateBox(Node boxNode)
Some additional constraints were introduced in KML 2.3 with the longitude range extension (to ± 360):
boxNode - An Element node that contains a bounding box element
(kml:LatLon[Alt]Box).Map<String,Double> getNumericProperties(Node node, Map<String,Double> defaults)
node - A node expected to contain child elements.defaults - A collection of default values.Copyright © 2016 Open Geospatial Consortium. All rights reserved.