Die bei GDAL2 dringend notwendigen zusätzlich Optionen (GDAL2_OPTS=" -nlt CONVERT_TO_LINEAR -ds_transaction") werden bei Ausführung des Shell-scripts nicht gesetzt, obwohl GDAL 2.1.3 installiert ist...
Der Prozess wir folgendermaßen (nas.lst) gestartet:
PG:dbname=XXX
epsg 25832
update
log
options --config PG_USE_COPY YES
--> Workaround manuelles setzen in den options:
options --config PG_USE_COPY YES -ds_transaction -nlt CONVERT_TO_LINEAR
ein kleines Testskript (zusammenkopiert aus alkis_import.sh)
Die bei GDAL2 dringend notwendigen zusätzlich Optionen (GDAL2_OPTS=" -nlt CONVERT_TO_LINEAR -ds_transaction") werden bei Ausführung des Shell-scripts nicht gesetzt, obwohl GDAL 2.1.3 installiert ist...
Der Prozess wir folgendermaßen (nas.lst) gestartet: PG:dbname=XXX epsg 25832 update log options --config PG_USE_COPY YES
--> Workaround manuelles setzen in den options: options --config PG_USE_COPY YES -ds_transaction -nlt CONVERT_TO_LINEAR
ein kleines Testskript (zusammenkopiert aus alkis_import.sh)
!/bin/bash
opt= GDAL_VERSION=$(unset CPL_DEBUG; ogr2ogr --version) echo $GDAL_VERSION
case "$GDAL_VERSION" in "GDAL 2.") GDAL2_OPTS=" -nlt CONVERT_TO_LINEAR -ds_transaction" opt="$opt$GDAL2_OPTS" ;; ) GDAL2_OPTS="" ;; esac
echo $opt
gibt folgende Meldung aus:
GDAL 2.1.3, released 2017/20/01 -nlt CONVERT_TO_LINEAR -ds_transaction
d.h., die Erkennung der GDAL-Version an sich verläuft korrekt.