otbenv.bash 486 Bytes
Newer Older
1
#!/usr/bin/env bash
2

3
CURRENT_DIR=$(cd -P -- "$(dirname -- "$BASH_SOURCE")" && printf '%s\n' "$(pwd -P)")
4 5

unset LD_LIBRARY_PATH
6

7
PATH=$CURRENT_DIR/bin:$PATH
8
GDAL_DATA=$CURRENT_DIR/share/data
9
GEOTIFF_CSV=$CURRENT_DIR/share/epsg_csv
10 11
PYTHONPATH=$CURRENT_DIR/lib/python:$PYTHONPATH
OTB_APPLICATION_PATH=$CURRENT_DIR/lib/otb/applications
12
GDAL_DRIVER_PATH="disable"
13
LC_NUMERIC=C
14 15 16 17

export PATH
export GDAL_DATA
export GEOTIFF_CSV
18 19 20
export PYTHONPATH
export OTB_APPLICATION_PATH
export LC_NUMERIC