[geos-devel] Removing multiple vertices
mtnclimb at gmail.com
Thu Apr 11 12:02:35 PDT 2019
There's no function for doing that in GEOS. So yes, you will have to
implement that yourself, via the approach you suggest.
On Thu, Apr 11, 2019 at 11:57 AM Paul Meems <bontepaarden at gmail.com> wrote:
> 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.
> geos-devel mailing list
> geos-devel at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the geos-devel