public class PointTests extends DataFixture
Sources
| Modifier and Type | Field and Description |
|---|---|
(package private) List<QName> |
pointElems |
(package private) NodeList |
points |
dataFile, model| Constructor and Description |
|---|
PointTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) org.opengis.geometry.DirectPosition |
createDirectPosition(Element point,
boolean ignoreThirdDimension)
Creates a DirectPosition object from a gml:Point element.
|
void |
findPoints()
A configuration method (
BeforeClass) that looks for gml:Point
elements in the GML document under test. |
void |
pointHasValidCRS()
[
Test] Verifies that a gml:Point element has a valid CRS
reference. |
void |
pointHasValidPosition()
[
Test] Verifies the coordinates of a gml:Point. |
generateXPathExpression, initDataFixture, setDataFile, setSchemaModelpublic void findPoints()
BeforeClass) that looks for gml:Point
elements in the GML document under test. If none are found all test
methods defined in the class will be skipped.public void pointHasValidCRS()
Test] Verifies that a gml:Point element has a valid CRS
reference.
Sources
public void pointHasValidPosition()
Test] Verifies the coordinates of a gml:Point. All of the
following constraints must be satisfied:
Note that the last constraint will detect obvious cases where the axis order is incorrect (e.g. a position expressed in EPSG 4326 as -122.22, 50.55).
Sources
org.opengis.geometry.DirectPosition createDirectPosition(Element point, boolean ignoreThirdDimension)
point - A gml:Point element (or an element in its substitution group).ignoreThirdDimension - If this flag is true then it will ignore third dimension
else it will include all dimension.IndexOutOfBoundsException - If the length of the coordinate tuple exceeds the dimension
of the associated CRS.Copyright © 2023 Open Geospatial Consortium. All rights reserved.