Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
SELECT us_hex_grid.id,
count(cellular.id) AS features
FROM us_hex_grid,
cellular
WHERE st_contains(us_hex_grid.shape, cellular.geom)
GROUP BY us_hex_grid.id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment