I'm trying to export the boundaries for lots of series of points from a csv. The input data is geometry POINT type, the output geometries would be multipart polygons.
My workflow so far -
- load raw csv to postgis,
- create geometries and indices,
singles points to multipoint geometries and buffer
SELECT seam, ST_Buffer(ST_Buffer(ST_Multi(ST_Union(the_geom)), 50),-25) as the_geom INTO res_buffers FROM res_points GROUP BY seam;
(Points are regularly spaced at 50m, hence the expansion/reduction of the buffer)
I now want to export each row of the res_buffers table into a shapefile. So 50 rows = 50 shapefiles.
Open to solutions in Python, Postgis/PSQL, ogr or Windows shell.