-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathShell.bat
More file actions
45 lines (40 loc) · 819 Bytes
/
Shell.bat
File metadata and controls
45 lines (40 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
REM CloudTools Environment
:: Load configuration
if exist "%~dp0\Shell.config.cmd" (
call "%~dp0\Shell.config.cmd"
) else (
echo Create Shell.config.cmd config file from Shell.config.cmd.sample!
exit /b
)
set PATH=%~dp0;%GDAL_BIN%;%PATH%
:: Check GDAL/OGR
where gdalinfo >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo GDAL/OGR tools not found.
exit /b
)
:: Check CloudTools
where dem_diff >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo CloudTools not found.
exit /b
)
echo === CloudTools Environment ===
echo.
@if [%1]==[] (
echo Available programs:
echo dem_diff
echo dem_mask
echo ahn_buildings_sim
echo ahn_buildings_par
echo ahn_buildings_agg
echo ahn_buildings_ver
echo ahn_buildings_mpi
echo vegetation
echo vegetation_ver
echo.
cmd.exe /k ""
) else (
cmd /c "%*"
)