SHARE
TWEET

Untitled

a guest Jun 25th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. parameters = {'INPUT': QgsProcessingFeatureSourceDefinition(layer1.id(), True),
  2.               'OVERLAY': QgsProcessingFeatureSourceDefinition(layer2.id(), True),
  3.               'OUTPUT': 'memory:'}
  4. differenced = processing.run('qgis:difference', parameters)
  5.      
  6. QgsProject.instance().addMapLayer(layer1, False)
  7. QgsProject.instance().addMapLayer(layer2, False)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top