[Qgis-developer] Select Features when editing (python)
Fred Lehodey
lehodey at gmail.com
Thu Jul 31 10:53:34 PDT 2014
Hi,
to select postgis features, I'm using something like:
s =
myLayer.getFeatures(QgsFeatureRequest().setFilterExpression(u'id=%s'%feat_id))
for f in s:
myLayer.setSelectedFeatures([f.id()])
Works fine with existing features.
How to do the same, during editing session of postgis layer, with new
features having temporary negative ids ?
Thanks.
Regards
Fred.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140731/86954106/attachment.html>
More information about the Qgis-developer
mailing list