Verifies reference prime meridians bundled with the geoscience software.
Test description
Test method:
Compare prime meridian definitions included in the software against the EPSG Dataset.
Test data:
GIGS_lib_2203_PrimeMeridian.txt
and EPSG Dataset.
Tested API:
DatumAuthorityFactory.createPrimeMeridian(String)
.
Expected result:
Prime meridian definitions bundled with the software should have the same name and Greenwich Longitude
as in the EPSG Dataset. Equivalent alternative units are acceptable but should be reported.
The values of the Greenwich Longitude should be correct to at least 7 decimal places (of degrees or grads).
Meridians 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,
implementers can define a subclass in their own test suite as in the example below:
Copy
public class MyTest extends Test2203 {
public MyTest() {
super(new MyDatumAuthorityFactory());
}
}
Since:
1.0
Field Summary
Fields
Factory to use for building
PrimeMeridian
instances, or
null
if none.
double
The expected Greenwich longitude in decimal degrees.
Constructor Summary
Constructors
Creates a new test using the given factory.
Method Summary
All Methods Instance Methods Concrete Methods
void
Tests “Greenwich” prime meridian creation from the factory.
void
Tests “Lisbon” prime meridian creation from the factory.
void
Tests “Paris” prime meridian creation from the factory.
void
Tests “Bogota” prime meridian creation from the factory.
void
Tests “Madrid” prime meridian creation from the factory.
void
Tests “Rome” prime meridian creation from the factory.
void
Tests “Bern” prime meridian creation from the factory.
void
Tests “Jakarta” prime meridian creation from the factory.
void
Tests “Ferro” prime meridian creation from the factory.
void
Tests “Brussels” prime meridian creation from the factory.
void
Tests “Stockholm” prime meridian creation from the factory.
void
Tests “Athens” prime meridian creation from the factory.
void
Tests “Oslo” prime meridian creation from the factory.
void
Tests “Paris RGS” prime meridian creation from the factory.
Returns the prime meridian instance to be tested.
Methods inherited from class Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
greenwichLongitude
public double greenwichLongitude
The expected Greenwich longitude in decimal degrees.
This field is set by all test methods before to create and verify the
PrimeMeridian
instance.
Constructor Details
Test2203
Creates a new test using the given factory. If a given factory is null
,
then the tests which depend on it will be skipped.
Parameters:
datumFactory
- factory for creating PrimeMeridian
instances.
Method Details
EPSG_8912
Tests “Athens” prime meridian creation from the factory.
EPSG prime meridian code: 8912
EPSG prime meridian name: Athens
Greenwich longitude: 23°42′58.815″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Greece
Remarks: Used in Greece for older mapping based on Hatt projection.
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8907
Tests “Bern” prime meridian creation from the factory.
EPSG prime meridian code: 8907
EPSG prime meridian name: Bern
Greenwich longitude: 7°26′22.5″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Europe
Remarks: 1895 value.
Newer value of 7°26′22.335″ determined in 1938.
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8904
Tests “Bogota” prime meridian creation from the factory.
EPSG prime meridian code: 8904
EPSG prime meridian name: Bogota
Greenwich longitude: -74°04′51.3″
Angular unit: sexagesimal DMS
EPSG Usage Extent: South America
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8910
Tests “Brussels” prime meridian creation from the factory.
EPSG prime meridian code: 8910
EPSG prime meridian name: Brussels
Greenwich longitude: 4°22′04.71″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Europe
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8909
Tests “Ferro” prime meridian creation from the factory.
EPSG prime meridian code: 8909
EPSG prime meridian name: Ferro
Alias(es) given by EPSG: El Hierro
Greenwich longitude: -17°40′
Angular unit: sexagesimal DMS
EPSG Usage Extent: Western Europe
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8901
Tests “Greenwich” prime meridian creation from the factory.
EPSG prime meridian code: 8901
EPSG prime meridian name: Greenwich
Greenwich longitude: 0°
Angular unit: degree
EPSG Usage Extent: Numerous
Remarks: International reference meridian as defined by IERS.
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8908
Tests “Jakarta” prime meridian creation from the factory.
EPSG prime meridian code: 8908
EPSG prime meridian name: Jakarta
Greenwich longitude: 106°48′27.79″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Southeast Asia
Remarks: 1924 determination.
Supersedes 1910 value of 106°48′37.05″E of Greenwich.
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8902
Tests “Lisbon” prime meridian creation from the factory.
EPSG prime meridian code: 8902
EPSG prime meridian name: Lisbon
Greenwich longitude: -9°07′54.862″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Europe
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8905
Tests “Madrid” prime meridian creation from the factory.
EPSG prime meridian code: 8905
EPSG prime meridian name: Madrid
Greenwich longitude: -3°41′14.55″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Spain
Remarks: Longitude has had various determinations.
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8913
Tests “Oslo” prime meridian creation from the factory.
EPSG prime meridian code: 8913
EPSG prime meridian name: Oslo
Alias(es) given by EPSG: Kristiania , Christiana
Greenwich longitude: 10°43′22.5″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Scandinavia
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8903
Tests “Paris” prime meridian creation from the factory.
EPSG prime meridian code: 8903
EPSG prime meridian name: Paris
Greenwich longitude: 2.5969213
Angular unit: grad
EPSG Usage Extent: Europe
Remarks: Value adopted by IGN (Paris) in 1936.
Equivalent to 2°20′14.025″.
Preferred by EPSG to earlier value of 2 20 13.95 (2.596898 grads) used by RGS London.
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8914
Tests “Paris RGS” prime meridian creation from the factory.
EPSG prime meridian code: 8914
EPSG prime meridian name: Paris RGS
Greenwich longitude: 2°20′13.95″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Europe
Remarks: Equivalent to 2.596898 grads.
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8906
Tests “Rome” prime meridian creation from the factory.
EPSG prime meridian code: 8906
EPSG prime meridian name: Rome
Greenwich longitude: 12°27′08.4″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Europe
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.
EPSG_8911
Tests “Stockholm” prime meridian creation from the factory.
EPSG prime meridian code: 8911
EPSG prime meridian name: Stockholm
Greenwich longitude: 18°03′29.8″
Angular unit: sexagesimal DMS
EPSG Usage Extent: Europe
Throws:
FactoryException
- if an error occurred while creating the prime meridian from the EPSG code.