Changeset 910


Ignore:
Timestamp:
10/05/06 16:30:18 (13 years ago)
Author:
domlowe
Message:

added prefix to gml:id to distinguish between similarly named features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfeaturetypes.py

    r898 r910  
    3939         
    4040        representativeFiles=self.ffmap.getRepresentativeFiles() 
     41        fileid=0  #prefix used to distinguish variable names for similar variables from different files 
    4142        for repfile in representativeFiles: 
     43            fileid=fileid+1 
    4244            listOfFiles=[] 
    4345            repfilename=repfile.getRepresentativeFileName() 
     
    7375                 
    7476                GridSeriesFeature_element=csmllibs.Parser.GridSeriesFeature() 
    75                 GridSeriesFeature_element.id=str(allVarNames[i]) 
     77                GridSeriesFeature_element.id=str(fileid)+'__'+str(allVarNames[i]) 
    7678                #description: need to get the attribute called long_name (?? TODO - is this CF compliant??) 
    7779                #use Ag's getbestname from nappy package? 
Note: See TracChangeset for help on using the changeset viewer.