Package org.opengis.test.referencing
Class CRSTest
- java.lang.Object
-
- org.opengis.test.TestCase
-
- org.opengis.test.referencing.CRSTest
-
public abstract class CRSTest extends TestCase
Tests Coordinate Reference System and related objects from theorg.opengis.referencing.crspackages. CRS instances are created using the authority factory given at construction time.- Since:
- 2.3
- Version:
- 3.0.1
-
-
Field Summary
Fields Modifier and Type Field Description protected CRSAuthorityFactoryfactoryThe authority factory for creating aCoordinateReferenceSystemfrom a code, ornullif none.private UnitsunitsThe units of measurement to be used for the tests.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCRSTest(CRSAuthorityFactory factory)Creates a new test using the given factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestCRSAuthorityCreation()Tests the creation of the WGS84 crs from the EPSG code.
-
-
-
Field Detail
-
units
private final Units units
The units of measurement to be used for the tests.
-
factory
protected final CRSAuthorityFactory factory
The authority factory for creating aCoordinateReferenceSystemfrom a code, ornullif none.
-
-
Constructor Detail
-
CRSTest
protected CRSTest(CRSAuthorityFactory factory)
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 Detail
-
testCRSAuthorityCreation
public void testCRSAuthorityCreation() throws NoSuchAuthorityCodeException, FactoryExceptionTests 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.
-
-