Last active
September 11, 2019 15:07
-
-
Save mdiener21/68c5b75835494f6fb78ab10f5ed16c64 to your computer and use it in GitHub Desktop.
Select all polygons that contain 1 or more points
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT s.id, s.tags | |
FROM myspace_polys as s | |
JOIN mypoi_points as as p | |
ON ST_Contains(s.geom, p.geom); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment