 Timestamp:
 15/01/07 11:52:52 (13 years ago)
 Location:
 TI02CSML/trunk/csml
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

TI02CSML/trunk/csml/csmllibs/csmlcrs.py
r1979 r2001 105 105 continue 106 106 match=0 107 axisorder= []107 axisorder={} 108 108 for ax in self.systems[system].axes: 109 109 if ax in crsMap: 110 axisorder .append(crsMap.index(ax))110 axisorder[ax]=crsMap.index(ax) 111 111 else: 112 112 match = 1 
TI02CSML/trunk/csml/csmllibs/csmlfeaturetypes.py
r2000 r2001 127 127 gsDomain.axisLabels=crs.axisLabels # note this is the xml attribute axisLabels, not the child element (aLabels) 128 128 gsDomain.srsDimension=crs.srsDimension 129 gsDomain.aLabels=cp.csString('blah') 129 aLabels='' 130 for dim in dimNames: 131 aLabels=aLabels + dim + ' ' 132 gsDomain.aLabels=cp.csString(aLabels) 130 133 gcT=cp.GridCoordinatesTable() 131 134 #add an axisName element(s) for each spatial dimension. … … 136 139 ordinates=[] 137 140 for dimName in enumerate(dimNames): 138 ord=cp.GridOrdinateDescription() 139 ord.gridAxesSpanned=cp.csString('dim' + str(dimName[0])) 140 ord.coordAxisLabel=cp.csString(dimName[1]) 141 ord.sequenceRule=cp.csString(csml.csmllibs.csmlextra.getSeqRule(len(dimNames))) 141 ord=cp.GridOrdinateDescription() 142 #map the grid axis to the crs axis 143 for axis in axisorder: 144 if axisorder[axis]==dimName[0]: 145 ord.coordAxisLabel=cp.csString(axis) 146 ord.gridAxesSpanned=cp.csString(dimName[1]) 147 break 148 seqRule= cp.SequenceRule() 149 seqRule.CONTENT='Linear' 150 seqRule.axisOrder='+1' #TO DO. Work this out. 151 ord.sequenceRule=seqRule 142 152 sptList=cp.SpatialOrTemporalPositionList() 143 153 
TI02CSML/trunk/csml/parser.py
r2000 r2001 432 432 def __init__(self, **kwargs): 433 433 AbstractGML.__init__(self,**kwargs) 434 children={'coordAxisLabel':[CSML('coordAxisLabel'), 'csString'], 'coordAxisValues':[CSML('SpatialOrTemporalPositionList'),'SpatialOrTemporalPositionList',CSML('coordAxisValues')], 'gridAxesSpanned':[CSML('gridAxesSpanned'), 'csString'], 'sequenceRule':[CSML('sequenceRule'),'SequenceRule Type']}435 addchildren(self,children) 436 437 class SequenceRule Type(csElement):434 children={'coordAxisLabel':[CSML('coordAxisLabel'), 'csString'], 'coordAxisValues':[CSML('SpatialOrTemporalPositionList'),'SpatialOrTemporalPositionList',CSML('coordAxisValues')], 'gridAxesSpanned':[CSML('gridAxesSpanned'), 'csString'], 'sequenceRule':[CSML('sequenceRule'),'SequenceRule']} 435 addchildren(self,children) 436 437 class SequenceRule(csElement): 438 438 def __init__(self, **kwargs): 439 439 a=['axisOrder'] … … 445 445 def __init__(self, **kwargs): 446 446 AbstractGML.__init__(self,**kwargs) 447 children={'posList':[CSML('posList'),'csString'],'sequenceRule':[CSML('sequenceRule'),'SequenceRule Type']}447 children={'posList':[CSML('posList'),'csString'],'sequenceRule':[CSML('sequenceRule'),'SequenceRule']} 448 448 addchildren(self,children) 449 449
Note: See TracChangeset
for help on using the changeset viewer.