Ignore:
Timestamp:
13/07/06 14:59:02 (14 years ago)
Author:
domlowe
Message:

still tidying api code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/parser/apicalls.py

    r1115 r1298  
    1616 
    1717#select a feature by name (gml:id) 
    18 print '\n Selecting feature with gml:id = %s' %flist[5] 
    19 feature=csml.getFeature(flist[5]) 
     18print '\n Selecting feature with gml:id = %s' %flist[4] 
     19feature=csml.getFeature(flist[4]) 
    2020 
    2121#feature 'bestname' 
     
    2525#get the domain of the feature 
    2626print '\n The feature has domain reference:'  
    27 #print feature.getDomainReference() 
     27print feature.getDomainReference() 
    2828 
    2929#get the domain complement of the feature 
    3030print '\n The feature has domain complement :'  
    31 print feature.getDomainComplement() 
     31#print feature.getDomainComplement() 
    3232 
    3333#get combined domain 
     
    4242#define a selection (based on the domain ref/complement) 
    4343#timeSelection=['2881-3-16T0:0:0.0', '2881-4-16T0:0:0.0', '2881-5-16T0:0:0.0', '2881-6-16T0:0:0.0', '2881-7-16T0:0:0.0', '2881-8-16T0:0:0.0', '2881-9-16T0:0:0.0'] 
    44 timeSelection=['2881-3-16T0:0:0.0', '2881-9-16T0:0:0.0'] 
     44timeSelection=['2794-12-1T0:0:0.0', '2844-12-1T0:0:0.0'] 
     45 
    4546spatialSubsetDictionary= {} 
    46 spatialSubsetDictionary['latitude']=(0.,30.0) 
     47spatialSubsetDictionary['latitude']=(-30.0,30.0) 
    4748spatialSubsetDictionary['longitude']=(90, 120.0) 
    4849 
Note: See TracChangeset for help on using the changeset viewer.