Skip to content

Instantly share code, notes, and snippets.

@bmount
Created October 20, 2013 08:13
Show Gist options
  • Select an option

  • Save bmount/7066320 to your computer and use it in GitHub Desktop.

Select an option

Save bmount/7066320 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bmount
Copy link
Author

bmount commented Oct 23, 2013

Note for defining boundaries of boxes (4x grid example):

create table sf_tight_grid as SELECT cells.geom FROM ST_CreateFishnet(14, 14, (122.51948 - 122.3515810)/14, (37.8168449993815 - 37.7031319981938)/14, -122.519483003624, 37.7031319981938) AS cells;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment