Ticket #638: osm.c.diff

File osm.c.diff, 593 bytes (added by korrosa, 10 years ago)

Turned the example into a patch, and updated so it will apply to r3619.

  • navit/maptool/

    old new  
    10501050                strcpy(is_in_buffer, v);
    10511051                level=5;
    10521052        }
     1053        if (! strcmp(k,"is_in:country")) {
     1054                /*      sometimes there is no is_in tag, only is_in:country.
     1055                   I put this here so it can be overwritten by the next if clause if there IS an is_in tag.
     1056                */
     1057                strcpy(is_in_buffer, v);
     1058                level=5;
     1059        }
    10531060        if (! strcmp(k,"gnis:ST_alpha")) {
    10541061                /*      assume a gnis tag means it is part of the USA:
    10551062                        http://en.wikipedia.org/wiki/Geographic_Names_Information_System