<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv984925340"><table id="yiv984925340bodyDrftID" class="yiv984925340" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td id="yiv984925340drftMsgContent" style="font:inherit;font-family:arial;font-size:10pt;">Thanks again for a prompt reply.<br><br>QGIS is showing the results of the inserts & polygonise in the attached image. So, yes, just as you sketched it.<br><br>I had assumed Polygonize was constructing polygon TopoGeometries ?? Obviously I've missed something somewhere.<br><br>I can find no info at all on the ST_TopologySummary() function. Not in the docs, & even Google cannot find a single reference. Where do I look for some explanation of this function (& any others that might be relevant )? <br><br>Thanks,<br><br> Brent<br><br>--- On <b>Thu, 4/5/12, Sandro Santilli <i><strk@keybit.net></i></b>
wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;">From: Sandro Santilli <strk@keybit.net><br>Subject: Re: [postgis-users] Postgis topology
help<br>To: pcreso@pcreso.com, "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Thursday, April 5, 2012, 5:49 AM<br><br><div class="yiv984925340plainMail">On Wed, Apr 04, 2012 at 09:57:10AM -0700, <a rel="nofollow">pcreso@pcreso.com</a> wrote:<br>> Following on from the reply by strk (thanks!!) I'm still working through how to use topologies.<br>> <br>> I have a script which creates a topology, adds 5 linestrings looking like:<br>> <br>> | | |<br>> ---------------<br>> | | |<br>> ---------------<br>> | | |<br>> <br>> validates the result and then Polygonizes it, creating two faces. <br><br><br>Like this
?<br><br> | | |<br> -+------+------+-<br> | | |<br> -+------+------+-<br> | | |<br> <br>> I'm using the SVN docs <br>> ( <a rel="nofollow" target="_blank" href="http://www.postgis.org/documentation/manual-svn/Topology.html">http://www.postgis.org/documentation/manual-svn/Topology.html</a> ) <br>> as my reference, as this is the best I have found so far. <br>> <br>> What I want this script to do is run a query listing/describing the faces that have been created, then extract them as polygon geometries into a Postgis geometry column to be used as conventional polygons, but I can see no way in the docs of accomplishing this.<br><br>ST_TopologySummary
gives you a good
summary.<br><br>You can use GetFaceGeometry to extract the faces polygons,<br>maybe use it in a query to <yourtoponame>.face to see them<br>all. Remember that face_id=0 is the universe face, so you<br>want to skip that from the query.<br><br>> Once I get the script able to complete this operation I figure I should have a much better understanding of how Postgis topology works, & will stick it on the wiki as a working example. I'll also insert more commands to illustrate other operations, as I learn this stuff.<br>> <br>> Any suggestions as to how to accomplish these next steps?<br><br>I think your next step should be looking at constructing TopoGeometry<br>objects :)<br><br>--strk;<br><br> ,------o-. <br> | __/ | Delivering high quality PostGIS 2.0 !<br> | / 2.0 | <a rel="nofollow" target="_blank" href="http://strk.keybit.net">http://strk.keybit.net</a> - <a
rel="nofollow" target="_blank" href="http://vizzuality.com">http://vizzuality.com</a><br> `-o------'<br><br></div></blockquote></td></tr></tbody></table></div></td></tr></table>