Skip to main content
edited tags
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Accessing `processing`QGIS processing with Python?PyQGIS

Accessing `processing`QGIS processing with Python?PyQGIS

I want to access the explode lines function in Python outside of QGIS from a standalone script.

What module do I have to load in order to use it?

How can I access processing?

from qgis.core import *

layerInput = QgsVectorLayer('test.shp', 'test', 'ogr')

processing.runalg('qgis:explodelines', layerInput, 'temp.shp')

Accessing `processing` with Python?

I want to access the explode lines function in Python outside of QGIS from a standalone script.

What module do I have to load in order to use it?

How can I access processing?

from qgis.core import *

layerInput = QgsVectorLayer('test.shp', 'test', 'ogr')

processing.runalg('qgis:explodelines', layerInput, 'temp.shp')

Accessing QGIS processing with PyQGIS

I want to access the explode lines function in Python outside of QGIS from a standalone script.

What module do I have to load in order to use it?

How can I access processing?

from qgis.core import *

layerInput = QgsVectorLayer('test.shp', 'test', 'ogr')

processing.runalg('qgis:explodelines', layerInput, 'temp.shp')
Tweeted twitter.com/StackGIS/status/1056787978666815488
added 2 characters in body; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

How can I access Accessing `processing` with Python?

I want to access the explode lines function in Python outside of QGIS from a standalone script.

What module do I have to load in order to use it? 

How can I access processing?

from qgis.core import *

layerInput = QgsVectorLayer('test.shp', 'test', 'ogr')

processing.runalg('qgis:explodelines', layerInput, 'temp.shp')

How can I access `processing` with Python?

I want to access the explode lines function in Python outside of QGIS from a standalone script.

What module do I have to load in order to use it? How can I access processing?

from qgis.core import *

layerInput = QgsVectorLayer('test.shp', 'test', 'ogr')

processing.runalg('qgis:explodelines', layerInput, 'temp.shp')

Accessing `processing` with Python?

I want to access the explode lines function in Python outside of QGIS from a standalone script.

What module do I have to load in order to use it? 

How can I access processing?

from qgis.core import *

layerInput = QgsVectorLayer('test.shp', 'test', 'ogr')

processing.runalg('qgis:explodelines', layerInput, 'temp.shp')
edited title
Link
underdark
  • 84.5k
  • 22
  • 233
  • 415

How to use QGIS explode linescan I access `processing` with Python?

Changed tag 'processing' by 'qgis-processing'
Link
Germán Carrillo
  • 37k
  • 5
  • 125
  • 180
Loading
edited title
Link
ustroetz
  • 8k
  • 11
  • 72
  • 119
Loading
added 41 characters in body
Source Link
ustroetz
  • 8k
  • 11
  • 72
  • 119
Loading
Source Link
ustroetz
  • 8k
  • 11
  • 72
  • 119
Loading