@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 CoordinateOperationFactoryFactory to use for buildingTransformationinstances, ornullif none.protected final CRSAuthorityFactoryFactory to use for buildingProjectedCRSinstances, ornullif none.protected final CRSFactoryFactory to use for buildingGeodeticCRSinstances, ornullif none.protected final DatumAuthorityFactoryprotected final DatumFactoryFactory to use for buildingGeodeticDatuminstances, ornullif none.protected final MathTransformFactoryThe factory to use for fetching operation methods, ornullif none.Fields inherited from class Series3000
isFactoryPreservingUserValues, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the concatenated transformation instance to be tested.voidTests “GIGS_68094” transformation from the factory.voidTests “GIGS_68178” transformation from the factory.
-
Field Details
-
copFactory
Factory to use for buildingTransformationinstances, ornullif none. This is the factory used by thegetIdentifiedObject()method. -
mtFactory
The factory to use for fetching operation methods, ornullif none. -
crsFactory
Factory to use for buildingGeodeticCRSinstances, ornullif none. -
datumFactory
Factory to use for buildingGeodeticDatuminstances, ornullif none. May also be used for buildingEllipsoidandPrimeMeridiancomponents. -
datumAuthorityFactory
Factory to use for buildingGeodeticDatumandPrimeMeridiancomponents, ornullif none. This is used only for tests with EPSG codes for datum components. -
crsAuthorityFactory
Factory to use for buildingProjectedCRSinstances, ornullif 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,DatumFactoryand optionallyCRSAuthorityFactorywithDatumAuthorityFactory. 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 currentpropertiesmap, first transformation, and second transformation. The created object is then cached and returned in all subsequent invocations of this method.- Specified by:
getIdentifiedObjectin 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.
-