Compare commits

..
Author SHA1 Message Date
Alex38Lyon 3e6cf3c433 Delete Outputs/SHP/walls3d - Copie.shp 2026-09-03 08:22:12 +02:00
Alex38Lyon c9b5dda7a8 debug 2026-09-01 18:36:31 +02:00
github-actions[bot] 0d395c0ac9 Auto-generate outputs from SHP 2026-08-31 22:04:38 +00:00
Alex38Lyon ee9b9160a2 Lancement 2026-09-01 00:02:24 +02:00
Alex38Lyon 3a2f7018a0 Refactor GDAL installation script with improved comments
Updated comments and error messages in the GDAL installation script to improve clarity and consistency. Adjusted the structure of the script for better readability.
2026-08-31 23:58:28 +02:00
Alex38Lyon 1ee82128b3 Enhance GDAL installation script with checks and messages
Added checks for GDAL package existence and structure, improved error handling, and clarified installation steps.
2026-08-31 23:53:27 +02:00
Alex38Lyon c5d34c8544 Refactor GDAL installation with error handling
Updated GDAL installation process to include checks for executables, libraries, and directories. Enhanced error handling and output messages for better debugging.
2026-08-31 23:45:57 +02:00
Alex38Lyon dfb6900e71 pyThtoQGis 2026-08-31 23:39:02 +02:00
16 changed files with 11515 additions and 668 deletions
+156 -49
View File
@@ -187,12 +187,11 @@ jobs:
ls -lh \ ls -lh \
"$RUNNER_TEMP/${PACKAGE_NAME}.tar.gz" "$RUNNER_TEMP/${PACKAGE_NAME}.tar.gz"
# ============================================================ # ============================================================
# 7. Installation package GDAL # 7. Installation package GDAL
# ============================================================ # ============================================================
- name: Install GDAL package - name: Installation GDAL package
if: steps.changed.outputs.shp == 'true' if: steps.changed.outputs.shp == 'true'
shell: bash -el {0} shell: bash -el {0}
run: | run: |
@@ -205,79 +204,186 @@ jobs:
PACKAGE="$RUNNER_TEMP/${PACKAGE_NAME}.tar.gz" PACKAGE="$RUNNER_TEMP/${PACKAGE_NAME}.tar.gz"
EXTRACT_DIR="$RUNNER_TEMP/gdal-extract"
echo "========================================" echo "========================================"
echo "INSTALLATION GDAL" echo "INSTALLATION GDAL"
echo "========================================" echo "========================================"
cd "$RUNNER_TEMP" # ========================================================
# Vérification du package
# ========================================================
if [ ! -f "$PACKAGE" ]; then
echo "ERREUR : package introuvable :"
echo "$PACKAGE"
exit 1
fi
# ========================================================
# Extraction
# ========================================================
rm -rf "$EXTRACT_DIR"
mkdir -p "$EXTRACT_DIR"
tar \ tar \
-xzf \ -xzf \
"$PACKAGE" "$PACKAGE" \
-C "$EXTRACT_DIR"
# -------------------------------------------------------- # ========================================================
# Exécutables # Affichage STRUCTURE REELLE
# -------------------------------------------------------- # ========================================================
cp -a \ echo ""
"$PACKAGE_NAME"/gdal* \ echo "========================================"
"$CONDA_PREFIX/bin/" echo "STRUCTURE DU PACKAGE"
echo "========================================"
find "$EXTRACT_DIR" \
-maxdepth 6 \
-print \
| sort
# -------------------------------------------------------- # ========================================================
# Bibliothèque GDAL # Répertoire racine
# -------------------------------------------------------- # ========================================================
cp -a \ GDAL_DIR="$EXTRACT_DIR/$PACKAGE_NAME"
"$PACKAGE_NAME"/libgdal.so* \
"$CONDA_PREFIX/lib/"
# -------------------------------------------------------- if [ ! -d "$GDAL_DIR" ]; then
# Python bindings
# --------------------------------------------------------
rm -rf \ echo ""
"$CONDA_PREFIX/lib/python3.12/site-packages/osgeo" echo "ERREUR : répertoire package absent :"
echo "$GDAL_DIR"
cp -a \ exit 1
"$PACKAGE_NAME/osgeo" \
"$CONDA_PREFIX/lib/python3.12/site-packages/"
fi
# --------------------------------------------------------
# Headers
# --------------------------------------------------------
rm -rf \
"$CONDA_PREFIX/include/gdal"
cp -a \
"$PACKAGE_NAME/gdal" \
"$CONDA_PREFIX/include/"
# --------------------------------------------------------
# GDAL data
# --------------------------------------------------------
rm -rf \
"$CONDA_PREFIX/share/gdal"
cp -a \
"$PACKAGE_NAME/gdal" \
"$CONDA_PREFIX/share/" \
2>/dev/null || true
echo "" echo ""
echo "GDAL installé." echo "GDAL_DIR :"
echo "$GDAL_DIR"
# ========================================================
# Vérification structure attendue
# ========================================================
echo ""
echo "========================================"
echo "VERIFICATION"
echo "========================================"
if [ ! -d "$GDAL_DIR/bin" ]; then
echo "ERREUR : bin/ absent"
exit 1
fi
if [ ! -d "$GDAL_DIR/lib" ]; then
echo "ERREUR : lib/ absent"
exit 1
fi
# ========================================================
# Installation BIN
# ========================================================
echo ""
echo "Installation bin/..."
cp -av \
"$GDAL_DIR/bin/." \
"$CONDA_PREFIX/bin/"
# ========================================================
# Installation LIB
# ========================================================
echo ""
echo "Installation lib/..."
cp -av \
"$GDAL_DIR/lib/." \
"$CONDA_PREFIX/lib/"
# ========================================================
# Installation SHARE
# ========================================================
if [ -d "$GDAL_DIR/share" ]; then
echo ""
echo "Installation share/..."
cp -av \
"$GDAL_DIR/share/." \
"$CONDA_PREFIX/share/"
fi
# ========================================================
# Vérification GDAL
# ========================================================
echo ""
echo "========================================"
echo "VERIFICATION GDAL"
echo "========================================"
echo ""
echo "gdalinfo :"
which gdalinfo
gdalinfo --version
echo ""
echo "GDAL Python :"
python - <<'PY'
from osgeo import gdal
from osgeo import ogr
print("GDAL :", gdal.VersionInfo("--version"))
print("OGR drivers :", ogr.GetDriverCount())
PY
echo ""
echo "========================================"
echo "GDAL INSTALLE"
echo "========================================"
# ============================================================ # ============================================================
# 8. Vérification GDAL # 8. Vérification GDAL
# ============================================================ # ============================================================
@@ -513,3 +619,4 @@ jobs:
commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com" commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
View File
@@ -5,6 +5,8 @@
"esri", "esri",
"gpkg", "gpkg",
"Masekd", "Masekd",
"multipartie",
"multiparties",
"osgeo", "osgeo",
"outputfolder", "outputfolder",
"outputspath", "outputspath",
@@ -10,6 +10,7 @@
"esri", "esri",
"geopandas", "geopandas",
"Ggis", "Ggis",
"multipartie",
"outputfolder", "outputfolder",
"Qgis", "Qgis",
"TYPEFCR" "TYPEFCR"
File diff suppressed because it is too large Load Diff