From babf2fc9d2df1440030f8d295dfeeeccd53040a9 Mon Sep 17 00:00:00 2001 From: Thomas Prioul Date: Mon, 17 Feb 2025 14:18:36 +0100 Subject: [PATCH] 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! --- postgis-intro/sources/en/spatial_relationships_exercises.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgis-intro/sources/en/spatial_relationships_exercises.rst b/postgis-intro/sources/en/spatial_relationships_exercises.rst index d210e86a..1ad8b59e 100644 --- a/postgis-intro/sources/en/spatial_relationships_exercises.rst +++ b/postgis-intro/sources/en/spatial_relationships_exercises.rst @@ -83,7 +83,7 @@ Exercises FROM nyc_streets WHERE ST_DWithin( geom, - ST_GeomFromText('LINESTRING(586782 4504202,586864 4504216)', 26918), + (SELECT geom FROM nyc_streets WHERE name = 'Atlantic Commons'), 0.1 ); @@ -91,6 +91,7 @@ Exercises name ------------------ + S Oxford St Cumberland St Atlantic Commons