otbgui.sh.in 961 Bytes
Newer Older
1
#!/bin/sh
2 3 4 5 6 7

#
# Autogenerated by OTB installation process
# DO NOT MODIFY
#

8
CURRENT_SCRIPT_DIR=$(dirname "$0")
9

10
if [ -e "$CURRENT_SCRIPT_DIR/otbApplicationLauncherQt" ]
11 12 13 14 15 16 17 18 19 20 21
then
  # Prefer using the launcher inside the script dir
  OTB_GUI_LAUNCHER=$CURRENT_SCRIPT_DIR/otbApplicationLauncherQt
else
  # Use the one from the PATH
  OTB_GUI_LAUNCHER=otbApplicationLauncherQt
fi

# avoid numerical issues caused by locale
export LC_NUMERIC=C

22 23 24
# Export GDAL_DATA, EPSG_CSV
if [ -f "$CURRENT_SCRIPT_DIR/../otbenv.profile" ]; then
    . "$CURRENT_SCRIPT_DIR/../otbenv.profile"
25 26 27 28 29 30 31
else
    # use the default install tree path for applications
    if [ -d "$CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@" ]; then
	OTB_APPLICATION_PATH=$CURRENT_SCRIPT_DIR/../@OTB_INSTALL_APP_DIR@:$OTB_APPLICATION_PATH
    fi
    # export it to make it available to otbApplicationLauncherCommandLine environment
    export OTB_APPLICATION_PATH
32 33
fi

34 35
# start the application
$OTB_GUI_LAUNCHER "$@"