Created
January 28, 2015 18:02
-
-
Save pnorman/36e98bc3d43350e29acc to your computer and use it in GitHub Desktop.
osm2pgsql #267 testcase that does not reproduce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "foo", | |
"type": "point", | |
"tagtransform": "multitest.lua", | |
"tagtransform-node-function": "foo_nodes", | |
"tagtransform-way-function": "drop_all", | |
"tagtransform-relation-function": "drop_all", | |
"tagtransform-relation-member-function": "drop_all", | |
"tags": [ | |
{"name": "foo", "type": "text"} | |
] | |
}, | |
{ | |
"name": "bar", | |
"type": "point", | |
"tagtransform": "multitest.lua", | |
"tagtransform-node-function": "bar_nodes", | |
"tagtransform-way-function": "drop_all", | |
"tagtransform-relation-function": "drop_all", | |
"tagtransform-relation-member-function": "drop_all", | |
"tags": [ | |
{"name": "bar", "type": "text"} | |
] | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function drop_all (...) | |
return 1, {} | |
end | |
function foo_nodes (keyvals, num_keys) | |
return 0, keyvals | |
end | |
function bar_nodes (keyvals, num_keys) | |
return 0, keyvals | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<osm version="0.6" generator="hand"> | |
<node id="1" lat="1" lon="1" version="1" timestamp="2010-01-01T00:00:00Z" changeset="1"> | |
<tag k="foo" v="1"/> | |
</node> | |
<node id="2" lat="1.001" lon="1" version="1" timestamp="2010-01-01T00:00:00Z" changeset="1"> | |
<tag k="bar" v="1"/> | |
</node> | |
</osm> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment