[postgis-users] How can I divide up a region into a grid of rectangles?
MarkW
mark.wimer at gmail.com
Thu Nov 10 16:37:53 PST 2011
This is kind of a simplistic approach maybe - because a simple grid
doesn't have to intersect with municipal features. But could you
simply decide on a rounding level that would give you what you wanted?
Round the lat/lons to a certain decimal level, then count by / group
on those rounded lat/lons? Each one could represent centroid or a
corner of a grid.
Mark
On Thu, Nov 10, 2011 at 4:21 PM, W. Matthew Wilson <matt at tplus1.com> wrote:
> I have a data set that tracks where people parked when their car got
> towed. Each row in the data has a latitude and a longitude and a
> date.
>
> I don't care about the date right now. I want to aggregate this data
> by neighborhood. In order to keep stuff simple, how could I do
> something like divide up city into a bunch of squares in a grid, and
> then count up how many cars got towed in each square?
>
> Later I'll worry about making the grids look more like actual
> neighborhood boundaries.
>
> Any ideas how to do something like this?
>
> Thanks in advance!
>
> Matt
>
> --
> W. Matthew Wilson
> matt at tplus1.com
> http://tplus1.com
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
More information about the postgis-users
mailing list