<div dir="ltr"><div>Ciao Alessandro e grazie mille</div><div><br></div><div>il mio problema principale è che non sono bravo a reperire info sulle funzioni e classi di pyqgis</div><div><br></div><div>saluto</div><div><br></div><div>Giacomo<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 4 lug 2020 alle ore 21:04 Alessandro Perego <<a href="mailto:alsper78@gmail.com">alsper78@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Ciao,</p>
<p>prova questo:<br>
<a href="https://qgis.org/pyqgis/3.10/core/QgsVectorLayer.html#qgis.core.QgsVectorLayer.geometryType" target="_blank">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/" target="_blank">www.alspergis.altervista.org</a>
<p><br>
</p>
<div>Il 04/07/2020 20:29, Giacomo Fontanelli
ha scritto:<br>
</div>
<blockquote type="cite">
<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-m_6484460378348901210gmail-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></fieldset>
<pre>_______________________________________________
QGIS-it-user mailing list
<a href="mailto:QGIS-it-user@lists.osgeo.org" target="_blank">QGIS-it-user@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/qgis-it-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-it-user</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
QGIS-it-user mailing list<br>
<a href="mailto:QGIS-it-user@lists.osgeo.org" target="_blank">QGIS-it-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/qgis-it-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-it-user</a><br>
</blockquote></div>