Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cuteDen-ECNU opened this issue Mar 5, 2024 · 1 comment
Labels
bug-confirm coordinate trans Affine geometry using orthogonal matrix libgeos

Comments

@cuteDen-ECNU
Copy link
Owner

cuteDen-ECNU commented Mar 5, 2024

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 cuteDen-ECNU added libgeos coordinate trans Affine geometry using orthogonal matrix labels Mar 5, 2024
@cuteDen-ECNU
Copy link
Owner Author

bugtracker link: libgeos/geos#1053

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-confirm coordinate trans Affine geometry using orthogonal matrix libgeos
Projects
None yet
Development

No branches or pull requests

1 participant