summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Koch <markus@notsyncing.net>2020-04-27 17:38:25 +0200
committerMarkus Koch <markus@notsyncing.net>2020-04-27 17:38:25 +0200
commit9bdb4095a7b465d8332c3dfe60da66805e877ca5 (patch)
treee3ae46c2ef35d8bc06abee2067996c6c5d41b2de
parent05238dc5aec332970a082b84d174240c4262e95d (diff)
parent4d2fc5e739926df775a5c592d3db64361ae572ff (diff)
downloadlifomapserver-9bdb4095a7b465d8332c3dfe60da66805e877ca5.tar.gz
lifomapserver-9bdb4095a7b465d8332c3dfe60da66805e877ca5.tar.bz2
lifomapserver-9bdb4095a7b465d8332c3dfe60da66805e877ca5.zip
Merge branch 'dev' of git.notsyncing.net:markus/lifomapserver into dev
-rwxr-xr-xscripts/geojson/maps/fetch_city_outlines.sh3
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\": {