File: default.lua

package info (click to toggle)
sosi2osm 1.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 240 kB
  • sloc: cpp: 442; makefile: 26; sh: 11
file content (14 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
out = {}

for i, indent, tokens in tokens, info, 0 do
	if tokens[1] == "FLATE" then
		out["type"] = "multipolygon"
    elseif #tokens == 2 then
        out[tokens[1]] = tokens[2]
    elseif #tokens > 2 then
        out[tokens[1]] = table.concat(tokens, "; ", 2)
    end
end

return out