Ticket #904: only_county_fix.diff

File only_county_fix.diff, 921 bytes (added by jwernerny, 9 years ago)

Patch to maptool to carry US county information from OSM to binfile

  • navit/maptool/osm.c

     
    11381138               attr_strings_save(attr_string_county_name, v);
    11391139               level=5;
    11401140       }
     1141       if (! strcmp(k,"gnis:County")) {
     1142               /* Most US Towns now carry gnis:County to indicate what county they are
     1143                * in.  Further, "gnis:" would mean it is in the US
     1144                * - jwernerny, 20-Oct-2011
     1145               */
     1146               attr_strings_save(attr_string_county_name, v);
     1147               strcpy(is_in_buffer, "USA");
     1148               level=5;
     1149       }
    11411150       if (! strcmp(k,"gnis:ST_alpha")) {
    11421151               /*      assume a gnis tag means it is part of the USA:
    11431152                       http://en.wikipedia.org/wiki/Geographic_Names_Information_System