Verifies that the software allows correct definition of a user-defined conversion.
Test method: | Create user-defined projection for each of several different conversions. |
---|---|
Test data: | GIGS_user_3206_Conversion.txt
|
Tested API: | MathTransformFactory.getAvailableMethods(Class) andCoordinateOperationFactory.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
FieldsModifier and TypeFieldDescriptionprotected final CoordinateOperationFactory
Factory to use for buildingConversion
instances, ornull
if none.The name of the operation method to use.protected final MathTransformFactory
The factory to use for fetching operation methods, ornull
if none.The parameters defining the map projection to create.Fields inherited from class Series3000
isFactoryPreservingUserValues, properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Field Details
-
methodName
The name of the operation method to use. This field is set by all test methods before to create and verify theConversion
instance. -
parameters
The parameters defining the map projection to create. This field is set by all test methods before to create and verify theConversion
instance. -
copFactory
Factory to use for buildingConversion
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method. -
mtFactory
The factory to use for fetching operation methods, ornull
if none.
-
-
Constructor Details
-
Test3206
Creates a new test using the given factories. The factories needed by this class areCoordinateOperationFactory
andMathTransformFactory
. If a requested factory isnull
, then the tests which depend on it will be skipped.- Parameters:
factories
- factories for creating the instances to test.
-
-
Method Details
-
getIdentifiedObject
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 fromCoordinateOperationFactory
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<Conversion>
- Returns:
- the conversion instance to test.
- Throws:
FactoryException
- if an error occurred while creating the conversion instance.
-
GIGS_65001
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 name Value Latitude of natural origin 0° Longitude of natural origin 3° Scale factor at natural origin 0.9996 Unity False easting 500000 metres False northing 0 metre - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65010
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 name Value Latitude of natural origin 0° Longitude of natural origin 21° Scale factor at natural origin 1 Unity False easting 0 metre False northing 0 metre - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65011
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 name Value Latitude of natural origin -90° Longitude of natural origin -60° Scale factor at natural origin 1 Unity False easting 5500000 metres False northing 0 metre - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65012
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 name Value Latitude of natural origin 0° Longitude of natural origin -54° False easting 5000000 metres False northing 10000000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65013
Tests “GIGS conversion 13” conversion from the factory.- GIGS conversion code: 65013
- GIGS conversion name: GIGS conversion 13
Conversion parameters Parameter name Value Latitude of projection centre 4° Longitude of projection centre 115° Azimuth of initial line 53°18′56.9158″ (53.31580994°) Angle from Rectified to Skew Grid 53°07′48.3685″ (53.13010236°) Scale factor on initial line 0.99984 Unity Easting at projection centre 590521.147 metres Northing at projection centre 442890.861 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65014
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 name Value Latitude of projection centre 4° Longitude of projection centre 115° Azimuth of initial line 53°18′56.9158″ (53.31580994°) Angle from Rectified to Skew Grid 53°07′48.3685″ (53.13010236°) Scale factor on initial line 0.99984 Unity False easting 0 metre False northing 0 metre - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65015
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 name Value Latitude of natural origin 2°07′18.04708″ (2.121679722°) Longitude of natural origin 103°25′40.57045″ (103.4279362°) False easting -14810.562 metres False northing 8758.32 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65016
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 name Value Latitude of natural origin 52° Longitude of natural origin 10° False easting 4321000 metres False northing 3210000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65017
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 name Value Latitude of false origin 40°20′00″ (40.33333333°) Longitude of false origin -111°30′00″ (-111.5°) Latitude of 1st standard parallel 41°47′00″ (41.78333333°) Latitude of 2nd standard parallel 40°43′00″ (40.71666667°) Easting at false origin 1640419.948 foots Northing at false origin 3280839.895 foots - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65018
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 name Value Latitude of false origin 40°20′00″ (40.33333333°) Longitude of false origin -111°30′00″ (-111.5°) Latitude of 1st standard parallel 41°47′00″ (41.78333333°) Latitude of 2nd standard parallel 40°43′00″ (40.71666667°) Easting at false origin 1640416.667 US survey foots Northing at false origin 3280833.333 US survey foots - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65019
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 name Value Latitude of natural origin 52 grads Longitude of natural origin 0 grad Scale factor at natural origin 0.99987742 Unity False easting 600000 metres False northing 2200000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65002
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 name Value Latitude of natural origin 49° Longitude of natural origin -2° Scale factor at natural origin 0.9996012717 Unity False easting 400000 metres False northing -100000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65023
Tests “GIGS conversion 23” conversion from the factory.- GIGS conversion code: 65023
- GIGS conversion name: GIGS conversion 23
Conversion parameters Parameter name Value Latitude of natural origin 0° Longitude of natural origin 3° Scale factor at natural origin 0.9996 Unity False easting 1640416.667 US survey foots False northing 0 US survey foot - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65024
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 name Value Latitude of 1st standard parallel 42° Longitude of natural origin 51° False easting 0 metre False northing 0 metre - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65025
Tests “GIGS conversion 25” conversion from the factory.- GIGS conversion code: 65025
- GIGS conversion name: GIGS conversion 25
Conversion parameters Parameter name Value Latitude of natural origin 46°48′00″ (46.8°) Longitude of natural origin 2°20′14.025″ (2.337229167°) Scale factor at natural origin 0.99987742 Unity False easting 600000 metres False northing 2200000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65026
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 name Value Latitude of projection centre 47°08′39.8174″ (47.1443937°) Longitude of projection centre 19°02′54.8584″ (19.0485718°) Azimuth of initial line 90°00′00″ (90°) Angle from Rectified to Skew Grid 90°00′00″ (90°) Scale factor on initial line 0.99993 Unity Easting at projection centre 650000 metres Northing at projection centre 200000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65027
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 name Value Latitude of natural origin 0° Longitude of natural origin 110° Scale factor at natural origin 0.997 Unity False easting 3900000 metres False northing 900000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65028
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 name Value Latitude of natural origin 0° Longitude of natural origin -135° Scale factor at natural origin 0.9996 Unity False easting 500000 metres False northing 0 metre - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65021
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 name Value Latitude of natural origin 0° Longitude of natural origin -2° Scale factor at natural origin 0.9996012717 Unity False easting 400000 metres False northing -5527462.688 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65022
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 name Value Latitude of natural origin 0° Longitude of natural origin -2° Scale factor at natural origin 0.9996012717 Unity False easting 400000 metres False northing -5527063.816 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65004
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 name Value Latitude of natural origin 52°09′22.178″ (52.15616056°) Longitude of natural origin 5°23′15.5″ (5.387638889°) Scale factor at natural origin 0.9999079 Unity False easting 155000 metres False northing 463000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65005
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 name Value Latitude of natural origin 0° Longitude of natural origin 3°11′32.21″ (3.192280556°) Scale factor at natural origin 0.997 Unity False easting 3900000 metres False northing 900000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65006
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 name Value Latitude of false origin 90°00′00″ Longitude of false origin 4°22′02.952″ (4.367486667°) Latitude of 1st standard parallel 51°10′00.00204″ (51.16666723°) Latitude of 2nd standard parallel 49°50′00.00204″ (49.8333339°) Easting at false origin 150000.013 metres Northing at false origin 5400088.438 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65007
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 name Value Latitude of natural origin 0° Longitude of natural origin 141° Scale factor at natural origin 0.9996 Unity False easting 500000 metres False northing 10000000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65008
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 name Value Latitude of natural origin 0° Longitude of natural origin 147° Scale factor at natural origin 0.9996 Unity False easting 500000 metres False northing 10000000 metres - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-
GIGS_65009
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 name Value Latitude of false origin 0° Longitude of false origin 132° Latitude of 1st standard parallel -18° Latitude of 2nd standard parallel -36° Easting at false origin 0 metre Northing at false origin 0 metre - Throws:
FactoryException
- if an error occurred while creating the conversion from the properties.
-