Hi,
If UnaryUnionOp produces a MultiPolygon, I presume all your
input polyons are note adjacent.
Note that if a Polygon touches another one in one point only
(or a finite number of points), the result will be a MultiPolygon
to fulfil the OGC definition of Polygon/MultiPolygon.
Adding a small buffer may resolve your problem, but it may also
have side effects (like breaking topology with adjacent polygons
not included in your unioned dataset).
Answer depends on what is important for you : having a simple
Polygon (why ?), or having a resulting area which is the exact
union of all your input areas ?
Michaël
Hi,
I need to union adjoining polygons together. I use UnionWithUnionOp()
method in JTS 1.13.
However, sometimes, even if i reduce the geometry precision, it does
not end up with a unique polygon resulting a multi-polygon. In such
instances which method is the best to
avoid creating multi-polygon? I used buffer(0), but it did not work.
What about adding a small +- buffer?
Brian.
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user