Package org.iogp.gigs

Class Test2208


@DisplayName("Coordinate transformation") public class Test2208 extends Series2000<Transformation>
Verifies reference coordinate 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_2208_CoordTfm.txt and EPSG Dataset.
Tested API: CoordinateOperationAuthorityFactory.createCoordinateOperation(String).
Expected result: Transformation definitions bundled with the software should have the same name, method name, defining parameters and parameter values as in 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 Test2208 {
    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

    • Test2208

      public Test2208(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_1803

      @Test @DisplayName("AGD66 to GDA94 (11)") public void EPSG_1803() throws FactoryException
      Tests “AGD66 to GDA94 (11)” transformation creation from the factory.
      • EPSG transformation code: 1803
      • EPSG transformation name: AGD66 to GDA94 (11)
      • Alias(es) given by EPSG: AGD66 to GDA94 [GA v2]
      • Transformation version: ICSM-Aus 0.1m
      • Operation method name: NTv2
      • EPSG Usage Extent: Australia - onshore
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_15786

      @Test @DisplayName("AGD66 to WGS 84 (17)") public void EPSG_15786() throws FactoryException
      Tests “AGD66 to WGS 84 (17)” transformation creation from the factory.
      • EPSG transformation code: 15786
      • EPSG transformation name: AGD66 to WGS 84 (17)
      • Transformation version: OGP-Aus 0.1m
      • Operation method name: NTv2
      • EPSG Usage Extent: Australia - onshore
      Remarks: EPSG copy of 1803.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1804

      @Test @DisplayName("AGD84 to GDA94 (5)") public void EPSG_1804() throws FactoryException
      Tests “AGD84 to GDA94 (5)” transformation creation from the factory.
      • EPSG transformation code: 1804
      • EPSG transformation name: AGD84 to GDA94 (5)
      • Alias(es) given by EPSG: AGD84 to GDA94 [GA v2]
      • Transformation version: Auslig-Aus 0.1m
      • Operation method name: NTv2
      • EPSG Usage Extent: Australia
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_15785

      @Test @DisplayName("AGD84 to WGS 84 (9)") public void EPSG_15785() throws FactoryException
      Tests “AGD84 to WGS 84 (9)” transformation creation from the factory.
      • EPSG transformation code: 15785
      • EPSG transformation name: AGD84 to WGS 84 (9)
      • Transformation version: OGP-Aus 1m
      • Operation method name: NTv2
      • EPSG Usage Extent: Australia
      Remarks: EPSG copy of 1804.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_15934

      @Test @DisplayName("Amersfoort to WGS 84 (3)") public void EPSG_15934() throws FactoryException
      Tests “Amersfoort to WGS 84 (3)” transformation creation from the factory.
      • EPSG transformation code: 15934
      • EPSG transformation name: Amersfoort to WGS 84 (3)
      • Transformation version: OGP-Nld
      • Operation method name: Coordinate Frame rotation
      • EPSG Usage Extent: Netherlands - onshore
      Remarks: Uses unusual unit (microradian) as rotation unit.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_15730

      @Test @DisplayName("Bogota 1975 to MAGNA-SIRGAS (9)") public void EPSG_15730() throws FactoryException
      Tests “Bogota 1975 to MAGNA-SIRGAS (9)” transformation creation from the factory.
      • EPSG transformation code: 15730
      • EPSG transformation name: Bogota 1975 to MAGNA-SIRGAS (9)
      • Transformation version: IGAC-Col MB reg 1
      • Operation method name: Molodensky-Badekas 10-parameter transformation
      • EPSG Usage Extent: Colombia region 1
      Remarks: Uses unusual unit (radian) as rotation unit.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_15715

      @Test @DisplayName("Bogota 1975 to WGS 84 (3)") public void EPSG_15715() throws FactoryException
      Tests “Bogota 1975 to WGS 84 (3)” transformation creation from the factory.
      • EPSG transformation code: 15715
      • EPSG transformation name: Bogota 1975 to WGS 84 (3)
      • Transformation version: EPSG-Col reg 1
      • Operation method name: Coordinate Frame rotation
      • EPSG Usage Extent: Colombia region 1
      Remarks: Uses unusual unit (radian) as rotation unit.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1327

      @Test @DisplayName("Camacupa 1948 to WGS 84 (10)") public void EPSG_1327() throws FactoryException
      Tests “Camacupa 1948 to WGS 84 (10)” transformation creation from the factory.
      • EPSG transformation code: 1327
      • EPSG transformation name: Camacupa 1948 to WGS 84 (10)
      • Alias(es) given by EPSG: Camacupa to WGS 84 (10)
      • Transformation version: ELF-Ago N
      • Operation method name: Geocentric translations
      • EPSG Usage Extent: Angola - offshore blocks 2 3 17-18 and 31-33
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1753

      @Test @DisplayName("CH1903 to WGS 84 (1)") public void EPSG_1753() throws FactoryException
      Tests “CH1903 to WGS 84 (1)” transformation creation from the factory.
      • EPSG transformation code: 1753
      • EPSG transformation name: CH1903 to WGS 84 (1)
      • Alias(es) given by EPSG: GRANIT87-Parameters
      • Transformation version: BfL-CH 1
      • Operation method name: Coordinate Frame rotation
      • EPSG Usage Extent: Europe - Liechtenstein and Switzerland
      Remarks: Uses unusual unit (centesimal second) as rotation unit.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1311

      @Test @DisplayName("ED50 to WGS 84 (18)") public void EPSG_1311() throws FactoryException
      Tests “ED50 to WGS 84 (18)” transformation creation from the factory.
      • EPSG transformation code: 1311
      • EPSG transformation name: ED50 to WGS 84 (18)
      • Alias(es) given by EPSG: ED50 to WGS 84 (Common Offshore)
      • Transformation version: UKOOA-CO
      • Operation method name: Position Vector 7-param. transformation
      • EPSG Usage Extent: Europe - common offshore
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1612

      @Test @DisplayName("ED50 to WGS 84 (23)") public void EPSG_1612() throws FactoryException
      Tests “ED50 to WGS 84 (23)” transformation creation from the factory.
      • EPSG transformation code: 1612
      • EPSG transformation name: ED50 to WGS 84 (23)
      • Transformation version: EPSG-Nor N62 2001
      • Operation method name: Position Vector 7-param. transformation
      • EPSG Usage Extent: Norway - offshore north of 62°N; Svalbard
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1613

      @Test @DisplayName("ED50 to WGS 84 (24)") public void EPSG_1613() throws FactoryException
      Tests “ED50 to WGS 84 (24)” transformation creation from the factory.
      • EPSG transformation code: 1613
      • EPSG transformation name: ED50 to WGS 84 (24)
      • Transformation version: EPSG-Nor S62 2001
      • Operation method name: Position Vector 7-param. transformation
      • EPSG Usage Extent: Norway - North Sea - offshore south of 62°N
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1999

      @Test @DisplayName("ED50 to WGS 84 (32)") public void EPSG_1999() throws FactoryException
      Tests “ED50 to WGS 84 (32)” transformation creation from the factory.
      • EPSG transformation code: 1999
      • EPSG transformation name: ED50 to WGS 84 (32)
      • Transformation version: NAM-Nld-Nsea
      • Operation method name: Position Vector 7-param. transformation
      • EPSG Usage Extent: Netherlands - offshore
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1998

      @Test @DisplayName("ED50 to WGS 84 (36)") public void EPSG_1998() throws FactoryException
      Tests “ED50 to WGS 84 (36)” transformation creation from the factory.
      • EPSG transformation code: 1998
      • EPSG transformation name: ED50 to WGS 84 (36)
      • Transformation version: EPSG-Ger Nsea
      • Operation method name: Position Vector 7-param. transformation
      • EPSG Usage Extent: Germany - offshore North Sea
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1096

      @Test @DisplayName("La Canoa to WGS 84 (13)") public void EPSG_1096() throws FactoryException
      Tests “La Canoa to WGS 84 (13)” transformation creation from the factory.
      • EPSG transformation code: 1096
      • EPSG transformation name: La Canoa to WGS 84 (13)
      • Transformation version: EPSG-Ven
      • Operation method name: Molodensky-Badekas 10-parameter transformation
      • EPSG Usage Extent: Venezuela - onshore
      Remarks: Identify whether 1095 or 1096 or both are given.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1241

      @Test @DisplayName("NAD27 to NAD83 (1)") public void EPSG_1241() throws FactoryException
      Tests “NAD27 to NAD83 (1)” transformation creation from the factory.
      • EPSG transformation code: 1241
      • EPSG transformation name: NAD27 to NAD83 (1)
      • Transformation version: NGS-Usa Conus
      • Operation method name: NADCON
      • EPSG Usage Extent: USA - CONUS including EEZ
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1243

      @Test @DisplayName("NAD27 to NAD83 (2)") public void EPSG_1243() throws FactoryException
      Tests “NAD27 to NAD83 (2)” transformation creation from the factory.
      • EPSG transformation code: 1243
      • EPSG transformation name: NAD27 to NAD83 (2)
      • Transformation version: NGS-Usa AK
      • Operation method name: NADCON
      • EPSG Usage Extent: USA - Alaska including EEZ
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1313

      @Test @DisplayName("NAD27 to NAD83 (4)") public void EPSG_1313() throws FactoryException
      Tests “NAD27 to NAD83 (4)” transformation creation from the factory.
      • EPSG transformation code: 1313
      • EPSG transformation name: NAD27 to NAD83 (4)
      • Alias(es) given by EPSG: NAD27 to NAD83(Original) [CAv1]
      • Transformation version: GC-Can NT2
      • Operation method name: NTv2
      • EPSG Usage Extent: Canada
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1693

      @Test @DisplayName("NAD27 to WGS 84 (33)") public void EPSG_1693() throws FactoryException
      Tests “NAD27 to WGS 84 (33)” transformation creation from the factory.
      • EPSG transformation code: 1693
      • EPSG transformation name: NAD27 to WGS 84 (33)
      • Transformation version: EPSG-Can
      • Operation method name: NTv2
      • EPSG Usage Extent: Canada
      Remarks: EPSG copy of 1313.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_15851

      @Test @DisplayName("NAD27 to WGS 84 (79)") public void EPSG_15851() throws FactoryException
      Tests “NAD27 to WGS 84 (79)” transformation creation from the factory.
      • EPSG transformation code: 15851
      • EPSG transformation name: NAD27 to WGS 84 (79)
      • Transformation version: OGP-Usa Conus
      • Operation method name: NADCON
      • EPSG Usage Extent: USA - CONUS including EEZ
      Remarks: EPSG copy of 1241.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_15864

      @Test @DisplayName("NAD27 to WGS 84 (85)") public void EPSG_15864() throws FactoryException
      Tests “NAD27 to WGS 84 (85)” transformation creation from the factory.
      • EPSG transformation code: 15864
      • EPSG transformation name: NAD27 to WGS 84 (85)
      • Transformation version: OGP-Usa AK
      • Operation method name: NADCON
      • EPSG Usage Extent: USA - Alaska including EEZ
      Remarks: EPSG copy of 1243.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1763

      @Test @DisplayName("NTF (Paris) to NTF (1)") public void EPSG_1763() throws FactoryException
      Tests “NTF (Paris) to NTF (1)” transformation creation from the factory.
      • EPSG transformation code: 1763
      • EPSG transformation name: NTF (Paris) to NTF (1)
      • Transformation version: IGN-Fra
      • Operation method name: Longitude rotation
      • EPSG Usage Extent: France - onshore - mainland and Corsica
      Remarks: Uses unusual unit (grad) as rotation unit.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.
    • EPSG_1095

      @Test @DisplayName("PSAD56 to WGS 84 (13)") public void EPSG_1095() throws FactoryException
      Tests “PSAD56 to WGS 84 (13)” transformation creation from the factory.
      • EPSG transformation code: 1095
      • EPSG transformation name: PSAD56 to WGS 84 (13)
      • Transformation version: EPSG-Ven
      • Operation method name: Molodensky-Badekas 10-parameter transformation
      • EPSG Usage Extent: Venezuela - onshore
      Remarks: Identify whether 1095 or 1096 or both are given.
      Throws:
      FactoryException - if an error occurred while creating the transformation from the EPSG code.