Class ReferencingTest
java.lang.Object
org.opengis.test.TestCase
org.opengis.test.referencing.ReferencingTest
Tests Coordinate Reference System and related objects
from the
org.opengis.referencing.crs, cs and datum packages. CRS
instances are created using the factories given at construction time.- Since:
- 2.3
- Version:
- 3.0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CRSFactoryFactory to build a coordinate reference system, ornullif none.protected final CSFactoryFactory to build a coordinate system, ornullif none.protected final DatumFactoryFactory to build a datum, ornullif none.private final UnitsThe units of measurement to be used for the tests. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReferencingTest(CRSFactory crsFactory, CSFactory csFactory, DatumFactory datumFactory) Creates a new test using the given factories. -
Method Summary
Modifier and TypeMethodDescriptioncreateMapWithName(String value) Builds a map containing only one value, composed by theIdentifiedObject.NAME_KEYidentifier and the value specified.voidTests the creation of the WGS84 CRS, and verifies that the axes are in the given (longitude, latitude) order.
-
Field Details
-
units
The units of measurement to be used for the tests. -
crsFactory
Factory to build a coordinate reference system, ornullif none. -
csFactory
Factory to build a coordinate system, ornullif none. -
datumFactory
Factory to build a datum, ornullif none.
-
-
Constructor Details
-
ReferencingTest
Creates a new test using the given factories. If a given factory isnull, then the tests which depend on it will be skipped.- Parameters:
crsFactory- Factory for creating aCoordinateReferenceSystem.csFactory- Factory for creating aCoordinateSystem.datumFactory- Factory for creating aDatum.
-
-
Method Details
-
createMapWithName
Builds a map containing only one value, composed by theIdentifiedObject.NAME_KEYidentifier and the value specified.- Parameters:
value- The value for the name key.- Returns:
- A map containing only the value specified for the name key.
-
testWGS84
Tests the creation of the WGS84 CRS, and verifies that the axes are in the given (longitude, latitude) order.- Throws:
FactoryException- if a factory fails to create a referencing object.
-