Package org.iogp.gigs

Class Test2211


@DisplayName("Vertical transformation") public class Test2211 extends Series2000<Transformation>
Verifies reference vertical transformations bundled with the geoscience software.
Test description
Test method: Compare transformation definitions included in the software against the EPSG Dataset.
Test data: GIGS_lib_2211_VertTfm.txt and EPSG Dataset.
Tested API: CoordinateOperationAuthorityFactory.createCoordinateOperation(String).
Expected result: Transformation definitions bundled with the software should have same name, method name, defining parameters and parameter values as in EPSG Dataset. See current version of the EPSG Dataset. The values of the parameters should be correct to at least 10 significant figures. Transformations missing from the software or at variance with those in the EPSG Dataset should be reported.

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 Test2211 {
    public MyTest() {
        super(new MyCoordinateOperationAuthorityFactory());
    }
}
Since:
1.0
  • Field Details

    • methodName

      public String methodName
      Name of the expected transformation method. This field is set by all test methods before to create and verify the Transformation instance.
    • version

      public String version
      The transformation version. This field is set by all test methods before to create and verify the Transformation instance.
    • copAuthorityFactory

      protected final CoordinateOperationAuthorityFactory copAuthorityFactory
      Factory to use for building Transformation instances, or null if none. This is the factory used by the getIdentifiedObject() method.
  • Constructor Details

    • Test2211

      public Test2211(CoordinateOperationAuthorityFactory copFactory)
      Creates a new test using the given factory. If a given factory is null, then the tests which depend on it will be skipped.
      Parameters:
      copFactory - factory for creating Transformation instances.
  • Method Details

    • getIdentifiedObject

      public Transformation getIdentifiedObject() throws FactoryException
      Returns the transformation instance to be tested. When this method is invoked for the first time, it creates the transformation to test by invoking the CoordinateOperationAuthorityFactory.createCoordinateOperation(String) method with the current Series2000.code value in argument. The created object is then cached and returned in all subsequent invocations of this method.
      Specified by:
      getIdentifiedObject in class Series2000<Transformation>
      Returns:
      the transformation instance to test.
      Throws:
      FactoryException - if an error occurred while creating the transformation instance.
    • EPSG_5445

      @Test @DisplayName("Baltic 1977 to AIOC95 depth (1)") public void EPSG_5445() throws FactoryException
      Tests “Baltic 1977 to AIOC95 depth (1)” transformation creation from the factory.
      • EPSG transformation code: 5445
      • EPSG transformation name: Baltic 1977 to AIOC95 depth (1)
      • Transformation version: AIOC95-Aze
      • Operation method name: Vertical Offset
      • EPSG Usage Extent: Azerbaijan - offshore and Sangachal¬†Open
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_5443

      @Test @DisplayName("Baltic 1977 to AIOC95 height (1)") public void EPSG_5443() throws FactoryException
      Tests “Baltic 1977 to AIOC95 height (1)” transformation creation from the factory.
      • EPSG transformation code: 5443
      • EPSG transformation name: Baltic 1977 to AIOC95 height (1)
      • Transformation version: AIOC95-Aze
      • Operation method name: Vertical Offset
      • EPSG Usage Extent: Azerbaijan - offshore and Sangachal¬†Open
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_10084

      @Test @DisplayName("WGS 84 to EGM96 height (1)") public void EPSG_10084() throws FactoryException
      Tests “WGS 84 to EGM96 height (1)” transformation creation from the factory.
      • EPSG transformation code: 10084
      • EPSG transformation name: WGS 84 to EGM96 height (1)
      • Alias(es) given by EPSG: WGS 84 (G1150) to WGS 84, WGS 84 (G1674) to WGS 84, EGM96 - OHt [1]
      • Transformation version: NGA-World
      • Operation method name: Geographic3D to GravityRelatedHeight (EGM)
      • EPSG Usage Extent: World
      Remarks: Geoid model.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.