Skip to content

Instantly share code, notes, and snippets.

@eightysteele
Created November 5, 2011 15:59
Show Gist options
  • Save eightysteele/1341695 to your computer and use it in GitHub Desktop.
Save eightysteele/1341695 to your computer and use it in GitHub Desktop.
SELECT rid, band, (stats).* FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats FROM bioclim10_29 CROSS JOIN generate_series(1,3) As band WHERE rid=2) As foo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment