Libosmium
2.11.1
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <assembler.hpp>
Public Member Functions | |
AssemblerConfig () noexcept=default | |
AssemblerConfig (osmium::area::ProblemReporter *pr, bool d=false) | |
OSMIUM_DEPRECATED void | enable_debug_output (bool d=true) |
Public Attributes | |
osmium::area::ProblemReporter * | problem_reporter = nullptr |
int | debug_level = 0 |
bool | check_roles = false |
bool | create_empty_areas = true |
bool | create_new_style_polygons = true |
bool | create_old_style_polygons = true |
bool | create_way_polygons = true |
bool | keep_type_tag = false |
Configuration for osmium::area::Assembler objects. Create this once, set the options you want and then re-use it every time you create an Assembler object.
|
defaultnoexcept |
|
inlineexplicit |
Constructor
|
inline |
Enable or disable debug output to stderr. This is for Osmium developers only.
bool osmium::area::AssemblerConfig::check_roles = false |
The roles of multipolygon members are ignored when assembling multipolygons, because they are often missing or wrong. If this is set, the roles are checked after the multipolygons are built against what the assembly process decided where the inner and outer rings are. This slows down the processing, so it only makes sense if you want to get the problem reports.
bool osmium::area::AssemblerConfig::create_empty_areas = true |
When the assembler can't create an area, usually because its geometry would be invalid, it will create an "empty" area object without rings. This allows you to detect where an area was invalid.
If this is set to false, invalid areas will simply be discarded.
bool osmium::area::AssemblerConfig::create_new_style_polygons = true |
Create areas for (multi)polygons where the tags are on the relation.
If this is set to false, those areas will simply be discarded.
bool osmium::area::AssemblerConfig::create_old_style_polygons = true |
Create areas for (multi)polygons where the tags are on the outer way(s).
If this is set to false, those areas will simply be discarded.
bool osmium::area::AssemblerConfig::create_way_polygons = true |
Create areas for polygons created from ways.
If this is set to false, those areas will simply be discarded.
int osmium::area::AssemblerConfig::debug_level = 0 |
Debug level. If this is greater than zero, debug messages will be printed to stderr. Available levels are 1 to 3. Note that level 2 and above will generate a lot of messages!
bool osmium::area::AssemblerConfig::keep_type_tag = false |
Keep the type tag from multipolygon relations on the area object. By default this is false, and the type tag will be removed.
osmium::area::ProblemReporter* osmium::area::AssemblerConfig::problem_reporter = nullptr |
Optional pointer to problem reporter.