]> mj.ucw.cz Git - leo.git/blobdiff - shp.c
Support for reading of shape files (partial)
[leo.git] / shp.c
diff --git a/shp.c b/shp.c
index 383525e5fb46a2c49e11239b3b83ecc0be45f187..0e0ff54a0cdb6ada76e236a541ab6b2f2e077520 100644 (file)
--- 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);