Class CRSTest
java.lang.Object
org.opengis.test.TestCase
org.opengis.test.referencing.CRSTest
Tests Coordinate Reference System and related objects
from the
org.opengis.referencing.crs packages. CRS instances are created using the
authority factory given at construction time.- Since:
- 2.3
- Version:
- 3.0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CRSAuthorityFactoryThe authority factory for creating aCoordinateReferenceSystemfrom a code, ornullif none.private final UnitsThe units of measurement to be used for the tests. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCRSTest(CRSAuthorityFactory factory) Creates a new test using the given factory. -
Method Summary
-
Field Details
-
units
The units of measurement to be used for the tests. -
factory
The authority factory for creating aCoordinateReferenceSystemfrom a code, ornullif none.
-
-
Constructor Details
-
CRSTest
Creates a new test using the given factory. If the given factory isnull, then the tests will be skipped.- Parameters:
factory- Factory for creating aCoordinateReferenceSystem.
-
-
Method Details
-
testCRSAuthorityCreation
Tests the creation of the WGS84 crs from the EPSG code.- Throws:
NoSuchAuthorityCodeException- If the specified code is not found among the ones present in the database.FactoryException- If the creation of theCoordinateReferenceSystemfailed for an other raison.
-