|
CRS: http://spatialreference.org/ref/epsg/25831/ has boundary: WGS84 Bounds: 0.0000, 38.5000, 6.0000, 62.3300 following code throws ProjectionException
CoordinateReferenceSystem targetCrs = CRS.decode("EPSG:25831");MathTransform mathTransform = CRS.findMathTransform(DefaultGeographicCRS.WGS84,targetCrs , true);DirectPosition2D position2D = new DirectPosition2D(DefaultGeographicCRS.WGS84,00.1,39);DirectPosition2D position2Dres = new DirectPosition2D();mathTransform.transform(position2D,position2Dres);
workaround: MapProjection.SKIP_SANITY_CHECKS=false;
my assumptions is that the sanity check is strange.
|