Package org.iogp.gigs

Class Test2210


@DisplayName("Vertical CRS") public class Test2210 extends Series2000<VerticalCRS>
Verifies reference vertical CRSs bundled with the geoscience software.
Test description
Test method: Compare vertical CRS definitions included in the software against the EPSG Dataset.
Test data: GIGS_lib_2210_VerticalCRS.txt and EPSG Dataset.
Tested API: CRSAuthorityFactory.createVerticalCRS(String).
Expected result: Definitions bundled with the software should have the same name and coordinate system (including axes direction and units) as in EPSG Dataset. CRSs 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 Test2210 {
    public MyTest() {
        super(new MyCRSAuthorityFactory());
    }
}
Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final CRSAuthorityFactory
    Factory to use for building VerticalCRS instances, or null if none.
    int
    The EPSG code of the expected VerticalDatum.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new test using the given factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Tests “Baltic 1977 depth” vertical CRS creation from the factory.
    void
    Tests “KOC WD depth (ft)” vertical CRS creation from the factory.
    void
    Tests “EVRF2007 height” vertical CRS creation from the factory.
    void
    Tests “ODN height” vertical CRS creation from the factory.
    void
    Tests “NGVD29 height (ftUS)” vertical CRS creation from the factory.
    void
    Tests “NAVD88 height” vertical CRS creation from the factory.
    void
    Tests “Baltic 1977 height” vertical CRS creation from the factory.
    void
    Tests “Caspian depth” vertical CRS creation from the factory.
    void
    Tests “NAP height” vertical CRS creation from the factory.
    void
    Tests “AHD height” vertical CRS creation from the factory.
    void
    Tests “AHD (Tasmania) height” vertical CRS creation from the factory.
    void
    Tests “CGVD28 height” vertical CRS creation from the factory.
    void
    Tests “msl height” vertical CRS creation from the factory.
    void
    Tests “MSL depth” vertical CRS creation from the factory.
    void
    Tests “NGF Lallemand height” vertical CRS creation from the factory.
    void
    Tests “NGF-IGN69 height” vertical CRS creation from the factory.
    void
    Tests “PHD93 height” vertical CRS creation from the factory.
    void
    Tests “Fahud HD height” vertical CRS creation from the factory.
    void
    Tests “EVRF2000 height” vertical CRS creation from the factory.
    void
    Tests “AIOC95 depth” vertical CRS creation from the factory.
    void
    Tests “Yellow Sea 1956 height” vertical CRS creation from the factory.
    void
    Tests “Yellow Sea 1985 height” vertical CRS creation from the factory.
    void
    Tests “Fao height” vertical CRS creation from the factory.
    void
    Tests “Bandar Abbas height” vertical CRS creation from the factory.
    void
    Tests “EGM96 height” vertical CRS creation from the factory.
    void
    Tests “DHHN92 height” vertical CRS creation from the factory.
    void
    Tests “DHHN85 height” vertical CRS creation from the factory.
    void
    Tests “Baltic 1982 height” vertical CRS creation from the factory.
    void
    Tests “Kuwait PWD height” vertical CRS creation from the factory.
    void
    Tests “KOC WD depth” vertical CRS creation from the factory.
    void
    Tests “KOC CD height” vertical CRS creation from the factory.
    void
    Tests “Lagos 1955 height” vertical CRS creation from the factory.
    void
    Tests “AIOC95 height” vertical CRS creation from the factory.
    Returns the vertical CRS instance to be tested.

    Methods inherited from class Series2000

    getVerifiableName

    Methods inherited from class Object

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

    • datumCode

      public int datumCode
      The EPSG code of the expected VerticalDatum. This field is set by all test methods before to create and verify the VerticalCRS instance.
    • crsAuthorityFactory

      protected final CRSAuthorityFactory crsAuthorityFactory
      Factory to use for building VerticalCRS instances, or null if none. This is the factory used by the getIdentifiedObject() method.
  • Constructor Details

    • Test2210

      public Test2210(CRSAuthorityFactory crsFactory)
      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:
      crsFactory - factory for creating VerticalCRS instances.
  • Method Details

    • getIdentifiedObject

      public VerticalCRS getIdentifiedObject() throws FactoryException
      Returns the vertical CRS instance to be tested. When this method is invoked for the first time, it creates the vertical CRS to test by invoking the CRSAuthorityFactory.createVerticalCRS(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<VerticalCRS>
      Returns:
      the vertical CRS instance to test.
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS instance.
    • EPSG_5712

      @Test @DisplayName("AHD (Tasmania) height") public void EPSG_5712() throws FactoryException
      Tests “AHD (Tasmania) height” vertical CRS creation from the factory.
      • EPSG CRS code: 5712
      • EPSG CRS name: AHD (Tasmania) height
      • Alias(es) given by EPSG: Australian Height Datum height
      • EPSG datum code: 5112
      • EPSG Usage Extent: Australia - Tasmania mainland onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5711

      @Test @DisplayName("AHD height") public void EPSG_5711() throws FactoryException
      Tests “AHD height” vertical CRS creation from the factory.
      • EPSG CRS code: 5711
      • EPSG CRS name: AHD height
      • EPSG datum code: 5111
      • EPSG Usage Extent: Australia Christmas and Cocos - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5734

      @Test @DisplayName("AIOC95 depth") public void EPSG_5734() throws FactoryException
      Tests “AIOC95 depth” vertical CRS creation from the factory.
      • EPSG CRS code: 5734
      • EPSG CRS name: AIOC95 depth
      • Alias(es) given by EPSG: Australian Height Datum height
      • EPSG datum code: 5133
      • EPSG Usage Extent: Azerbaijan - offshore and Sangachal
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5797

      @Test @DisplayName("AIOC95 height") public void EPSG_5797() throws FactoryException
      Tests “AIOC95 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5797
      • EPSG CRS name: AIOC95 height
      • EPSG datum code: 5133
      • EPSG Usage Extent: Azerbaijan - offshore and Sangachal
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5612

      @Test @DisplayName("Baltic 1977 depth") public void EPSG_5612() throws FactoryException
      Tests “Baltic 1977 depth” vertical CRS creation from the factory.
      • EPSG CRS code: 5612
      • EPSG CRS name: Baltic 1977 depth
      • Alias(es) given by EPSG: Kronstadt 1977 height
      • EPSG datum code: 5105
      • EPSG Usage Extent: Europe - FSU onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5705

      @Test @DisplayName("Baltic 1977 height") public void EPSG_5705() throws FactoryException
      Tests “Baltic 1977 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5705
      • EPSG CRS name: Baltic 1977 height
      • EPSG datum code: 5105
      • EPSG Usage Extent: Europe - FSU onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5786

      @Test @DisplayName("Baltic 1982 height") public void EPSG_5786() throws FactoryException
      Tests “Baltic 1982 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5786
      • EPSG CRS name: Baltic 1982 height
      • Alias(es) given by EPSG: Baltic 1982
      • EPSG datum code: 5184
      • EPSG Usage Extent: Bulgaria - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5752

      @Test @DisplayName("Bandar Abbas height") public void EPSG_5752() throws FactoryException
      Tests “Bandar Abbas height” vertical CRS creation from the factory.
      • EPSG CRS code: 5752
      • EPSG CRS name: Bandar Abbas height
      • EPSG datum code: 5150
      • EPSG Usage Extent: Iran - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5706

      @Test @DisplayName("Caspian depth") public void EPSG_5706() throws FactoryException
      Tests “Caspian depth” vertical CRS creation from the factory.
      • EPSG CRS code: 5706
      • EPSG CRS name: Caspian depth
      • Alias(es) given by EPSG: Canadian Geodetic Vertical Datum of 1928 height
      • EPSG datum code: 5106
      • EPSG Usage Extent: Asia - FSU - Caspian Sea
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5713

      @Test @DisplayName("CGVD28 height") public void EPSG_5713() throws FactoryException
      Tests “CGVD28 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5713
      • EPSG CRS name: CGVD28 height
      • EPSG datum code: 5114
      • EPSG Usage Extent: Canada
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5784

      @Test @DisplayName("DHHN85 height") public void EPSG_5784() throws FactoryException
      Tests “DHHN85 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5784
      • EPSG CRS name: DHHN85 height
      • EPSG datum code: 5182
      • EPSG Usage Extent: Germany - West Germany all states
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5783

      @Test @DisplayName("DHHN92 height") public void EPSG_5783() throws FactoryException
      Tests “DHHN92 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5783
      • EPSG CRS name: DHHN92 height
      • EPSG datum code: 5181
      • EPSG Usage Extent: Germany - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5773

      @Test @DisplayName("EGM96 height") public void EPSG_5773() throws FactoryException
      Tests “EGM96 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5773
      • EPSG CRS name: EGM96 height
      • EPSG datum code: 5171
      • EPSG Usage Extent: World
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5730

      @Test @DisplayName("EVRF2000 height") public void EPSG_5730() throws FactoryException
      Tests “EVRF2000 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5730
      • EPSG CRS name: EVRF2000 height
      • EPSG datum code: 5129
      • EPSG Usage Extent: Europe
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5621

      @Test @DisplayName("EVRF2007 height") public void EPSG_5621() throws FactoryException
      Tests “EVRF2007 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5621
      • EPSG CRS name: EVRF2007 height
      • Alias(es) given by EPSG: Fahud Height Datum height
      • EPSG datum code: 5215
      • EPSG Usage Extent: Europe
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5725

      @Test @DisplayName("Fahud HD height") public void EPSG_5725() throws FactoryException
      Tests “Fahud HD height” vertical CRS creation from the factory.
      • EPSG CRS code: 5725
      • EPSG CRS name: Fahud HD height
      • EPSG datum code: 5124
      • EPSG Usage Extent: Oman - mainland
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5751

      @Test @DisplayName("Fao height") public void EPSG_5751() throws FactoryException
      Tests “Fao height” vertical CRS creation from the factory.
      • EPSG CRS code: 5751
      • EPSG CRS name: Fao height
      • EPSG datum code: 5149
      • EPSG Usage Extent: Asia - Middle East -SE Iraq and SW Iran
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5790

      @Test @DisplayName("KOC CD height") public void EPSG_5790() throws FactoryException
      Tests “KOC CD height” vertical CRS creation from the factory.
      • EPSG CRS code: 5790
      • EPSG CRS name: KOC CD height
      • EPSG datum code: 5188
      • EPSG Usage Extent: Kuwait - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5789

      @Test @DisplayName("KOC WD depth") public void EPSG_5789() throws FactoryException
      Tests “KOC WD depth” vertical CRS creation from the factory.
      • EPSG CRS code: 5789
      • EPSG CRS name: KOC WD depth
      • EPSG datum code: 5187
      • EPSG Usage Extent: Kuwait - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5614

      @Test @DisplayName("KOC WD depth (ft)") public void EPSG_5614() throws FactoryException
      Tests “KOC WD depth (ft)” vertical CRS creation from the factory.
      • EPSG CRS code: 5614
      • EPSG CRS name: KOC WD depth (ft)
      • Alias(es) given by EPSG: PWD height
      • EPSG datum code: 5187
      • EPSG Usage Extent: Kuwait - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5788

      @Test @DisplayName("Kuwait PWD height") public void EPSG_5788() throws FactoryException
      Tests “Kuwait PWD height” vertical CRS creation from the factory.
      • EPSG CRS code: 5788
      • EPSG CRS name: Kuwait PWD height
      • EPSG datum code: 5186
      • EPSG Usage Extent: Kuwait - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5796

      @Test @DisplayName("Lagos 1955 height") public void EPSG_5796() throws FactoryException
      Tests “Lagos 1955 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5796
      • EPSG CRS name: Lagos 1955 height
      • Alias(es) given by EPSG: mean sea level depth
      • EPSG datum code: 5194
      • EPSG Usage Extent: Nigeria - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5715

      @Test @DisplayName("MSL depth") public void EPSG_5715() throws FactoryException
      Tests “MSL depth” vertical CRS creation from the factory.
      • EPSG CRS code: 5715
      • EPSG CRS name: MSL depth
      • Alias(es) given by EPSG: mean sea level height
      • EPSG datum code: 5100
      • EPSG Usage Extent: World
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5714

      @Test @DisplayName("msl height") public void EPSG_5714() throws FactoryException
      Tests “msl height” vertical CRS creation from the factory.
      • EPSG CRS code: 5714
      • EPSG CRS name: msl height
      • Alias(es) given by EPSG: Normaal Amsterdams Peil height
      • EPSG datum code: 5100
      • EPSG Usage Extent: World
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5709

      @Test @DisplayName("NAP height") public void EPSG_5709() throws FactoryException
      Tests “NAP height” vertical CRS creation from the factory.
      • EPSG CRS code: 5709
      • EPSG CRS name: NAP height
      • Alias(es) given by EPSG: North American Vertical Datum of 1988 height (m)
      • EPSG datum code: 5109
      • EPSG Usage Extent: Netherlands
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5703

      @Test @DisplayName("NAVD88 height") public void EPSG_5703() throws FactoryException
      Tests “NAVD88 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5703
      • EPSG CRS name: NAVD88 height
      • EPSG datum code: 5103
      • EPSG Usage Extent: North America - Mexico and USA - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5720

      @Test @DisplayName("NGF-IGN69 height") public void EPSG_5720() throws FactoryException
      Tests “NGF-IGN69 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5720
      • EPSG CRS name: NGF-IGN69 height
      • EPSG datum code: 5119
      • EPSG Usage Extent: France - mainland onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5719

      @Test @DisplayName("NGF Lallemand height") public void EPSG_5719() throws FactoryException
      Tests “NGF Lallemand height” vertical CRS creation from the factory.
      • EPSG CRS code: 5719
      • EPSG CRS name: NGF Lallemand height
      • Alias(es) given by EPSG: National Geodetic Vertical Datum of 1929 height (ftUS)
      • EPSG datum code: 5118
      • EPSG Usage Extent: France - mainland onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5702

      @Test @DisplayName("NGVD29 height (ftUS)") public void EPSG_5702() throws FactoryException
      Tests “NGVD29 height (ftUS)” vertical CRS creation from the factory.
      • EPSG CRS code: 5702
      • EPSG CRS name: NGVD29 height (ftUS)
      • Alias(es) given by EPSG: Newlyn height
      • EPSG datum code: 5102
      • EPSG Usage Extent: USA - CONUS - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5701

      @Test @DisplayName("ODN height") public void EPSG_5701() throws FactoryException
      Tests “ODN height” vertical CRS creation from the factory.
      • EPSG CRS code: 5701
      • EPSG CRS name: ODN height
      • Alias(es) given by EPSG: PDO Height Datum 1993 height
      • EPSG datum code: 5101
      • EPSG Usage Extent: UK - Great Britain mainland onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5724

      @Test @DisplayName("PHD93 height") public void EPSG_5724() throws FactoryException
      Tests “PHD93 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5724
      • EPSG CRS name: PHD93 height
      • Alias(es) given by EPSG: Huang Hai 1956 height
      • EPSG datum code: 5123
      • EPSG Usage Extent: Oman - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5736

      @Test @DisplayName("Yellow Sea 1956 height") public void EPSG_5736() throws FactoryException
      Tests “Yellow Sea 1956 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5736
      • EPSG CRS name: Yellow Sea 1956 height
      • Alias(es) given by EPSG: Huang Hai 1985 height
      • EPSG datum code: 5104
      • EPSG Usage Extent: China - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.
    • EPSG_5737

      @Test @DisplayName("Yellow Sea 1985 height") public void EPSG_5737() throws FactoryException
      Tests “Yellow Sea 1985 height” vertical CRS creation from the factory.
      • EPSG CRS code: 5737
      • EPSG CRS name: Yellow Sea 1985 height
      • EPSG datum code: 5137
      • EPSG Usage Extent: China - onshore
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the EPSG code.