Commit 9d3bc52f authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Preserve collinear points to keep artificial clip border points.

parent 232ef7aa
......@@ -249,6 +249,7 @@ void VectorClipper::clipPolygon(const GeoDataPlacemark *placemark, const Clipper
}
Clipper clipper;
clipper.PreserveCollinear(true);
clipper.AddPath(tileBoundary, ptClip, true);
clipper.AddPath(path, ptSubject, true);
Paths paths;
......
......@@ -46,6 +46,7 @@ private:
}
Clipper clipper;
clipper.PreserveCollinear(true);
bool const isClosed = ring->isClosed();
clipper.AddPath(tileBoundary, ptClip, true);
clipper.AddPath(path, ptSubject, isClosed);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment