I want to check which type of geometry the current layer has. Therefore I use the PyQGIS documentation on Access to Geometry and my code looks like:
if iface.mapCanvas().currentLayer().wkbType() == QGis.WKBPoint: print True
If I run this code I get following error:
Traceback (most recent call last): File "<input>", line 1, in <module> NameError: name 'Qgis' is not defined
I can't import a
QGis class because I get an error that it does not exist.
Are there steps missing or how can I use this QGis class?