Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#703 closed defect (fixed)

Empty.equals(Empty) == false

Reported by: strk Owned by: geos-devel@…
Priority: major Milestone: 3.6.1
Component: Default Version: 3.3.9
Severity: Unassigned Keywords:
Cc:

Description

Empty geometrycollections do not equal themself...

Change History (5)

comment:1 by strk, 10 years ago

Same happens with Polygon empty. The common root is Envelope::equals(Envelope) returning false for the so-called "null envelope". Should it be true instead ?

comment:2 by strk, 10 years ago

indeed in JTS null Envelope is equal to null Envelope, so yes, it shoudl return true !

comment:3 by strk, 10 years ago

I've found PointEmpty.equals(PointEmpty) being also regress-tested to be false, but I'll update the test too...

comment:4 by strk, 10 years ago

Resolution: fixed
Status: newclosed
Version: 3.4.23.3.9

Fixed by r3999 in 3.3 branch (3.3.10), r4000 in 3.4. branch (3.4.3) and r4001 in trunk (3.5.0)

comment:5 by strk, 8 years ago

Milestone: 3.4.33.6.1

Ticket retargeted after milestone deleted

Note: See TracTickets for help on using tickets.