Nice one! We&#39;ll have to add this to the C++ API during hackfest (or before if I get a chance).<br>Unfortunately a lot of my QGIS stuff is on hold until the hackfest do to time constraints :-(<br>Once it&#39;s added at the C++ level, I&#39;ll add it to the Python API as well, so others can use it, <br>
I think this will be a very useful function!<br><br>Carson<br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 1:03 PM, Paolo Cavallini <span dir="ltr">&lt;<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Carson Farmer ha scritto:<br>
<div class="im"><br>
&gt; Yes this is quite slow... in fact, this is a really simple<br>
&gt; implementation of geometry checking,<br>
&gt; and is done almost entirely within Python, so it&#39;s quite slow. I don&#39;t<br>
&gt; know if there is a GEOS<br>
&gt; function that will do this for us, if there is, I have change the code<br>
&gt; to take advantage of this,<br>
<br>
</div><a href="http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1geom_1_1Geometry.html#a16" target="_blank">http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1geom_1_1Geometry.html#a16</a> ?<br>
<br>
I think PostGIS use this for is_valid.<br>
<div><div></div><div class="h5">All the best.<br>
--<br>
Paolo Cavallini: <a href="http://www.faunalia.it/pc" target="_blank">http://www.faunalia.it/pc</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Carson Farmer<br>National Centre for Geocomputation<br>John Hume Building,<br>National University of Ireland, Maynooth,<br>Maynooth,<br>Co. Kildare,<br>Ireland.<br>
<a href="http://www.carsonfarmer.com">www.carsonfarmer.com</a><br>