Add:maptool:Removed experimental stat of boundary relations
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 12 Jul 2011 19:22:32 +0000 (19:22 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 12 Jul 2011 19:22:32 +0000 (19:22 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4631 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/maptool/maptool.c
navit/navit/maptool/osm.c

index e00a482..f13420d 100644 (file)
@@ -818,16 +818,12 @@ int main(int argc, char **argv)
        if (p.start <= phase && p.end >= phase) {
                FILE *towns=tempfile(suffix,"towns",0),*boundaries=NULL,*ways=NULL;
                if (towns) {
-                       if (experimental) {
-                               boundaries=tempfile(suffix,"boundaries",0);
-                               ways=tempfile(suffix,"ways_split",0);
-                       }
+                       boundaries=tempfile(suffix,"boundaries",0);
+                       ways=tempfile(suffix,"ways_split",0);
                        fprintf(stderr,"PROGRESS: Phase %d: assinging towns to countries\n",phase);
                        osm_process_towns(towns,boundaries,ways);
-                       if (experimental) {
-                               fclose(ways);
-                               fclose(boundaries);
-                       }
+                       fclose(ways);
+                       fclose(boundaries);
                        fclose(towns);
                        if(!p.keep_tmpfiles)
                                tempfile_unlink(suffix,"towns");
index 2f824cc..950a3a6 100644 (file)
@@ -1541,12 +1541,10 @@ relation_add_tag(char *k, char *v)
        } else if (!strcmp(k,"ISO3166-1")) {
                strcpy(iso_code, v);
        }
-       if (experimental) {
-               if (add_tag) {
-                       char tag[strlen(k)+strlen(v)+2];
-                       sprintf(tag,"%s=%s",k,v);
-                       item_bin_add_attr_string(item_bin, attr_osm_tag, tag);
-               }
+       if (add_tag) {
+               char tag[strlen(k)+strlen(v)+2];
+               sprintf(tag,"%s=%s",k,v);
+               item_bin_add_attr_string(item_bin, attr_osm_tag, tag);
        }
 }
 
@@ -1792,14 +1790,12 @@ osm_process_towns(FILE *in, FILE *boundaries, FILE *ways)
        struct item_bin *ib;
        GList *bl=NULL;
 
-       if (experimental) 
-               bl=process_boundaries(boundaries, ways);
+       bl=process_boundaries(boundaries, ways);
        while ((ib=read_item(in)))  {
                struct coord *c=(struct coord *)(ib+1);
                struct country_table *result=NULL;
                char *is_in=item_bin_get_attr(ib, attr_osm_is_in, NULL);
-               if (experimental)
-                       result=osm_process_town_by_boundary(bl, ib, c);
+               result=osm_process_town_by_boundary(bl, ib, c);
                if (!result)
                        result=osm_process_town_by_is_in(ib, is_in);
                if (!result && unknown_country)
@@ -2172,7 +2168,7 @@ process_turn_restrictions(FILE *in, FILE *coords, FILE *ways, FILE *ways_index,
        struct coord *fromc,*toc,*viafrom,*viato,*tmp;
        int min_count;
        fseek(in, 0, SEEK_SET);
-       if (experimental > 1) {
+       if (experimental) {
                struct relations *relations=relations_new();
                GList *turn_restrictions=process_turn_restrictions_setup(in, relations);
                relations_process(relations, coords, ways, NULL);