<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I'm after some pointers on how I might use topology in this case:<br><br>We regularly undertake random stratified two phase trawl surveys for fisheries stock assessments. <br><br>This requires the survey area to be divided into arbitrary strata, with sample sites randomly defined for each strata. Generally these strata are defined from:<br><br>1. depth contours<br>2. arbitrary lines between contours (generally following a lat or long)<br>3. areas of land or other excluded areas which are excluded from any strata overlapping them.<br><br>My current Postgis model defines strata outer boundaries as polygons, holes as polygons, & instantiates strata as a set of one or more outer boundaries less any holes.<br><br>This has the usual issues of slivers & overlaps between strata as common boundaries are stored twice, & as not always identical.<br><br>If I
used topologies, I could store the constituent lines (contours, etc) and assemble the outer boundaries from these, to give properly normalised polygons.<br><br>I have seen the docs & Strk's presentation, but these to not (to me anyway) list the steps to follow to do something like this, & the Postgis functions to carry out those steps.<br><br>I figure the steps should be:<br><br>load contour linestrings into a topology table<br>- these will never intersect/overlap by definition<br><br>load other dividing lines - with extensions to ensure they do NOT need to snap to make nodes, as this can move then off the defining lat/lon, so they always overlap the polygons<br><br>generate the outer strata boundaries & export to geometries<br>- add polygon attribute data based on the constituent linestrings <br><br>remove any overlapping holes to generate the actual strata<br><br><br>Any suggestions as to how to go about
this?<br><br>Thanks,<br><br> Brent Wood<br></td></tr></table>