Class EnvelopeTests

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

public class EnvelopeTests extends DataFixture
Validates the content of a gml:Envelope element, which implements the GM_Envelope class from ISO 19107.

The "lowerCorner" represents a coordinate position consisting of all the minimal ordinates for each dimension for all points within the envelope. The "upperCorner" is a coordinate position consisting of all the maximal ordinates for each dimension for all points within the envelope.

Sources

  • ISO 19136, cl. 10.1.4.6: EnvelopeType, Envelope
  • ISO 19136, cl. 9.10: Spatial reference system used in a feature or feature collection
  • ISO 19107, cl. 6.4.3: GM_Envelope
  • Field Details

    • envelopes

      List<org.opengis.geometry.Envelope> envelopes
  • Constructor Details

    • EnvelopeTests

      public EnvelopeTests()
  • Method Details

    • findEnvelopes

      @BeforeClass public void findEnvelopes()
      A configuration method (BeforeClass) that finds gml:Envelope elements in the GML document under test. If none are found all test methods defined in the class will be skipped.
    • envelopeHasValidCRS

      public void envelopeHasValidCRS()
      [Test] An envelope must refer to a coordinate reference system using the srsName attribute. The alternative is to specify the CRS separately for each corner position but this is very uncommon.

      The value of the srsName attribute must be an absolute URI, but it need not be dereferenceable for well-known CRS identifiers. The 'urn' or 'http' URI schemes may be used to identify a CRS as described in OGC 09-048r3, Name type specification -- definitions -- part 1 -- basic name. For example, the following URIs identify the WGS 84 (geographic 2D) coordinate reference system:

      • urn:ogc:def:crs:EPSG::4326
      • http://www.opengis.net/def/crs/EPSG/0/4326

      Note: Since gml:Envelope is not a geometry object, the CRS reference cannot be inherited from some larger spatial context according to ISO 19136, cl. 9.10.

      See Also:
    • checkEnvelopePositions

      public void checkEnvelopePositions()
      [Test] The coordinates of the lower corner must be less than the coordinates of the upper corner, where the coordinate tuples are compared item by item. Furthermore, the dimension of the corner positions must be identical and equal to that of the CRS.
      See Also:
      • "ISO 19107: cl. 6.4.3.2, 6.4.3.3"