Package org.iogp.gigs

Class Test3204


@DisplayName("User-defined geodetic datum") public class Test3204 extends Series3000<GeodeticDatum>
Verifies that the software allows correct definition of a user-defined geodetic datum. Each test method in this class instantiate exactly one GeodeticDatum.
Test description
Test method: Create user-defined geodetic datum for each of several different datums.
Test data: GIGS_user_3204_GeodeticDatum.txt
Tested API: DatumFactory.createGeodeticDatum(Map, Ellipsoid, PrimeMeridian).
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, implementers can define a subclass in their own test suite as in the example below:
public class MyTest extends Test3204 {
    public MyTest() {
        super(new MyFactories());
    }
}
Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final DatumAuthorityFactory
    Factory to use for building Ellipsoid and PrimeMeridian components, or null if none.
    protected final DatumFactory
    Factory to use for building GeodeticDatum instances, or null if none.

    Fields inherited from class Series3000

    isFactoryPreservingUserValues, properties
  • Constructor Summary

    Constructors
    Constructor
    Description
    Test3204(Factories factories)
    Creates a new test using the given factories.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the geodetic datum instance to be tested.
    void
    Tests “GIGS geodetic datum A” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum B” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum C” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum D” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum E” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum F” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum G” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum H” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum J” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum T” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum L” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum K” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum X” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum Y” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum Z” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum M” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum ZZ” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum BB” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum FF” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum CC” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum EE” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum AA” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum HH” geodetic datum creation from the factory.
    void
    Tests “GIGS geodetic datum DD” geodetic datum creation from the factory.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Test3204

      public Test3204(Factories factories)
      Creates a new test using the given factories. The factories needed by this class are DatumFactory and optionally DatumAuthorityFactory. If a requested factory is null, then the tests which depend on it will be skipped.

      Authority factory usage

      The authority factory is used only for some test cases where the components are fetched by EPSG codes instead of being built by user. Those test cases are identified by the "definition source" line in Javadoc.
      Parameters:
      factories - factories for creating the instances to test.
  • Method Details

    • getIdentifiedObject

      public GeodeticDatum getIdentifiedObject() throws FactoryException
      Returns the geodetic datum instance to be tested. When this method is invoked for the first time, it creates the geodetic datum to test by invoking the corresponding method from DatumFactory with the current properties map in argument. The created object is then cached and returned in all subsequent invocations of this method.
      Specified by:
      getIdentifiedObject in class Series3000<GeodeticDatum>
      Returns:
      the geodetic datum instance to test.
      Throws:
      FactoryException - if an error occurred while creating the geodetic datum instance.
    • GIGS_66001

      @Test @DisplayName("GIGS geodetic datum A") public void GIGS_66001() throws FactoryException
      Tests “GIGS geodetic datum A” geodetic datum creation from the factory.
      • GIGS datum code: 66001
      • GIGS datum name: GIGS geodetic datum A
      • EPSG equivalence: 6326 – World Geodetic System 1984 ensemble
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid A
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66326

      @Test @DisplayName("GIGS geodetic datum AA") public void GIGS_66326() throws FactoryException
      Tests “GIGS geodetic datum AA” geodetic datum creation from the factory. This test creates the same datum than GIGS_66001() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66326
      • GIGS datum name: GIGS geodetic datum AA
      • EPSG equivalence: 6326 – World Geodetic System 1984 ensemble
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: WGS 84
      • Prime meridian name: Greenwich
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66002

      @Test @DisplayName("GIGS geodetic datum B") public void GIGS_66002() throws FactoryException
      Tests “GIGS geodetic datum B” geodetic datum creation from the factory.
      • GIGS datum code: 66002
      • GIGS datum name: GIGS geodetic datum B
      • EPSG equivalence: 6277 – Ordnance Survey of Great Britain 1936
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid B
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66277

      @Test @DisplayName("GIGS geodetic datum BB") public void GIGS_66277() throws FactoryException
      Tests “GIGS geodetic datum BB” geodetic datum creation from the factory. This test creates the same datum than GIGS_66002() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66277
      • GIGS datum name: GIGS geodetic datum BB
      • EPSG equivalence: 6277 – Ordnance Survey of Great Britain 1936
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: Airy 1830
      • Prime meridian name: Greenwich
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66003

      @Test @DisplayName("GIGS geodetic datum C") public void GIGS_66003() throws FactoryException
      Tests “GIGS geodetic datum C” geodetic datum creation from the factory.
      • GIGS datum code: 66003
      • GIGS datum name: GIGS geodetic datum C
      • EPSG equivalence: 6289 – Amersfoort
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid C
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66289

      @Test @DisplayName("GIGS geodetic datum CC") public void GIGS_66289() throws FactoryException
      Tests “GIGS geodetic datum CC” geodetic datum creation from the factory. This test creates the same datum than GIGS_66003() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66289
      • GIGS datum name: GIGS geodetic datum CC
      • EPSG equivalence: 6289 – Amersfoort
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: Bessel 1841
      • Prime meridian name: Greenwich
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66004

      @Test @DisplayName("GIGS geodetic datum D") public void GIGS_66004() throws FactoryException
      Tests “GIGS geodetic datum D” geodetic datum creation from the factory.
      • GIGS datum code: 66004
      • GIGS datum name: GIGS geodetic datum D
      • EPSG equivalence: 6813 – Batavia (Jakarta)
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid C
      • Prime meridian name: GIGS PM D
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66813

      @Test @DisplayName("GIGS geodetic datum DD") public void GIGS_66813() throws FactoryException
      Tests “GIGS geodetic datum DD” geodetic datum creation from the factory. This test creates the same datum than GIGS_66004() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66813
      • GIGS datum name: GIGS geodetic datum DD
      • EPSG equivalence: 6813 – Batavia (Jakarta)
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: Bessel 1841
      • Prime meridian name: Jakarta
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66005

      @Test @DisplayName("GIGS geodetic datum E") public void GIGS_66005() throws FactoryException
      Tests “GIGS geodetic datum E” geodetic datum creation from the factory.
      • GIGS datum code: 66005
      • GIGS datum name: GIGS geodetic datum E
      • EPSG equivalence: 6313 – Reseau National Belge 1972
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid E
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66313

      @Test @DisplayName("GIGS geodetic datum EE") public void GIGS_66313() throws FactoryException
      Tests “GIGS geodetic datum EE” geodetic datum creation from the factory. This test creates the same datum than GIGS_66005() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66313
      • GIGS datum name: GIGS geodetic datum EE
      • EPSG equivalence: 6313 – Reseau National Belge 1972
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: International 1924
      • Prime meridian name: Greenwich
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66006

      @Test @DisplayName("GIGS geodetic datum F") public void GIGS_66006() throws FactoryException
      Tests “GIGS geodetic datum F” geodetic datum creation from the factory.
      • GIGS datum code: 66006
      • GIGS datum name: GIGS geodetic datum F
      • EPSG equivalence: 6283 – Geocentric Datum of Australia 1994
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid F
      • Prime meridian name: GIGS PM A
      • Datum origin: Origin F
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66283

      @Test @DisplayName("GIGS geodetic datum FF") public void GIGS_66283() throws FactoryException
      Tests “GIGS geodetic datum FF” geodetic datum creation from the factory. This test creates the same datum than GIGS_66006() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66283
      • GIGS datum name: GIGS geodetic datum FF
      • EPSG equivalence: 6283 – Geocentric Datum of Australia 1994
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: GRS 1980
      • Prime meridian name: Greenwich
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66007

      @Test @DisplayName("GIGS geodetic datum G") public void GIGS_66007() throws FactoryException
      Tests “GIGS geodetic datum G” geodetic datum creation from the factory.
      • GIGS datum code: 66007
      • GIGS datum name: GIGS geodetic datum G
      • EPSG equivalence (1 of 5): 6258 – European Terrestrial Reference System 1989 ensemble
      • EPSG equivalence (2 of 5): 6742 – Geodetic Datum of Malaysia 2000
      • EPSG equivalence (3 of 5): 6152 – NAD83 (High Accuracy Reference Network)
      • EPSG equivalence (4 of 5): 6190 – Posiciones Geodesicas Argentinas 1998
      • EPSG equivalence (5 of 5): 6674 – Sistema de Referencia Geocentrico para las AmericaS 2000
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid F
      • Prime meridian name: GIGS PM A
      • Datum origin: Origin(s) G
      Remarks: This GIGS Datum is functionally equivalent to any static datum defined as part of a geodetic CRS that uses the GRS 1980 ellipsoid.
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
    • GIGS_66008

      @Test @DisplayName("GIGS geodetic datum H") public void GIGS_66008() throws FactoryException
      Tests “GIGS geodetic datum H” geodetic datum creation from the factory.
      • GIGS datum code: 66008
      • GIGS datum name: GIGS geodetic datum H
      • EPSG equivalence: 6807 – Nouvelle Triangulation Francaise (Paris)
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid H
      • Prime meridian name: GIGS PM H
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66807

      @Test @DisplayName("GIGS geodetic datum HH") public void GIGS_66807() throws FactoryException
      Tests “GIGS geodetic datum HH” geodetic datum creation from the factory. This test creates the same datum than GIGS_66008() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66807
      • GIGS datum name: GIGS geodetic datum HH
      • EPSG equivalence: 6807 – Nouvelle Triangulation Francaise (Paris)
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: Clarke 1880 (IGN)
      • Prime meridian name: Paris
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66009

      @Test @DisplayName("GIGS geodetic datum J") public void GIGS_66009() throws FactoryException
      Tests “GIGS geodetic datum J” geodetic datum creation from the factory.
      • GIGS datum code: 66009
      • GIGS datum name: GIGS geodetic datum J
      • EPSG equivalence: 6267 – North American Datum 1927
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid J
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66012

      @Test @DisplayName("GIGS geodetic datum K") public void GIGS_66012() throws FactoryException
      Tests “GIGS geodetic datum K” geodetic datum creation from the factory.
      • GIGS datum code: 66012
      • GIGS datum name: GIGS geodetic datum K
      • EPSG equivalence: 6237 – Hungarian Datum 1972
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid K
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66011

      @Test @DisplayName("GIGS geodetic datum L") public void GIGS_66011() throws FactoryException
      Tests “GIGS geodetic datum L” geodetic datum creation from the factory.
      • GIGS datum code: 66011
      • GIGS datum name: GIGS geodetic datum L
      • EPSG equivalence: 6211 – Batavia
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid C
      • Prime meridian name: GIGS PM A
      • Datum origin: Origin L
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66016

      @Test @DisplayName("GIGS geodetic datum M") public void GIGS_66016() throws FactoryException
      Tests “GIGS geodetic datum M” geodetic datum creation from the factory.
      • GIGS datum code: 66016
      • GIGS datum name: GIGS geodetic datum M
      • EPSG equivalence: 6230 – European Datum 1950
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid E
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66010

      @Test @DisplayName("GIGS geodetic datum T") public void GIGS_66010() throws FactoryException
      Tests “GIGS geodetic datum T” geodetic datum creation from the factory.
      • GIGS datum code: 66010
      • GIGS datum name: GIGS geodetic datum T
      • EPSG equivalence: 6275 – Nouvelle Triangulation Francaise
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid H
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66013

      @Test @DisplayName("GIGS geodetic datum X") public void GIGS_66013() throws FactoryException
      Tests “GIGS geodetic datum X” geodetic datum creation from the factory.
      • GIGS datum code: 66013
      • GIGS datum name: GIGS geodetic datum X
      • EPSG equivalence: 6202 – Australian Geodetic Datum 1966
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid X
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66014

      @Test @DisplayName("GIGS geodetic datum Y") public void GIGS_66014() throws FactoryException
      Tests “GIGS geodetic datum Y” geodetic datum creation from the factory.
      • GIGS datum code: 66014
      • GIGS datum name: GIGS geodetic datum Y
      • EPSG equivalence: 6284 – Pulkovo 1942
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid Y
      • Prime meridian name: GIGS PM A
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66015

      @Test @DisplayName("GIGS geodetic datum Z") public void GIGS_66015() throws FactoryException
      Tests “GIGS geodetic datum Z” geodetic datum creation from the factory.
      • GIGS datum code: 66015
      • GIGS datum name: GIGS geodetic datum Z
      • EPSG equivalence: 6269 – North American Datum 1983
      • Ellipsoid definition source: Described by user (build with DatumFactory)
      • Ellipsoid name: GIGS ellipsoid F
      • Prime meridian name: GIGS PM A
      • Datum origin: Origin Z
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also:
    • GIGS_66269

      @Test @DisplayName("GIGS geodetic datum ZZ") public void GIGS_66269() throws FactoryException
      Tests “GIGS geodetic datum ZZ” geodetic datum creation from the factory. This test creates the same datum than GIGS_66015() (except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.
      • GIGS datum code: 66269
      • GIGS datum name: GIGS geodetic datum ZZ
      • EPSG equivalence: 6269 – North American Datum 1983
      • Ellipsoid definition source: Fetched from EPSG dataset (build with DatumAuthorityFactory)
      • Ellipsoid name: GRS 1980
      • Prime meridian name: Greenwich
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
      See Also: