forked from NathanW2/qgis2img
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qgis2img.bat
32 lines (23 loc) · 1010 Bytes
/
qgis2img.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@ECHO OFF
REM ---------------------------------------------------------------------------------------
REM Script to setup the environment for building Roam with QGIS 2.x.
REM This script sets the base folder that is used though out the build process
REM and sets the location to Python.
REM Change %OSGEO4W_ROOT% in setenv.bat to change in the location of QGIS.
REM ---------------------------------------------------------------------------------------
for %%x in (%cmdcmdline%) do if /i "%%~x"=="/c" set DOUBLECLICKED=1
REM Change OSGeo4W_ROOT to point to your install of QGIS.
SET OSGEO4W_ROOT=C:\OSGeo4W
SET QGISNAME=qgis-dev
SET QGIS=%OSGEO4W_ROOT%\apps\%QGISNAME%
set QGIS_PREFIX_PATH=%QGIS%
CALL %OSGEO4W_ROOT%\bin\o4w_env.bat
: Python Setup
set PATH=%OSGEO4W_ROOT%\bin;%QGIS%\bin;%PATH%
SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python27
set PYTHONPATH=%~dp0;%QGIS%\python;%PYTHONPATH%
SET QGIS_DEBUG=0
SET QGIS_LOG_FILE=C:\TEMP\qgis.log
SET QGIS_DEBUG_FILE=C:\TEMP\qgis.log
python qgis2img %*
pause