#include <stdarg.h>
#include <stdio.h>
+
+#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#include <proj_api.h>
#include "leo.h"
clist_init(&b->nodes);
struct mpg_vertex *w = v;
- while (!w->visited)
+ while (w && !w->visited)
{
w->visited = 1;
struct osm_ref *f = mp_alloc(osm_this->pool, sizeof(*f));
w = dest;
}
- if (w != v)
+ if (!w)
+ osm_obj_warn(&mpg_current->o, "Boundary not closed");
+ else if (w != v)
osm_obj_warn(&mpg_current->o, "Boundary not closed at node %ju", (uintmax_t) w->o->id);
struct osm_ref *f = mp_alloc(osm_this->pool, sizeof(*f));