I'm new to Open Street Map and PostGIS, and am trying to figure out how to find all of the ways that intersect a linestring (i.e. all of the streets that intersect a route). Is there a way to do this that doesn't involve calling ST_Intersects on every row of the table?
Asked
Active
Viewed 485 times
1 Answers
2
What you are looking for is only checking for intersecting within a bounding box. See: Selecting by bounding box with PostGIS
ST_Intersectsand intersection with the BB are the same thing; you're simply suggesting making a preliminary selection based on intersection with the BB and following that up with theST_Intersectstests, right? – whuber Jan 01 '12 at 14:46ST_DWithinto find the intersections. – Marc Regan Jan 12 '12 at 17:34