Created
July 20, 2012 11:40
-
-
Save NathanW2/3150290 to your computer and use it in GitHub Desktop.
QGIS init function
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
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