orbisgis / cts

Projection library in Java
GNU Lesser General Public License v3.0
49 stars 15 forks source link

Reproject from 4326 to 4299 #112

Closed ebocher closed 5 years ago

ebocher commented 5 years ago

CTS is not able to find a correct transformation in this case.

@Test void testFrenchEPSGCodeFrom4326To4299() throws Exception { String csNameSrc = "EPSG:4326"; //Input EPSG double[] pointSource = new double[]{-7.899170,52.831312}; String csNameDest = "EPSG:4299"; //Target EPSG double[] pointDest = new double[]{-7.89842402505289,52.8310168494995}; double tolerance = 0.0000001; CoordinateReferenceSystem inputCRS = cRSFactory.getCRS(csNameSrc); CoordinateReferenceSystem outputCRS = cRSFactory.getCRS(csNameDest); verbose = true; double[] result = transform((GeodeticCRS) inputCRS, (GeodeticCRS) outputCRS, pointSource); assertTrue(checkEquals2D("EPSG:4326 to EPSG:4299", result, pointDest, tolerance)); }

Note that the same pb appears in this https://github.com/orbisgis/cts/pull/111

@mukoki