3

i am building a qgis plugin that can create as much copies of a selected feature as i want and paste it to my required place.I have code to copy and paste feature select = iface.activeLayer().selectedFeatures()

    if self.i==0:
        iface.actionCopyFeatures().trigger()
        self.i=1
    else:
        iface.actionPasteFeatures().trigger()

On first click it copies the feature and on second click it paste it and so on..But my problem is i want to paste it on my required place just like i am moving feature from one place to another.Please tell me how to move feature and also how to perform this whole task.I am using this with cursor click so i want to know also how to get feature on my cursor on first click so i can easily paste it on my required place..Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.