Package org.iogp.gigs

Class Test3206


@DisplayName("User-defined conversion") public class Test3206 extends Series3000<Conversion>
Verifies that the software allows correct definition of a user-defined conversion.
Test description
Test method: Create user-defined projection for each of several different conversions.
Test data: GIGS_user_3206_Conversion.txt
Tested API: MathTransformFactory.getAvailableMethods(Class) and
CoordinateOperationFactory.createDefiningConversion(Map, OperationMethod, ParameterValueGroup).
Expected result: The geoscience software should accept the test data. The order in which the projection parameters are entered is not critical, although that given in the test dataset is recommended.

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 Test3206 {
    public MyTest() {
        super(new MyFactories());
    }
}
Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Factory to use for building Conversion instances, or null if none.
    The name of the operation method to use.
    protected final MathTransformFactory
    The factory to use for fetching operation methods, or null if none.
    The parameters defining the map projection to create.

    Fields inherited from class Series3000

    isFactoryPreservingUserValues, properties
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Returns the conversion instance to be tested.
    void
    Tests “GIGS conversion 1” conversion from the factory.
    void
    Tests “GIGS conversion 2” conversion from the factory.
    void
    Tests “GIGS conversion 4” conversion from the factory.
    void
    Tests “GIGS conversion 5” conversion from the factory.
    void
    Tests “GIGS conversion 6” conversion from the factory.
    void
    Tests “GIGS conversion 7” conversion from the factory.
    void
    Tests “GIGS conversion 8” conversion from the factory.
    void
    Tests “GIGS conversion 9” conversion from the factory.
    void
    Tests “GIGS conversion 10” conversion from the factory.
    void
    Tests “GIGS conversion 11” conversion from the factory.
    void
    Tests “GIGS conversion 12” conversion from the factory.
    void
    Tests “GIGS conversion 13” conversion from the factory.
    void
    Tests “GIGS conversion 14” conversion from the factory.
    void
    Tests “GIGS conversion 15” conversion from the factory.
    void
    Tests “GIGS conversion 16” conversion from the factory.
    void
    Tests “GIGS conversion 17” conversion from the factory.
    void
    Tests “GIGS conversion 18” conversion from the factory.
    void
    Tests “GIGS conversion 19” conversion from the factory.
    void
    Tests “GIGS conversion 2 alt A” conversion from the factory.
    void
    Tests “GIGS conversion 2 alt B” conversion from the factory.
    void
    Tests “GIGS conversion 23” conversion from the factory.
    void
    Tests “GIGS conversion 24” conversion from the factory.
    void
    Tests “GIGS conversion 25” conversion from the factory.
    void
    Tests “GIGS conversion 26” conversion from the factory.
    void
    Tests “GIGS conversion 27” conversion from the factory.
    void
    Tests “GIGS conversion 28” conversion from the factory.

    Methods inherited from class Object

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

    • methodName

      public String methodName
      The name of the operation method to use. This field is set by all test methods before to create and verify the Conversion instance.
    • parameters

      public Parameter[] parameters
      The parameters defining the map projection to create. This field is set by all test methods before to create and verify the Conversion instance.
    • copFactory

      protected final CoordinateOperationFactory copFactory
      Factory to use for building Conversion instances, or null if none. This is the factory used by the getIdentifiedObject() method.
    • mtFactory

      protected final MathTransformFactory mtFactory
      The factory to use for fetching operation methods, or null if none.
  • Constructor Details

    • Test3206

      public Test3206(Factories factories)
      Creates a new test using the given factories. The factories needed by this class are CoordinateOperationFactory and MathTransformFactory. 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 Conversion getIdentifiedObject() throws FactoryException
      Returns the conversion instance to be tested. When this method is invoked for the first time, it creates the coordinate operation to test by invoking the corresponding method from CoordinateOperationFactory 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<Conversion>
      Returns:
      the conversion instance to test.
      Throws:
      FactoryException - if an error occurred while creating the conversion instance.
    • GIGS_65001

      @Test @DisplayName("GIGS conversion 1") public void GIGS_65001() throws FactoryException
      Tests “GIGS conversion 1” conversion from the factory.
      • GIGS conversion code: 65001
      • GIGS conversion name: GIGS conversion 1
      • EPSG equivalence: 16031 – UTM zone 31N
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin
      Scale factor at natural origin0.9996 Unity
      False easting500000 metres
      False northing0 metre
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65010

      @Test @DisplayName("GIGS conversion 10") public void GIGS_65010() throws FactoryException
      Tests “GIGS conversion 10” conversion from the factory.
      • GIGS conversion code: 65010
      • GIGS conversion name: GIGS conversion 10
      • EPSG equivalence: 17521 – South African Survey Grid zone 21
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin21°
      Scale factor at natural origin1 Unity
      False easting0 metre
      False northing0 metre
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65011

      @Test @DisplayName("GIGS conversion 11") public void GIGS_65011() throws FactoryException
      Tests “GIGS conversion 11” conversion from the factory.
      • GIGS conversion code: 65011
      • GIGS conversion name: GIGS conversion 11
      • EPSG equivalence: 18035 – Argentina zone 5
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin-90°
      Longitude of natural origin-60°
      Scale factor at natural origin1 Unity
      False easting5500000 metres
      False northing0 metre
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65012

      @Test @DisplayName("GIGS conversion 12") public void GIGS_65012() throws FactoryException
      Tests “GIGS conversion 12” conversion from the factory.
      • GIGS conversion code: 65012
      • GIGS conversion name: GIGS conversion 12
      • EPSG equivalence: 19941 – Brazil Polyconic
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin-54°
      False easting5000000 metres
      False northing10000000 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65013

      @Test @DisplayName("GIGS conversion 13") public void GIGS_65013() throws FactoryException
      Tests “GIGS conversion 13” conversion from the factory.
      • GIGS conversion code: 65013
      • GIGS conversion name: GIGS conversion 13
      Conversion parameters
      Parameter nameValue
      Latitude of projection centre
      Longitude of projection centre115°
      Azimuth of initial line53°18′56.9158″ (53.31580994°)
      Angle from Rectified to Skew Grid53°07′48.3685″ (53.13010236°)
      Scale factor on initial line0.99984 Unity
      Easting at projection centre590521.147 metres
      Northing at projection centre442890.861 metres
      Remarks: No direct EPSG equivalent. EPSG 19894 but referenced using Hotine Oblique Mercator (variant B) rather than Hotine Oblique Mercator (variant A) method.
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65014

      @Test @DisplayName("GIGS conversion 14") public void GIGS_65014() throws FactoryException
      Tests “GIGS conversion 14” conversion from the factory.
      • GIGS conversion code: 65014
      • GIGS conversion name: GIGS conversion 14
      • EPSG equivalence: 19894 – Borneo RSO
      Conversion parameters
      Parameter nameValue
      Latitude of projection centre
      Longitude of projection centre115°
      Azimuth of initial line53°18′56.9158″ (53.31580994°)
      Angle from Rectified to Skew Grid53°07′48.3685″ (53.13010236°)
      Scale factor on initial line0.99984 Unity
      False easting0 metre
      False northing0 metre
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65015

      @Test @DisplayName("GIGS conversion 15") public void GIGS_65015() throws FactoryException
      Tests “GIGS conversion 15” conversion from the factory.
      • GIGS conversion code: 65015
      • GIGS conversion name: GIGS conversion 15
      • EPSG equivalence: 19893 – Johor Grid
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin2°07′18.04708″ (2.121679722°)
      Longitude of natural origin103°25′40.57045″ (103.4279362°)
      False easting-14810.562 metres
      False northing8758.32 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65016

      @Test @DisplayName("GIGS conversion 16") public void GIGS_65016() throws FactoryException
      Tests “GIGS conversion 16” conversion from the factory.
      • GIGS conversion code: 65016
      • GIGS conversion name: GIGS conversion 16
      • EPSG equivalence: 19986 – Europe Equal Area 2001
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin52°
      Longitude of natural origin10°
      False easting4321000 metres
      False northing3210000 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65017

      @Test @DisplayName("GIGS conversion 17") public void GIGS_65017() throws FactoryException
      Tests “GIGS conversion 17” conversion from the factory.
      • GIGS conversion code: 65017
      • GIGS conversion name: GIGS conversion 17
      • EPSG equivalence: 15362 – SPCS83 Utah North zone (International feet)
      Conversion parameters
      Parameter nameValue
      Latitude of false origin40°20′00″ (40.33333333°)
      Longitude of false origin-111°30′00″ (-111.5°)
      Latitude of 1st standard parallel41°47′00″ (41.78333333°)
      Latitude of 2nd standard parallel40°43′00″ (40.71666667°)
      Easting at false origin1640419.948 foots
      Northing at false origin3280839.895 foots
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65018

      @Test @DisplayName("GIGS conversion 18") public void GIGS_65018() throws FactoryException
      Tests “GIGS conversion 18” conversion from the factory.
      • GIGS conversion code: 65018
      • GIGS conversion name: GIGS conversion 18
      • EPSG equivalence: 15297 – SPCS83 Utah North zone (US Survey feet)
      Conversion parameters
      Parameter nameValue
      Latitude of false origin40°20′00″ (40.33333333°)
      Longitude of false origin-111°30′00″ (-111.5°)
      Latitude of 1st standard parallel41°47′00″ (41.78333333°)
      Latitude of 2nd standard parallel40°43′00″ (40.71666667°)
      Easting at false origin1640416.667 US survey foots
      Northing at false origin3280833.333 US survey foots
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65019

      @Test @DisplayName("GIGS conversion 19") public void GIGS_65019() throws FactoryException
      Tests “GIGS conversion 19” conversion from the factory.
      • GIGS conversion code: 65019
      • GIGS conversion name: GIGS conversion 19
      • EPSG equivalence: 18082 – Lambert zone II
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin52 grads
      Longitude of natural origin0 grad
      Scale factor at natural origin0.99987742 Unity
      False easting600000 metres
      False northing2200000 metres
      Remarks: Referenced to Paris meridian.
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65002

      @Test @DisplayName("GIGS conversion 2") public void GIGS_65002() throws FactoryException
      Tests “GIGS conversion 2” conversion from the factory.
      • GIGS conversion code: 65002
      • GIGS conversion name: GIGS conversion 2
      • EPSG equivalence: 19916 – British National Grid
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin49°
      Longitude of natural origin-2°
      Scale factor at natural origin0.9996012717 Unity
      False easting400000 metres
      False northing-100000 metres
      Remarks: If application is unable to define a TM with origin away from the equator use conversion 65021 and 65022 definitions instead.
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65023

      @Test @DisplayName("GIGS conversion 23") public void GIGS_65023() throws FactoryException
      Tests “GIGS conversion 23” conversion from the factory.
      • GIGS conversion code: 65023
      • GIGS conversion name: GIGS conversion 23
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin
      Scale factor at natural origin0.9996 Unity
      False easting1640416.667 US survey foots
      False northing0 US survey foot
      Remarks: No direct equivalent. But would be called BLM 31N (ftUS). EPSG 16031 (UTM zone 31N) but Units in ftUS rather than m.
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65024

      @Test @DisplayName("GIGS conversion 24") public void GIGS_65024() throws FactoryException
      Tests “GIGS conversion 24” conversion from the factory.
      • GIGS conversion code: 65024
      • GIGS conversion name: GIGS conversion 24
      • EPSG equivalence: 19884 – Caspian Sea Mercator
      Conversion parameters
      Parameter nameValue
      Latitude of 1st standard parallel42°
      Longitude of natural origin51°
      False easting0 metre
      False northing0 metre
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65025

      @Test @DisplayName("GIGS conversion 25") public void GIGS_65025() throws FactoryException
      Tests “GIGS conversion 25” conversion from the factory.
      • GIGS conversion code: 65025
      • GIGS conversion name: GIGS conversion 25
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin46°48′00″ (46.8°)
      Longitude of natural origin2°20′14.025″ (2.337229167°)
      Scale factor at natural origin0.99987742 Unity
      False easting600000 metres
      False northing2200000 metres
      Remarks: No direct EPSG equivalent. Deprecated EPSG 18086 France EuroLambert. Remains relevant as represents LCC 1SP. Not to be confused with replacement EPSG 18085 Lambert-93 (LCC 2SP).
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65026

      @Test @DisplayName("GIGS conversion 26") public void GIGS_65026() throws FactoryException
      Tests “GIGS conversion 26” conversion from the factory.
      • GIGS conversion code: 65026
      • GIGS conversion name: GIGS conversion 26
      • EPSG equivalence: 19931 – Egyseges Orszagos Vetuleti
      Conversion parameters
      Parameter nameValue
      Latitude of projection centre47°08′39.8174″ (47.1443937°)
      Longitude of projection centre19°02′54.8584″ (19.0485718°)
      Azimuth of initial line90°00′00″ (90°)
      Angle from Rectified to Skew Grid90°00′00″ (90°)
      Scale factor on initial line0.99993 Unity
      Easting at projection centre650000 metres
      Northing at projection centre200000 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65027

      @Test @DisplayName("GIGS conversion 27") public void GIGS_65027() throws FactoryException
      Tests “GIGS conversion 27” conversion from the factory.
      • GIGS conversion code: 65027
      • GIGS conversion name: GIGS conversion 27
      • EPSG equivalence: 19905 – Netherlands East Indies Equatorial Zone
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin110°
      Scale factor at natural origin0.997 Unity
      False easting3900000 metres
      False northing900000 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65028

      @Test @DisplayName("GIGS conversion 28") public void GIGS_65028() throws FactoryException
      Tests “GIGS conversion 28” conversion from the factory.
      • GIGS conversion code: 65028
      • GIGS conversion name: GIGS conversion 28
      • EPSG equivalence: 16008 – UTM zone 8N
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin-135°
      Scale factor at natural origin0.9996 Unity
      False easting500000 metres
      False northing0 metre
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65021

      @Test @DisplayName("GIGS conversion 2 alt A") public void GIGS_65021() throws FactoryException
      Tests “GIGS conversion 2 alt A” conversion from the factory.
      • GIGS conversion code: 65021
      • GIGS conversion name: GIGS conversion 2 alt A
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin-2°
      Scale factor at natural origin0.9996012717 Unity
      False easting400000 metres
      False northing-5527462.688 metres
      Remarks: No direct EPSG equivalent. Alternative when applied to WGS 84 ellipsoid. Only needed if 61002 is not possible.
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65022

      @Test @DisplayName("GIGS conversion 2 alt B") public void GIGS_65022() throws FactoryException
      Tests “GIGS conversion 2 alt B” conversion from the factory.
      • GIGS conversion code: 65022
      • GIGS conversion name: GIGS conversion 2 alt B
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin-2°
      Scale factor at natural origin0.9996012717 Unity
      False easting400000 metres
      False northing-5527063.816 metres
      Remarks: No direct EPSG equivalent. Alternative when applied to Airy 1830 ellipsoid. Only needed if 61002 is not possible.
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65004

      @Test @DisplayName("GIGS conversion 4") public void GIGS_65004() throws FactoryException
      Tests “GIGS conversion 4” conversion from the factory.
      • GIGS conversion code: 65004
      • GIGS conversion name: GIGS conversion 4
      • EPSG equivalence: 19914 – RD New
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin52°09′22.178″ (52.15616056°)
      Longitude of natural origin5°23′15.5″ (5.387638889°)
      Scale factor at natural origin0.9999079 Unity
      False easting155000 metres
      False northing463000 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65005

      @Test @DisplayName("GIGS conversion 5") public void GIGS_65005() throws FactoryException
      Tests “GIGS conversion 5” conversion from the factory.
      • GIGS conversion code: 65005
      • GIGS conversion name: GIGS conversion 5
      • EPSG equivalence: 5328 – Netherlands East Indies Equatorial Zone (Jkt)
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin3°11′32.21″ (3.192280556°)
      Scale factor at natural origin0.997 Unity
      False easting3900000 metres
      False northing900000 metres
      Remarks: EPSG 19905 but referenced to Jakarta meridian rather than Greenwich meridian. May also be defined as Mercator (1 SP) with SP1 at 4.454051545897510067.
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65006

      @Test @DisplayName("GIGS conversion 6") public void GIGS_65006() throws FactoryException
      Tests “GIGS conversion 6” conversion from the factory.
      • GIGS conversion code: 65006
      • GIGS conversion name: GIGS conversion 6
      • EPSG equivalence: 19961 – Belgian Lambert 72
      Conversion parameters
      Parameter nameValue
      Latitude of false origin90°00′00″
      Longitude of false origin4°22′02.952″ (4.367486667°)
      Latitude of 1st standard parallel51°10′00.00204″ (51.16666723°)
      Latitude of 2nd standard parallel49°50′00.00204″ (49.8333339°)
      Easting at false origin150000.013 metres
      Northing at false origin5400088.438 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65007

      @Test @DisplayName("GIGS conversion 7") public void GIGS_65007() throws FactoryException
      Tests “GIGS conversion 7” conversion from the factory.
      • GIGS conversion code: 65007
      • GIGS conversion name: GIGS conversion 7
      • EPSG equivalence: 17454 – Australian Map Grid zone 54
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin141°
      Scale factor at natural origin0.9996 Unity
      False easting500000 metres
      False northing10000000 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65008

      @Test @DisplayName("GIGS conversion 8") public void GIGS_65008() throws FactoryException
      Tests “GIGS conversion 8” conversion from the factory.
      • GIGS conversion code: 65008
      • GIGS conversion name: GIGS conversion 8
      • EPSG equivalence: 17455 – Australian Map Grid zone 55
      Conversion parameters
      Parameter nameValue
      Latitude of natural origin
      Longitude of natural origin147°
      Scale factor at natural origin0.9996 Unity
      False easting500000 metres
      False northing10000000 metres
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.
    • GIGS_65009

      @Test @DisplayName("GIGS conversion 9") public void GIGS_65009() throws FactoryException
      Tests “GIGS conversion 9” conversion from the factory.
      • GIGS conversion code: 65009
      • GIGS conversion name: GIGS conversion 9
      • EPSG equivalence: 17365 – Australian Albers
      Conversion parameters
      Parameter nameValue
      Latitude of false origin
      Longitude of false origin132°
      Latitude of 1st standard parallel-18°
      Latitude of 2nd standard parallel-36°
      Easting at false origin0 metre
      Northing at false origin0 metre
      Throws:
      FactoryException - if an error occurred while creating the conversion from the properties.