diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-27 17:38:25 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-27 17:38:25 +0200 |
commit | 9bdb4095a7b465d8332c3dfe60da66805e877ca5 (patch) | |
tree | e3ae46c2ef35d8bc06abee2067996c6c5d41b2de | |
parent | 05238dc5aec332970a082b84d174240c4262e95d (diff) | |
parent | 4d2fc5e739926df775a5c592d3db64361ae572ff (diff) | |
download | lifomapserver-9bdb4095a7b465d8332c3dfe60da66805e877ca5.tar.gz lifomapserver-9bdb4095a7b465d8332c3dfe60da66805e877ca5.tar.bz2 lifomapserver-9bdb4095a7b465d8332c3dfe60da66805e877ca5.zip |
Merge branch 'dev' of git.notsyncing.net:markus/lifomapserver into dev
-rwxr-xr-x | scripts/geojson/maps/fetch_city_outlines.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/geojson/maps/fetch_city_outlines.sh b/scripts/geojson/maps/fetch_city_outlines.sh index c9c2b58..0e34572 100755 --- a/scripts/geojson/maps/fetch_city_outlines.sh +++ b/scripts/geojson/maps/fetch_city_outlines.sh @@ -9,6 +9,9 @@ for entry in $data; do name=`echo "$entry" | sed -n 's/\s*\([^|]\+\).*/\1/p' | sed 's/ $//'` type=`echo "$entry" | sed -n 's/\s*\([^|]\+\)||\s*\([^|]\+\).*/\2/p' | sed 's/ $//'` coord=`echo "$entry" | sed -n 's/.*||\s*\([^|]\+\).*/\1/p'` + if [[ "$type" == "district" ]]; then + continue; + fi if [[ "$name" != "" && "$coord" != "" ]]; then echo "{ \"type\": \"Feature\", \"geometry\": { |