Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. WITH closest_candidates AS (
  2. select a.*, b.*, st_distance(a.geometry, b.geometry) as dist from a,b where st_intersects(a.geometry, st_buffer(b.geometry,100))
  3. )
  4. select * from closest_candidates where dist < 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement