Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#756 closed defect (fixed)

ST_Equals(MULTILINE, LINE) fails

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
Keywords: Cc:


Are a line and a collection containing that exactly same line "equal" ? I'd say YES, but PostGIS says NO.

Change History (10)

comment:1 Changed 4 years ago by pramsey

By the same token are

LINESTRING(0 0, 1 1)




comment:2 Changed 4 years ago by strk

I think they should be equal as well, yes.

comment:3 Changed 4 years ago by robe

I agree -- the DEM-9 only cares about occupying the same well defined space and they do therefore they are equal.

comment:4 Changed 4 years ago by robe

  • Milestone changed from PostGIS 1.5.3 to PostGIS 2.0.0

comment:5 Changed 4 years ago by strk

This bug just stroke again... st_equals(A,B) was returning false while st_symdifference(A,B) was returning empty. Wonder ? Well.. st_equals(st_multi(A), ST_multi(B)) returned true...

We should really fix this before it hurts

comment:6 Changed 4 years ago by strk

  • Owner changed from pramsey to strk
  • Status changed from new to assigned

I'm on it.

comment:7 Changed 4 years ago by strk

Paul: do you have a supported way to create your MULTILINESTRING ? I can't, with WKT.

comment:8 Changed 4 years ago by strk

I could: st_collect('LINESTRING(0 0, 1 1)'::geometry, 'LINESTRING EMPTY'::geometry);

comment:9 Changed 4 years ago by strk

  • Resolution set to fixed
  • Status changed from assigned to closed
  • Version changed from 1.5.X to trunk

Fixed and regress tested in r8479 for trunk. 1.5 branch isn't affected.

comment:10 Changed 4 years ago by strk

Oops, revision is actually r8480 -- sorry for the confusion

Note: See TracTickets for help on using tickets.