public class SurfaceTests extends DataFixture
A surface has an "up" direction in terms of the upward (positive) normal, which is the side of the surface from which the exterior boundary appears counterclockwise and interior boundaries are traversed in a clockwise manner (see figure below). If the surface is the boundary of a solid, the "up" direction is usually outward.
Sources
| Modifier and Type | Field and Description |
|---|---|
(package private) List<QName> |
surfaceElems |
(package private) NodeList |
surfaceNodes |
dataFile, model| Constructor and Description |
|---|
SurfaceTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
findSurfaces()
A configuration method (
BeforeClass) that looks for gml:Surface
elements in the GML document under test (including any elements in its
substitution group). |
void |
surfaceHasValidCRS()
[
Test] Verifies that a gml:Surface element has a valid CRS
reference. |
void |
validSurfaceBoundary()
[
Test] Checks that the boundary of a surface is topologically
correct. |
void |
validSurfaceOrientation()
[
Test] Checks that the orientation of the surface boundary is
consistent with the upward normal. |
generateXPathExpression, initDataFixture, setDataFile, setSchemaModelpublic void findSurfaces()
BeforeClass) that looks for gml:Surface
elements in the GML document under test (including any elements in its
substitution group). If none are found all test methods defined in the
class will be skipped.public void surfaceHasValidCRS()
Test] Verifies that a gml:Surface element has a valid CRS
reference.
Sources
public void validSurfaceBoundary()
Test] Checks that the boundary of a surface is topologically
correct. Each component of the surface boundary must be a simple closed
curve (ring); that is, it must not self-intersect and it forms a cycle
such that the end points are identical.
Furthermore, each interior ring must be covered by the surface delimited
by the exterior boundary (the rings may touch at a tangent point).
Sources
public void validSurfaceOrientation()
Test] Checks that the orientation of the surface boundary is
consistent with the upward normal. In essence, the interior is always to
the left of a boundary curve. All patches must be oriented in the same
manner.
Sources
Copyright © 2023 Open Geospatial Consortium. All rights reserved.