mapla.bat 833 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Mapla launcher to set up proper environment
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: Set locale numeric to C
@set LC_NUMERIC=C

:: Get the directory of the current script
@set CURRENT_SCRIPT_DIR=%~dp0

:: Set GDAL_DATA env. variable
@set GDAL_DATA=%CURRENT_SCRIPT_DIR%share\gdal

:: Set GEOTIFF_CSV env. variable
@set GEOTIFF_CSV=%CURRENT_SCRIPT_DIR%share\epsg_csv

:: Performance issue: do not set ITK_AUTOLOAD_PATH to avoid loading of OTB-Applications.
@set OTB_APPLICATION_PATH=%CURRENT_SCRIPT_DIR%lib\otb\applications

:: Set current dir to HOME dir because Monteverdi generates temporary files and need write access
@cd %HOMEDRIVE%%HOMEPATH%

:: Start Monteverdi
@start "Monteverdi Application Launcher" /B "%CURRENT_SCRIPT_DIR%bin\mapla.exe" %*