I have downloaded script "Save features filtered by expression" in Processing toolbox -> Scripts (It is saved in
/home/user/.QGIS/processing) and I would like to call this script in standalone PyQGIS script. It works nice if used in normal Ubuntu with QGIS.
I call it with this:
# select by attribute (select water) input_file=sys.argv output_file=sys.argv expression='DN=1' general.runalg("script:Savefeaturesbyfilteredexpression",input_file,expression,output_file)
But when I try use it with my Docker Image it is not working anymore because that directory does not exist. If I have the file downloaded where I should script copy to and how to call it?
I am asking in general how to use external script. Other processing tools (grass, gdal) works in my Docker Image, but this script has a error:
Algorithm not found.
I have copied the script (in docker image) to the same location as in Ubuntu. But it is still not working.
Error: Algorithm is not found.
Is there a default folder to put external script and PyQGIS will automatically find it there and will use it or script can be anywhere and I am supposed call script by some function to make it working?