I am trying to update an existing field on a shapefile using data from another shapefile. Basically, each attribute table contains an ID field that I want to use to update a field called "address".
So far, I have tried to use the processing alg "qgis:joinattributestable" and QgsVectorJoinInfo(). Both of these solutions however seem to create temporary join fields that are of no use to me.
Is this something that is possible with QGIS?
I've tried to assign my layers as follows but the join does not seem to work: ' Layer 1 = QgsVectorLayer("path", "name". "ogr) Layer 2 = QgsVectorLayer("path","name,"ogr")
Thanks
– JamieTasker Jan 04 '17 at 15:37QgsMapLayerRegistry.instance().addMapLayers([layer1, layer2])? – Joseph Jan 04 '17 at 15:41Thanks ever so much for your help!
– JamieTasker Jan 04 '17 at 15:54So you would use: for layer in QgsProject.instance().mapLayers().values(): instead of for layer in QgsMapLayerRegistry.instance().mapLayers().values():
– grego Oct 27 '21 at 23:25