added lua binding for osmium::Way::id()
Conflicts: extractor/scripting_environment.cpp
This commit is contained in:
parent
3d55622237
commit
d77a88c21e
@ -120,6 +120,7 @@ void ScriptingEnvironment::init_lua_state(lua_State *lua_state)
|
|||||||
luabind::class_<osmium::Way>("Way")
|
luabind::class_<osmium::Way>("Way")
|
||||||
.def("get_value_by_key", &osmium::Way::get_value_by_key)
|
.def("get_value_by_key", &osmium::Way::get_value_by_key)
|
||||||
.def("get_value_by_key", &get_value_by_key<osmium::Way>)
|
.def("get_value_by_key", &get_value_by_key<osmium::Way>)
|
||||||
|
.def("id", &osmium::Way::id)
|
||||||
];
|
];
|
||||||
|
|
||||||
if (0 != luaL_dofile(lua_state, file_name.c_str()))
|
if (0 != luaL_dofile(lua_state, file_name.c_str()))
|
||||||
|
Loading…
Reference in New Issue
Block a user