GeoTools
  1. GeoTools
  2. GEOT-2685

RasterToVectorProcess setting incorrect value to polygons

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6-M0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      RasterToVectorProcess sets the values associated with each generated polygon to those of a representative cell from the source grid coverage. The cell is chosen using the JTS InteriorPointArea class, however it seems that this can lead to an incorrect point being selected in some cases, such as when the polygon is a doughnut.

        Activity

        Hide
        Michael Bedward added a comment -
        The attached patch adds a backup method of getting a reference point for a polygon that appears to fix the bug
        Show
        Michael Bedward added a comment - The attached patch adds a backup method of getting a reference point for a polygon that appears to fix the bug
        Hide
        Michael Bedward added a comment -
        patch applied to trunk
        Show
        Michael Bedward added a comment - patch applied to trunk

          People

          • Assignee:
            Michael Bedward
            Reporter:
            Michael Bedward
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: