diff options
author | latouche <latouche@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-10 14:41:01 +0000 |
---|---|---|
committer | latouche <latouche@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-10 14:41:01 +0000 |
commit | 06b9391b7b29c8da8f1d1918184da5db78277398 (patch) | |
tree | 90009f8deb5d9ed7eae158198e36efa99b65ccaa /navit/script | |
parent | 3e5672153131d89680c991be6e97eafb84ebb23a (diff) | |
download | navit-06b9391b7b29c8da8f1d1918184da5db78277398.tar.gz |
osm2navit_sea: use natural=land for islands and natural=water for the sea
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1446 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/script')
-rw-r--r-- | navit/script/osm2navit_sea/osm2navit_sea.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/script/osm2navit_sea/osm2navit_sea.pl b/navit/script/osm2navit_sea/osm2navit_sea.pl index 4eb67de95..ca4bd926c 100644 --- a/navit/script/osm2navit_sea/osm2navit_sea.pl +++ b/navit/script/osm2navit_sea/osm2navit_sea.pl @@ -900,7 +900,7 @@ foreach $tile (values %tiles) { print $output " <way id=\"".($osm_id--)."\" timestamp=\"2008-07-02T22:57:53Z\" user=\"latouche\">\n"; while ($way->is_alive()) { - $type = "outer" if ($way->type() eq "outer"); + $type = ($way->type() eq "outer") ? "water" : "land"; foreach $node ($way->nodes()) { print "undef node in ".$way->id()."\n" unless defined $node; @@ -910,7 +910,7 @@ foreach $tile (values %tiles) { last if ($way->next() == 0); $way=$new_ways{ $way->next() }; } - print $output " <tag k=\"natural\" v=\"coastline_".$type."\"/>\n"; + print $output " <tag k=\"natural\" v=\"".$type."\"/>\n"; print $output " </way>\n"; } } |