Re: [Jts-topo-suite-user] Geometry Union Fail with Polygon created from PackedCoordinateSequence
Brought to you by:
dr_jts
From: Martin D. <mtn...@gm...> - 2015-07-29 20:26:43
|
Fixed in trunk: https://sourceforge.net/p/jts-topo-suite/code/1017/ On Fri, Jun 12, 2015 at 7:07 AM, Kay, Jim <Ka...@in...> wrote: > I have an incorrect from the union of two Polygons. > The first Polygon (g0) is created from a PackedCoordinateSequence. > The second Polygon (g1) is created from a CoordinateArray. > > The two Polygons are nearly on top of each other. > During the unioning process, 'OverlayOp.overlayOp' fails and so the code > defaults to 'SnapOverlayOp.overlayOp'. > In the subsequent code the removal of common bits using > 'removeCommonBits(Geometry geom)' fails to successfully apply the > translation to the geometry created from (g0) PackedCoordinateSequence. > Subsequently the code unions the unshifted g0 geometry with the shifted g1 > geometry, incorrectly producing a MultiPolygon. > > Java test code attached (with plotting; please maximise Window) > > I have copied some of the relevant method calls below. > > |