Skip to main content
1 of 7
Taras
  • 34k
  • 4
  • 73
  • 148

Input

SELECT *
FROM polygons, lines_test
WHERE ST_Within(ST_StartPoint(lines_test.geometry), polygons.geometry) OR ST_Within(ST_EndPoint(lines_test.geometry), polygons.geometry)

Output

Taras
  • 34k
  • 4
  • 73
  • 148