Commit 488fbaf1 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1417: fix other GDAL_DATA and keep a SINGLE environment setup script

parent f66ea2f1
::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Mapla launcher to set up proper environment :: Mapla launcher to set up proper environment
::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
:: Set locale numeric to C setlocal
@set LC_NUMERIC=C
:: Get the directory of the current script :: Get the directory of the current script
@set CURRENT_SCRIPT_DIR=%~dp0 set CURRENT_SCRIPT_DIR=%~dp0
:: Set GDAL_DATA env. variable
@set GDAL_DATA=%CURRENT_SCRIPT_DIR%share\gdal
:: Set GEOTIFF_CSV env. variable :: Setup environment
@set GEOTIFF_CSV=%CURRENT_SCRIPT_DIR%share\epsg_csv call %CURRENT_SCRIPT_DIR%otbenv.cmd
:: 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 :: Set current dir to HOME dir because Monteverdi generates temporary files and need write access
@cd %HOMEDRIVE%%HOMEPATH% cd %HOMEDRIVE%%HOMEPATH%
:: Start Monteverdi :: Start Monteverdi
@start "Monteverdi Application Launcher" /B "%CURRENT_SCRIPT_DIR%bin\mapla.exe" %* start "Monteverdi Application Launcher" /B "%CURRENT_SCRIPT_DIR%bin\mapla.exe" %*
endlocal
::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Monteverdi launcher to set up proper environment :: Monteverdi launcher to set up proper environment
::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
:: Set locale numeric to C setlocal
@set LC_NUMERIC=C
:: Get the directory of the current script :: Get the directory of the current script
@set CURRENT_SCRIPT_DIR=%~dp0 set CURRENT_SCRIPT_DIR=%~dp0
:: Set GDAL_DATA env. variable
@set GDAL_DATA=%CURRENT_SCRIPT_DIR%share\gdal
:: Set GEOTIFF_CSV env. variable :: Setup environment
@set GEOTIFF_CSV=%CURRENT_SCRIPT_DIR%share\epsg_csv call %CURRENT_SCRIPT_DIR%otbenv.cmd
:: 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 :: Set current dir to HOME dir because Monteverdi generates temporary files and need write access
@cd %HOMEDRIVE%%HOMEPATH% cd %HOMEDRIVE%%HOMEPATH%
:: Start Monteverdi :: Start Monteverdi
@start "Monteverdi Viewer" /B "%CURRENT_SCRIPT_DIR%bin\monteverdi.exe" %* start "Monteverdi Viewer" /B "%CURRENT_SCRIPT_DIR%bin\monteverdi.exe" %*
endlocal
...@@ -7,7 +7,14 @@ unset LD_LIBRARY_PATH ...@@ -7,7 +7,14 @@ unset LD_LIBRARY_PATH
PATH=$CURRENT_DIR/bin:$PATH PATH=$CURRENT_DIR/bin:$PATH
GDAL_DATA=$CURRENT_DIR/share/data GDAL_DATA=$CURRENT_DIR/share/data
GEOTIFF_CSV=$CURRENT_DIR/share/epsg_csv GEOTIFF_CSV=$CURRENT_DIR/share/epsg_csv
PYTHONPATH=$CURRENT_DIR/lib/python:$PYTHONPATH
OTB_APPLICATION_PATH=$CURRENT_DIR/lib/otb/applications
LC_NUMERIC=C
export PATH export PATH
export GDAL_DATA export GDAL_DATA
export GEOTIFF_CSV export GEOTIFF_CSV
export PYTHONPATH
export OTB_APPLICATION_PATH
export LC_NUMERIC
:: Setup environment for OTB package
set CURRENT_SCRIPT_DIR=%~dp0 set CURRENT_SCRIPT_DIR=%~dp0
set PATH=%CURRENT_SCRIPT_DIR%\bin;%PATH% set PATH=%CURRENT_SCRIPT_DIR%bin;%PATH%
set GDAL_DATA=%CURRENT_SCRIPT_DIR%share\data
set GEOTIFF_CSV=%CURRENT_SCRIPT_DIR%share\epsg_csv
set PYTHONPATH=%CURRENT_SCRIPT_DIR%lib\python;%PYTHONPATH%
set OTB_APPLICATION_PATH=%CURRENT_SCRIPT_DIR%lib\otb\applications
set GDAL_DATA=%CURRENT_SCRIPT_DIR%\share\data :: Set numeric locale to C
set LC_NUMERIC=C
set GEOTIFF_CSV=%CURRENT_SCRIPT_DIR%\share\epsg_csv
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