Class GIGS2002
-
public class GIGS2002 extends AuthorityFactoryTestCase<Ellipsoid>
Verifies reference ellipsoid parameters bundled with the geoscience software.Test method: Compare ellipsoid definitions included in the software against the EPSG Dataset. Test data: GIGS_2002_libEllipsoid.csv
and EPSG Dataset. Contains EPSG code and name for the ellipsoid, commonly encountered alternative name(s) for the same object, the value and units for thesemi-major axis
, the conversion ratio to metres for these units, and then a second parameter which will be either the value of the inverse flattening (unitless) or the value of thesemi-minor axis
(in the same units as the semi-major axis). This class additionally contain a flag to indicate that the figure is a sphere: iffalse
the figure is an oblate ellipsoid.Tested API: DatumAuthorityFactory.createEllipsoid(String)
.Expected result: Ellipsoid definitions bundled with software, if any, should have same name and defining parameters as in the EPSG Dataset. Equivalent alternative parameters are acceptable but should be reported. The values of the parameters should be correct to at least 10 significant figures. For ellipsoids defined by Clarke and Everest, as well as those adopted by IUGG as International, several variants exist. These must be clearly distinguished. Ellipsoids missing from the software or at variance with those in the EPSG Dataset should be reported. Usage example: in order to specify their factories and run the tests in a JUnit framework, implementors can define a subclass in their own test suite as in the example below:import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.opengis.test.referencing.gigs.GIGS2002; @RunWith(JUnit4.class) public class MyTest extends GIGS2002 { public MyTest() { super(new MyDatumAuthorityFactory()); } }
- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description protected DatumAuthorityFactory
datumAuthorityFactory
Factory to use for buildingEllipsoid
instances, ornull
if none.double
inverseFlattening
The expected inverse flattening, orDouble.NaN
if the second defining parameters is not this field.boolean
isSphere
Indicates if the figure of the Earth is a sphere.double
semiMajorAxis
The expected semi-major axis length, in the units specified by the EPSG dataset.double
semiMinorAxis
The expected semi-minor axis length, orDouble.NaN
if the second defining parameters is not this field.-
Fields inherited from class AuthorityFactoryTestCase
aliases, code, isDependencyIdentificationSupported, isDeprecatedObjectCreationSupported, isStandardAliasSupported, isStandardNameSupported, name
-
Fields inherited from class TestCase
configurationTip, listener, units, validators
-
-
Constructor Summary
Constructors Constructor Description GIGS2002(DatumAuthorityFactory datumFactory)
Creates a new test using the given factory.
-
Method Summary
Modifier and Type Method Description Configuration
configuration()
Returns information about the configuration of the test which has been run.static List<Factory[]>
factories()
Returns a default set of factories to use for running the tests.Ellipsoid
getIdentifiedObject()
Returns the ellipsoid instance to be tested.double
getSemiMajorAxis(boolean inMetres)
Returns the length of the semi-major axis, either in the units specified by the EPSG dataset or in metres.double
getSemiMinorAxis(boolean inMetres)
Returns the length of the semi-minor axis, either in the units specified by the EPSG dataset or in metres.void
testAiry()
Tests “Airy 1830” ellipsoid creation from the factory.void
testAiryModified()
Tests “Airy Modified 1849” ellipsoid creation from the factory.void
testAustralianNationalSpheroid()
Tests “Australian National Spheroid” ellipsoid creation from the factory.void
testAverageTerrestrialSystem()
Tests “Average Terrestrial System 1977” ellipsoid creation from the factory.void
testBessel()
Tests “Bessel 1841” ellipsoid creation from the factory.void
testBesselModified()
Tests “Bessel Modified” ellipsoid creation from the factory.void
testBesselNamibia()
Tests “Bessel Namibia (GLM)” ellipsoid creation from the factory.void
testClarke1858()
Tests “Clarke 1858” ellipsoid creation from the factory.void
testClarke1866()
Tests “Clarke 1866” ellipsoid creation from the factory.void
testClarke1880()
Tests “Clarke 1880” ellipsoid creation from the factory.void
testClarkeArc()
Tests “Clarke 1880 (Arc)” ellipsoid creation from the factory.void
testClarkeAuthalicSphere()
Tests “Clarke 1866 Authalic Sphere” spheroid creation from the factory.void
testClarkeBenoit()
Tests “Clarke 1880 (Benoit)” ellipsoid creation from the factory.void
testClarkeIGN()
Tests “Clarke 1880 (IGN)” ellipsoid creation from the factory.void
testClarkeInternationalFoot()
Tests “Clarke 1880 (international foot)” ellipsoid creation from the factory.void
testClarkeMichigan()
Tests “Clarke 1866 Michigan” ellipsoid creation from the factory (deprecated).void
testClarkeRGS()
Tests “Clarke 1880 (RGS)” ellipsoid creation from the factory.void
testClarkeSGA()
Tests “Clarke 1880 (SGA 1922)” ellipsoid creation from the factory.void
testDanish()
Tests “Danish 1876” ellipsoid creation from the factory.void
testEverest1830()
Tests “Everest (1830 Definition)” ellipsoid creation from the factory.void
testEverest1937()
Tests “Everest 1830 (1937 Adjustment)” ellipsoid creation from the factory.void
testEverest1962()
Tests “Everest 1830 (1962 Definition)” ellipsoid creation from the factory.void
testEverest1967()
Tests “Everest 1830 (1967 Definition)” ellipsoid creation from the factory.void
testEverest1975()
Tests “Everest 1830 (1975 Definition)” ellipsoid creation from the factory.void
testEverestModified()
Tests “Everest 1830 Modified” ellipsoid creation from the factory.void
testEverestRSO()
Tests “Everest 1830 (RSO 1969)” ellipsoid creation from the factory.void
testGEM10C()
Tests “GEM 10C” ellipsoid creation from the factory.void
testGRS1967()
Tests “GRS 1967” ellipsoid creation from the factory.void
testGRS1967Modified()
Tests “GRS 1967 Modified” ellipsoid creation from the factory.void
testGRS1980()
Tests “GRS 1980” ellipsoid creation from the factory.void
testGRS1980AuthalicSphere()
Tests “GRS 1980 Authalic Sphere” spheroid creation from the factory.void
testHelmert()
Tests “Helmert 1906” ellipsoid creation from the factory.void
testHough1960()
Tests “Hough 1960” ellipsoid creation from the factory.void
testHughes1980()
Tests “Hughes 1980” ellipsoid creation from the factory.void
testIAG1975()
Tests “IAG 1975” ellipsoid creation from the factory.void
testIndonesianNational()
Tests “Indonesian National Spheroid” ellipsoid creation from the factory.void
testInternational1924()
Tests “International 1924” ellipsoid creation from the factory.void
testInternational1924AuthalicSphere()
Tests “International 1924 Authalic Sphere” spheroid creation from the factory.void
testKrassowsky()
Tests “Krassowsky 1940” ellipsoid creation from the factory.void
testNWL9D()
Tests “NWL 9D” ellipsoid creation from the factory.void
testOSU86F()
Tests “OSU86F” ellipsoid creation from the factory.void
testOSU91A()
Tests “OSU91A” ellipsoid creation from the factory.void
testPlessis()
Tests “Plessis 1817” ellipsoid creation from the factory.void
testPopularVisualisationSphere()
Tests “Popular Visualisation Sphere” spheroid creation from the factory (deprecated).void
testPZ90()
Tests “PZ-90” ellipsoid creation from the factory.void
testStruve()
Tests “Struve 1860” ellipsoid creation from the factory.void
testWarOffice()
Tests “War Office” ellipsoid creation from the factory.void
testWGS72()
Tests “WGS 72” ellipsoid creation from the factory.void
testWGS84()
Tests “WGS 84” ellipsoid creation from the factory.-
Methods inherited from class AuthorityFactoryTestCase
getVerifiableName
-
Methods inherited from class ReferencingTestCase
verifyCoordinateSystem, verifyFlattenedSphere, verifyGeographicExtent, verifyIdentification, verifyParameter, verifyPrimeMeridian, verifyTimeExtent, verifyVerticalExtent
-
Methods inherited from class TestCase
factories, factories, getEnabledFlags
-
-
-
-
Field Detail
-
semiMajorAxis
public double semiMajorAxis
The expected semi-major axis length, in the units specified by the EPSG dataset. This value can also be obtained as a length in metres by a call to thegetSemiMajorAxis(boolean)
method.- See Also:
getSemiMajorAxis(boolean)
-
semiMinorAxis
public double semiMinorAxis
The expected semi-minor axis length, orDouble.NaN
if the second defining parameters is not this field. If notNaN
, the value is in the same units thansemiMajorAxis
. This value can be obtained as a length in metres by a call to thegetSemiMinorAxis(boolean)
method.- See Also:
getSemiMinorAxis(boolean)
-
inverseFlattening
public double inverseFlattening
The expected inverse flattening, orDouble.NaN
if the second defining parameters is not this field.
-
isSphere
public boolean isSphere
Indicates if the figure of the Earth is a sphere. Iffalse
the figure is an oblate ellipsoid.
-
datumAuthorityFactory
protected final DatumAuthorityFactory datumAuthorityFactory
Factory to use for buildingEllipsoid
instances, ornull
if none. This is the factory used by thegetIdentifiedObject()
method.
-
-
Constructor Detail
-
GIGS2002
public GIGS2002(DatumAuthorityFactory datumFactory)
Creates a new test using the given factory. If a given factory isnull
, then the tests which depend on it will be skipped.- Parameters:
datumFactory
- factory for creatingEllipsoid
instances.
-
-
Method Detail
-
factories
public static List<Factory[]> factories()
Returns a default set of factories to use for running the tests. Those factories are given in arguments to the constructor when this test class is instantiated directly by JUnit (for example as a suite element), instead than subclassed by the implementor. The factories are fetched as documented in theTestCase.factories(Class[])
javadoc.- Returns:
- the default set of arguments to be given to the
GIGS2002
constructor.
-
configuration
public Configuration configuration()
Returns information about the configuration of the test which has been run. This method returns a map containing:- All the following values associated to the
Configuration.Key
of the same name:
- Overrides:
configuration
in classAuthorityFactoryTestCase<Ellipsoid>
- Returns:
- the configuration of the test being run.
- See Also:
ImplementationDetails.configuration(Factory[])
- All the following values associated to the
-
getIdentifiedObject
public Ellipsoid getIdentifiedObject() throws FactoryException
Returns the ellipsoid instance to be tested. When this method is invoked for the first time, it creates the ellipsoid to test by invoking theDatumAuthorityFactory.createEllipsoid(String)
method with the currentAuthorityFactoryTestCase.code
value in argument. The created object is then cached and returned in all subsequent invocations of this method.- Specified by:
getIdentifiedObject
in classAuthorityFactoryTestCase<Ellipsoid>
- Returns:
- the ellipsoid instance to test.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid instance.
-
getSemiMajorAxis
public double getSemiMajorAxis(boolean inMetres)
Returns the length of the semi-major axis, either in the units specified by the EPSG dataset or in metres.- Parameters:
inMetres
-true
for the length in metres.- Returns:
- the semi-major axis length, guaranteed to be in metres if
inMetres
istrue
. - See Also:
semiMajorAxis
-
getSemiMinorAxis
public double getSemiMinorAxis(boolean inMetres)
Returns the length of the semi-minor axis, either in the units specified by the EPSG dataset or in metres. This method can be invoked only if the semi-minor axis length is the second defining parameter.- Parameters:
inMetres
-true
for the length in metres.- Returns:
- the semi-minor axis length, guaranteed to be in metres if
inMetres
istrue
. - See Also:
semiMinorAxis
-
testAiry
public void testAiry() throws FactoryException
Tests “Airy 1830” ellipsoid creation from the factory.- EPSG ellipsoid code: 7001
- EPSG ellipsoid name: Airy 1830
- Semi-major axis (a): 6377563.396
- Inverse flattening (1/f): 299.3249646
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testAiry()
-
testAiryModified
public void testAiryModified() throws FactoryException
Tests “Airy Modified 1849” ellipsoid creation from the factory.- EPSG ellipsoid code: 7002
- EPSG ellipsoid name: Airy Modified 1849
- Semi-major axis (a): 6377340.189
- Inverse flattening (1/f): 299.3249646
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testAustralianNationalSpheroid
public void testAustralianNationalSpheroid() throws FactoryException
Tests “Australian National Spheroid” ellipsoid creation from the factory.- EPSG ellipsoid code: 7003
- EPSG ellipsoid name: Australian National Spheroid
- Alias(es) given by EPSG: ANS
- Semi-major axis (a): 6378160
- Inverse flattening (1/f): 298.25
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testAustralianNationalSpheroid()
-
testBessel
public void testBessel() throws FactoryException
Tests “Bessel 1841” ellipsoid creation from the factory.- EPSG ellipsoid code: 7004
- EPSG ellipsoid name: Bessel 1841
- Semi-major axis (a): 6377397.155
- Inverse flattening (1/f): 299.1528128
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testBessel()
-
testBesselNamibia
public void testBesselNamibia() throws FactoryException
Tests “Bessel Namibia (GLM)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7046
- EPSG ellipsoid name: Bessel Namibia (GLM)
- Semi-major axis (a): 6377397.155
- Inverse flattening (1/f): 299.1528128
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarke1858
public void testClarke1858() throws FactoryException
Tests “Clarke 1858” ellipsoid creation from the factory.- EPSG ellipsoid code: 7007
- EPSG ellipsoid name: Clarke 1858
- Semi-major axis (a): 20926348
- Semi-minor axis (b): 20855233
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarke1866
public void testClarke1866() throws FactoryException
Tests “Clarke 1866” ellipsoid creation from the factory.- EPSG ellipsoid code: 7008
- EPSG ellipsoid name: Clarke 1866
- Semi-major axis (a): 6378206.4
- Semi-minor axis (b): 6356583.8
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testClarke1866()
-
testClarkeMichigan
public void testClarkeMichigan() throws FactoryException
Tests “Clarke 1866 Michigan” ellipsoid creation from the factory (deprecated). This is test is executed only ifAuthorityFactoryTestCase.isDeprecatedObjectCreationSupported
istrue
.- EPSG ellipsoid code: 7009
- EPSG ellipsoid name: Clarke 1866 Michigan
- Semi-major axis (a): 20926631.531
- Semi-minor axis (b): 20855688.674
- Deprecated: Ellipsoid scaling moved from datum to map projection to accord with NGS practice.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarkeIGN
public void testClarkeIGN() throws FactoryException
Tests “Clarke 1880 (IGN)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7011
- EPSG ellipsoid name: Clarke 1880 (IGN)
- Semi-major axis (a): 6378249.2
- Semi-minor axis (b): 6356515
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testClarkeIGN()
-
testClarkeRGS
public void testClarkeRGS() throws FactoryException
Tests “Clarke 1880 (RGS)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7012
- EPSG ellipsoid name: Clarke 1880 (RGS)
- Alias(es) given by EPSG: Clarke Modified 1880
- Semi-major axis (a): 6378249.145
- Inverse flattening (1/f): 293.465
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testEverest1937
public void testEverest1937() throws FactoryException
Tests “Everest 1830 (1937 Adjustment)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7015
- EPSG ellipsoid name: Everest 1830 (1937 Adjustment)
- Semi-major axis (a): 6377276.345
- Inverse flattening (1/f): 300.8017
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testEverest1962
public void testEverest1962() throws FactoryException
Tests “Everest 1830 (1962 Definition)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7044
- EPSG ellipsoid name: Everest 1830 (1962 Definition)
- Semi-major axis (a): 6377301.243
- Inverse flattening (1/f): 300.8017255
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testEverest1967
public void testEverest1967() throws FactoryException
Tests “Everest 1830 (1967 Definition)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7016
- EPSG ellipsoid name: Everest 1830 (1967 Definition)
- Semi-major axis (a): 6377298.556
- Inverse flattening (1/f): 300.8017
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testEverest1975
public void testEverest1975() throws FactoryException
Tests “Everest 1830 (1975 Definition)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7045
- EPSG ellipsoid name: Everest 1830 (1975 Definition)
- Semi-major axis (a): 6377299.151
- Inverse flattening (1/f): 300.8017255
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testEverestModified
public void testEverestModified() throws FactoryException
Tests “Everest 1830 Modified” ellipsoid creation from the factory.- EPSG ellipsoid code: 7018
- EPSG ellipsoid name: Everest 1830 Modified
- Semi-major axis (a): 6377304.063
- Inverse flattening (1/f): 300.8017
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testGRS1967
public void testGRS1967() throws FactoryException
Tests “GRS 1967” ellipsoid creation from the factory.- EPSG ellipsoid code: 7036
- EPSG ellipsoid name: GRS 1967
- Alias(es) given by EPSG: International 1967
- Semi-major axis (a): 6378160
- Inverse flattening (1/f): 298.2471674
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testGRS1967()
-
testGRS1967Modified
public void testGRS1967Modified() throws FactoryException
Tests “GRS 1967 Modified” ellipsoid creation from the factory.- EPSG ellipsoid code: 7050
- EPSG ellipsoid name: GRS 1967 Modified
- Alias(es) given by EPSG: GRS 1967
- Semi-major axis (a): 6378160
- Inverse flattening (1/f): 298.25
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testGRS1980
public void testGRS1980() throws FactoryException
Tests “GRS 1980” ellipsoid creation from the factory.- EPSG ellipsoid code: 7019
- EPSG ellipsoid name: GRS 1980
- Alias(es) given by EPSG: International 1979
- Semi-major axis (a): 6378137
- Inverse flattening (1/f): 298.2572221
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testGRS1980()
-
testHelmert
public void testHelmert() throws FactoryException
Tests “Helmert 1906” ellipsoid creation from the factory.- EPSG ellipsoid code: 7020
- EPSG ellipsoid name: Helmert 1906
- Semi-major axis (a): 6378200
- Inverse flattening (1/f): 298.3
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testIndonesianNational
public void testIndonesianNational() throws FactoryException
Tests “Indonesian National Spheroid” ellipsoid creation from the factory.- EPSG ellipsoid code: 7021
- EPSG ellipsoid name: Indonesian National Spheroid
- Semi-major axis (a): 6378160
- Inverse flattening (1/f): 298.247
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testInternational1924
public void testInternational1924() throws FactoryException
Tests “International 1924” ellipsoid creation from the factory.- EPSG ellipsoid code: 7022
- EPSG ellipsoid name: International 1924
- Alias(es) given by EPSG: Hayford 1909
- Semi-major axis (a): 6378388
- Inverse flattening (1/f): 297
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testInternational1924()
-
testKrassowsky
public void testKrassowsky() throws FactoryException
Tests “Krassowsky 1940” ellipsoid creation from the factory.- EPSG ellipsoid code: 7024
- EPSG ellipsoid name: Krassowsky 1940
- Semi-major axis (a): 6378245
- Inverse flattening (1/f): 298.3
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testKrassowsky()
-
testWarOffice
public void testWarOffice() throws FactoryException
Tests “War Office” ellipsoid creation from the factory.- EPSG ellipsoid code: 7029
- EPSG ellipsoid name: War Office
- Alias(es) given by EPSG: McCaw 1924
- Semi-major axis (a): 6378300
- Inverse flattening (1/f): 296
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testWGS72
public void testWGS72() throws FactoryException
Tests “WGS 72” ellipsoid creation from the factory.- EPSG ellipsoid code: 7043
- EPSG ellipsoid name: WGS 72
- Alias(es) given by EPSG: NWL 10D
- Semi-major axis (a): 6378135
- Inverse flattening (1/f): 298.26
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testWGS84
public void testWGS84() throws FactoryException
Tests “WGS 84” ellipsoid creation from the factory.- EPSG ellipsoid code: 7030
- EPSG ellipsoid name: WGS 84
- Alias(es) given by EPSG: WGS84
- Semi-major axis (a): 6378137
- Inverse flattening (1/f): 298.257223563
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testWGS84()
-
testIAG1975
public void testIAG1975() throws FactoryException
Tests “IAG 1975” ellipsoid creation from the factory.- EPSG ellipsoid code: 7049
- EPSG ellipsoid name: IAG 1975
- Alias(es) given by EPSG: Xian 1980
- Semi-major axis (a): 6378140
- Inverse flattening (1/f): 298.257
- Particularly important to E&P industry.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testAverageTerrestrialSystem
public void testAverageTerrestrialSystem() throws FactoryException
Tests “Average Terrestrial System 1977” ellipsoid creation from the factory.- EPSG ellipsoid code: 7041
- EPSG ellipsoid name: Average Terrestrial System 1977
- Semi-major axis (a): 6378135
- Inverse flattening (1/f): 298.257
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testBesselModified
public void testBesselModified() throws FactoryException
Tests “Bessel Modified” ellipsoid creation from the factory.- EPSG ellipsoid code: 7005
- EPSG ellipsoid name: Bessel Modified
- Semi-major axis (a): 6377492.018
- Inverse flattening (1/f): 299.1528128
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarkeAuthalicSphere
public void testClarkeAuthalicSphere() throws FactoryException
Tests “Clarke 1866 Authalic Sphere” spheroid creation from the factory.- EPSG ellipsoid code: 7052
- EPSG ellipsoid name: Clarke 1866 Authalic Sphere
- Semi-major axis (a): 6370997
- Semi-minor axis (b): 6370997
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.- See Also:
GIGS3002.testClarkeAuthalicSphere()
-
testClarke1880
public void testClarke1880() throws FactoryException
Tests “Clarke 1880” ellipsoid creation from the factory.- EPSG ellipsoid code: 7034
- EPSG ellipsoid name: Clarke 1880
- Semi-major axis (a): 20926202
- Semi-minor axis (b): 20854895
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarkeArc
public void testClarkeArc() throws FactoryException
Tests “Clarke 1880 (Arc)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7013
- EPSG ellipsoid name: Clarke 1880 (Arc)
- Alias(es) given by EPSG: Modified Clarke 1880 (South Africa), Clarke 1880 (Cape)
- Semi-major axis (a): 6378249.145
- Inverse flattening (1/f): 293.4663077
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarkeBenoit
public void testClarkeBenoit() throws FactoryException
Tests “Clarke 1880 (Benoit)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7010
- EPSG ellipsoid name: Clarke 1880 (Benoit)
- Semi-major axis (a): 6378300.789
- Semi-minor axis (b): 6356566.435
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarkeInternationalFoot
public void testClarkeInternationalFoot() throws FactoryException
Tests “Clarke 1880 (international foot)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7055
- EPSG ellipsoid name: Clarke 1880 (international foot)
- Semi-major axis (a): 20926202
- Semi-minor axis (b): 20854895
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testClarkeSGA
public void testClarkeSGA() throws FactoryException
Tests “Clarke 1880 (SGA 1922)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7014
- EPSG ellipsoid name: Clarke 1880 (SGA 1922)
- Semi-major axis (a): 6378249.2
- Inverse flattening (1/f): 293.46598
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testDanish
public void testDanish() throws FactoryException
Tests “Danish 1876” ellipsoid creation from the factory.- EPSG ellipsoid code: 7051
- EPSG ellipsoid name: Danish 1876
- Semi-major axis (a): 6377019.27
- Inverse flattening (1/f): 300
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testEverest1830
public void testEverest1830() throws FactoryException
Tests “Everest (1830 Definition)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7042
- EPSG ellipsoid name: Everest (1830 Definition)
- Semi-major axis (a): 20922931.80
- Semi-minor axis (b): 20853374.58
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testEverestRSO
public void testEverestRSO() throws FactoryException
Tests “Everest 1830 (RSO 1969)” ellipsoid creation from the factory.- EPSG ellipsoid code: 7056
- EPSG ellipsoid name: Everest 1830 (RSO 1969)
- Semi-major axis (a): 6377295.664
- Inverse flattening (1/f): 300.8017
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testGEM10C
public void testGEM10C() throws FactoryException
Tests “GEM 10C” ellipsoid creation from the factory.- EPSG ellipsoid code: 7031
- EPSG ellipsoid name: GEM 10C
- Semi-major axis (a): 6378137
- Inverse flattening (1/f): 298.257223563
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testGRS1980AuthalicSphere
public void testGRS1980AuthalicSphere() throws FactoryException
Tests “GRS 1980 Authalic Sphere” spheroid creation from the factory.- EPSG ellipsoid code: 7048
- EPSG ellipsoid name: GRS 1980 Authalic Sphere
- Semi-major axis (a): 6371007
- Semi-minor axis (b): 6371007
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testHough1960
public void testHough1960() throws FactoryException
Tests “Hough 1960” ellipsoid creation from the factory.- EPSG ellipsoid code: 7053
- EPSG ellipsoid name: Hough 1960
- Semi-major axis (a): 6378270
- Inverse flattening (1/f): 297
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testHughes1980
public void testHughes1980() throws FactoryException
Tests “Hughes 1980” ellipsoid creation from the factory.- EPSG ellipsoid code: 7058
- EPSG ellipsoid name: Hughes 1980
- Semi-major axis (a): 6378273
- Semi-minor axis (b): 6356889.449
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testInternational1924AuthalicSphere
public void testInternational1924AuthalicSphere() throws FactoryException
Tests “International 1924 Authalic Sphere” spheroid creation from the factory.- EPSG ellipsoid code: 7057
- EPSG ellipsoid name: International 1924 Authalic Sphere
- Semi-major axis (a): 6371228
- Semi-minor axis (b): 6371228
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testNWL9D
public void testNWL9D() throws FactoryException
Tests “NWL 9D” ellipsoid creation from the factory.- EPSG ellipsoid code: 7025
- EPSG ellipsoid name: NWL 9D
- Alias(es) given by EPSG: WGS 66
- Semi-major axis (a): 6378145
- Inverse flattening (1/f): 298.25
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testOSU86F
public void testOSU86F() throws FactoryException
Tests “OSU86F” ellipsoid creation from the factory.- EPSG ellipsoid code: 7032
- EPSG ellipsoid name: OSU86F
- Semi-major axis (a): 6378136.2
- Inverse flattening (1/f): 298.257223563
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testOSU91A
public void testOSU91A() throws FactoryException
Tests “OSU91A” ellipsoid creation from the factory.- EPSG ellipsoid code: 7033
- EPSG ellipsoid name: OSU91A
- Semi-major axis (a): 6378136.3
- Inverse flattening (1/f): 298.257223563
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testPlessis
public void testPlessis() throws FactoryException
Tests “Plessis 1817” ellipsoid creation from the factory.- EPSG ellipsoid code: 7027
- EPSG ellipsoid name: Plessis 1817
- Semi-major axis (a): 6376523
- Inverse flattening (1/f): 308.64
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testPopularVisualisationSphere
public void testPopularVisualisationSphere() throws FactoryException
Tests “Popular Visualisation Sphere” spheroid creation from the factory (deprecated). This is test is executed only ifAuthorityFactoryTestCase.isDeprecatedObjectCreationSupported
istrue
.- EPSG ellipsoid code: 7059
- EPSG ellipsoid name: Popular Visualisation Sphere
- Semi-major axis (a): 6378137
- Semi-minor axis (b): 6378137
- Deprecated: IOGP revised its approach to description of Popular Visualisation CRS.
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testPZ90
public void testPZ90() throws FactoryException
Tests “PZ-90” ellipsoid creation from the factory.- EPSG ellipsoid code: 7054
- EPSG ellipsoid name: PZ-90
- Semi-major axis (a): 6378136
- Inverse flattening (1/f): 298.2578393
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
testStruve
public void testStruve() throws FactoryException
Tests “Struve 1860” ellipsoid creation from the factory.- EPSG ellipsoid code: 7028
- EPSG ellipsoid name: Struve 1860
- Semi-major axis (a): 6378298.3
- Inverse flattening (1/f): 294.73
- Throws:
FactoryException
- if an error occurred while creating the ellipsoid from the EPSG code.
-
-