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

Saving layer as temporary file usig PyQGIS?

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

benchenggis
  • 1.4k
  • 2
  • 13
  • 30