- if (cur_length + e->length > conf_max_section_length)
- {
- if (dbg_segments)
- printf("Making new section, new length would be %f, allowed is %.2f / %.2f\n", cur_length + e->length, conf_max_section_length, conf_max_section_overlay);
-
- struct osm_node *n1 = e->n1->o;
- struct osm_node *n2 = e->n2->o;
- rs = make_new_segment(rls, e->label);
- rs->x1 = n1->x;
- rs->y1 = n1->y;
- rs->x2 = n2->x;
- rs->y2 = n2->y;
- rs->zindex = e->zindex;
-
- rs->label = malloc(sizeof(struct sym_text));
- *((struct sym_text *) rs->label) = *((struct sym_text *) e->label);
- rls = make_new_section(request);
- cur_length = 0;
- }
+ if (dbg_segments)
+ printf("Taking edge from [%.2f; %.2f] to [%.2f; %.2f] of length %.2f\n", e->n1->o->x, e->n1->o->y, e->n2->o->x, e->n2->o->y, e->length);