Opened 8 years ago

Closed 5 years 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 8 years ago.
A test case creating two input polygons and attempting to difference them.

Download all attachments as: .zip

Change History (10)

by mattzen, 8 years ago

Attachment: geos.c added

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

comment:1 by strk, 8 years ago

Milestone: 3.5.13.5.2

Ticket retargeted after milestone closed

comment:2 by strk, 7 years ago

See also #838

comment:3 by mdavis, 6 years ago

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.

in reply to:  2 comment:4 by mdavis, 6 years ago

Replying to strk:

See also #838

Actually this is a different issue than 838.

comment:5 by strk, 6 years ago

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 by robe, 6 years ago

Milestone: 3.5.23.5.3

comment:7 by Paul Ramsey <pramsey@…>, 5 years ago

In 3528071/git:

Polygon build failure in Overlay difference
References #789

comment:8 by Paul Ramsey <pramsey@…>, 5 years ago

In 641e12a/git:

Polygon build failure in Overlay difference
References #789

comment:9 by Paul Ramsey <pramsey@…>, 5 years ago

Resolution: fixed
Status: newclosed

In e8f4aec/git:

Polygon build failure in Overlay difference
Closes #789

Note: See TracTickets for help on using tickets.