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

ArrayIndexOutOfBoundsException with PerpendicularOffset

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 15.0
    • Fix Version/s: 15.1
    • Component/s: render
    • Labels:
      None
    • Environment:

      Any

      Description

      Browsing a layer with a PerpendicularOffset styling can somtimes cause an ArrayIndexOutOfBoundsException. See the attached log snippet, shapefile, and style. The request itself was:

      RawKvp =

      {REQUEST=GetMap, FORMAT=image/png, SRS=EPSG:2263, BBOX=995646.4764052024,214704.64625684023,999312.2141587015,217931.36311005297, VERSION=1.1.1, STYLES=, SERVICE=WMS, WIDTH=769, HEIGHT=677, TRANSPARENT=true, LAYERS=cite:shore_corrected}

      It looks like what's going on is that the StreamingRenderer is not checking for an empty geometry after clipping, which seems to occur if invalid geometries are either present in the feature itself, or if they are produced by some of the simplifications involved (even when the clipping is done "safely" by buffering to feature by zero to fix it). The uploaded shapefile reports no invalid features according to GDAL/OGR.

      I have a fix for this issue ready to go.

        Attachments

        1. exception.txt
          22 kB
        2. shore_corrected.zip
          337 kB
        3. shore.sld
          5 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dtucker Devon Tucker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: