[geos-devel] Bug in GEOS polygonizer

Mika Heiskanen mika.heiskanen at fmi.fi
Fri Mar 7 10:46:49 PST 2014

On 03/07/2014 07:58 PM, Sandro Santilli wrote:
> The polygonizer function will return a polygon with an hole
> and the polygon filling the hole. It's the expected behavior.

I see now that you are right:


I was not aware that getting the same polygon twice in
the output was a common requirement in GIS.

However, that is not convenient when converting the output
to SVG. Looks like I'll have to discard any polygon with
even parity. I'll try to find out how that can be done.
A quick grep does not reveal anything though, any tips on how to
accomplish dropping the extra polygons as far as SVG is concerned
would be appreciated. Seems like the feature mentioned in
the above link has not been implemented, at least not in GEOS.

Thank you in advance,

Mika Heiskanen / FMI

More information about the geos-devel mailing list