Created
April 20, 2021 18:54
-
-
Save agiudiceandrea/50ac57923ead295e18453333fa5c5b9e to your computer and use it in GitHub Desktop.
qgis.bat modificato per MSI installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
call "%~dp0\o4w_env.bat" | |
if not exist "%OSGEO4W_ROOT%\apps\qgis\bin\qgisgrass7.dll" goto nograss | |
set savedpath=%PATH% | |
call "%OSGEO4W_ROOT%\apps\grass\grass78\etc\env.bat" | |
path %OSGEO4W_ROOT%\apps\grass\grass78\lib;%OSGEO4W_ROOT%\apps\grass\grass78\bin;%savedpath% | |
:nograss | |
SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python39 | |
SET PYTHONPATH=%PYTHONHOME%;%PYTHONHOME%\Scripts | |
PATH %PYTHONPATH%;%PATH% | |
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\Qt5\plugins | |
set O4W_QT_PREFIX=%OSGEO4W_ROOT:\=/%/apps/Qt5 | |
set O4W_QT_BINARIES=%OSGEO4W_ROOT:\=/%/apps/Qt5/bin | |
set O4W_QT_PLUGINS=%OSGEO4W_ROOT:\=/%/apps/Qt5/plugins | |
set O4W_QT_LIBRARIES=%OSGEO4W_ROOT:\=/%/apps/Qt5/lib | |
set O4W_QT_TRANSLATIONS=%OSGEO4W_ROOT:\=/%/apps/Qt5/translations | |
set O4W_QT_HEADERS=%OSGEO4W_ROOT:\=/%/apps/Qt5/include | |
set O4W_QT_DOC=%OSGEO4W_ROOT:\=/%/apps/Qt5/doc | |
@echo off | |
path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH% | |
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis | |
set GDAL_FILENAME_IS_UTF8=YES | |
rem Set VSI cache to be used as buffer, see #6448 | |
set VSI_CACHE=TRUE | |
set VSI_CACHE_SIZE=1000000 | |
set QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis\qtplugins;%OSGEO4W_ROOT%\apps\qt5\plugins | |
start "QGIS" /B "%OSGEO4W_ROOT%\bin\qgis-bin.exe" %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment