Tuesday, 18 July 2017

pyqgis - How to show in a custom QGIS form the feature and/or geometry info?


I need to show point coordinates on the from dialog used to edit the attributes of a point.. I see that in the formOpen the dialog receives a layerId and a featureId, but no iface object, so how can get a provider to use the selectatId() and reach feature informations?


def formOpen(dialog,layerid,featureid):
...omissis...

(see here for a more detailed explanation of custom qgis forms)




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...