Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- processing.run("qgis:distancematrix",{ 'INPUT' : 'C:/Final Demand Allocation/centroid.shp', 'INPUT_FIELD' : 'HMINNODE', 'TARGET' : 'C:/Final Demand Allocation/Test/Proposed_Nodes.shp', 'TARGET_FIELD' : 'id', 'MATRIX_TYPE' : 0, 'NEAREST_POINTS' : 1, 'OUTPUT' : 'memory:' })
- uri = "file:///C:/Final Demand Allocation/finalDistance.csv?delimiter=,&crs=epsg:4326"
- vlayer = QgsVectorLayer(uri,'finalDistance','delimitedtext')
- QgsProject.instance().addMapLayer(vlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement