Ignore:
Timestamp:
02/03/07 13:54:04 (14 years ago)
Author:
domlowe
Message:

more on profile features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/Examples/Parsing/demoCreateV2.py

    r2204 r2225  
    5757#create a profile series feature 
    5858psf=csml.parser.ProfileSeriesFeature() 
    59 psf.id='profilef' 
     59psf.id='profileseriesf' 
    6060psf.description=csml.parser.csString('sample profile series feature') 
    6161cvg = csml.parser.ProfileSeriesCoverage() 
     
    6464gcT=csml.parser.GridCoordinatesTable() 
    6565psd.coordTransformTable=gcT 
     66cvg.rangeSet=rs 
    6667cvg.profileSeriesDomain=psd 
    6768psf.value=cvg 
     69psf.parameter=param #defined earlier 
    6870fms.append(psf) 
    69              
    70              
     71            
     72                        
     73#create a profile feature 
     74pf=csml.parser.ProfileFeature()             
     75pf.id='profilef'                         
     76pf.description=csml.parser.csString('sample profile feature')             
     77cvg = csml.parser.ProfileCoverage() 
     78cvg.profileDomain=csml.parser.csString('1000, 950, 850, 700, 600, 500, 400, 300, 250, 200, 150, 100, 50, 30, 10') 
     79rs=csml.parser.RangeSet() 
     80rs.quantityList=csml.parser.MeasureOrNullList(uom='MLUnits.xml#m',CONTENT='0.27 0.25 0.25 0.23 0.22 0.22 0.21 0.17 0.17 0.14 0.14 0.12 0.10 0.08 0.08') 
     81cvg.rangeSet=rs 
     82pf.value=cvg 
     83pf.parameter=param 
     84pf.location=csml.parser.csString('75 35') 
     85pf.time=csml.parser.csString('2003-02-02T0:0:0.0') 
     86fms.append(pf)             
     87                         
     88                         
    7189#instantiate a FeatureCollection object (and add all featureMembers) 
    7290fc=csml.parser.CSMLFeatureCollection(featureMembers=fms) 
Note: See TracChangeset for help on using the changeset viewer.