pull in latest osmcode/libosmium changes
This commit is contained in:
+3
-3
@@ -65,7 +65,7 @@ namespace osmium {
|
||||
// Enables debug output to stderr
|
||||
bool debug;
|
||||
|
||||
explicit AssemblerConfig(osmium::area::ProblemReporter* pr = nullptr, bool d=false) :
|
||||
explicit AssemblerConfig(osmium::area::ProblemReporter* pr = nullptr, bool d = false) :
|
||||
problem_reporter(pr),
|
||||
debug(d) {
|
||||
}
|
||||
@@ -74,7 +74,7 @@ namespace osmium {
|
||||
* Enable or disable debug output to stderr. This is for Osmium
|
||||
* developers only.
|
||||
*/
|
||||
void enable_debug_output(bool d=true) {
|
||||
void enable_debug_output(bool d = true) {
|
||||
debug = d;
|
||||
}
|
||||
|
||||
@@ -445,7 +445,7 @@ namespace osmium {
|
||||
}
|
||||
|
||||
bool add_to_existing_ring(osmium::area::detail::NodeRefSegment segment) {
|
||||
int n=0;
|
||||
int n = 0;
|
||||
for (auto& ring : m_rings) {
|
||||
if (debug()) {
|
||||
std::cerr << " check against ring " << n << " " << ring;
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace osmium {
|
||||
* Enable or disable debug output to stderr. This is for Osmium
|
||||
* developers only.
|
||||
*/
|
||||
void enable_debug_output(bool debug=true) noexcept {
|
||||
void enable_debug_output(bool debug = true) noexcept {
|
||||
m_debug = debug;
|
||||
}
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace osmium {
|
||||
* Overwritten from the base class.
|
||||
*/
|
||||
void way_not_in_any_relation(const osmium::Way& way) {
|
||||
if (way.ends_have_same_location() && way.nodes().size() > 3) {
|
||||
if (way.nodes().size() > 3 && way.ends_have_same_location()) {
|
||||
// way is closed and has enough nodes, build simple multipolygon
|
||||
try {
|
||||
TAssembler assembler(m_assembler_config);
|
||||
|
||||
Reference in New Issue
Block a user