1 Mar 2005 02:17
help with SQL/geomunion useage/combining polygons
Brent Wood <pcreso <at> pcreso.com>
2005-03-01 01:17:34 GMT
2005-03-01 01:17:34 GMT
I have a table with polygon, and other attributes including date and a number representing sea ice cover (ct value). (I plan to use this with PostGIS & with Quantum GIS, the sql in the script below to create the entry in the geometry_columns table is to allow QGIS to plot the view) What I'd like to do is generate a new table (or view) which has touching polygons merged (combined) by date & ct, eg: for a given date, give me the merged polygons representing all ice areas with a ct between 1 and 35. I have tried a few versions of the script below. While it does work as far as it goes, I'm still getting contiguous polygons in the output. My hope was that GeomUnion would dissolve the shared boundries of contiguous polygons, however it does not seem to do this. Ideally a function like "envelope", but returning the outer perimeter, not the bounding box. Any suggestions as to how this can be done in POstGIS appreciated.... Brent Wood #!/bin/bash # test script to create ice geomunions # # B Wood March 2005 DB=antarctic(Continue reading)
Brent Wood
RSS Feed