Verifies reference coordinate transformations bundled with the geoscience software.
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final CoordinateOperationAuthorityFactory
Factory to use for buildingTransformation
instances, ornull
if none.Name of the expected transformation method.The transformation version. -
Constructor Summary
ConstructorsConstructorDescriptionTest2208
(CoordinateOperationAuthorityFactory copFactory) Creates a new test using the given factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Tests “PSAD56 to WGS 84 (13)” transformation creation from the factory.void
Tests “La Canoa to WGS 84 (13)” transformation creation from the factory.void
Tests “NAD27 to NAD83 (1)” transformation creation from the factory.void
Tests “NAD27 to NAD83 (2)” transformation creation from the factory.void
Tests “ED50 to WGS 84 (18)” transformation creation from the factory.void
Tests “NAD27 to NAD83 (4)” transformation creation from the factory.void
Tests “Camacupa 1948 to WGS 84 (10)” transformation creation from the factory.void
Tests “Bogota 1975 to WGS 84 (3)” transformation creation from the factory.void
Tests “Bogota 1975 to MAGNA-SIRGAS (9)” transformation creation from the factory.void
Tests “AGD84 to WGS 84 (9)” transformation creation from the factory.void
Tests “AGD66 to WGS 84 (17)” transformation creation from the factory.void
Tests “NAD27 to WGS 84 (79)” transformation creation from the factory.void
Tests “NAD27 to WGS 84 (85)” transformation creation from the factory.void
Tests “Amersfoort to WGS 84 (3)” transformation creation from the factory.void
Tests “ED50 to WGS 84 (23)” transformation creation from the factory.void
Tests “ED50 to WGS 84 (24)” transformation creation from the factory.void
Tests “NAD27 to WGS 84 (33)” transformation creation from the factory.void
Tests “CH1903 to WGS 84 (1)” transformation creation from the factory.void
Tests “NTF (Paris) to NTF (1)” transformation creation from the factory.void
Tests “AGD66 to GDA94 (11)” transformation creation from the factory.void
Tests “AGD84 to GDA94 (5)” transformation creation from the factory.void
Tests “ED50 to WGS 84 (36)” transformation creation from the factory.void
Tests “ED50 to WGS 84 (32)” transformation creation from the factory.Returns the transformation instance to be tested.Methods inherited from class Series2000
getVerifiableName
-
Field Details
-
methodName
Name of the expected transformation method. This field is set by all test methods before to create and verify theTransformation
instance. -
version
The transformation version. This field is set by all test methods before to create and verify theTransformation
instance. -
copAuthorityFactory
Factory to use for buildingTransformation
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method.
-
-
Constructor Details
-
Test2208
Creates a new test using the given factory. If a given factory isnull
, then the tests which depend on it will be skipped.- Parameters:
copFactory
- factory for creatingTransformation
instances.
-
-
Method Details
-
getIdentifiedObject
Returns the transformation instance to be tested. When this method is invoked for the first time, it creates the transformation to test by invoking theCoordinateOperationAuthorityFactory.createCoordinateOperation(String)
method with the currentSeries2000.code
value in argument. The created object is then cached and returned in all subsequent invocations of this method.- Specified by:
getIdentifiedObject
in classSeries2000<Transformation>
- Returns:
- the transformation instance to test.
- Throws:
FactoryException
- if an error occurred while creating the transformation instance.
-
EPSG_1803
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
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_1804
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
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_15934
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
- 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 FactoryExceptionTests “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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_15715
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_1327
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
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_1311
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
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
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
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
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
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_1241
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
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
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
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_15851
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_15864
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_1763
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
EPSG_1095
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
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-