<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 08.01.2016 19:37, Paolo Cavallini
      wrote:<br>
    </div>
    <blockquote cite="mid:569001E5.3050104@faunalia.it" type="cite">
      <pre wrap="">Il 08/01/2016 19:02, Paolo Cavallini ha scritto:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi all,
I tried several options, but I cannot get rid of the errors in layers from
<a class="moz-txt-link-freetext" href="http://opendata.regione.abruzzo.it/content/ctrn-regione-abruzzo-15000">http://opendata.regione.abruzzo.it/content/ctrn-regione-abruzzo-15000</a>
e.g.
<a class="moz-txt-link-freetext" href="http://opendata.regione.abruzzo.it/opengeodata/Dati_vettoriali/DBTR/CTR_2001-05_5k_SHP/348111.rar">http://opendata.regione.abruzzo.it/opengeodata/Dati_vettoriali/DBTR/CTR_2001-05_5k_SHP/348111.rar</a>
Any hint?
</pre>
      </blockquote>
      <pre wrap="">
BTW, neither GRASS nor Make Valid (the lwgeom plugin) succeed in fixing
these errors, as they simply throw away the polygons with errors.
Furthermore, lwgeom plugin seems not to be working (returning an empty
output layer) on 2.8, whereas it runs on >=2.12. Feedback would be welcome.
All the best.

</pre>
    </blockquote>
    Hi Paolo<br>
    <br>
    Looks like these are 3D shapefiles, at least when running the
    checker with "create new layer" I got:<br>
    <br>
    <meta name="qrichtext" content="1">
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment-->Failed to create the output layer: creation of layer failed (OGR error:Geometry type of `3D Polygon' not supported in shapefiles.</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Type can be overridden with a layer creation option</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">of SHPT=POINT/ARC/POLYGON/MULTIPOINT/POINTZ/ARCZ/POLYGONZ/MULTIPOINTZ.</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">)
</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
Some improvements are needed in QgsVectorFileWriter to discard the Z component resp to allow 3D polygons.
</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
I'll also look at whether there is some bad handling within the geometry checker code itself.
</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Best
Sandro

<!--EndFragment--></p>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
  </body>
</html>