Test1b.py
1 |
##Test1b=name
|
---|---|
2 |
##Utils_AM=groups
|
3 |
##Polygon_Datei=vector polygon
|
4 |
##Species_Attribute=field Species_Range_Polygons
|
5 |
##Presence_Field_Name=string presence
|
6 |
##Presence_Field_Value=expression 1
|
7 |
##Output_Directory=folder /tmp/
|
8 |
|
9 |
from qgis.core import * |
10 |
#import qgis.utils
|
11 |
from qgis.utils import iface |
12 |
import processing |
13 |
import os.path |
14 |
|
15 |
print("Skript gestartet")
|
16 |
|
17 |
# input layer
|
18 |
print("Schritt 1a")
|
19 |
Polygon_Datei = iface.activeLayer() |
20 |
print(Polygon_Datei.name()) |
21 |
print("Anzahl = " + str(Polygon_Datei.featureCount())) |
22 |
print("Schritt 1e")
|
23 |
# species column name
|
24 |
|
25 |
|
26 |
print("Skript beendet")
|
27 |
|
28 |
|