This should test whether the matrix matches [T*F**FFF*], returning true if the two geometries are topologically equal.
This is different from Eq, which is an exact equality comparison. For example, these two LineStrings satisfy [T*F**FFF*] even though they're obviously not Eq:
let ls1 = line_string![(x: 1.0, y: 1.0), (x: 2.0, y: 2.0)];
let ls2 = line_string![(x: 2.0, y: 2.0), (x: 1.0, y: 1.0)];
let lsrelation = ls1.relate(&ls2);
let de9im_eq = "T*F**FFF*";
assert_eq!(lsrelation.matches(&de9im_eq).unwrap(), true);
This should test whether the matrix matches
[T*F**FFF*]
, returningtrue
if the two geometries are topologically equal. This is different fromEq
, which is an exact equality comparison. For example, these twoLineString
s satisfy[T*F**FFF*]
even though they're obviously notEq
:(please feel free to bikeshed the method name)