X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=shp.c;h=0e0ff54a0cdb6ada76e236a541ab6b2f2e077520;hb=c343d14479295d517ae64ccee5a7e83d3ce0fc42;hp=383525e5fb46a2c49e11239b3b83ecc0be45f187;hpb=44b0ec8816c3cf1a5858fec0c51e075cedefc3eb;p=leo.git diff --git a/shp.c b/shp.c index 383525e..0e0ff54 100644 --- a/shp.c +++ b/shp.c @@ -23,8 +23,7 @@ #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);