[geos-devel] Removing multiple vertices

Paul Meems bontepaarden at gmail.com
Thu Apr 11 11:57:30 PDT 2019


Currently, I'm working on improving the Shapefile editor of
Under the hood, it is using a lot of GEOS functions.

When opening a shapefile we can draw a temporary polygon and use it to
erase a part of the shapefile. We use GEOS::Difference to 'eat' the drawn
polygon from the shapefile.
This works fine.

We now want a similar option. But this time not 'stamp' the drawn polygon
on the shapefile but remove all vertices of the shapefile that are inside
(under) the drawn polygon.

Does GEOS have a method for that or should I just loop through all vertices
of the shape and check if it is inside the drawn polygon and remove it when
it does?

Thanks for any advice,


*Paul Meems *
Release manager, configuration manager
and forum moderator of MapWindow GIS.

Owner of MapWindow.nl - Support for
Dutch speaking users.

*The MapWindow GIS project has a new forum

Download the latest MapWinGIS mapping engine.

Download the latest MapWindow 5 open source desktop application.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20190411/b0b86ad8/attachment.html>

More information about the geos-devel mailing list