X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=shp.c;h=37530c880accf4451b2de086f61105546791c697;hb=0b7522e4e32b14be37ae657767b9c47fc6774819;hp=383525e5fb46a2c49e11239b3b83ecc0be45f187;hpb=44b0ec8816c3cf1a5858fec0c51e075cedefc3eb;p=leo.git diff --git a/shp.c b/shp.c index 383525e..37530c8 100644 --- a/shp.c +++ b/shp.c @@ -9,7 +9,8 @@ #undef LOCAL_DEBUG -#include +#include "leo.h" + #include #include #include @@ -18,13 +19,11 @@ #include #include -#include "leo.h" #include "osm.h" #include "map.h" #include "shp.h" -// FIXME: Hack -static osm_id_t shp_id_counter = 1000000000000; +static osm_id_t shp_id_counter; static double shp_get_double(byte *p) { @@ -69,6 +68,7 @@ void shp_parse(const char *name) { msg(L_INFO, "Loading shape file %s", name); struct fastbuf *fb = bopen_file(name, O_RDONLY, NULL); + shp_id_counter = 1; byte *buf; GARY_INIT(buf, 100);