[Qgis-developer] Python bindings for enum LayerType?
Borys Jurgiel
borysiasty at aster.pl
Thu Jan 28 05:46:28 EST 2010
Dnia czwartek, 28 stycznia 2010 o 11:36:36 luca_manganelli at comune.trento.it
napisał(a):
> Hi, see this:
>
> http://doc.qgis.org/head/classQgsMapLayer.html#df3b0b576d7812c4359ece214217
> 0308
>
> I cannot use this enum in Python... I found that VectorLayer = 0 and
> RasterLayer = 1.
Try it in the python console:
layer = qgis.utils.iface.activeLayer()
layer.type() == QgsMapLayer.VectorLayer
[True]
More information about the Qgis-developer
mailing list