Verifies reference vertical datums with the geoscience software.
Test method: | Compare vertical datum definitions included in the software against the EPSG Dataset. |
---|---|
Test data: | GIGS_lib_2209_VerticalDatum.txt
and EPSG Dataset. |
Tested API: | DatumAuthorityFactory.createVerticalDatum(String) . |
Expected result: | Definitions bundled with the software should have the same name as in EPSG Dataset. Datums 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 Test2209 {
public MyTest() {
super(new MyDatumAuthorityFactory());
}
}
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DatumAuthorityFactory
Factory to use for buildingVerticalDatum
instances, ornull
if none. -
Constructor Summary
ConstructorsConstructorDescriptionTest2209
(DatumAuthorityFactory datumFactory) Creates a new test using the given factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Tests “Mean Sea Level” vertical datum creation from the factory.void
Tests “Ordnance Datum Newlyn” vertical datum creation from the factory.void
Tests “National Geodetic Vertical Datum 1929” vertical datum creation from the factory.void
Tests “North American Vertical Datum 1988” vertical datum creation from the factory.void
Tests “Yellow Sea 1956” vertical datum creation from the factory.void
Tests “Baltic 1977” vertical datum creation from the factory.void
Tests “Caspian Sea” vertical datum creation from the factory.void
Tests “Normaal Amsterdams Peil” vertical datum creation from the factory.void
Tests “Australian Height Datum” vertical datum creation from the factory.void
Tests “Australian Height Datum (Tasmania)” vertical datum creation from the factory.void
Tests “Canadian Geodetic Vertical Datum of 1928” vertical datum creation from the factory.void
Tests “Nivellement General de la France - Lallemand” vertical datum creation from the factory.void
Tests “Nivellement General de la France - IGN69” vertical datum creation from the factory.void
Tests “PDO Height Datum 1993” vertical datum creation from the factory.void
Tests “Fahud Height Datum” vertical datum creation from the factory.void
Tests “European Vertical Reference Frame 2000” vertical datum creation from the factory.void
Tests “AIOC 1995” vertical datum creation from the factory.void
Tests “Yellow Sea 1985” vertical datum creation from the factory.void
Tests “Fao” vertical datum creation from the factory.void
Tests “Bandar Abbas” vertical datum creation from the factory.void
Tests “EGM96 geoid” vertical datum creation from the factory.void
Tests “Deutches Haupthohennetz 1992” vertical datum creation from the factory.void
Tests “Deutches Haupthohennetz 1985” vertical datum creation from the factory.void
Tests “Baltic 1982” vertical datum creation from the factory.void
Tests “Kuwait PWD” vertical datum creation from the factory.void
Tests “KOC Well Datum” vertical datum creation from the factory.void
Tests “KOC Construction Datum” vertical datum creation from the factory.void
Tests “Lagos 1955” vertical datum creation from the factory.void
Tests “European Vertical Reference Frame 2007” vertical datum creation from the factory.Returns the vertical datum instance to be tested.Methods inherited from class Series2000
getVerifiableName
-
Field Details
-
datumAuthorityFactory
Factory to use for buildingVerticalDatum
instances, ornull
if none.
-
-
Constructor Details
-
Test2209
Creates a new test using the given factory. If a given factory isnull
, then the tests which depend on it will be skipped.- Parameters:
datumFactory
- factory for creatingVerticalDatum
instances.
-
-
Method Details
-
getIdentifiedObject
Returns the vertical datum instance to be tested. When this method is invoked for the first time, it creates the vertical datum to test by invoking theDatumAuthorityFactory.createVerticalDatum(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<VerticalDatum>
- Returns:
- the vertical datum instance to test.
- Throws:
FactoryException
- if an error occurred while creating the vertical datum instance.
-
EPSG_5133
Tests “AIOC 1995” vertical datum creation from the factory.- EPSG datum code: 5133
- EPSG datum name: AIOC 1995
- Alias(es) given by EPSG: AIOC95
- EPSG Usage Extent: Azerbaijan - offshore and Sangachal
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5111
Tests “Australian Height Datum” vertical datum creation from the factory.- EPSG datum code: 5111
- EPSG datum name: Australian Height Datum
- Alias(es) given by EPSG: AHD, AHD71, AHD-TAS83
- EPSG Usage Extent: Australia Christmas and Cocos - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5112
@Test @DisplayName("Australian Height Datum (Tasmania)") public void EPSG_5112() throws FactoryExceptionTests “Australian Height Datum (Tasmania)” vertical datum creation from the factory.- EPSG datum code: 5112
- EPSG datum name: Australian Height Datum (Tasmania)
- Alias(es) given by EPSG: AHD (Tasmania)
- EPSG Usage Extent: Australia - Tasmania mainland onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5105
Tests “Baltic 1977” vertical datum creation from the factory.- EPSG datum code: 5105
- EPSG datum name: Baltic 1977
- Alias(es) given by EPSG: Baltic, Baltic Sea
- EPSG Usage Extent: Europe - FSU onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5184
Tests “Baltic 1982” vertical datum creation from the factory.- EPSG datum code: 5184
- EPSG datum name: Baltic 1982
- EPSG Usage Extent: Bulgaria - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5150
Tests “Bandar Abbas” vertical datum creation from the factory.- EPSG datum code: 5150
- EPSG datum name: Bandar Abbas
- EPSG Usage Extent: Iran - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5114
@Test @DisplayName("Canadian Geodetic Vertical Datum of 1928") public void EPSG_5114() throws FactoryExceptionTests “Canadian Geodetic Vertical Datum of 1928” vertical datum creation from the factory.- EPSG datum code: 5114
- EPSG datum name: Canadian Geodetic Vertical Datum of 1928
- Alias(es) given by EPSG: CVD28, Canadian Vertical Datum of 1928, CGVD28
- EPSG Usage Extent: Canada
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5106
Tests “Caspian Sea” vertical datum creation from the factory.- EPSG datum code: 5106
- EPSG datum name: Caspian Sea
- Alias(es) given by EPSG: Caspian
- EPSG Usage Extent: Asia - FSU - Caspian Sea
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5182
Tests “Deutches Haupthohennetz 1985” vertical datum creation from the factory.- EPSG datum code: 5182
- EPSG datum name: Deutches Haupthohennetz 1985
- Alias(es) given by EPSG: DHHN85, Deutsches Haupthöhennetz 1985
- EPSG Usage Extent: Germany - West Germany all states
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5181
Tests “Deutches Haupthohennetz 1992” vertical datum creation from the factory.- EPSG datum code: 5181
- EPSG datum name: Deutches Haupthohennetz 1992
- Alias(es) given by EPSG: DHHN92, Deutsches Haupthöhennetz 1992
- EPSG Usage Extent: Germany - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5171
Tests “EGM96 geoid” vertical datum creation from the factory.- EPSG datum code: 5171
- EPSG datum name: EGM96 geoid
- Alias(es) given by EPSG: EGM96
- EPSG Usage Extent: World
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5129
@Test @DisplayName("European Vertical Reference Frame 2000") public void EPSG_5129() throws FactoryExceptionTests “European Vertical Reference Frame 2000” vertical datum creation from the factory.- EPSG datum code: 5129
- EPSG datum name: European Vertical Reference Frame 2000
- Alias(es) given by EPSG: EVRF2000
- EPSG Usage Extent: Europe
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5215
@Test @DisplayName("European Vertical Reference Frame 2007") public void EPSG_5215() throws FactoryExceptionTests “European Vertical Reference Frame 2007” vertical datum creation from the factory.- EPSG datum code: 5215
- EPSG datum name: European Vertical Reference Frame 2007
- Alias(es) given by EPSG: EVRF2007
- EPSG Usage Extent: Europe
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5124
Tests “Fahud Height Datum” vertical datum creation from the factory.- EPSG datum code: 5124
- EPSG datum name: Fahud Height Datum
- Alias(es) given by EPSG: Fahud HD
- EPSG Usage Extent: Oman - mainland
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5149
Tests “Fao” vertical datum creation from the factory.- EPSG datum code: 5149
- EPSG datum name: Fao
- Alias(es) given by EPSG: British Vertical Datum
- EPSG Usage Extent: Asia - Middle East -SE Iraq and SW Iran
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5188
Tests “KOC Construction Datum” vertical datum creation from the factory.- EPSG datum code: 5188
- EPSG datum name: KOC Construction Datum
- Alias(es) given by EPSG: CD
- EPSG Usage Extent: Kuwait - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5187
Tests “KOC Well Datum” vertical datum creation from the factory.- EPSG datum code: 5187
- EPSG datum name: KOC Well Datum
- Alias(es) given by EPSG: WD
- EPSG Usage Extent: Kuwait - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5186
Tests “Kuwait PWD” vertical datum creation from the factory.- EPSG datum code: 5186
- EPSG datum name: Kuwait PWD
- Alias(es) given by EPSG: PWD
- EPSG Usage Extent: Kuwait - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5194
Tests “Lagos 1955” vertical datum creation from the factory.- EPSG datum code: 5194
- EPSG datum name: Lagos 1955
- EPSG Usage Extent: Nigeria - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5100
Tests “Mean Sea Level” vertical datum creation from the factory.- EPSG datum code: 5100
- EPSG datum name: Mean Sea Level
- Alias(es) given by EPSG: MSL
- EPSG Usage Extent: World
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5102
@Test @DisplayName("National Geodetic Vertical Datum 1929") public void EPSG_5102() throws FactoryExceptionTests “National Geodetic Vertical Datum 1929” vertical datum creation from the factory.- EPSG datum code: 5102
- EPSG datum name: National Geodetic Vertical Datum 1929
- Alias(es) given by EPSG: NGVD29
- EPSG Usage Extent: USA - CONUS - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5119
@Test @DisplayName("Nivellement General de la France - IGN69") public void EPSG_5119() throws FactoryExceptionTests “Nivellement General de la France - IGN69” vertical datum creation from the factory.- EPSG datum code: 5119
- EPSG datum name: Nivellement General de la France - IGN69
- Alias(es) given by EPSG: NGF-IGN69, Nivellement general de la France, NGF
- EPSG Usage Extent: France - mainland onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5118
@Test @DisplayName("Nivellement General de la France - Lallemand") public void EPSG_5118() throws FactoryExceptionTests “Nivellement General de la France - Lallemand” vertical datum creation from the factory.- EPSG datum code: 5118
- EPSG datum name: Nivellement General de la France - Lallemand
- Alias(es) given by EPSG: NGF - Lallemand, NGF, Nivellement general de la France
- EPSG Usage Extent: France - mainland onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5109
Tests “Normaal Amsterdams Peil” vertical datum creation from the factory.- EPSG datum code: 5109
- EPSG datum name: Normaal Amsterdams Peil
- Alias(es) given by EPSG: NAP
- EPSG Usage Extent: Netherlands
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5103
@Test @DisplayName("North American Vertical Datum 1988") public void EPSG_5103() throws FactoryExceptionTests “North American Vertical Datum 1988” vertical datum creation from the factory.- EPSG datum code: 5103
- EPSG datum name: North American Vertical Datum 1988
- Alias(es) given by EPSG: NAVD88
- EPSG Usage Extent: North America - Mexico and USA - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5101
Tests “Ordnance Datum Newlyn” vertical datum creation from the factory.- EPSG datum code: 5101
- EPSG datum name: Ordnance Datum Newlyn
- Alias(es) given by EPSG: ODN, Newlyn
- EPSG Usage Extent: UK - Great Britain mainland onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5123
Tests “PDO Height Datum 1993” vertical datum creation from the factory.- EPSG datum code: 5123
- EPSG datum name: PDO Height Datum 1993
- Alias(es) given by EPSG: PHD93
- EPSG Usage Extent: Oman - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5104
Tests “Yellow Sea 1956” vertical datum creation from the factory.- EPSG datum code: 5104
- EPSG datum name: Yellow Sea 1956
- Alias(es) given by EPSG: Huang Hai 1956, Yellow Sea
- EPSG Usage Extent: China - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-
EPSG_5137
Tests “Yellow Sea 1985” vertical datum creation from the factory.- EPSG datum code: 5137
- EPSG datum name: Yellow Sea 1985
- Alias(es) given by EPSG: Huang Hai 1985
- EPSG Usage Extent: China - onshore
- Throws:
FactoryException
- if an error occurred while creating the vertical datum from the EPSG code.
-