Search in sources :

Example 16 with DefaultGeographicBoundingBox

use of org.apache.sis.metadata.iso.extent.DefaultGeographicBoundingBox in project sis by apache.

the class BursaWolfParametersTest method createED87_to_WGS84.

/**
 * Returns the parameters for the <cite>ED87 to WGS 84 (1)</cite> transformation (EPSG:1146).
 * Area of validity is the North Sea: 5.05°W to 11.13°E in longitude and 51.04°N to 62.0°N in latitude.
 */
static BursaWolfParameters createED87_to_WGS84() {
    final BursaWolfParameters bursaWolf = new BursaWolfParameters(GeodeticDatumMock.WGS84, new DefaultExtent("Europe - North Sea", new DefaultGeographicBoundingBox(-5.05, 11.13, 51.04, 62.0), null, null));
    bursaWolf.tX = -82.981;
    bursaWolf.tY = -99.719;
    bursaWolf.tZ = -110.709;
    bursaWolf.rX = -0.5076;
    bursaWolf.rY = 0.1503;
    bursaWolf.rZ = 0.3898;
    bursaWolf.dS = -0.3143;
    bursaWolf.verify(PrimeMeridianMock.GREENWICH);
    assertFalse("isIdentity", bursaWolf.isIdentity());
    assertFalse("isTranslation", bursaWolf.isTranslation());
    return bursaWolf;
}
Also used : DefaultGeographicBoundingBox(org.apache.sis.metadata.iso.extent.DefaultGeographicBoundingBox) DefaultExtent(org.apache.sis.metadata.iso.extent.DefaultExtent)

Aggregations

DefaultGeographicBoundingBox (org.apache.sis.metadata.iso.extent.DefaultGeographicBoundingBox)16 DefaultExtent (org.apache.sis.metadata.iso.extent.DefaultExtent)6 Test (org.junit.Test)6 HashMap (java.util.HashMap)4 CoordinateReferenceSystem (org.opengis.referencing.crs.CoordinateReferenceSystem)4 DefaultTemporalExtent (org.apache.sis.metadata.iso.extent.DefaultTemporalExtent)3 DefaultVerticalExtent (org.apache.sis.metadata.iso.extent.DefaultVerticalExtent)3 GeographicBoundingBox (org.opengis.metadata.extent.GeographicBoundingBox)3 ImmutableIdentifier (org.apache.sis.metadata.iso.ImmutableIdentifier)2 DefaultTemporalCRS (org.apache.sis.referencing.crs.DefaultTemporalCRS)2 DependsOnMethod (org.apache.sis.test.DependsOnMethod)2 Extent (org.opengis.metadata.extent.Extent)2 GeographicExtent (org.opengis.metadata.extent.GeographicExtent)2 ReferenceIdentifier (org.opengis.referencing.ReferenceIdentifier)2 GeneralDerivedCRS (org.opengis.referencing.crs.GeneralDerivedCRS)2 SingleCRS (org.opengis.referencing.crs.SingleCRS)2 TemporalCRS (org.opengis.referencing.crs.TemporalCRS)2 VerticalCRS (org.opengis.referencing.crs.VerticalCRS)2 TransformException (org.opengis.referencing.operation.TransformException)2 GenericName (org.opengis.util.GenericName)2