summaryrefslogtreecommitdiff
path: root/scripts/geojson/maps/fetch_city_outlines.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/geojson/maps/fetch_city_outlines.sh')
-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\": {