Skip to content

Instantly share code, notes, and snippets.

@NathanW2
Created July 20, 2012 11:40
Show Gist options
  • Save NathanW2/3150290 to your computer and use it in GitHub Desktop.
Save NathanW2/3150290 to your computer and use it in GitHub Desktop.
QGIS init function
def myFunction(dialog, layer, feature):
geom = feature.geometry()
wkt = geom.exportToWkt()
# use the WKT in your PostGIS function to find the closest road
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment