[Qgis-developer] Python bindings for enum LayerType?

Jürgen E. Fischer jef at norbit.de
Thu Jan 28 05:48:17 EST 2010


Hi Luca,

On Thu, 28. Jan 2010 at 11:36:36 +0100, luca_manganelli at comune.trento.it wrote:
> http://doc.qgis.org/head/classQgsMapLayer.html#df3b0b576d7812c4359ece2142170308
 
> I cannot use this enum in Python... I found that VectorLayer = 0 and
> RasterLayer = 1.

Use QgsMapLayer.VectorLayer and QgsMapLayer.RasterLayer.


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502



More information about the Qgis-developer mailing list