otbgui.bat.in 787 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
@echo off
::
:: Autogenerated by OTB installation process
:: DO NOT MODIFY
::

set CURRENT_SCRIPT_DIR=%~dp0

if exist %CURRENT_SCRIPT_DIR%otbApplicationLauncherQt.exe (
  :: Prefer using the launcher inside the script dir
  set OTB_GUI_LAUNCHER=%CURRENT_SCRIPT_DIR%otbApplicationLauncherQt.exe
) else (
  :: Use the one from the PATH
  set OTB_GUI_LAUNCHER=otbApplicationLauncherQt.exe
)

17
setlocal
18 19
:: works for install tree
if exist %CURRENT_SCRIPT_DIR%../@OTB_INSTALL_APP_DIR@ (
20
  set OTB_APPLICATION_PATH=%CURRENT_SCRIPT_DIR%../@OTB_INSTALL_APP_DIR@;%OTB_APPLICATION_PATH%
21 22 23 24
)

set LC_NUMERIC=C

25 26 27 28 29
::set GDAL_DATA, EPSG_CSV and update PATH
if exist %CURRENT_SCRIPT_DIR%\..\otbenv.bat (
    call %CURRENT_SCRIPT_DIR%\..\otbenv.bat
)

30 31
:: start the application
%OTB_GUI_LAUNCHER% %*
32
endlocal