/** * Constructs the provider. */ public GeocentricTranslation3D() { this(3, 3, new GeocentricAffineBetweenGeographic[4]); redimensioned[0] = new GeocentricTranslation2D( redimensioned); redimensioned[1] = new GeocentricTranslation3D(2, 3, redimensioned); redimensioned[2] = new GeocentricTranslation3D(3, 2, redimensioned); redimensioned[3] = this; }
/** * Constructs the provider. */ public GeocentricTranslation3D() { this(3, 3, new GeocentricAffineBetweenGeographic[4]); redimensioned[0] = new GeocentricTranslation2D( redimensioned); redimensioned[1] = new GeocentricTranslation3D(2, 3, redimensioned); redimensioned[2] = new GeocentricTranslation3D(3, 2, redimensioned); redimensioned[3] = this; }
/** * Tests <cite>"Geocentric translations (geog3D domain)"</cite> (EPSG:1035). * * @throws FactoryException if an error occurred while creating the transform. * @throws TransformException if transformation of a point failed. */ @Test @DependsOnMethod("testGeocentricDomain") public void testGeographicDomain() throws FactoryException, TransformException { create(new GeocentricTranslation3D()); assertFalse(transform instanceof LinearTransform); final double delta = toRadians(100.0 / 60) / 1852; // Approximatively 100 metres derivativeDeltas = new double[] {delta, delta, 100}; // (Δλ, Δφ, Δh) zTolerance = Formulas.LINEAR_TOLERANCE / 2; // Half the precision of h value given by EPSG zDimension = new int[] {2}; // Dimension of h where to apply zTolerance tolerance = Formulas.LINEAR_TOLERANCE; // Other SIS branches use a stricter threshold. datumShift(1, 4); }
@DependsOnMethod("testGeographicDomain") public void testWKT3D() throws FactoryException { create(new GeocentricTranslation3D()); assertWktEquals("CONCAT_MT[\n" + " PARAM_MT[“Ellipsoid_To_Geocentric”,\n" +