public class EnvelopeTests extends DataFixture
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
| Modifier and Type | Field and Description |
|---|---|
(package private) List<org.opengis.geometry.Envelope> |
envelopes |
dataFile, model| Constructor and Description |
|---|
EnvelopeTests() |
| Modifier and Type | Method and Description |
|---|---|
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. |
void |
envelopeHasValidCRS()
[
Test] An envelope must refer to a coordinate reference system
using the srsName attribute. |
void |
findEnvelopes()
A configuration method (
BeforeClass) that finds gml:Envelope
elements in the GML document under test. |
generateXPathExpression, initDataFixture, setDataFile, setSchemaModelList<org.opengis.geometry.Envelope> envelopes
public void findEnvelopes()
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.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:
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.
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.Copyright © 2023 Open Geospatial Consortium. All rights reserved.