Package org.opengis.test.referencing
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 CRSAuthorityFactory
The authority factory for creating aCoordinateReferenceSystem
from a code, ornull
if none.private final Units
The units of measurement to be used for the tests. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CRSTest
(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 aCoordinateReferenceSystem
from a code, ornull
if 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 theCoordinateReferenceSystem
failed for an other raison.
-