Package org.opengis.test.referencing
Class 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CRSAuthorityFactoryThe authority factory for creating aCoordinateReferenceSystemfrom a code, ornullif none. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCRSTest(CRSAuthorityFactory factory) Creates a new test using the given factory. -
Method Summary
-
Field Details
-
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.
-