Эдуард Казаков, здравствуйте и спасибо!
Ваш ответ помог мне запустить эту команду в консоли Python QGIS'a, но как мне быть с тем что OSGeo4W Shell упорно не хочет воспринимать то что я ему "скрамливаю", помогите пожалуйста! Вот кот, ой код

)
Код: Выделить всё
C:\>set PYTHONPATH=C:\OSGeo4W\apps\qgis\python
C:\>set PATH=C:\OSGeo4W\apps\qgis\bin;%PATH%
C:\>python
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from qgis.core import *
>>> from PyQt4.QtGui import *
>>> app = QApplication([])
>>> QgsApplication.initQgis()
>>> sys.path.append('C:/OSGeo4W/apps/qgis/python/plugins')
>>> sys.path.append('C:/OSGeo4W/apps/qgis/python')
>>> from processing.core.Processing import Processing
>>> Processing.initialize()
>>> from processing.tools import *
>>>
>>>
>>> ilay = QgsVectorLayer("C:\\SAT\\Release\\plan\\temp\\other_zorder.shp", "oth", "ogr")
>>> maxlayer = QgsVectorLayer("C:\\SAT\\Release\\plan\\temp\\mx_zorder.shp", "max" "ogr")
>>> general.runalg("qgis:difference",ilay,maxlayer,0,"C:\\SAT\\Release\\plan\\temp\\result.shp")
Unable to execute algorithm
Wrong parameter value: C:\SAT\Release\plan\temp\other_zorder.shp
>>> general.runalg("qgis:difference","C:\\SAT\\Release\\plan\\temp\\other_zorder.shp","C:\\SAT\\Release\\plan\\temp\\mx_zorder.shp",0,"C:\\SAT\\Release\\plan\\temp\\result.shp")
Unable to execute algorithm
Wrong parameter value: C:\SAT\Release\plan\temp\other_zorder.shp
>>>
>>> general.runalg("qgis:difference","C:\\SAT\\Release\\plan\\temp\\mx_zorder.shp","C:\\SAT\\Release\\plan\\temp\\other_zorder.shp",0,"C:\\SAT\\Release\\plan\\temp\\result.shp")
Unable to execute algorithm
Wrong parameter value: C:\SAT\Release\plan\temp\mx_zorder.shp
>>>
Вывод сообщения выделил жирным. Ну хотя бы код ошибки указали, я бы на яндексил, а то просто:
Unable to execute algorithm
Wrong parameter value: C:\SAT\Release\plan\temp\other_zorder.shp
Путь к файлу валидный, но видно что он отказывается из-за пути и(или) файла, хотя с ними(путь\файл) всё ОК!,
Unable to execute algorithm, раньше я думал что он не понимает что от него хотят, НО если убрать все переменные....
Код: Выделить всё
>>> general.runalg("qgis:difference")
Error: Wrong number of parameters
ALGORITHM: Difference
INPUT <ParameterVector>
OVERLAY <ParameterVector>
IGNORE_INVALID <ParameterBoolean>
OUTPUT <OutputVector>
Код: Выделить всё
>>> general.runalg("qgis:difference","C:/other_zorder.shp","C:/mx_zorder.shp",0,
"C:/result.shp")
Unable to execute algorithm
Wrong parameter value: C:/other_zorder.shp
Положил прямо корень диска C:/ и ... Ничего не произошло...
Что ему нужно???