GeoTools
  1. GeoTools
  2. GEOT-2990

Backport ProjectionHandler intersection outside valid area bug to 2.5.x

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5-M0, 2.5-M1, 2.5-M2, 2.5-M3, 2.5-RC0, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.5.6, 2.5.7, 2.5.8
    • Fix Version/s: None
    • Component/s: render
    • Labels:
      None

      Description

      On the ProjectionHandler preProcess method if the intersection is empty the geometry is completely outside of the valid area we should skip it.

      Basically we should add the follwing check to the method

      ...
      ReferencedEnvelope envIntWgs84 = new ReferencedEnvelope(validArea.intersection(geWGS84), WGS84);

      // if the intersection is empty the geometry is completely outside of the valid area, skip it
      if(envIntWgs84.isEmpty())
      return null;

      ReferencedEnvelope envInt = envIntWgs84.transform(geomCRS, true);
      ...

        Activity

        Hide
        Andrea Aime added a comment -
        Go ahead and commit
        Show
        Andrea Aime added a comment - Go ahead and commit
        Hide
        Andrea Aime added a comment -
        2.5.x is long dead, and afaik this one was solved by Alessio
        Show
        Andrea Aime added a comment - 2.5.x is long dead, and afaik this one was solved by Alessio
        Hide
        Andrea Aime added a comment -
        Mass closing all issues that have been in "resolved" state for more than one month without further comments
        Show
        Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for more than one month without further comments

          People

          • Assignee:
            Andrea Aime
            Reporter:
            Alessio Fabiani
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: