Skip to content

Commit

Permalink
feat: change variable name, add docs, add + for params extension
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed May 23, 2024
1 parent a7cbcfa commit b6faee5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand Down
4 changes: 2 additions & 2 deletions vrt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b6faee5

Please sign in to comment.