forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtagtransform.hpp
More file actions
35 lines (25 loc) · 1.05 KB
/
Copy pathtagtransform.hpp
File metadata and controls
35 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef TAGTRANSFORM_H
#define TAGTRANSFORM_H
#include <string>
#include <osmium/memory/buffer.hpp>
#include "osmtypes.hpp"
struct options_t;
struct export_list;
class tagtransform_t
{
public:
static std::unique_ptr<tagtransform_t>
make_tagtransform(options_t const *options, export_list const &exlist);
virtual ~tagtransform_t() = 0;
virtual std::unique_ptr<tagtransform_t> clone() const = 0;
virtual bool filter_tags(osmium::OSMObject const &o, int *polygon,
int *roads, taglist_t &out_tags,
bool strict = false) = 0;
virtual 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, taglist_t &out_tags,
bool allow_typeless = false) = 0;
};
#endif //TAGTRANSFORM_H