Package org.iogp.gigs

Class Test3212


@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 description
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 Details

  • Constructor Details

    • Test3212

      public Test3212(Factories factories)
      Creates a new test using the given factories. The factories needed by this class are CoordinateOperationFactory, MathTransformFactory, CRSFactory, CSFactory, DatumFactory and optionally CRSAuthorityFactory with DatumAuthorityFactory. If a requested factory is null, 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

      public ConcatenatedOperation getIdentifiedObject() throws FactoryException
      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 the CoordinateOperationFactory.createConcatenatedOperation(Map, CoordinateOperation...) method with current properties 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 class Series3000<ConcatenatedOperation>
      Returns:
      the concatenated transformation instance to test.
      Throws:
      FactoryException - if an error occurred while creating the concatenated transformation instance.
    • GIGS_68094

      @Test @DisplayName("GIGS_68094") public void GIGS_68094() throws FactoryException
      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

      @Test @DisplayName("GIGS_68178") public void GIGS_68178() throws FactoryException
      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.