Verifies reference vertical CRSs bundled with the geoscience software.
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
FieldsModifier and TypeFieldDescriptionprotected final CRSAuthorityFactory
Factory to use for buildingVerticalCRS
instances, ornull
if none.int
The EPSG code of the expectedVerticalDatum
. -
Constructor Summary
ConstructorsConstructorDescriptionTest2210
(CRSAuthorityFactory crsFactory) Creates a new test using the given factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Field Details
-
datumCode
public int datumCodeThe EPSG code of the expectedVerticalDatum
. This field is set by all test methods before to create and verify theVerticalCRS
instance. -
crsAuthorityFactory
Factory to use for buildingVerticalCRS
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method.
-
-
Constructor Details
-
Test2210
Creates a new test using the given factory. If a given factory isnull
, then the tests which depend on it will be skipped.- Parameters:
crsFactory
- factory for creatingVerticalCRS
instances.
-
-
Method Details
-
getIdentifiedObject
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 theCRSAuthorityFactory.createVerticalCRS(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<VerticalCRS>
- Returns:
- the vertical CRS instance to test.
- Throws:
FactoryException
- if an error occurred while creating the vertical CRS instance.
-
EPSG_5712
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-