Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- layer = qgis.utils.iface.activeLayer()
- # Use active layer
- def select(featureAdded):
- layer.setSelectedFeatures([featureAdded])
- layer.featureAdded.connect(select)
- # Connect "featureAdded" event to "select" function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement