Class CurveTests
java.lang.Object
org.opengis.cite.iso19136.data.DataFixture
org.opengis.cite.iso19136.data.spatial.CurveTests
Validates the content of a gml:Curve element (or any element in its substitution
group), which implements the GM_Curve class from ISO 19107.
A curve is composed of one or more curve segments, each of which may be defined using a different interpolation method. The curve segments are connected to one another, with the end point of each segment (except the last) being the start point of the next segment.
Sources
- ISO 19136:2007, cl. 10.4.5: CurveType, Curve
- ISO 19107:2003, cl. 6.3.16: GM_Curve
-
Field Summary
Fields inherited from class org.opengis.cite.iso19136.data.DataFixture
dataFile, model
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
[Test
] Verifies that a gml:Curve element has a valid CRS reference.void
A configuration method (BeforeClass
) that looks for gml:Curve elements in the GML document under test.void
[Test
] Verifies the segments of a gml:Curve element.Methods inherited from class org.opengis.cite.iso19136.data.DataFixture
generateXPathExpression, initDataFixture, setDataFile, setSchemaModel
-
Field Details
-
curveNodes
NodeList curveNodes -
curveElems
-
-
Constructor Details
-
CurveTests
public CurveTests()
-
-
Method Details
-
findCurves
@BeforeClass(alwaysRun=true) public void findCurves()A configuration method (BeforeClass
) that looks for gml:Curve elements in the GML document under test. If none are found all test methods defined in the class will be skipped. -
curveHasValidCRS
public void curveHasValidCRS()[Test
] Verifies that a gml:Curve element has a valid CRS reference.Sources
- ISO 19136, cl. 9.10, 10.1.3.2
- ISO 19107, cl. 6.2.2.17 (Coordinate Reference System association)
-
validCurveSegments
public void validCurveSegments()[Test
] Verifies the segments of a gml:Curve element. All of the following constraints must be satisfied:- the curve has one or more segments;
- the segments are connected;
- the segments are all located within the valid area of the CRS.
Sources
- ISO 19136: 10.4.5 (CurveType, Curve)
-