Class LineStringTests

java.lang.Object
org.opengis.cite.iso19136.data.DataFixture
org.opengis.cite.iso19136.data.spatial.LineStringTests

public class LineStringTests extends DataFixture
Validates the content of a gml:LineString element (or any element in its substitution group). In GML a LineString is a regarded as a special curve that consists of a single (implicit) segment with linear interpolation; it must have two or more coordinate tuples. Note that in ISO 19107 a GM_LineString is treated as a curve segment, not as a geometry type.

Sources

  • ISO 19136:2007, cl. 10.4.4: LineStringType, LineString
  • ISO 19107:2003, cl. 6.4.10: GM_LineString
  • Field Details

  • Constructor Details

    • LineStringTests

      public LineStringTests()
  • Method Details

    • findLineStrings

      @BeforeClass(alwaysRun=true) public void findLineStrings()
      A configuration method (BeforeClass) that looks for gml:LineString elements in the GML document under test. If none are found all test methods defined in the class will be skipped.
    • lineHasValidCRS

      public void lineHasValidCRS()
      [Test] Verifies that a gml:LineString 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)
    • validLineString

      public void validLineString()
      [Test] Verifies that a gml:LineString element contains at least two coordinate tuples and that it lies within the valid area of the CRS.

      Sources

      • ISO 19136, 10.4.4: LineStringType, LineString