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

PyQGIS - How to save a Saving layer as a temporary file usig PyQGIS?

Source Link
benchenggis
  • 1.4k
  • 2
  • 13
  • 30

PyQGIS - How to save a layer as a temporary file

I am writing a script to automate some processes which involved producing some layers like this:

Input -> Do sth on Input -> Layer A -> Do sth on Layer A-> Layer B -> Do sth on Layer B -> output

My approach is to save Layer A, B and the output as shapefile

However, layer A B are actually useless after the process is finished. I don't want to save them as shp but as temporary layer like below:

But I want to do it via PyQGIS

enter image description here