Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
871e4b21
Commit
871e4b21
authored
Apr 11, 2016
by
Rashad Kanavath
Browse files
PKG: adding startup script for unix
parent
40bcebbd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Packaging/
Windows/
mapla.bat
→
Packaging/mapla.bat
View file @
871e4b21
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: M
onteverdi
launcher to set up proper
GDAL
environment
:: M
apla
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"
%
*
Packaging/mapla.sh.in
0 → 100644
View file @
871e4b21
#!/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
"
$@
"
Packaging/
Windows/
monteverdi.bat
→
Packaging/monteverdi.bat
View file @
871e4b21
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: 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"
%
*
Packaging/monteverdi.sh.in
0 → 100644
View file @
871e4b21
#!/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
"
$@
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment