Uploaded image for project: 'GeoTools'
  1. GeoTools
  2. GEOT-5181

TransverseMercator transformation tolerance too strict

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 13.2, 15.1
    • Fix Version/s: 17-RC1
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              aaime aaime
              Reporter:
              ivan.vercinsky Ivan Vercinsky
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: