<pre>>Hi Larry,
>
>On Mon, 17. Sep 2012 at 14:15:42 -0600, Larry Shaffer wrote:
>><i> Recently there have been several labeling-related issues where the
</i>>><i> conclusion is that a label is not shown because the geometry is
</i>>><i> invalid (generally polygons). I noticed Sandro Santilli's work for
</i>>><i> PostGIS 2.0 with the new ST_MakeValid function [0]. I'm no geometry
</i>>><i> whiz, but it appears to be based solely off of GEOS (and some other
</i>>><i> PostGIS internals).
</i>>
>The functionality is in PostGIS.  It just uses GEOS calls, but the
>actual fixing is done in PostGIS (in lwgeom_geos_clean.c).
>
>But we could adapt the code there for inclusion in QgsGeometry.
>
>
>Jürgen</pre>The code for ST_MAkeValid is in the LibWGeom library of postgis .<br>The libwgeom is a portable library.<br>This mean is is usable and compilable without all the postgis environmnet.<br><br>as an exaple of libwgeom usage:<br>
The new release of "Spatialite 4.0" will take advantage from this capability of the libwgeom and will support ALL" the functions availables in the libwgeom.<br>As the ST_MAkeValid and other really useful functions as the snaptogrid and the AsX3D, and so on.<br>
<br>I'm using the spatialite 4.0 and gain most from its superb capability to Collect and union of geometries.<br>Of course this is also thx to the use of the actually trunked geos 3.4.0.<br>And with the MakeValid on spatialite 4.0 I'm resolving my invalid geometis (I'm really happy now)<br>
<br>But, please notice, that the ST_MakeValid however need almost the geos 3.3.0 to work.<br><br>And actually in the osgeo-setup there is available only an older geos 3.2.0.<br>AFAIK The ST_MakeValid don't work with the geos 3.2.0.<br>
<br>Regards,<br><br><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>