Skip to content

Instantly share code, notes, and snippets.

@tokumine
Created January 20, 2012 17:21
Show Gist options
  • Save tokumine/1648529 to your computer and use it in GitHub Desktop.
Save tokumine/1648529 to your computer and use it in GitHub Desktop.
density.sql
UPDATE my_table SET my_var_per_km2 = (my_var / ST_Area(ST_transform(the_geom, 954009)) /10^6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment