Last active
May 10, 2018 01:27
-
-
Save juusechec/e08207b2516754a4de2c7040fd597c80 to your computer and use it in GitHub Desktop.
QGIS Util Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python Console env | |
# Get current Layer https://github.com/wfpinedar/typeCapa/blob/master/tipedata.py | |
layer = iface.activeLayer() | |
# Name of current layer | |
layer_name = iface.activeLayer().name() | |
# Uri of resource layer | |
iface.activeLayer().dataProvider().dataSourceUri() | |
# Display Expression of Layer | |
iface.activeLayer().displayExpression() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment