/** * Creates the {@code TOWGS84} element during parsing of a WKT version 1. * * @param values the 7 Bursa-Wolf parameter values. * @return the {@link BursaWolfParameters}. * * @since 0.6 */ @Override public Object createToWGS84(final double[] values) { final BursaWolfParameters info = new BursaWolfParameters(CommonCRS.WGS84.datum(), null); info.setValues(values); return info; }
/** * Creates the {@code TOWGS84} element during parsing of a WKT version 1. * * @param values the 7 Bursa-Wolf parameter values. * @return the {@link BursaWolfParameters}. * * @since 0.6 */ @Override public Object createToWGS84(final double[] values) { final BursaWolfParameters info = new BursaWolfParameters(CommonCRS.WGS84.datum(), null); info.setValues(values); return info; }
final BursaWolfParameters parameters = new BursaWolfParameters(null, null); try { parameters.setPositionVectorTransformation(((LinearTransform) step).getMatrix(), BURSAWOLF_TOLERANCE);
final BursaWolfParameters parameters = new BursaWolfParameters(null, null); try { parameters.setPositionVectorTransformation(((LinearTransform) step).getMatrix(), BURSAWOLF_TOLERANCE);
continue; final BursaWolfParameters bwp = new BursaWolfParameters(datum, info.getDomainOfValidity(owner)); try (ResultSet result = executeQuery("BursaWolfParameters", "SELECT PARAMETER_CODE," +
continue; final BursaWolfParameters bwp = new BursaWolfParameters(datum, info.getDomainOfValidity(owner)); try (ResultSet result = executeQuery("BursaWolfParameters", "SELECT PARAMETER_CODE," +
/** * Returns the parameters for the <cite>NTF to WGS 84 (1)</cite> transformation (EPSG:1193). * Area of validity is France - onshore - mainland and Corsica. * This transformation uses only translation parameters. */ static BursaWolfParameters createNTF_to_WGS84() { final BursaWolfParameters bursaWolf = new BursaWolfParameters(GeodeticDatumMock.WGS84, Extents.WORLD); bursaWolf.tX = -168; bursaWolf.tY = -60; bursaWolf.tZ = 320; bursaWolf.verify(PrimeMeridianMock.GREENWICH); assertFalse("isIdentity", bursaWolf.isIdentity()); assertTrue ("isTranslation", bursaWolf.isTranslation()); return bursaWolf; }
/** * Returns the parameters for the <cite>WGS 72 to WGS 84 (2)</cite> transformation (EPSG:1238). * Area of validity is the World. */ static BursaWolfParameters createWGS72_to_WGS84() { final BursaWolfParameters bursaWolf = new BursaWolfParameters(GeodeticDatumMock.WGS84, Extents.WORLD); bursaWolf.tZ = 4.5; bursaWolf.rZ = 0.554; bursaWolf.dS = 0.219; bursaWolf.verify(PrimeMeridianMock.GREENWICH); assertFalse("isIdentity", bursaWolf.isIdentity()); assertFalse("isTranslation", bursaWolf.isTranslation()); return bursaWolf; }
throws FactoryException final BursaWolfParameters parameters = new BursaWolfParameters(null, null); final Parameters pv = Parameters.castOrWrap(values); boolean reverseRotation = false;
throws FactoryException final BursaWolfParameters parameters = new BursaWolfParameters(null, null); final Parameters pv = Parameters.castOrWrap(values); boolean reverseRotation = false;
final BursaWolfParameters parameters = new BursaWolfParameters(null, null); if (datumShift != null) try { parameters.setPositionVectorTransformation(datumShift, BURSAWOLF_TOLERANCE);
final BursaWolfParameters parameters = new BursaWolfParameters(null, null); if (datumShift != null) try { parameters.setPositionVectorTransformation(datumShift, BURSAWOLF_TOLERANCE);
/** * Tests the {@link BursaWolfParameters#setPositionVectorTransformation(Matrix, double)} method. * This is an internal consistency test. */ @Test @DependsOnMethod("testGetPositionVectorTransformation") public void testSetPositionVectorTransformation() { final BursaWolfParameters bursaWolf = createED87_to_WGS84(); final Matrix matrix = bursaWolf.getPositionVectorTransformation(null); final BursaWolfParameters actual = new BursaWolfParameters( bursaWolf.getTargetDatum(), bursaWolf.getDomainOfValidity()); actual.setPositionVectorTransformation(matrix, 1E-10); assertEquals(bursaWolf, actual); }
/** * 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; }