Class GIGS3004


  • public class GIGS3004
    extends UserObjectFactoryTestCase<GeodeticDatum>
    Verifies that the software allows correct definition of a user-defined geodetic datum and geodetic CRS. Each test method in this class instantiate exactly one GeodeticDatum, but may instantiate an arbitrary amount of GeodeticCRS using that datum.
    Test method: Create user-defined geodetic datum for each of several different datums. Create user-defined geodetic CRS for each of several different CRSs.
    Test data: GIGS_3004_userGeodeticDatumCRS.csv.
    Tested API: CRSFactory.createGeocentricCRS(Map, GeodeticDatum, CartesianCS) and
    CRSFactory.createGeographicCRS(Map, GeodeticDatum, EllipsoidalCS).
    Expected result: The 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, 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.GIGS3004;
    
    @RunWith(JUnit4.class)
    public class MyTest extends GIGS3004 {
        public MyTest() {
            super(new MyDatumFactory(), new MyCSFactory(), new MyCRSFactory());
        }
    }
    Since:
    3.1
    • Constructor Detail

    • 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 the TestCase.factories(Class[]) javadoc.
        Returns:
        the default set of arguments to be given to the GIGS3004 constructor.
      • testWGS84

        public void testWGS84()
                       throws FactoryException
        Tests “GIGS geodetic datum A” geodetic datum creation from the factory.
        • GIGS datum code: 66001
        • GIGS datum name: GIGS geodetic datum A
        • Ellipsoid name: GIGS ellipsoid A
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64001 – GIGS geocenCRS A
        • EPSG equivalence: 4978 – WGS 84
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testWGS84()
      • testOSGB1936

        public void testOSGB1936()
                          throws FactoryException
        Tests “GIGS geodetic datum B” geodetic datum creation from the factory.
        • GIGS datum code: 66002
        • GIGS datum name: GIGS geodetic datum B
        • Ellipsoid name: GIGS ellipsoid B
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64019 – GIGS geog3DCRS B
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testOSGB1936()
      • testAmersfoort

        public void testAmersfoort()
                            throws FactoryException
        Tests “GIGS geodetic datum C” geodetic datum creation from the factory.
        • GIGS datum code: 66003
        • GIGS datum name: GIGS geodetic datum C
        • Ellipsoid name: GIGS ellipsoid C
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64021 – GIGS geog3DCRS C
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testAmersfoort()
      • testBatavia_Jakarta

        public void testBatavia_Jakarta()
                                 throws FactoryException
        Tests “GIGS geodetic datum D” geodetic datum creation from the factory.
        • GIGS datum code: 66004
        • GIGS datum name: GIGS geodetic datum D
        • Ellipsoid name: GIGS ellipsoid C
        • Prime meridian name: GIGS PM D
        • GIGS coordinate reference system using the datum: 64007 – GIGS geogCRS D
        • EPSG equivalence: 4813 – Batavia (Jakarta)
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testBatavia_Jakarta()
      • testBelge1972

        public void testBelge1972()
                           throws FactoryException
        Tests “GIGS geodetic datum E” geodetic datum creation from the factory.
        • GIGS datum code: 66005
        • GIGS datum name: GIGS geodetic datum E
        • Ellipsoid name: GIGS ellipsoid E
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64022 – GIGS geog3DCRS E
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testBelge1972()
      • testGDA94

        public void testGDA94()
                       throws FactoryException
        Tests “GIGS geodetic datum F” geodetic datum creation from the factory.
        • GIGS datum code: 66006
        • GIGS datum name: GIGS geodetic datum F
        • GIGS datum anchor point: Origin F
        • Ellipsoid name: GIGS ellipsoid F
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64009 – GIGS geogCRS F
        • EPSG equivalence: 4283 – GDA94
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testGDA94()
      • testETRS89

        public void testETRS89()
                        throws FactoryException
        Tests “GIGS geodetic datum G” geodetic datum creation from the factory.
        • GIGS datum code: 66007
        • GIGS datum name: GIGS geodetic datum G
        • GIGS datum anchor point: Origin G
        • Ellipsoid name: GIGS ellipsoid F
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64010 – GIGS geogCRS G
        • EPSG equivalence: 4258 – ETRS89, 4742 – GDM2000, 4152 – NAD83(HARN), 4190 – POSGAR98, 4674 – SIRGAS 2000
        • Specific usage / Remarks: This GIGS CRS is functionally equivalent to any ITRS realisation using the GRS 1980 ellipsoid.
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testETRS89()
      • testNTF_Paris

        public void testNTF_Paris()
                           throws FactoryException
        Tests “GIGS geodetic datum H” geodetic datum creation from the factory.
        • GIGS datum code: 66008
        • GIGS datum name: GIGS geodetic datum H
        • Ellipsoid name: GIGS ellipsoid H
        • Prime meridian name: GIGS PM H
        • GIGS coordinate reference system using the datum: 64011 – GIGS geogCRS H
        • EPSG equivalence: 4807 – NTF (Paris)
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testNTF_Paris()
      • testNAD27

        public void testNAD27()
                       throws FactoryException
        Tests “GIGS geodetic datum J” geodetic datum creation from the factory.
        • GIGS datum code: 66009
        • GIGS datum name: GIGS geodetic datum J
        • Ellipsoid name: GIGS ellipsoid J
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64012 – GIGS geogCRS J
        • EPSG equivalence: 4267 – NAD27
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testNAD27()
      • testHD72

        public void testHD72()
                      throws FactoryException
        Tests “GIGS geodetic datum K” geodetic datum creation from the factory.
        • GIGS datum code: 66012
        • GIGS datum name: GIGS geodetic datum K
        • Ellipsoid name: GIGS ellipsoid K
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64015 – GIGS geogCRS K
        • EPSG equivalence: 4237 – HD72
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testHD72()
      • testBatavia

        public void testBatavia()
                         throws FactoryException
        Tests “GIGS geodetic datum L” geodetic datum creation from the factory.
        • GIGS datum code: 66011
        • GIGS datum name: GIGS geodetic datum L
        • GIGS datum anchor point: Origin L
        • Ellipsoid name: GIGS ellipsoid C
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64014 – GIGS geogCRS L
        • EPSG equivalence: 4211 – Batavia
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testBatavia()
      • testED50

        public void testED50()
                      throws FactoryException
        Tests “GIGS geodetic datum M” geodetic datum creation from the factory.
        • GIGS datum code: 66016
        • GIGS datum name: GIGS geodetic datum M
        • Ellipsoid name: GIGS ellipsoid E
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64020 – GIGS geogCRS M
        • EPSG equivalence: 4230 – ED50
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testED50()
      • testNTF

        public void testNTF()
                     throws FactoryException
        Tests “GIGS geodetic datum T” geodetic datum creation from the factory.
        • GIGS datum code: 66010
        • GIGS datum name: GIGS geodetic datum T
        • Ellipsoid name: GIGS ellipsoid H
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64013 – GIGS geogCRS T
        • EPSG equivalence: 4275 – NTF
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testNTF()
      • testAGD66

        public void testAGD66()
                       throws FactoryException
        Tests “GIGS geodetic datum X” geodetic datum creation from the factory.
        • GIGS datum code: 66013
        • GIGS datum name: GIGS geodetic datum X
        • Ellipsoid name: GIGS ellipsoid X
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64016 – GIGS geogCRS X
        • EPSG equivalence: 4202 – AGD66
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testAGD66()
      • testPulkovo1942

        public void testPulkovo1942()
                             throws FactoryException
        Tests “GIGS geodetic datum Y” geodetic datum creation from the factory.
        • GIGS datum code: 66014
        • GIGS datum name: GIGS geodetic datum Y
        • Ellipsoid name: GIGS ellipsoid Y
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64017 – GIGS geogCRS Y
        • EPSG equivalence: 4284 – Pulkovo 1942
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testPulkovo1942()
      • testNAD83

        public void testNAD83()
                       throws FactoryException
        Tests “GIGS geodetic datum Z” geodetic datum creation from the factory.
        • GIGS datum code: 66015
        • GIGS datum name: GIGS geodetic datum Z
        • GIGS datum anchor point: Origin Z
        • Ellipsoid name: GIGS ellipsoid F
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64018 – GIGS geogCRS Z
        • EPSG equivalence: 4269 – NAD83
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        GIGS2004.testNAD83()
      • testWGS84_bis

        public void testWGS84_bis()
                           throws FactoryException
        Tests “GIGS geodetic datum AA” geodetic datum creation from the factory.
        • GIGS datum code: 66326
        • GIGS datum name: GIGS geodetic datum AA
        • Ellipsoid name: WGS 84
        • Prime meridian name: Greenwich
        • GIGS coordinate reference system using the datum: 64326 – GIGS geogCRS AA
        • EPSG equivalence: 4326 – WGS 84
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testWGS84()
      • testOSGB1936_bis

        public void testOSGB1936_bis()
                              throws FactoryException
        Tests “GIGS geodetic datum BB” geodetic datum creation from the factory.
        • GIGS datum code: 66277
        • GIGS datum name: GIGS geodetic datum BB
        • Ellipsoid name: Airy 1830
        • Prime meridian name: Greenwich
        • GIGS coordinate reference system using the datum: 64277 – GIGS geogCRS BB
        • EPSG equivalence: 4277 – OSGB 1936
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testOSGB1936()
      • testAmersfoort_bis

        public void testAmersfoort_bis()
                                throws FactoryException
        Tests “GIGS geodetic datum CC” geodetic datum creation from the factory.
        • GIGS datum code: 66289
        • GIGS datum name: GIGS geodetic datum CC
        • Ellipsoid name: Bessel 1841
        • Prime meridian name: Greenwich
        • GIGS coordinate reference system using the datum: 64289 – GIGS geogCRS CC
        • EPSG equivalence: 4289 – Amersfoort
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testAmersfoort()
      • testBatavia_Jakarta_bis

        public void testBatavia_Jakarta_bis()
                                     throws FactoryException
        Tests “GIGS geodetic datum DD” geodetic datum creation from the factory.
        • GIGS datum code: 66813
        • GIGS datum name: GIGS geodetic datum DD
        • Ellipsoid name: Bessel 1841
        • Prime meridian name: Jakarta
        • GIGS coordinate reference system using the datum: 64813 – GIGS geogCRS DD
        • EPSG equivalence: 4813 – Batavia (Jakarta)
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testBatavia_Jakarta()
      • testBelge1972_bis

        public void testBelge1972_bis()
                               throws FactoryException
        Tests “GIGS geodetic datum EE” geodetic datum creation from the factory.
        • GIGS datum code: 66313
        • GIGS datum name: GIGS geodetic datum EE
        • Ellipsoid name: International 1924
        • Prime meridian name: Greenwich
        • GIGS coordinate reference system using the datum: 64313 – GIGS geogCRS EE
        • EPSG equivalence: 4313 – Belge 1972
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testBelge1972()
      • testGDA94_bis

        public void testGDA94_bis()
                           throws FactoryException
        Tests “GIGS geodetic datum FF” geodetic datum creation from the factory.
        • GIGS datum code: 66283
        • GIGS datum name: GIGS geodetic datum FF
        • Ellipsoid name: GRS 1980
        • Prime meridian name: Greenwich
        • GIGS coordinate reference system using the datum: 64283 – GIGS geogCRS FF
        • EPSG equivalence: 4283 – GDA94
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testGDA94()
      • testNTF_Paris_bis

        public void testNTF_Paris_bis()
                               throws FactoryException
        Tests “GIGS geodetic datum HH” geodetic datum creation from the factory.
        • GIGS datum code: 66807
        • GIGS datum name: GIGS geodetic datum HH
        • Ellipsoid name: Clarke 1880 (IGN)
        • Prime meridian name: Paris
        • GIGS coordinate reference system using the datum: 64807 – GIGS geogCRS HH
        • EPSG equivalence: 4807 – NTF(Paris)
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testNTF_Paris()
      • testNAD83_bis

        public void testNAD83_bis()
                           throws FactoryException
        Tests “GIGS geodetic datum ZZ” geodetic datum creation from the factory.
        • GIGS datum code: 66269
        • GIGS datum name: GIGS geodetic datum ZZ
        • Ellipsoid name: GRS 1980
        • Prime meridian name: Greenwich
        • GIGS coordinate reference system using the datum: 64269 – GIGS geogCRS ZZ
        • EPSG equivalence: 4269 – NAD83
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testNAD83()
      • testOSGB1936_p1

        public void testOSGB1936_p1()
                             throws FactoryException
        Tests “GIGS geodetic datum B′” geodetic datum creation from the factory.
        • GIGS datum code: 66017
        • GIGS datum name: GIGS geodetic datum B′
        • Ellipsoid name: GIGS ellipsoid B
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64023 – GIGS geogCRS B′
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testOSGB1936()
      • testAmersfoort_p1

        public void testAmersfoort_p1()
                               throws FactoryException
        Tests “GIGS geodetic datum C′” geodetic datum creation from the factory.
        • GIGS datum code: 66018
        • GIGS datum name: GIGS geodetic datum C′
        • GIGS datum anchor point: Origin C
        • Ellipsoid name: GIGS ellipsoid C
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64025 – GIGS geogCRS C′
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testAmersfoort()
      • testBelge1972_p1

        public void testBelge1972_p1()
                              throws FactoryException
        Tests “GIGS geodetic datum E′” geodetic datum creation from the factory.
        • GIGS datum code: 66023
        • GIGS datum name: GIGS geodetic datum E′
        • Ellipsoid name: GIGS ellipsoid E
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64027 – GIGS geogCRS E′
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testBelge1972()
      • testNAD27_p1

        public void testNAD27_p1()
                          throws FactoryException
        Tests “GIGS geodetic datum J′” geodetic datum creation from the factory.
        • GIGS datum code: 66021
        • GIGS datum name: GIGS geodetic datum J′
        • Ellipsoid name: GIGS ellipsoid J
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64029 – GIGS geogCRS J′
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testNAD27()
      • testNAD27_p2

        public void testNAD27_p2()
                          throws FactoryException
        Tests “GIGS geodetic datum J″” geodetic datum creation from the factory.
        • GIGS datum code: 66019
        • GIGS datum name: GIGS geodetic datum J″
        • Ellipsoid name: GIGS ellipsoid J
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64030 – GIGS geogCRS J″
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testNAD27()
      • testNAD27_p3

        public void testNAD27_p3()
                          throws FactoryException
        Tests “GIGS geodetic datum J‴” geodetic datum creation from the factory.
        • GIGS datum code: 66020
        • GIGS datum name: GIGS geodetic datum J‴
        • Ellipsoid name: GIGS ellipsoid J
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64031 – GIGS geogCRS J‴
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.
        See Also:
        testNAD27()
      • testAGD66_p1

        public void testAGD66_p1()
                          throws FactoryException
        Tests “GIGS geodetic datum X′” geodetic datum creation from the factory.
        • GIGS datum code: 66022
        • GIGS datum name: GIGS geodetic datum X′
        • Ellipsoid name: GIGS ellipsoid X
        • Prime meridian name: GIGS PM A
        • GIGS coordinate reference system using the datum: 64032 – GIGS geogCRS X′
        Throws:
        FactoryException - if an error occurred while creating the datum or a CRS from the properties.