Changeset 15 for trunk/osm05.c


Ignore:
Timestamp:
Aug 17, 2008, 5:44:54 PM (6 years ago)
Author:
marius
Message:

adding support for naming ways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/osm05.c

    r14 r15  
    128128                        sscanf((char *) *(atts+1),"%hi",& cWay->layer); 
    129129                    return; 
     130                } else if(strcmp(cTag->key, "name") == 0) { 
     131                    free(cTag); 
     132                    cTag = NULL; 
     133                    if (cWay) 
     134                        cWay->name = strlist_get(valStrings,(char *) *(atts+1)); 
     135                    return; 
    130136                } 
    131137                cTag->value = strlist_get(valStrings,(char *) *(atts+1)); 
     
    160166       cWay->tag = NULL; 
    161167       cWay->nd = NULL; 
     168       cWay->name = NULL; 
    162169       cWay->layer = 0; 
    163170 
Note: See TracChangeset for help on using the changeset viewer.