[geos-devel] Removing multiple vertices
Paul Meems
bontepaarden at gmail.com
Thu Apr 11 11:57:30 PDT 2019
Hello,
Currently, I'm working on improving the Shapefile editor of
MapWinGIS/MapWindow5.
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
*Paul Meems *
Release manager, configuration manager
and forum moderator of MapWindow GIS.
www.mapwindow.org
Owner of MapWindow.nl - Support for
Dutch speaking users.
www.mapwindow.nl
*The MapWindow GIS project has a new forum
<https://mapwindow.discourse.group>!*
Download the latest MapWinGIS mapping engine.
<https://github.com/MapWindow/MapWinGIS/releases>
Download the latest MapWindow 5 open source desktop application.
<https://github.com/MapWindow/MapWindow5/releases>
-------------- 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