Files
xian_algorithm_new/app/script/run_qgis.bat
T
2026-06-20 16:14:28 +08:00

24 lines
847 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
REM ============================================================
REM QGIS 子进程启动脚本(Windows
REM 需要设置 QGIS_ROOT 环境变量指向 QGIS 安装目录
REM ============================================================
if "%QGIS_ROOT%"=="" (
echo [ERROR] QGIS_ROOT 环境变量未设置
exit /b 1
)
set "QGIS_APP_DIR=%QGIS_ROOT%\apps\qgis-ltr"
set "PYTHONHOME=%QGIS_ROOT%\apps\Python312"
set "PYTHONPATH=%QGIS_APP_DIR%\python"
set "QGIS_PREFIX_PATH=%QGIS_APP_DIR%"
set "QT_PLUGIN_PATH=%QGIS_APP_DIR%\qtplugins;%QGIS_ROOT%\apps\Qt5\plugins"
set "GDAL_DATA=%QGIS_ROOT%\apps\gdal\share\gdal"
set "PYTHONUTF8=1"
set "GDAL_FILENAME_IS_UTF8=YES"
set "VSI_CACHE=TRUE"
set "VSI_CACHE_SIZE=1000000"
set "PATH=%QGIS_APP_DIR%\bin;%QGIS_ROOT%\apps\Qt5\bin;%QGIS_ROOT%\apps\gdal\lib;%PATH%"
"%PYTHONHOME%\python3.exe" %*