Commit 871e4b21 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

PKG: adding startup script for unix

parent 40bcebbd
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Monteverdi launcher to set up proper GDAL environment
:: 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 OTB_APPLICATION_PATH=%CURRENT_SCRIPT_DIR%..\lib\otb\applications
@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%mapla.exe" %*
@start "Monteverdi Application Launcher" /B "%CURRENT_SCRIPT_DIR%bin\mapla.exe" %*
#!/bin/sh
cd `dirname $0`
THIS_DIR=`pwd`
export OTB_APPLICATION_PATH=$THIS_DIR/lib/otb/applications
export GDAL_DATA=$THIS_DIR/share/gdal
export GEOTIFF_CSV=$THIS_DIR/share/epsg_csv
cd $THIS_DIR/bin
$THIS_DIR/bin/mapla "$@"
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Monteverdi launcher to set up proper GDAL environment
:: Monteverdi 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 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 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 Viewer" /B "%CURRENT_SCRIPT_DIR%monteverdi.exe" %*
@start "Monteverdi Viewer" /B "%CURRENT_SCRIPT_DIR%bin\monteverdi.exe" %*
#!/bin/sh
cd `dirname $0`
THIS_DIR=`pwd`
export OTB_APPLICATION_PATH=$THIS_DIR/lib/otb/applications
export GDAL_DATA=$THIS_DIR/share/gdal
export GEOTIFF_CSV=$THIS_DIR/share/epsg_csv
cd $THIS_DIR/bin
$THIS_DIR/bin/monteverdi "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment