Unverified Commit d79a0a06 authored by Stuart Sides's avatar Stuart Sides Committed by GitHub
Browse files

GEOS 3.9 ProcessPolygons (#4448)

parent 5940fd69
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ namespace Isis {
  void ProcessPolygons::FillPolygon(int Flag) {

    // Create a sample/line polygon for the input pixel vertices
    geos::geom::CoordinateSequence *pts = new geos::geom::CoordinateArraySequence();
    geos::geom::CoordinateArraySequence *pts = new geos::geom::CoordinateArraySequence();
    for (unsigned int i = 0; i < m_sampleVertices.size(); i++) {
      pts->add(geos::geom::Coordinate(m_sampleVertices[i], m_lineVertices[i]));
    }
@@ -134,7 +134,7 @@ namespace Isis {
      if (!projectedInputPixelPoly->intersects(m_imagePoly)) return;

      geos::geom::MultiPolygon *intersectPoly = PolygonTools::MakeMultiPolygon(
          m_imagePoly->intersection(projectedInputPixelPoly));
          m_imagePoly->intersection(projectedInputPixelPoly).release());
      geos::geom::prep::PreparedPolygon *preparedPoly =
        new geos::geom::prep::PreparedPolygon(intersectPoly);
      const geos::geom::Envelope *envelope = intersectPoly->getEnvelopeInternal();
@@ -155,7 +155,7 @@ namespace Isis {
            delete p;
          }
          else {
            geos::geom::CoordinateSequence *tpts = new geos::geom::CoordinateArraySequence();
            geos::geom::CoordinateArraySequence *tpts = new geos::geom::CoordinateArraySequence();
            tpts->add(geos::geom::Coordinate(x - 0.5, y - 0.5));
            tpts->add(geos::geom::Coordinate(x + 0.5, y - 0.5));
            tpts->add(geos::geom::Coordinate(x + 0.5, y + 0.5));