Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Created October 3, 2012 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhkeller/3824308 to your computer and use it in GitHub Desktop.
Save mhkeller/3824308 to your computer and use it in GitHub Desktop.
Point to Polygon intersect PostGIS
UPDATE point_table SET polygon_id = poly_table.poly_id FROM poly_table WHERE ST_Intersects(point_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