Changeset 1000
- Timestamp:
- 24/05/06 11:56:39 (15 years ago)
- Location:
- TI02-CSML/trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/parser/apiDemo.py
r984 r1000 10 10 def main(): 11 11 #opens (and parses) a csml file: 12 f='gridseriestest.xml' 12 #f='gridseriestest.xml' 13 f='coapec.xml' 13 14 print '\n ----------------------------------------------------------------------------- \n Initialising dataset from file %s.' %f 14 15 csml=CSMLDataset(f) … … 19 20 20 21 21 print '\n Selecting feature with gml:id = %s' %featureList[ 1]22 print '\n Selecting feature with gml:id = %s' %featureList[5] 22 23 #csml.getFeature is the method to get a particular feature by name. 23 feature=csml.getFeature(featureList[ 1])24 feature=csml.getFeature(featureList[5]) 24 25 print '\n the best name for the feature is %s '%feature.getBestName() 25 26 print '\n The feature has the following methods:' … … 29 30 print '\n the following feature subsetting operations are allowed:' 30 31 print feature.getAllowedSubsettings() 31 32 timeSelection=['2783-05-22T00:00:00', '2793-03-30T00:00:00'] 32 #timeSelection=['2783-05-22T00:00:00', '2793-03-30T00:00:00'] 33 timeSelection=['2778-12-14T00:00:00', '2779-12-09T00:00:00', '2780-12-03T00:00:00', '2781-11-28T00:00:00', '2782-11-23T00:00:00' ,'2783-11-18T00:00:00'] 34 #timeSelection=['2783-05-22T00:00:00', '2793-03-30T00:00:00'] 33 35 spatialSubsetDictionary= {} 34 36 spatialSubsetDictionary['latitude']=(0.,10.0) -
TI02-CSML/trunk/parser/csmldoc.py
r984 r1000 16 16 parentPath=os.sep.join(currentPath.split(os.sep)[:-1]) 17 17 parserPath=parentPath + '/Scanner/csmllibs' 18 sys.path.append(parserPath) #append the parser path to sys.path 18 sys.path.append(parserPath) #append the parser path to sys.path 19 19 try: 20 20 import csmldataiface … … 151 151 #return output options for PointSeries feature... not implemented 152 152 pass 153 154 153 155 154 class CSMLProfileFeature(CSMLAbstractFeature):
Note: See TracChangeset
for help on using the changeset viewer.