<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Ciao,</p>
    <p>prova questo:<br>
      <a moz-do-not-send="true"
href="https://qgis.org/pyqgis/3.10/core/QgsVectorLayer.html#qgis.core.QgsVectorLayer.geometryType">https://qgis.org/pyqgis/3.10/core/QgsVectorLayer.html#qgis.core.QgsVectorLayer.geometryType</a><br>
      <br>
      nel tuo caso potrebbe essere<br>
      <br>
        if vectorLayerQGS.geometryType() != QgsWkbTypes.PolygonGeometry:</p>
    -- <br>
    Alessandro Perego<br>
    <a href="http://www.alspergis.altervista.org/">www.alspergis.altervista.org</a>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Il 04/07/2020 20:29, Giacomo Fontanelli
      ha scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAO5DHxGY36AKxkyAWijvkVPiGzH2J4cwpW7-tmvjq36RXTQYgA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Salve a tutti</div>
        <div><br>
        </div>
        <div>usando py qgis vorrei scrivere delle righe che controllano
          se il vector layer interessato è poligonale.</div>
        <div><br>
        </div>
        <div>esiste un metodo "isPolygon()" per scrivere qualcosa di
          simile?</div>
        <div><br>
        </div>
        <div><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap" id="gmail-docs-internal-guid-aa39957f-7fff-b6e0-1004-a638804b1219">if not</span><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(152,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">vectorLayerQGS</span><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">.isPolygon</span><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">():</span></div>
        <div><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
</span></div>
        <div><span style="font-size:12pt;font-family:"Liberation Serif";color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Grazie
</span></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-it-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-it-user@lists.osgeo.org">QGIS-it-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-it-user">https://lists.osgeo.org/mailman/listinfo/qgis-it-user</a>
</pre>
    </blockquote>
  </body>
</html>