@DisplayName("User-defined vertical transformations")
public class Test3211
extends Series3000<Transformation>
Verifies that the software allows correct definition of a user-defined vertical transformations.
Test method: | Create user-defined vertical transformation. |
---|---|
Test data: | GIGS_user_3211_VertTfm.txt
|
Tested API: | MathTransformFactory.getDefaultParameters(String) andCoordinateOperationFactory.createTransformation(Map, CoordinateReferenceSystem, CoordinateReferenceSystem, OperationMethod, MathTransform) . |
Expected result: | The geoscience software should accept the test data. The order in which the transformation parameters are entered is not critical, although that given in the test dataset is recommended. |
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 Test3211 {
public MyTest() {
super(new MyFactories());
}
}
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CoordinateOperationFactory
The factory used to create DefaultTransformation, 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 DatumFactory
Factory to use for buildingGeodeticDatum
instances, ornull
if none.Name of the transformation method.protected final MathTransformFactory
The factory to use for fetching operation methods, ornull
if none.The parameters defining the transformation to create.Fields inherited from class Series3000
isFactoryPreservingUserValues, properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the vertical transformation instance to be tested.void
Tests “GIGS vertCRS V1 height to MSL height” transformation from the factory.void
Tests “GIGS vertCRS V1 depth to MSL depth” transformation from the factory.void
Tests “GIGS vertCRS U1 height to GIGS vertCRS V1 height” transformation from the factory.void
Tests “GIGS vertCRS V1 height to GIGS vertCRS W1 depth” transformation from the factory.void
Tests “GIGS vertCRS V1 height to GIGS vertCRS W1 height” transformation from the factory.void
Tests “GIGS vertCRS V1 depth to GIGS vertCRS W1 depth” transformation from the factory.void
Tests “GIGS vertCRS V1 depth to GIGS vertCRS W1 height” transformation from the factory.void
Tests “GIGS vertCRS V1 height to GIGS vertCRS U1 height” transformation from the factory.
-
Field Details
-
methodName
Name of the transformation method. -
parameters
The parameters defining the transformation to create. This field is set by all test methods before to create and verify theTransformation
instance. -
mtFactory
The factory to use for fetching operation methods, ornull
if none. -
copFactory
The factory used to create DefaultTransformation, ornull
if none. This factory only works for Apache SIS -
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. -
crsAuthorityFactory
Factory to use for buildingProjectedCRS
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method.
-
-
Constructor Details
-
Test3211
Creates a new test using the given factories. The factories needed by this class areCoordinateOperationFactory
,MathTransformFactory
,CRSFactory
,CSFactory
,DatumFactory
and optionallyCRSAuthorityFactory
. 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 vertical transformation instance to be tested. When this method is invoked for the first time, it creates the transformation to test by invoking theMathTransformFactory.getDefaultParameters(String)
method with the currentmethodName
value in argument and then specifying the parameters by invokingMathTransformFactory.createParameterizedTransform(ParameterValueGroup)
. In order to create a transformation that is created from CRS and parameters, an implementation-specific API needs to be called. Details of the implementation-specific part are internal to GIGS test suite and will tentatively be removed with GeoAPI 3.1. The created object is then cached and returned in all subsequent invocations of this method.- Specified by:
getIdentifiedObject
in classSeries3000<Transformation>
- Returns:
- the transformation instance to test.
- Throws:
FactoryException
- if an error occurred while creating the transformation instance.
-
GIGS_61503
@Test @DisplayName("GIGS vertCRS U1 height to GIGS vertCRS V1 height") public void GIGS_61503() throws FactoryExceptionTests “GIGS vertCRS U1 height to GIGS vertCRS V1 height” transformation from the factory.- GIGS transformation code: 61503
- EPSG Transformation Method: Vertical Offset and Slope
Transformation parameters Parameter name Value Ordinate 1 of evaluation point 52° Ordinate 2 of evaluation point 3° Vertical offset -0.486 metre Inclination in latitude -0.003 arc-second Inclination in longitude 0.006 arc-second - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_65440
@Test @DisplayName("GIGS vertCRS V1 depth to GIGS vertCRS W1 depth") public void GIGS_65440() throws FactoryExceptionTests “GIGS vertCRS V1 depth to GIGS vertCRS W1 depth” transformation from the factory.- GIGS transformation code: 65440
- EPSG Transformation Method: Vertical offset
- EPSG equivalence: 5440 – Baltic 1977 depth to Caspian depth (1)
Transformation parameters Parameter name Value Vertical offset -28 metres - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_65441
@Test @DisplayName("GIGS vertCRS V1 depth to GIGS vertCRS W1 height") public void GIGS_65441() throws FactoryExceptionTests “GIGS vertCRS V1 depth to GIGS vertCRS W1 height” transformation from the factory.- GIGS transformation code: 65441
- EPSG Transformation Method: Vertical offset
Transformation parameters Parameter name Value Vertical offset 28 metres - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_61502
@Test @DisplayName("GIGS vertCRS V1 depth to MSL depth") public void GIGS_61502() throws FactoryExceptionTests “GIGS vertCRS V1 depth to MSL depth” transformation from the factory.- GIGS transformation code: 61502
- EPSG Transformation Method: Vertical offset
Transformation parameters Parameter name Value Vertical offset 0 metre - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_65447
@Test @DisplayName("GIGS vertCRS V1 height to GIGS vertCRS U1 height") public void GIGS_65447() throws FactoryExceptionTests “GIGS vertCRS V1 height to GIGS vertCRS U1 height” transformation from the factory.- GIGS transformation code: 65447
- EPSG Transformation Method: Vertical offset
- EPSG equivalence: 5447 – Baltic 1977 height to Black Sea height (1)
Transformation parameters Parameter name Value Vertical offset 0.4 metre - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_65400
@Test @DisplayName("GIGS vertCRS V1 height to GIGS vertCRS W1 depth") public void GIGS_65400() throws FactoryExceptionTests “GIGS vertCRS V1 height to GIGS vertCRS W1 depth” transformation from the factory.- GIGS transformation code: 65400
- EPSG Transformation Method: Vertical offset
Transformation parameters Parameter name Value Vertical offset -28 metres - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_65438
@Test @DisplayName("GIGS vertCRS V1 height to GIGS vertCRS W1 height") public void GIGS_65438() throws FactoryExceptionTests “GIGS vertCRS V1 height to GIGS vertCRS W1 height” transformation from the factory.- GIGS transformation code: 65438
- EPSG Transformation Method: Vertical offset
- EPSG equivalence: 5438 – Baltic 1977 height to Caspian height (1)
Transformation parameters Parameter name Value Vertical offset 28 metres - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-
GIGS_61501
@Test @DisplayName("GIGS vertCRS V1 height to MSL height") public void GIGS_61501() throws FactoryExceptionTests “GIGS vertCRS V1 height to MSL height” transformation from the factory.- GIGS transformation code: 61501
- EPSG Transformation Method: Vertical offset
Transformation parameters Parameter name Value Vertical offset 0 metre - Throws:
FactoryException
- if an error occurred while creating the transformation from the properties.
-