Changes between Initial Version and Version 1 of Ticket #1025, comment 1


Ignore:
Timestamp:
Apr 9, 2020, 4:42:38 PM (4 years ago)
Author:
gleng

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1025, comment 1

    initial v1  
    11Here 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.
    22
     3// Correctly Produces FF1FFF1F2:\\
    34SELECT 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);
    45
     6// Correctly Produces FF1FF0102:\\
    57SELECT 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);
    68
     9// Correctly Produces FF1FFF1F2:\\
    710SELECT 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);
    811
     12// Incorrectly Produces FF1FFF1F2 (expect FF1FF0102):\\
    913SELECT 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);