Merge pull request #1375 from bjtaylor1/master

added lua binding for osmium::Way::id()
This commit is contained in:
Dennis Luxen 2015-04-13 09:52:56 +02:00
commit 1bfab4e279

View File

@ -118,6 +118,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()))