Merge branch 'dev' of git.notsyncing.net:markus/lifomapserver into dev

This commit is contained in:
Markus Koch 2020-04-27 17:38:25 +02:00
commit 9bdb4095a7

View File

@ -9,6 +9,9 @@ for entry in $data; do
name=`echo "$entry" | sed -n 's/\s*\([^|]\+\).*/\1/p' | sed 's/ $//'` name=`echo "$entry" | sed -n 's/\s*\([^|]\+\).*/\1/p' | sed 's/ $//'`
type=`echo "$entry" | sed -n 's/\s*\([^|]\+\)||\s*\([^|]\+\).*/\2/p' | sed 's/ $//'` type=`echo "$entry" | sed -n 's/\s*\([^|]\+\)||\s*\([^|]\+\).*/\2/p' | sed 's/ $//'`
coord=`echo "$entry" | sed -n 's/.*||\s*\([^|]\+\).*/\1/p'` coord=`echo "$entry" | sed -n 's/.*||\s*\([^|]\+\).*/\1/p'`
if [[ "$type" == "district" ]]; then
continue;
fi
if [[ "$name" != "" && "$coord" != "" ]]; then if [[ "$name" != "" && "$coord" != "" ]]; then
echo "{ \"type\": \"Feature\", echo "{ \"type\": \"Feature\",
\"geometry\": { \"geometry\": {