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.crs
packages. 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 CRSAuthorityFactory
factory
The authority factory for creating aCoordinateReferenceSystem
from a code, ornull
if none.private Units
units
The units of measurement to be used for the tests.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CRSTest(CRSAuthorityFactory factory)
Creates a new test using the given factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testCRSAuthorityCreation()
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 aCoordinateReferenceSystem
from a code, ornull
if 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, FactoryException
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.
-
-