Changes between Initial Version and Version 1 of Ticket #1025, comment 1
- Timestamp:
- Apr 9, 2020, 4:42:38 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1025, comment 1
initial v1 1 1 Here are the queries needed to show this behaviour in PostGIS. The first three queries produce the correct DE-9IM matrix, but the last query does not. 2 2 3 // Correctly Produces FF1FFF1F2:\\ 3 4 SELECT ST_Relate(ST_GeometryFromText('LINESTRING(0 0, 1 2, 2 0, 0 0)'), ST_GeometryFromText('LINESTRING(1.5 1.5, 2.5 3.5, 3.5 1.5, 1.5 1.5)'),1); 4 5 6 // Correctly Produces FF1FF0102:\\ 5 7 SELECT ST_Relate(ST_GeometryFromText('LINESTRING(0 0, 1 2, 2 0, 0 0)'), ST_GeometryFromText('LINESTRING(1.5 1.5, 2.5 3.5, 3.5 1.5, 1.5 1.5)'),2); 6 8 9 // Correctly Produces FF1FFF1F2:\\ 7 10 SELECT ST_Relate(ST_GeometryFromText('LINESTRING(0 0, 1 2, 2 0, 0 0)'), ST_GeometryFromText('LINESTRING(3 3, 4 5, 5 3, 3 3)'),1); 8 11 12 // Incorrectly Produces FF1FFF1F2 (expect FF1FF0102):\\ 9 13 SELECT ST_Relate(ST_GeometryFromText('LINESTRING(0 0, 1 2, 2 0, 0 0)'), ST_GeometryFromText('LINESTRING(3 3, 4 5, 5 3, 3 3)'),2);