<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div class="plainMail">Hi,<br><br>The attached script creates a Postgres database, adds Postgis with topology & uses linestring geometries as the underlying data to create topologies, then extracts the generated faces as simple polygon geometries.<br><br>It was a useful learning exercise for me to put this together, with advice from strk. I'm posting it here as I hope it will help others starting to use topologies with Postgis.<br><br>Cheers,<br><br>  Brent Wood<br></div></td></tr></table>