Verifies that the software allows correct definition of a user-defined geodetic CRS.
Test method: | Create user-defined objects for each of several different geodetic CRSs. |
---|---|
Test data: | GIGS_user_3205_GeodeticCRS.txt
|
Tested API: | CRSFactory.createGeographicCRS(Map, GeodeticDatum, EllipsoidalCS) andCSFactory.createEllipsoidalCS(Map, CoordinateSystemAxis, 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 Test3205 {
public MyTest() {
super(new MyFactories());
}
}
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CRSFactory
Factory to use for buildingGeodeticCRS
instances, ornull
if none.int
The Coordinate System EPSG Code of the CRS.protected final CSFactory
The factory to use for creating coordinate system instances.protected 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 CRS instance to be tested.void
Tests “GIGS geocenCRS A” Geocentric CRS from the factory.void
Tests “GIGS geog3DCRS A” Geographic 3D CRS from the factory.void
Tests “GIGS geogCRS A” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS Alonlat” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS B” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS C” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS D” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS E” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS F” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS G” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS H” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS J” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS T” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS L” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS K” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS X” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS Y” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS Z” Geographic 2D CRS from the factory.void
Tests “GIGS geog3DCRS B” Geographic 3D CRS from the factory.void
Tests “GIGS geogCRS M” Geographic 2D CRS from the factory.void
Tests “GIGS geog3DCRS C” Geographic 3D CRS from the factory.void
Tests “GIGS geog3DCRS E” Geographic 3D CRS from the factory.void
Tests “GIGS geogCRS Agr” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS ZZ” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS BB” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS FF” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS CC” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS EE” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS AA” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS HH” Geographic 2D CRS from the factory.void
Tests “GIGS geogCRS DD” Geographic 2D CRS from the factory.
-
Field Details
-
csCode
public int csCodeThe Coordinate System EPSG Code of the CRS. -
crsFactory
Factory to use for buildingGeodeticCRS
instances, ornull
if none. -
csFactory
The factory to use for creating coordinate system instances. -
datumFactory
Factory to use for buildingGeodeticDatum
instances, ornull
if none. May also be used for buildingEllipsoid
andPrimeMeridian
components. -
datumAuthorityFactory
Factory to use for buildingGeodeticDatum
andPrimeMeridian
components, ornull
if none. This is used only for tests with EPSG codes for datum components.
-
-
Constructor Details
-
Test3205
Creates a new test using the given factories. The factories needed by this class areCRSFactory
,CSFactory
,DatumFactory
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 CRS instance to be tested. When this method is invoked for the first time, it creates the geodetic CRS to test by invoking the corresponding method fromcrsFactory
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<GeodeticCRS>
- Returns:
- the geodetic CRS instance to test.
- Throws:
FactoryException
- if an error occurred while creating the geodetic datum instance.
-
GIGS_64001
Tests “GIGS geocenCRS A” Geocentric CRS from the factory.- GIGS CRS code: 64001
- GIGS CRS name: GIGS geocenCRS A
- EPSG equivalence: 4978 – WGS 84
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6500
- Geodetic CRS Type: Geocentric
- GIGS Datum code: 66001
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64002
Tests “GIGS geog3DCRS A” Geographic 3D CRS from the factory.- GIGS CRS code: 64002
- GIGS CRS name: GIGS geog3DCRS A
- EPSG equivalence: 4979 – WGS 84
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6423
- Geodetic CRS Type: Geographic 3D
- GIGS Datum code: 66001
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64019
Tests “GIGS geog3DCRS B” Geographic 3D CRS from the factory.- GIGS CRS code: 64019
- GIGS CRS name: GIGS geog3DCRS B
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6423
- Geodetic CRS Type: Geographic 3D
- GIGS Datum code: 66002
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64021
Tests “GIGS geog3DCRS C” Geographic 3D CRS from the factory.- GIGS CRS code: 64021
- GIGS CRS name: GIGS geog3DCRS C
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6423
- Geodetic CRS Type: Geographic 3D
- GIGS Datum code: 66003
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64022
Tests “GIGS geog3DCRS E” Geographic 3D CRS from the factory.- GIGS CRS code: 64022
- GIGS CRS name: GIGS geog3DCRS E
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6423
- Geodetic CRS Type: Geographic 3D
- GIGS Datum code: 66005
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64003
Tests “GIGS geogCRS A” Geographic 2D CRS from the factory.- GIGS CRS code: 64003
- GIGS CRS name: GIGS geogCRS A
- EPSG equivalence: 4326 – WGS 84
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66001
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64326
Tests “GIGS geogCRS AA” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64003()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64326
- GIGS CRS name: GIGS geogCRS AA
- EPSG equivalence: 4326 – WGS 84
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66326
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64033
Tests “GIGS geogCRS Agr” Geographic 2D CRS from the factory.- GIGS CRS code: 64033
- GIGS CRS name: GIGS geogCRS Agr
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6403
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66001
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64004
Tests “GIGS geogCRS Alonlat” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64033()
(except for the name), but with a different axis order.- GIGS CRS code: 64004
- GIGS CRS name: GIGS geogCRS Alonlat
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6424
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66001
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64005
Tests “GIGS geogCRS B” Geographic 2D CRS from the factory.- GIGS CRS code: 64005
- GIGS CRS name: GIGS geogCRS B
- EPSG equivalence: 4277 – OSGB36
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66002
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64277
Tests “GIGS geogCRS BB” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64005()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64277
- GIGS CRS name: GIGS geogCRS BB
- EPSG equivalence: 4277 – OSGB36
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66277
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64006
Tests “GIGS geogCRS C” Geographic 2D CRS from the factory.- GIGS CRS code: 64006
- GIGS CRS name: GIGS geogCRS C
- EPSG equivalence: 4289 – Amersfoort
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66003
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64289
Tests “GIGS geogCRS CC” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64006()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64289
- GIGS CRS name: GIGS geogCRS CC
- EPSG equivalence: 4289 – Amersfoort
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66289
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64007
Tests “GIGS geogCRS D” Geographic 2D CRS from the factory.- GIGS CRS code: 64007
- GIGS CRS name: GIGS geogCRS D
- EPSG equivalence: 4813 – Batavia (Jakarta)
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66004
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64813
Tests “GIGS geogCRS DD” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64007()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64813
- GIGS CRS name: GIGS geogCRS DD
- EPSG equivalence: 4813 – Batavia (Jakarta)
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66813
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64008
Tests “GIGS geogCRS E” Geographic 2D CRS from the factory.- GIGS CRS code: 64008
- GIGS CRS name: GIGS geogCRS E
- EPSG equivalence: 4313 – Belge 1972
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66005
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64313
Tests “GIGS geogCRS EE” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64008()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64313
- GIGS CRS name: GIGS geogCRS EE
- EPSG equivalence: 4313 – Belge 1972
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66313
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64009
Tests “GIGS geogCRS F” Geographic 2D CRS from the factory.- GIGS CRS code: 64009
- GIGS CRS name: GIGS geogCRS F
- EPSG equivalence: 4283 – GDA94
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66006
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64283
Tests “GIGS geogCRS FF” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64009()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64283
- GIGS CRS name: GIGS geogCRS FF
- EPSG equivalence: 4283 – GDA94
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66283
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64010
Tests “GIGS geogCRS G” Geographic 2D CRS from the factory.- GIGS CRS code: 64010
- GIGS CRS name: GIGS geogCRS G
- EPSG equivalence (1 of 6): 4258 – ETRS89
- EPSG equivalence (2 of 6): 4742 – GDM2000
- EPSG equivalence (3 of 6): 4152 – NAD83(HARN)
- EPSG equivalence (4 of 6): 4190 – POSGAR98
- EPSG equivalence (5 of 6): 4674 – SIRGAS 2000
- EPSG equivalence (6 of 6): 4148 – Hartebeesthoek94
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66007
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64011
Tests “GIGS geogCRS H” Geographic 2D CRS from the factory.- GIGS CRS code: 64011
- GIGS CRS name: GIGS geogCRS H
- EPSG equivalence: 4807 – NTF (Paris)
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6403
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66008
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64807
Tests “GIGS geogCRS HH” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64011()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64807
- GIGS CRS name: GIGS geogCRS HH
- EPSG equivalence: 4807 – NTF(Paris)
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66807
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64012
Tests “GIGS geogCRS J” Geographic 2D CRS from the factory.- GIGS CRS code: 64012
- GIGS CRS name: GIGS geogCRS J
- EPSG equivalence: 4267 – NAD27
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66009
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64015
Tests “GIGS geogCRS K” Geographic 2D CRS from the factory.- GIGS CRS code: 64015
- GIGS CRS name: GIGS geogCRS K
- EPSG equivalence: 4237 – HD72
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66012
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64014
Tests “GIGS geogCRS L” Geographic 2D CRS from the factory.- GIGS CRS code: 64014
- GIGS CRS name: GIGS geogCRS L
- EPSG equivalence: 4211 – Batavia
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66011
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64020
Tests “GIGS geogCRS M” Geographic 2D CRS from the factory.- GIGS CRS code: 64020
- GIGS CRS name: GIGS geogCRS M
- EPSG equivalence: 4230 – ED50
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66016
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64013
Tests “GIGS geogCRS T” Geographic 2D CRS from the factory.- GIGS CRS code: 64013
- GIGS CRS name: GIGS geogCRS T
- EPSG equivalence: 4275 – NTF
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6403
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66010
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64016
Tests “GIGS geogCRS X” Geographic 2D CRS from the factory.- GIGS CRS code: 64016
- GIGS CRS name: GIGS geogCRS X
- EPSG equivalence: 4202 – AGD66
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66013
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64017
Tests “GIGS geogCRS Y” Geographic 2D CRS from the factory.- GIGS CRS code: 64017
- GIGS CRS name: GIGS geogCRS Y
- EPSG equivalence: 4284 – Pulkovo 1942
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66014
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64018
Tests “GIGS geogCRS Z” Geographic 2D CRS from the factory.- GIGS CRS code: 64018
- GIGS CRS name: GIGS geogCRS Z
- EPSG equivalence: 4269 – NAD83
- Datum definition source: Described by user (build with
DatumFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66015
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-
GIGS_64269
Tests “GIGS geogCRS ZZ” Geographic 2D CRS from the factory. This test creates the same geodetic CRS thanGIGS_64018()
(except for the name), except that the geodetic datum is obtained from an EPSG code instead of being built by user.- GIGS CRS code: 64269
- GIGS CRS name: GIGS geogCRS ZZ
- EPSG equivalence: 4269 – NAD83
- Datum definition source: Fetched from EPSG dataset (build with
DatumAuthorityFactory
) - Coordinate System code: 6422
- Geodetic CRS Type: Geographic 2D
- GIGS Datum code: 66269
- Throws:
FactoryException
- if an error occurred while creating the CRS from the properties.
-