From b6faee52ec16235b73ec5227fba63be22524b31f Mon Sep 17 00:00:00 2001 From: Florian Necas Date: Thu, 23 May 2024 15:33:32 +0200 Subject: [PATCH] feat: change variable name, add docs, add + for params extension --- README.md | 11 +++++++++-- vrt.sh | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 67c96d4..aefdc40 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,15 @@ with the previous variables defined. The following environment variables are optional: ``` -# export ACTIVATE_GEOMETRY_TYPE=false -True by default +/** +* PROMOTE_TO_MULTI can be used to automatically promote layers that mix polygon or multipolygons to multipolygons, +* and layers that mix linestrings or multilinestrings to multilinestrings. +* Can be useful when converting shapefiles to PostGIS +* and other target drivers that implement strict checks for geometry types +* +* Enabled by default +**/ +# export PROMOTE_TO_MULTI=false ``` diff --git a/vrt.sh b/vrt.sh index e70ced4..1e88027 100755 --- a/vrt.sh +++ b/vrt.sh @@ -32,8 +32,8 @@ touch ${SOURCEDIR}/vrtbot.log cd "${SOURCEDIR}" params=() - if [[ ${ACTIVATE_GEOMETRY_TYPE:-true} == true ]]; then - params=(-nlt PROMOTE_TO_MULTI) + if [[ ${PROMOTE_TO_MULTI:-true} == true ]]; then + params+=(-nlt PROMOTE_TO_MULTI) fi # cycle vrt for vrt in *.vrt;