Opened 4 years ago

Closed 22 months ago

#789 closed defect (fixed)

Difference of valid geometries is invalid [JTS fixed]

Reported by: mattzen Owned by: strk
Priority: minor Milestone: 3.5.3
Component: Core Version: 3.5.0
Severity: Unassigned Keywords:
Cc:

Description

I'm trying to calculate the difference of two valid geometries and getting an invalid one back. The input geometries both have integer coordinates, so I would hope that numerical precision isn't an issue. I'm not totally sure this is a bug - perhaps I've just got the wrong expectations of what should happen?

I've attached a test case, which I've tested against both 3.5.0-1ubuntu2 (on xenial) and latest master (3.6.0dev-CAPI-1.10.0 r4257) with the same results.

Attachments (1)

geos.c (1.2 KB) - added by mattzen 4 years ago.
A test case creating two input polygons and attempting to difference them.

Download all attachments as: .zip

Change History (10)

Changed 4 years ago by mattzen

Attachment: geos.c added

A test case creating two input polygons and attempting to difference them.

comment:1 Changed 4 years ago by strk

Milestone: 3.5.13.5.2

Ticket retargeted after milestone closed

comment:2 Changed 3 years ago by strk

See also #838

comment:3 Changed 3 years ago by mdavis

See JTS issue https://github.com/locationtech/jts/issues/255

This is likely due to a logic error in the polygon building phase of overlay.

comment:4 in reply to:  2 Changed 3 years ago by mdavis

Replying to strk:

See also #838

Actually this is a different issue than 838.

comment:5 Changed 3 years ago by strk

Summary: Difference of valid geometries is invalidDifference of valid geometries is invalid [JTS fixed]

The upstream ticket was fixed: https://github.com/locationtech/jts/issues/255

comment:6 Changed 2 years ago by robe

Milestone: 3.5.23.5.3

comment:7 Changed 22 months ago by Paul Ramsey <pramsey@…>

In 3528071/git:

Polygon build failure in Overlay difference
References #789

comment:8 Changed 22 months ago by Paul Ramsey <pramsey@…>

In 641e12a/git:

Polygon build failure in Overlay difference
References #789

comment:9 Changed 22 months ago by Paul Ramsey <pramsey@…>

Resolution: fixed
Status: newclosed

In e8f4aec/git:

Polygon build failure in Overlay difference
Closes #789

Note: See TracTickets for help on using tickets.