mirror of
https://github.com/osm2pgsql-dev/osm2pgsql.git
synced 2025-08-19 16:28:16 +00:00

Also removes support for superseding ways from polygons. The lua bindings still expect that the supersede table is present but will simply drop it.
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#ifndef TAGTRANSFORM_LUA_H
|
|
#define TAGTRANSFORM_LUA_H
|
|
|
|
#include <string>
|
|
|
|
#include "tagtransform.hpp"
|
|
|
|
extern "C" {
|
|
#include <lua.h>
|
|
}
|
|
|
|
class lua_tagtransform_t : public tagtransform_t
|
|
{
|
|
public:
|
|
lua_tagtransform_t(options_t const *options);
|
|
~lua_tagtransform_t();
|
|
|
|
bool filter_tags(osmium::OSMObject const &o, int *polygon, int *roads,
|
|
export_list const &exlist, taglist_t &out_tags,
|
|
bool strict = false) override;
|
|
|
|
bool filter_rel_member_tags(taglist_t const &rel_tags,
|
|
osmium::memory::Buffer const &members,
|
|
rolelist_t const &member_roles,
|
|
int *make_boundary, int *make_polygon,
|
|
int *roads, export_list const &exlist,
|
|
taglist_t &out_tags,
|
|
bool allow_typeless = false) override;
|
|
|
|
private:
|
|
void check_lua_function_exists(std::string const &func_name);
|
|
|
|
lua_State *L;
|
|
std::string m_node_func, m_way_func, m_rel_func, m_rel_mem_func;
|
|
bool m_extra_attributes;
|
|
};
|
|
|
|
#endif // TAGTRANSFORM_LUA_H
|