From 987760dc964d930a9a116f6f7ee0ad70c4e6225d Mon Sep 17 00:00:00 2001 From: brutho Date: Wed, 27 May 2026 15:51:12 +0200 Subject: [PATCH] Update README.md --- README.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b29aa1a..8dc4156 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,56 @@ # ardigeos -dünnschliff applikation \ No newline at end of file +dünnschliff applikation + +🚀 Workflow: Subdatasets → echte Overviews +🔹 Schritt 1: Nur höchste Auflösung extrahieren +gdal_translate GTIFF_DIR:1:/scans/thinsect/1/101.tif base.tif -co TILED=YES -co COMPRESS=JPEG -co QUALITY=75 + +👉 Das ist dein „Masterbild“ + +🔹 Schritt 2: Overviews aus vorhandenen Levels bauen + +Gleiche Faktoren wie Subdatasets: + +gdaladdo -r average base.tif 2 4 8 16 32 + +👉 entspricht: + +34576 → 17288 → 8644 → … ✔ + +💡 Vorteil: + +gleiche Struktur wie Original aber jetzt COG-kompatibel + +🔹 Schritt 3: echtes COG erzeugen + +gdal_translate base.tif cog_final.tif -of COG -co COMPRESS=JPEG -co QUALITY=75 -co COPY_SRC_OVERVIEWS=YES + +Ergebnis 1/3 Dateigröße kleinere Datei als Original, da dort zuvor auch tiles enthalten sind (leider keine COG TIFF Pyramiden) + +für alle Ordner in /scans/thinsect/(1-52)*tif + +nohup bash -c ' +for dir in 49 50 51 52; do + find /scans/thinsect/$dir -name "*.tif" | parallel \ + --bar \ + --joblog conversion_${dir}.log \ + " + file={} + name=\$(basename \"\$file\" .tif) + + gdal_translate \ + \"GTIFF_DIR:1:\$file\" \ + \"/scans/thinsect/cog_out/13/\${name}.tif\" \ + -of COG \ + -co COMPRESS=JPEG \ + -co QUALITY=75 \ + -co RESAMPLING=AVERAGE + " +done +' > conversion.out 2>&1 & + +danach +``gdalinfo /scans/tninsection/cog_out/1/1.tif`` + +NGINX Anpassung und index.html anlegen mit Openlayerunterstützung