otbcli.bat.in 828 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%otbApplicationLauncherCommandLine.exe (
  :: Prefer using the launcher inside the script dir
  set OTB_CLI_LAUNCHER=%CURRENT_SCRIPT_DIR%otbApplicationLauncherCommandLine.exe
) else (
  :: Use the one from the PATH
  set OTB_CLI_LAUNCHER=otbApplicationLauncherCommandLine.exe
)

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

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

28 29
set LC_NUMERIC=C

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