Skip to content

Instantly share code, notes, and snippets.

@kathypennacchio
Created July 3, 2014 10:27
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 kathypennacchio/601e79d609e6ba6fabcf to your computer and use it in GitHub Desktop.
Save kathypennacchio/601e79d609e6ba6fabcf to your computer and use it in GitHub Desktop.
SELECT ST_Buffer(ST_ConvexHull(ST_Union(l.the_geom)), 0.0001) AS the_geom FROM lots l LEFT JOIN plans p ON p.cartodb_id = l.plan_id
WHERE p.name = 'PLAN_NAME'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment