cuteDen-ECNU / bugs-record

1 stars 0 forks source link

ST_Relate gives error result in interior-interior intersection dimension #46

Open cuteDen-ECNU opened 8 months ago

cuteDen-ECNU commented 8 months ago

Considering the following statement:

SELECT ST_Relate(g1, g2)
  FROM (VALUES
  ('MULTILINESTRING((2 4, 10 10),(15 10,10 5,5 10))'::geometry, 
   'MULTILINESTRING((2 4, 10 10))'::geometry)
  ) AS sdb(g1, g2);

--expected{ 1F1F001F2}; actual{ 0F1F001F2}
bin/geosop -a 'MULTILINESTRING((2 4, 10 10),(15 10,10 5,5 10))' -b 'MULTILINESTRING((2 4, 10 10))' relate
# expected{ 1F1F001F2}; actual{ 0F1F001F2}

The intersection of interior-interior of g1 and g2 is LINESTRING(2 4, 10 10) whose dimension is 1. Thus the de9im code should be 1F1F001F2 instead of 0F1F001F2.

The version of Geos is the latest one: bdceea6

cuteDen-ECNU commented 8 months ago

bugtracker link: https://github.com/libgeos/geos/issues/1053