Class GIGS2007
-
public class GIGS2007 extends AuthorityFactoryTestCase<Transformation>
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_2007_libGeodTfm.csv
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, implementors can define a subclass in their own test suite as in the example below:import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.opengis.test.referencing.gigs.GIGS2007; @RunWith(JUnit4.class) public class MyTest extends GIGS2007 { public MyTest() { super(new MyCoordinateOperationAuthorityFactory()); } }
- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description protected CoordinateOperationAuthorityFactory
copAuthorityFactory
Factory to use for buildingTransformation
instances, ornull
if none.String
methodName
Name of the expected transformation method.-
Fields inherited from class AuthorityFactoryTestCase
aliases, code, isDependencyIdentificationSupported, isDeprecatedObjectCreationSupported, isStandardAliasSupported, isStandardNameSupported, name
-
Fields inherited from class TestCase
configurationTip, listener, units, validators
-
-
Constructor Summary
Constructors Constructor Description GIGS2007(CoordinateOperationAuthorityFactory copFactory)
Creates a new test using the given factory.
-
Method Summary
Modifier and Type Method Description Configuration
configuration()
Returns information about the configuration of the test which has been run.static List<Factory[]>
factories()
Returns a default set of factories to use for running the tests.Transformation
getIdentifiedObject()
Returns the transformation instance to be tested.void
testAGD66_to_GDA94()
Tests “AGD66 to GDA94 (11)” transformation creation from the factory.void
testAGD66_to_WGS84()
Tests “AGD66 to WGS 84 (17)” transformation creation from the factory.void
testAGD84_to_GDA94()
Tests “AGD84 to GDA94 (5)” transformation creation from the factory.void
testAGD84_to_WGS84()
Tests “AGD84 to WGS 84 (9)” transformation creation from the factory.void
testAmersfoort_to_WGS84()
Tests “Amersfoort to WGS 84 (3)” transformation creation from the factory.void
testBogota1975_to_MAGNASIRGAS()
Tests “Bogota 1975 to MAGNA-SIRGAS (9)” transformation creation from the factory.void
testBogota1975_to_WGS84()
Tests “Bogota 1975 to WGS 84 (3)” transformation creation from the factory.void
testCamacupa_to_WGS84()
Tests “Camacupa to WGS 84 (10)” transformation creation from the factory.void
testCH1903_to_WGS84()
Tests “CH1903 to WGS 84 (1)” transformation creation from the factory.void
testED50_to_WGS84_18()
Tests “ED50 to WGS 84 (18)” transformation creation from the factory.void
testED50_to_WGS84_23()
Tests “ED50 to WGS 84 (23)” transformation creation from the factory.void
testED50_to_WGS84_24()
Tests “ED50 to WGS 84 (24)” transformation creation from the factory.void
testED50_to_WGS84_32()
Tests “ED50 to WGS 84 (32)” transformation creation from the factory.void
testED50_to_WGS84_36()
Tests “ED50 to WGS 84 (36)” transformation creation from the factory.void
testLaCanoa_to_WGS84()
Tests “La Canoa to WGS 84 (2)” transformation creation from the factory.void
testNAD27_to_NAD83_1()
Tests “NAD27 to NAD83 (1)” transformation creation from the factory.void
testNAD27_to_NAD83_2()
Tests “NAD27 to NAD83 (2)” transformation creation from the factory.void
testNAD27_to_NAD83_4()
Tests “NAD27 to NAD83 (4)” transformation creation from the factory.void
testNAD27_to_WGS84()
Tests “NAD27 to WGS 84 (33)” transformation creation from the factory.void
testNAD27_to_WGS84_79()
Tests “NAD27 to WGS 84 (79)” transformation creation from the factory.void
testNAD27_to_WGS84_85()
Tests “NAD27 to WGS 84 (85)” transformation creation from the factory.void
testNTF_Paris__to_NTF()
Tests “NTF (Paris) to NTF (1)” transformation creation from the factory.void
testPSAD56_to_WGS84()
Tests “PSAD56 to WGS 84 (13)” transformation creation from the factory.-
Methods inherited from class AuthorityFactoryTestCase
getVerifiableName
-
Methods inherited from class ReferencingTestCase
verifyCoordinateSystem, verifyFlattenedSphere, verifyGeographicExtent, verifyIdentification, verifyParameter, verifyPrimeMeridian, verifyTimeExtent, verifyVerticalExtent
-
Methods inherited from class TestCase
factories, factories, getEnabledFlags
-
-
-
-
Field Detail
-
methodName
public String methodName
Name of the expected transformation method.
-
copAuthorityFactory
protected final CoordinateOperationAuthorityFactory copAuthorityFactory
Factory to use for buildingTransformation
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method.
-
-
Constructor Detail
-
GIGS2007
public GIGS2007(CoordinateOperationAuthorityFactory copFactory)
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 Detail
-
factories
public static List<Factory[]> factories()
Returns a default set of factories to use for running the tests. Those factories are given in arguments to the constructor when this test class is instantiated directly by JUnit (for example as a suite element), instead than subclassed by the implementor. The factories are fetched as documented in theTestCase.factories(Class[])
javadoc.- Returns:
- the default set of arguments to be given to the
GIGS2007
constructor.
-
configuration
public Configuration configuration()
Returns information about the configuration of the test which has been run. This method returns a map containing:- All the following values associated to the
Configuration.Key
of the same name:
- Overrides:
configuration
in classAuthorityFactoryTestCase<Transformation>
- Returns:
- the configuration of the test being run.
- See Also:
ImplementationDetails.configuration(Factory[])
- All the following values associated to the
-
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 theCoordinateOperationAuthorityFactory.createCoordinateOperation(String)
method with the currentAuthorityFactoryTestCase.code
value in argument. The created object is then cached and returned in all subsequent invocations of this method.- Specified by:
getIdentifiedObject
in classAuthorityFactoryTestCase<Transformation>
- Returns:
- the transformation instance to test.
- Throws:
FactoryException
- if an error occurred while creating the transformation instance.
-
testAGD66_to_GDA94
public void testAGD66_to_GDA94() throws FactoryException
Tests “AGD66 to GDA94 (11)” transformation creation from the factory.- EPSG transformation code: 1803
- EPSG transformation name: AGD66 to GDA94 (11)
- Transformation method: NTv2
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testAGD66_to_WGS84
public void testAGD66_to_WGS84() 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 method: NTv2
- Specific usage / Remarks: EPSG copy of 1803.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testAGD84_to_GDA94
public void testAGD84_to_GDA94() throws FactoryException
Tests “AGD84 to GDA94 (5)” transformation creation from the factory.- EPSG transformation code: 1804
- EPSG transformation name: AGD84 to GDA94 (5)
- Transformation method: NTv2
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testAGD84_to_WGS84
public void testAGD84_to_WGS84() 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 method: NTv2
- Specific usage / Remarks: EPSG copy of 1804.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testAmersfoort_to_WGS84
public void testAmersfoort_to_WGS84() 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 method: Coordinate Frame rotation
- Specific usage / Remarks: Uses unusual unit (microradian) as rotation unit.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testBogota1975_to_MAGNASIRGAS
public void testBogota1975_to_MAGNASIRGAS() 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 method: Molodensky-Badekas 10-parameter transformation
- Specific usage / Remarks: Uses unusual unit (radian) as rotation unit.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testBogota1975_to_WGS84
public void testBogota1975_to_WGS84() 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 method: Coordinate Frame rotation
- Specific usage / Remarks: Uses unusual unit (radian) as rotation unit.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testCamacupa_to_WGS84
public void testCamacupa_to_WGS84() throws FactoryException
Tests “Camacupa to WGS 84 (10)” transformation creation from the factory.- EPSG transformation code: 1327
- EPSG transformation name: Camacupa to WGS 84 (10)
- Transformation method: Geocentric translations
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testCH1903_to_WGS84
public void testCH1903_to_WGS84() 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)
- Transformation method: Coordinate Frame rotation
- Specific usage / Remarks: Uses unusual unit (centesimal second) as rotation unit.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testED50_to_WGS84_18
public void testED50_to_WGS84_18() 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)
- Transformation method: Position Vector 7-param. transformation
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testED50_to_WGS84_23
public void testED50_to_WGS84_23() 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 method: Position Vector 7-param. transformation
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testED50_to_WGS84_24
public void testED50_to_WGS84_24() 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 method: Position Vector 7-param. transformation
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testED50_to_WGS84_32
public void testED50_to_WGS84_32() 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 method: Position Vector 7-param. transformation
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testED50_to_WGS84_36
public void testED50_to_WGS84_36() 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 method: Position Vector 7-param. transformation
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testLaCanoa_to_WGS84
public void testLaCanoa_to_WGS84() throws FactoryException
Tests “La Canoa to WGS 84 (2)” transformation creation from the factory.- EPSG transformation code: 1096
- EPSG transformation name: La Canoa to WGS 84 (2)
- Transformation method: Molodensky-Badekas 10-parameter transformation
- Specific usage / Remarks: Identify whether 1095 or 1096 or both are given.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testNAD27_to_NAD83_1
public void testNAD27_to_NAD83_1() throws FactoryException
Tests “NAD27 to NAD83 (1)” transformation creation from the factory.- EPSG transformation code: 1241
- EPSG transformation name: NAD27 to NAD83 (1)
- Transformation method: NADCON
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testNAD27_to_NAD83_2
public void testNAD27_to_NAD83_2() throws FactoryException
Tests “NAD27 to NAD83 (2)” transformation creation from the factory.- EPSG transformation code: 1243
- EPSG transformation name: NAD27 to NAD83 (2)
- Transformation method: NADCON
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testNAD27_to_NAD83_4
public void testNAD27_to_NAD83_4() throws FactoryException
Tests “NAD27 to NAD83 (4)” transformation creation from the factory.- EPSG transformation code: 1313
- EPSG transformation name: NAD27 to NAD83 (4)
- Transformation method: NTv2
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testNAD27_to_WGS84
public void testNAD27_to_WGS84() 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 method: NTv2
- Specific usage / Remarks: EPSG copy of 1313.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testNAD27_to_WGS84_79
public void testNAD27_to_WGS84_79() 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 method: NADCON
- Specific usage / Remarks: EPSG copy of 1241.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testNAD27_to_WGS84_85
public void testNAD27_to_WGS84_85() 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 method: NADCON
- Specific usage / Remarks: EPSG copy of 1243.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testNTF_Paris__to_NTF
public void testNTF_Paris__to_NTF() 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 method: Longitude rotation
- Specific usage / Remarks: Uses unusual unit (grad) as rotation unit.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
testPSAD56_to_WGS84
public void testPSAD56_to_WGS84() 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 method: Molodensky-Badekas 10-parameter transformation
- Specific usage / Remarks: Identify whether 1095 or 1096 or both are given.
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the transformation from the EPSG code.
-
-