Libosmium  2.11.1
Fast and flexible C++ library for working with OpenStreetMap data
Public Member Functions | Public Attributes | List of all members
osmium::area::AssemblerConfig Struct Reference

#include <assembler.hpp>

Collaboration diagram for osmium::area::AssemblerConfig:
Collaboration graph
[legend]

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::ProblemReporterproblem_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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AssemblerConfig() [1/2]

osmium::area::AssemblerConfig::AssemblerConfig ( )
defaultnoexcept

◆ AssemblerConfig() [2/2]

osmium::area::AssemblerConfig::AssemblerConfig ( osmium::area::ProblemReporter pr,
bool  d = false 
)
inlineexplicit

Constructor

Deprecated:
Use default constructor and set values afterwards.

Member Function Documentation

◆ enable_debug_output()

OSMIUM_DEPRECATED void osmium::area::AssemblerConfig::enable_debug_output ( bool  d = true)
inline

Enable or disable debug output to stderr. This is for Osmium developers only.

Deprecated:
Set debug_level directly.

Member Data Documentation

◆ check_roles

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.

◆ create_empty_areas

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.

◆ create_new_style_polygons

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.

◆ create_old_style_polygons

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.

◆ create_way_polygons

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.

◆ debug_level

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!

◆ keep_type_tag

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.

◆ problem_reporter

osmium::area::ProblemReporter* osmium::area::AssemblerConfig::problem_reporter = nullptr

Optional pointer to problem reporter.


The documentation for this struct was generated from the following file: