From de8b901c6320cad0768efbff2ff8874fa9d1b86d Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Mon, 15 Dec 2025 21:52:19 +0100 Subject: [PATCH] moved scripts --- raw/dop20/dlscript.sh | 28 ---------------------------- setup_dirs.sh | 28 ---------------------------- 2 files changed, 56 deletions(-) delete mode 100755 raw/dop20/dlscript.sh delete mode 100644 setup_dirs.sh diff --git a/raw/dop20/dlscript.sh b/raw/dop20/dlscript.sh deleted file mode 100755 index ed79f05..0000000 --- a/raw/dop20/dlscript.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -# Download DOP assets (JP2/J2W/XML) listed line-by-line in filelist.txt. -set -euo pipefail - -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -LIST="$ROOT/filelist.txt" -OUT="$ROOT/jp2" - -if [[ ! -f "$LIST" ]]; then - echo "Missing filelist: $LIST" >&2 - exit 1 -fi - -mkdir -p "$OUT" - -while IFS= read -r url; do - [[ -z "$url" || "$url" =~ ^# ]] && continue - fname="${url##*/}" - dest="$OUT/$fname" - if [[ -f "$dest" ]]; then - echo "Exists: $fname" - continue - fi - echo "Downloading $fname" - curl -fL "$url" -o "$dest" -done < "$LIST" - -echo "Done. Files in $OUT" diff --git a/setup_dirs.sh b/setup_dirs.sh deleted file mode 100644 index fc89d46..0000000 --- a/setup_dirs.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# Create the default directory layout for GeoData inputs/outputs. -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - -DIRS=( - "$ROOT/raw/dgm1" - "$ROOT/raw/dop20/jp2" - "$ROOT/raw/dop/jp2" - "$ROOT/raw/citygml/lod1" - "$ROOT/raw/citygml/lod2" - "$ROOT/archives/dgm1" - "$ROOT/archives/dop20" - "$ROOT/archives/dop" - "$ROOT/archives/citygml/lod1" - "$ROOT/archives/citygml/lod2" - "$ROOT/work" - "$ROOT/export_unity/height_png16" - "$ROOT/export_unity/ortho_jpg" -) - -for dir in "${DIRS[@]}"; do - mkdir -p "$dir" -done - -echo "Created default directories:" -printf ' - %s\n' "${DIRS[@]}"