Verifies that the software allows correct definition of a user-defined ellipsoid.
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:
Copy
public class MyTest extends Test3202 {
public MyTest() {
super(new MyDatumFactory());
}
}
Since:
1.0
Field Summary
Fields
Unit<Length>
Factory to use for building
Ellipsoid
instances, or
null
if none.
double
boolean
boolean
true
if the ellipsoid is a sphere.
double
The ellipsoid semi-major axis length, in unit of
axisUnit
.
double
The ellipsoid semi-major axis length, in metres.
double
The ellipsoid semi-minor axis length, in unit of
axisUnit
.
Constructor Summary
Constructors
Creates a new test using the given factory.
Method Summary
All Methods Instance Methods Concrete Methods
Returns the ellipsoid instance to be tested.
void
Tests “GIGS ellipsoid B” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid X” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid C” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid J” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid H” ellipsoid creation from the factory.
void
Tests “GIGS ellipsoid F” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid E” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid Y” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid A” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid K” flattened sphere creation from the factory.
void
Tests “GIGS ellipsoid I” sphere creation from the factory.
Methods inherited from class Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
semiMajorInMetres
public double semiMajorInMetres
The ellipsoid semi-major axis length, in metres.
This field is set by all test methods before to create and verify the
Ellipsoid
instance.
semiMajorAxis
public double semiMajorAxis
The ellipsoid semi-major axis length, in unit of
axisUnit
.
This field is set by all test methods before to create and verify the
Ellipsoid
instance.
semiMinorAxis
public double semiMinorAxis
The ellipsoid semi-minor axis length, in unit of
axisUnit
.
This field is set by all test methods before to create and verify the
Ellipsoid
instance.
axisUnit
public Unit<Length> axisUnit
inverseFlattening
public double inverseFlattening
The inverse flattening factor (dimensionless),
or
Double.POSITIVE_INFINITY
if the ellipsoid is a sphere.
This field is set by all test methods before to create and verify the
Ellipsoid
instance.
isIvfDefinitive
public boolean isIvfDefinitive
false
if the second defining parameter is the
semiMinorAxis
length, or
true
if it is the
inverseFlattening
.
This field is set by all test methods before to create and verify the
Ellipsoid
instance.
isSphere
public boolean isSphere
Constructor Details
Test3202
Creates a new test using the given factory.
If the given factory is null
, then the tests will be skipped.
Parameters:
datumFactory
- factory for creating Ellipsoid
instances.
Method Details
getIdentifiedObject
Returns the ellipsoid instance to be tested. When this method is invoked for the first time,
it creates the ellipsoid to test by invoking the corresponding method from
DatumFactory
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 <Ellipsoid >
Returns:
the ellipsoid instance to test.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid instance.
GIGS_67030
Tests “GIGS ellipsoid A” flattened sphere creation from the factory.
GIGS ellipsoid code: 67030
GIGS ellipsoid name: GIGS ellipsoid A
EPSG equivalence: 7030 – WGS 84
Semi-major axis (a ): 6378137.0 metre
Semi-minor axis (b ): 6356752.3 metre
Inverse flattening (1/f ): 298.257223563
Remarks: Defined using a and 1/f.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67001
Tests “GIGS ellipsoid B” flattened sphere creation from the factory.
GIGS ellipsoid code: 67001
GIGS ellipsoid name: GIGS ellipsoid B
EPSG equivalence: 7001 – Airy 1830
Semi-major axis (a ): 6377563.396 metre
Semi-minor axis (b ): 6356256.909 metre
Inverse flattening (1/f ): 299.3249646
Remarks: Defined using a and 1/f.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67004
Tests “GIGS ellipsoid C” flattened sphere creation from the factory.
GIGS ellipsoid code: 67004
GIGS ellipsoid name: GIGS ellipsoid C
EPSG equivalence: 7004 – Bessel 1841
Semi-major axis (a ): 6377397.155 metre
Semi-minor axis (b ): 6356078.963 metre
Inverse flattening (1/f ): 299.1528128
Remarks: Defined using a and 1/f.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67022
Tests “GIGS ellipsoid E” flattened sphere creation from the factory.
GIGS ellipsoid code: 67022
GIGS ellipsoid name: GIGS ellipsoid E
EPSG equivalence: 7022 – International 1924
Semi-major axis (a ): 6378388.0 metre
Semi-minor axis (b ): 6356911.9 metre
Inverse flattening (1/f ): 297
Remarks: Defined using a and 1/f.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67019
Tests “GIGS ellipsoid F” flattened sphere creation from the factory.
GIGS ellipsoid code: 67019
GIGS ellipsoid name: GIGS ellipsoid F
EPSG equivalence: 7019 – GRS 1980
Semi-major axis (a ): 6378.137 kilometre (6378137.0 metres)
Semi-minor axis (b ): 6356.752 kilometre (6356752.0 metres)
Inverse flattening (1/f ): 298.257222101
Remarks: CAUTION defined in kilometre.
Not metre as per EPSG entity.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67011
Tests “GIGS ellipsoid H” ellipsoid creation from the factory.
GIGS ellipsoid code: 67011
GIGS ellipsoid name: GIGS ellipsoid H
EPSG equivalence: 7011 – Clarke 1880 (IGN)
Semi-major axis (a ): 6378249.2 metre
Semi-minor axis (b ): 6356515.0 metre
Inverse flattening (1/f ): 293.466
Remarks: Defined using a and b.
Calculated 1/f = 293.4660213.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67052
Tests “GIGS ellipsoid I” sphere creation from the factory.
GIGS ellipsoid code: 67052
GIGS ellipsoid name: GIGS ellipsoid I
EPSG equivalence: 7052 – Clarke 1866 Authalic Sphere
Semi-major axis (a ): 6370997.0 metre
Semi-minor axis (b ): 6370997.0 metre
Inverse flattening (1/f ): Infinity
Remarks: Sphere.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67008
Tests “GIGS ellipsoid J” flattened sphere creation from the factory.
GIGS ellipsoid code: 67008
GIGS ellipsoid name: GIGS ellipsoid J
EPSG equivalence: 7008 – Clarke 1866
Semi-major axis (a ): 20925832.164 US survey foot (6378206.4 metres)
Semi-minor axis (b ): 20854892.017 US survey foot (6356583.8 metres)
Inverse flattening (1/f ): 294.978698214
Remarks: Not metres.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67036
Tests “GIGS ellipsoid K” flattened sphere creation from the factory.
GIGS ellipsoid code: 67036
GIGS ellipsoid name: GIGS ellipsoid K
EPSG equivalence: 7036 – GRS 1967
Semi-major axis (a ): 6378160.0 metre
Semi-minor axis (b ): 6356774.5 metre
Inverse flattening (1/f ): 298.247167427
Remarks: Defined using a and 1/f.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67003
Tests “GIGS ellipsoid X” flattened sphere creation from the factory.
GIGS ellipsoid code: 67003
GIGS ellipsoid name: GIGS ellipsoid X
EPSG equivalence: 7003 – Australian National Spheroid
Semi-major axis (a ): 6378160.0 metre
Semi-minor axis (b ): 6356774.7 metre
Inverse flattening (1/f ): 298.25
Remarks: Defined using a and 1/f.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also:
GIGS_67024
Tests “GIGS ellipsoid Y” flattened sphere creation from the factory.
GIGS ellipsoid code: 67024
GIGS ellipsoid name: GIGS ellipsoid Y
EPSG equivalence: 7024 – Krassowsky 1940
Semi-major axis (a ): 6378245.0 metre
Semi-minor axis (b ): 6356863.0 metre
Inverse flattening (1/f ): 298.3
Remarks: Defined using a and 1/f.
Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the properties.
See Also: