create 1 cell/polygon per point inside bounding polygon
Sat, 08 Sep 2012 20:30:34 -0700 Post Comments
Hi Daniel,
Do you want regular cells or polygons?
There are a few approaches for generating voronoi polygons in Postgis:
eg: http://www.bostongis.com/PrinterFriendly.aspx?content_name=p[..] http://geogeek.garnix.org/2012/04/faster-voronoi-diagrams-in[..]
If your points already represent the centre of cells, then a fishnet approach would work, generate a mesh to match the grid, then do a spatial join on points inside cells to generate the match. You just need to know the extent & size of the grid:
http://trac.osgeo.org/postgis/wiki/UsersWikiCreateFishnet
HTH,
Brent Wood
Do you want regular cells or polygons?
There are a few approaches for generating voronoi polygons in Postgis:
eg: http://www.bostongis.com/PrinterFriendly.aspx?content_name=p[..] http://geogeek.garnix.org/2012/04/faster-voronoi-diagrams-in[..]
If your points already represent the centre of cells, then a fishnet approach would work, generate a mesh to match the grid, then do a spatial join on points inside cells to generate the match. You just need to know the extent & size of the grid:
http://trac.osgeo.org/postgis/wiki/UsersWikiCreateFishnet
HTH,
Brent Wood
