Hi Jan,

In your particular case, buffer(0) do the trick because the orientation of
your polygon is well defined (interior always on the left side of the boundary).
Be aware that if the boundary path looks like a 8 (interior sometime on the
right side and somtimes on the left side), buffer(0) will loose one of the faces.

Michaël

Le 17/05/2015 13:01, Jan Tosovsky a écrit :
Dear All,

imagine coordinations forming '8' - two touching closed rings. What is the
best way to create multipolygons from them?

I've tried geometryFactory.createPolygon(coordinates), it converts it to the
desired shape, but the result geometry is invalid (and failing in the next
operations).

Actually, ordering of my coords can be found here
http://drifted.in/other/jts/polygon_invalid.png

Currently I create separate lineStrings for each couple of subsequent coords
which I pass to the polygonizer. It produces the desired output (multiple
polygons), but it seems to be an overkill.

Are there better ways?

Thanks, Jan


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to