@DisplayName("User-defined concatenated transformations")
public class Test3212
extends Series3000<ConcatenatedOperation>
Verifies that the software allows correct definition of a user-defined concatenated transformations.
Test method: | Create user-defined concatenated CRS. |
---|---|
Test data: | GIGS_user_3212_ConcatTfm.txt
|
Tested API: | CoordinateOperationFactory.createConcatenatedOperation(Map, CoordinateOperation...) . |
Expected result: | The geoscience software should accept the test data. The properties of the created objects will be compared with the properties given to the factory method. |
Usage example
in order to specify their factories and run the tests in a JUnit framework, implementers can define a subclass in their own test suite as in the example below:public class MyTest extends Test3212 {
public MyTest() {
super(new MyFactories());
}
}
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CoordinateOperationFactory
Factory to use for buildingTransformation
instances, ornull
if none.protected final CRSAuthorityFactory
Factory to use for buildingProjectedCRS
instances, ornull
if none.protected final CRSFactory
Factory to use for buildingGeodeticCRS
instances, ornull
if none.protected final DatumAuthorityFactory
protected final DatumFactory
Factory to use for buildingGeodeticDatum
instances, ornull
if none.protected final MathTransformFactory
The factory to use for fetching operation methods, ornull
if none.Fields inherited from class Series3000
isFactoryPreservingUserValues, properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the concatenated transformation instance to be tested.void
Tests “GIGS_68094” transformation from the factory.void
Tests “GIGS_68178” transformation from the factory.
-
Field Details
-
copFactory
Factory to use for buildingTransformation
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method. -
mtFactory
The factory to use for fetching operation methods, ornull
if none. -
crsFactory
Factory to use for buildingGeodeticCRS
instances, ornull
if none. -
datumFactory
Factory to use for buildingGeodeticDatum
instances, ornull
if none. May also be used for buildingEllipsoid
andPrimeMeridian
components. -
datumAuthorityFactory
Factory to use for buildingGeodeticDatum
andPrimeMeridian
components, ornull
if none. This is used only for tests with EPSG codes for datum components. -
crsAuthorityFactory
Factory to use for buildingProjectedCRS
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method.
-
-
Constructor Details
-
Test3212
Creates a new test using the given factories. The factories needed by this class areCoordinateOperationFactory
,MathTransformFactory
,CRSFactory
,CSFactory
,DatumFactory
and optionallyCRSAuthorityFactory
withDatumAuthorityFactory
. If a requested factory isnull
, then the tests which depend on it will be skipped.Authority factory usage
The authority factory is used only for some test cases where the components are fetched by EPSG codes instead of being built by user. Those test cases are identified by the "definition source" line in Javadoc.- Parameters:
factories
- factories for creating the instances to test.
-
-
Method Details
-
getIdentifiedObject
Returns the concatenated transformation instance to be tested. When this method is invoked for the first time, it creates the transformation to test by invoking theCoordinateOperationFactory.createConcatenatedOperation(Map, CoordinateOperation...)
method with currentproperties
map, first transformation, and second transformation. The created object is then cached and returned in all subsequent invocations of this method.- Specified by:
getIdentifiedObject
in classSeries3000<ConcatenatedOperation>
- Returns:
- the concatenated transformation instance to test.
- Throws:
FactoryException
- if an error occurred while creating the concatenated transformation instance.
-
GIGS_68094
Tests “GIGS_68094” transformation from the factory.- GIGS transformation code: 68094
- Step 1 GIGS Transform Code: 61763
- Step 1 GIGS Transform Name: GIGS H to T (1)
- Step 2 GIGS Transform Code: 61193
- Step 2 GIGS Transform Name: GIGS T to A (1)
- Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_68178
Tests “GIGS_68178” transformation from the factory.- GIGS transformation code: 68178
- Step 1 GIGS Transform Code: 61759
- Step 1 GIGS Transform Name: GIGS D to L (1)
- Step 2 GIGS Transform Code: 61123
- Step 2 GIGS Transform Name: GIGS L to A (1)
- Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-