[sosi2osm] 30/30: Tag small rivers as streams
Ruben Undheim
rubund-guest at moszumanska.debian.org
Sat Oct 4 13:07:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch upstream
in repository sosi2osm.
commit 276d7ecb056a2f746342297592d21921adc023ab
Author: Knut Karevoll <gnonthgol at gmail.com>
Date: Fri Oct 3 13:02:01 2014 +0200
Tag small rivers as streams
---
lua/arealdekke.lua | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lua/arealdekke.lua b/lua/arealdekke.lua
index c8fe504..209a28d 100644
--- a/lua/arealdekke.lua
+++ b/lua/arealdekke.lua
@@ -66,14 +66,16 @@ for i, indent, tokens in tokens, info, 0 do
out[tokens[1]] = tokens[2]
end
elseif tokens[1] == "HØYDE" then
- out["elev"]= tokens[2]
+ out["elev"] = tokens[2]
+ elseif tokens[1] == "VANNBR" then
+ out["width"] = tokens[2]
elseif tokens[1] == "OPPDATERINGSDATO" then
out["source:date"] = tokens[2]
elseif tokens[1] == "DATAFANGSTDATO" then
out["source:date"] = tokens[2]
elseif tokens[1] == "KVALITET" then
- elseif tokens[1] == "KURVE" or tokens[1] == "PUNKT" or tokens[1] == "VANNBR" or tokens[1] == "VATNLNR" then
+ elseif tokens[1] == "KURVE" or tokens[1] == "PUNKT" or tokens[1] == "VATNLNR" then
elseif tokens[1] == "NAVN" then
out["name"] = tokens[2]
@@ -84,5 +86,9 @@ for i, indent, tokens in tokens, info, 0 do
end
end
+if out["waterway"] == "river" and (out["width"] == "1" or out["width"] == "2") then
+ out["waterway"] = "stream"
+end
+
return out
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/sosi2osm.git
More information about the Pkg-grass-devel
mailing list