Verifies that the software allows correct definition of a user-defined geodetic datum.
Each test method in this class instantiate exactly one
GeodeticDatum
.
Test method: | Create user-defined geodetic datum for each of several different datums. |
---|---|
Test data: | GIGS_user_3204_GeodeticDatum.txt
|
Tested API: | DatumFactory.createGeodeticDatum(Map, Ellipsoid, PrimeMeridian) . |
Expected result: | The 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 Test3204 {
public MyTest() {
super(new MyFactories());
}
}
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DatumAuthorityFactory
protected final DatumFactory
Factory to use for buildingGeodeticDatum
instances, ornull
if none.Fields inherited from class Series3000
isFactoryPreservingUserValues, properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the geodetic datum instance to be tested.void
Tests “GIGS geodetic datum A” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum B” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum C” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum D” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum E” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum F” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum G” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum H” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum J” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum T” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum L” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum K” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum X” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum Y” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum Z” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum M” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum ZZ” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum BB” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum FF” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum CC” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum EE” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum AA” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum HH” geodetic datum creation from the factory.void
Tests “GIGS geodetic datum DD” geodetic datum creation from the factory.
-
Field Details
-
datumFactory
Factory to use for buildingGeodeticDatum
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method. May also be used for buildingEllipsoid
andPrimeMeridian
components. -
datumAuthorityFactory
Factory to use for buildingEllipsoid
andPrimeMeridian
components, ornull
if none. This is used only for tests with EPSG codes for datum components.
-
-
Constructor Details
-
Test3204
Creates a new test using the given factories. The factories needed by this class areDatumFactory
and optionallyDatumAuthorityFactory
. If a requested factory isnull
, then the tests which depend on it will be skipped.Authority factory usage
The authority factory is used only for some test cases where the components are fetched by EPSG codes instead of being built by user. Those test cases are identified by the "definition source" line in Javadoc.- Parameters:
factories
- factories for creating the instances to test.
-
-
Method Details
-
getIdentifiedObject
Returns the geodetic datum instance to be tested. When this method is invoked for the first time, it creates the geodetic datum to test by invoking the corresponding method fromDatumFactory
with the currentproperties
map in argument. The created object is then cached and returned in all subsequent invocations of this method.- Specified by:
getIdentifiedObject
in classSeries3000<GeodeticDatum>
- Returns:
- the geodetic datum instance to test.
- Throws:
FactoryException
- if an error occurred while creating the geodetic datum instance.
-
GIGS_66001
Tests “GIGS geodetic datum A” geodetic datum creation from the factory.- GIGS datum code: 66001
- GIGS datum name: GIGS geodetic datum A
- EPSG equivalence: 6326 – World Geodetic System 1984 ensemble
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid A
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66326
Tests “GIGS geodetic datum AA” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66001()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66326
- GIGS datum name: GIGS geodetic datum AA
- EPSG equivalence: 6326 – World Geodetic System 1984 ensemble
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: WGS 84
- Prime meridian name: Greenwich
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66002
Tests “GIGS geodetic datum B” geodetic datum creation from the factory.- GIGS datum code: 66002
- GIGS datum name: GIGS geodetic datum B
- EPSG equivalence: 6277 – Ordnance Survey of Great Britain 1936
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid B
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66277
Tests “GIGS geodetic datum BB” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66002()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66277
- GIGS datum name: GIGS geodetic datum BB
- EPSG equivalence: 6277 – Ordnance Survey of Great Britain 1936
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: Airy 1830
- Prime meridian name: Greenwich
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66003
Tests “GIGS geodetic datum C” geodetic datum creation from the factory.- GIGS datum code: 66003
- GIGS datum name: GIGS geodetic datum C
- EPSG equivalence: 6289 – Amersfoort
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid C
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66289
Tests “GIGS geodetic datum CC” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66003()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66289
- GIGS datum name: GIGS geodetic datum CC
- EPSG equivalence: 6289 – Amersfoort
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: Bessel 1841
- Prime meridian name: Greenwich
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66004
Tests “GIGS geodetic datum D” geodetic datum creation from the factory.- GIGS datum code: 66004
- GIGS datum name: GIGS geodetic datum D
- EPSG equivalence: 6813 – Batavia (Jakarta)
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid C
- Prime meridian name: GIGS PM D
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66813
Tests “GIGS geodetic datum DD” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66004()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66813
- GIGS datum name: GIGS geodetic datum DD
- EPSG equivalence: 6813 – Batavia (Jakarta)
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: Bessel 1841
- Prime meridian name: Jakarta
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66005
Tests “GIGS geodetic datum E” geodetic datum creation from the factory.- GIGS datum code: 66005
- GIGS datum name: GIGS geodetic datum E
- EPSG equivalence: 6313 – Reseau National Belge 1972
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid E
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66313
Tests “GIGS geodetic datum EE” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66005()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66313
- GIGS datum name: GIGS geodetic datum EE
- EPSG equivalence: 6313 – Reseau National Belge 1972
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: International 1924
- Prime meridian name: Greenwich
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66006
Tests “GIGS geodetic datum F” geodetic datum creation from the factory.- GIGS datum code: 66006
- GIGS datum name: GIGS geodetic datum F
- EPSG equivalence: 6283 – Geocentric Datum of Australia 1994
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid F
- Prime meridian name: GIGS PM A
- Datum origin: Origin F
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66283
Tests “GIGS geodetic datum FF” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66006()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66283
- GIGS datum name: GIGS geodetic datum FF
- EPSG equivalence: 6283 – Geocentric Datum of Australia 1994
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: GRS 1980
- Prime meridian name: Greenwich
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66007
Tests “GIGS geodetic datum G” geodetic datum creation from the factory.- GIGS datum code: 66007
- GIGS datum name: GIGS geodetic datum G
- EPSG equivalence (1 of 5): 6258 – European Terrestrial Reference System 1989 ensemble
- EPSG equivalence (2 of 5): 6742 – Geodetic Datum of Malaysia 2000
- EPSG equivalence (3 of 5): 6152 – NAD83 (High Accuracy Reference Network)
- EPSG equivalence (4 of 5): 6190 – Posiciones Geodesicas Argentinas 1998
- EPSG equivalence (5 of 5): 6674 – Sistema de Referencia Geocentrico para las AmericaS 2000
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid F
- Prime meridian name: GIGS PM A
- Datum origin: Origin(s) G
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.
-
GIGS_66008
Tests “GIGS geodetic datum H” geodetic datum creation from the factory.- GIGS datum code: 66008
- GIGS datum name: GIGS geodetic datum H
- EPSG equivalence: 6807 – Nouvelle Triangulation Francaise (Paris)
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid H
- Prime meridian name: GIGS PM H
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66807
Tests “GIGS geodetic datum HH” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66008()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66807
- GIGS datum name: GIGS geodetic datum HH
- EPSG equivalence: 6807 – Nouvelle Triangulation Francaise (Paris)
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: Clarke 1880 (IGN)
- Prime meridian name: Paris
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66009
Tests “GIGS geodetic datum J” geodetic datum creation from the factory.- GIGS datum code: 66009
- GIGS datum name: GIGS geodetic datum J
- EPSG equivalence: 6267 – North American Datum 1927
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid J
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66012
Tests “GIGS geodetic datum K” geodetic datum creation from the factory.- GIGS datum code: 66012
- GIGS datum name: GIGS geodetic datum K
- EPSG equivalence: 6237 – Hungarian Datum 1972
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid K
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66011
Tests “GIGS geodetic datum L” geodetic datum creation from the factory.- GIGS datum code: 66011
- GIGS datum name: GIGS geodetic datum L
- EPSG equivalence: 6211 – Batavia
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid C
- Prime meridian name: GIGS PM A
- Datum origin: Origin L
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66016
Tests “GIGS geodetic datum M” geodetic datum creation from the factory.- GIGS datum code: 66016
- GIGS datum name: GIGS geodetic datum M
- EPSG equivalence: 6230 – European Datum 1950
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid E
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66010
Tests “GIGS geodetic datum T” geodetic datum creation from the factory.- GIGS datum code: 66010
- GIGS datum name: GIGS geodetic datum T
- EPSG equivalence: 6275 – Nouvelle Triangulation Francaise
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid H
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66013
Tests “GIGS geodetic datum X” geodetic datum creation from the factory.- GIGS datum code: 66013
- GIGS datum name: GIGS geodetic datum X
- EPSG equivalence: 6202 – Australian Geodetic Datum 1966
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid X
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66014
Tests “GIGS geodetic datum Y” geodetic datum creation from the factory.- GIGS datum code: 66014
- GIGS datum name: GIGS geodetic datum Y
- EPSG equivalence: 6284 – Pulkovo 1942
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid Y
- Prime meridian name: GIGS PM A
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66015
Tests “GIGS geodetic datum Z” geodetic datum creation from the factory.- GIGS datum code: 66015
- GIGS datum name: GIGS geodetic datum Z
- EPSG equivalence: 6269 – North American Datum 1983
- Ellipsoid definition source: Described by user (build with
DatumFactory
) - Ellipsoid name: GIGS ellipsoid F
- Prime meridian name: GIGS PM A
- Datum origin: Origin Z
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-
GIGS_66269
Tests “GIGS geodetic datum ZZ” geodetic datum creation from the factory. This test creates the same datum thanGIGS_66015()
(except for the name), except that the ellipsoid and prime meridian are obtained from EPSG codes instead of being built by user.- GIGS datum code: 66269
- GIGS datum name: GIGS geodetic datum ZZ
- EPSG equivalence: 6269 – North American Datum 1983
- Ellipsoid definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Ellipsoid name: GRS 1980
- Prime meridian name: Greenwich
- Throws:
FactoryException
- if an error occurred while creating the datum from the properties.- See Also:
-