Fix:maptool:Disable generating spain index by boundary for now to avoid bloated tople...
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 11 Jul 2011 17:23:45 +0000 (17:23 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 11 Jul 2011 17:23:45 +0000 (17:23 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4629 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/maptool/boundaries.c

index 122b4c0..65d0561 100644 (file)
@@ -72,7 +72,8 @@ process_boundaries_setup(FILE *boundaries, struct relations *relations)
                struct boundary *boundary=g_new0(struct boundary, 1);
                char *admin_level=osm_tag_value(ib, "admin_level");
                char *iso=osm_tag_value(ib, "ISO3166-1");
-               if (admin_level && !strcmp(admin_level, "2")) {
+               /* disable spain for now since it creates a too large index */
+               if (admin_level && !strcmp(admin_level, "2") && (!iso || strcasecmp(iso,"es"))) {
                        if (iso) {
                                struct country_table *country=country_from_iso2(iso);   
                                if (!country)