Skip to content

Instantly share code, notes, and snippets.

@juusechec
Last active May 10, 2018 01:27
Show Gist options
  • Save juusechec/e08207b2516754a4de2c7040fd597c80 to your computer and use it in GitHub Desktop.
Save juusechec/e08207b2516754a4de2c7040fd597c80 to your computer and use it in GitHub Desktop.
QGIS Util Commands
# 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