Skip to content

Commit babf2fc

Browse files
authored
Update spatial_relationships_exercises.rst
Using a subquery or a MULTILINESTRING instead of the suggested MULTILINESTRING->LINESTRING simplification gives different and expected results. There seems to be a difference between multilinestring and linestring having the same coordinates!
1 parent 5ca8351 commit babf2fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgis-intro/sources/en/spatial_relationships_exercises.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ Exercises
8383
FROM nyc_streets
8484
WHERE ST_DWithin(
8585
geom,
86-
ST_GeomFromText('LINESTRING(586782 4504202,586864 4504216)', 26918),
86+
(SELECT geom FROM nyc_streets WHERE name = 'Atlantic Commons'),
8787
0.1
8888
);
8989
9090
::
9191
9292
name
9393
------------------
94+
S Oxford St
9495
Cumberland St
9596
Atlantic Commons
9697

0 commit comments

Comments
 (0)