Package org.iogp.gigs

Class Test3210


@DisplayName("User-defined vertical CRS") public class Test3210 extends Series3000<VerticalCRS>
Verifies that the software allows correct definition of a user-defined vertical CRS.
Test description
Test method: Create user-defined vertical CRS.
Test data: GIGS_user_3210_VerticalCRS.txt
Tested API: CRSFactory.createVerticalCRS(Map, VerticalDatum, VerticalCS) and
CSFactory.createVerticalCS(Map, CoordinateSystemAxis)}.
Expected result: The geoscience 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 Test3210 {
    public MyTest() {
        super(new MyFactories());
    }
}
Since:
1.0
  • Field Details

    • crsFactory

      protected final CRSFactory crsFactory
      Factory to use for building VerticalCRS instances, or null if none.
    • csFactory

      protected final CSFactory csFactory
      The factory to use for creating coordinate system instances.
    • datumFactory

      protected final DatumFactory datumFactory
      Factory to use for building VerticalDatum instances, or null if none. May also be used for building Ellipsoid and PrimeMeridian components.
  • Constructor Details

    • Test3210

      public Test3210(Factories factories)
      Creates a new test using the given factories. The factories needed by this class are CRSFactory, CSFactory and DatumFactory. If a requested factory is null, then the tests which depend on it will be skipped.
      Parameters:
      factories - factories for creating the instances to test.
  • 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 projected CRS to test by invoking the corresponding method from CRSFactory with the current properties map, vertical datum, and vertical coordinate system in the arguments. The created object is then cached and returned in all subsequent invocations of this method.
      Specified by:
      getIdentifiedObject in class Series3000<VerticalCRS>
      Returns:
      the vertical CRS instance to test.
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS instance.
    • GIGS_64502

      @Test @DisplayName("GIGS vertCRS U1 depth") public void GIGS_64502() throws FactoryException
      Tests “GIGS vertCRS U1 depth” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64502
      • GIGS vertical name: GIGS vertCRS U1 depth
      • EPSG equivalence: 5336 – Black Sea depth
      • EPSG coordinate system code: 6498
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related depthDdownmetre
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64501

      @Test @DisplayName("GIGS vertCRS U1 height") public void GIGS_64501() throws FactoryException
      Tests “GIGS vertCRS U1 height” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64501
      • GIGS vertical name: GIGS vertCRS U1 height
      • EPSG equivalence: 5735 – Black Sea height
      • EPSG coordinate system code: 6499
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related heightHupmetre
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64504

      @Test @DisplayName("GIGS vertCRS U2 depth") public void GIGS_64504() throws FactoryException
      Tests “GIGS vertCRS U2 depth” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64504
      • GIGS vertical name: GIGS vertCRS U2 depth
      • EPSG coordinate system code: 6495
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related depthDdownfoot
      Remarks: No direct EPSG equivalent. But would be Black Sea depth (ft).
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64503

      @Test @DisplayName("GIGS vertCRS U2 height") public void GIGS_64503() throws FactoryException
      Tests “GIGS vertCRS U2 height” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64503
      • GIGS vertical name: GIGS vertCRS U2 height
      • EPSG coordinate system code: 1030
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related heightHupfoot
      Remarks: No direct EPSG equivalent. But would be Black Sea height (ft).
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64506

      @Test @DisplayName("GIGS vertCRS V1 depth") public void GIGS_64506() throws FactoryException
      Tests “GIGS vertCRS V1 depth” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64506
      • GIGS vertical name: GIGS vertCRS V1 depth
      • EPSG equivalence: 5612 – Baltic 1977 depth
      • EPSG coordinate system code: 6498
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related depthDdownmetre
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64505

      @Test @DisplayName("GIGS vertCRS V1 height") public void GIGS_64505() throws FactoryException
      Tests “GIGS vertCRS V1 height” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64505
      • GIGS vertical name: GIGS vertCRS V1 height
      • EPSG equivalence: 5705 – Baltic 1977 height
      • EPSG coordinate system code: 6499
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related heightHupmetre
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64509

      @Test @DisplayName("GIGS vertCRS V2 height") public void GIGS_64509() throws FactoryException
      Tests “GIGS vertCRS V2 height” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64509
      • GIGS vertical name: GIGS vertCRS V2 height
      • EPSG coordinate system code: 6497
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related heightHupftUS
      Remarks: No direct EPSG equivalent. But would be Baltic 1977 height (ftUS).
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64508

      @Test @DisplayName("GIGS vertCRS W1 depth") public void GIGS_64508() throws FactoryException
      Tests “GIGS vertCRS W1 depth” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64508
      • GIGS vertical name: GIGS vertCRS W1 depth
      • EPSG equivalence: 5706 – Caspian depth
      • EPSG coordinate system code: 6498
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related depthDdownmetre
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.
    • GIGS_64507

      @Test @DisplayName("GIGS vertCRS W1 height") public void GIGS_64507() throws FactoryException
      Tests “GIGS vertCRS W1 height” vertical CRS creation from the factory.
      • GIGS vertical CRS code: 64507
      • GIGS vertical name: GIGS vertCRS W1 height
      • EPSG equivalence: 5611 – Caspian height
      • EPSG coordinate system code: 6499
      Coordinate system axes
      NameAbbreviationOrientationUnit
      Gravity-related heightHupmetre
      Throws:
      FactoryException - if an error occurred while creating the vertical CRS from the properties.