Created
October 17, 2012 18:37
-
-
Save mhkeller/3907278 to your computer and use it in GitHub Desktop.
Count points intersecting with polygons in PostGIS
This file contains hidden or 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
| UPDATE poly_table SET count_col = (SELECT count(*) FROM points_table WHERE ST_Intersects(points_table.the_geom, poly_table.the_geom)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment