Jim, it would be great if you can build and test this patch to make sure it
fixes your problem.

Martin

On Wed, Jul 29, 2015 at 1:26 PM, Martin Davis <[email protected]> wrote:

> Fixed in trunk:  https://sourceforge.net/p/jts-topo-suite/code/1017/
>
> On Fri, Jun 12, 2015 at 7:07 AM, Kay, Jim <[email protected]> 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.
>>
>>
------------------------------------------------------------------------------
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to