Changeset 2979 for TI02-CSML


Ignore:
Timestamp:
02/11/07 09:41:56 (12 years ago)
Author:
domlowe
Message:

moved getCSMLBoundingBox to AbstractFeature, and added getNativeCRS method to trajectory feature

Location:
TI02-CSML/trunk/csml/API
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/ops_AbstractFeature.py

    r2863 r2979  
    2929 
    3030def getBoundingBox(self): 
     31    return None 
     32 
     33def getCSMLBoundingBox(self): 
     34    #returns a complete boundingBox object including temporal domain and crs 
     35    if hasattr(self, 'boundedBy'): 
     36        return csml.API.csmlbbox.CSMLBoundingBox(self.boundedBy) 
     37    else: 
     38        return None 
     39     
     40def getNativeCRS(self): 
     41    #returns the crs of the feature 
    3142    return None 
    3243 
  • TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py

    r2898 r2979  
    2020    return ['subsetToGridSeries', 'subsetToProfileSeries']  #other operations 
    2121 
    22 def getCSMLBoundingBox(self): 
    23     #returns a complete boundingBox object including temporal domain and crs 
    24     if hasattr(self, 'boundedBy'): 
    25         return csml.API.csmlbbox.CSMLBoundingBox(self.boundedBy) 
    26     else: 
    27         return None 
    2822 
    2923def getBoundingBox(self): 
  • TI02-CSML/trunk/csml/API/ops_TrajectoryFeature.py

    r2817 r2979  
    3737    return self.__getAxis('time') 
    3838 
    39                  
     39def getNativeCRS(self): 
     40    #returns the crs of the feature 
     41    return self.value.trajectoryDomain.srsName 
     42                     
    4043def getDomain(self): 
    4144    #returns domain as a dictionary of ordinates {name: [values], ...} 
     
    7073    var.name=self.name.CONTENT 
    7174    var.units=self.units[0] # hopefully there is just one unit in this list.. 
    72  
    7375    
    7476    #create the time axis 
Note: See TracChangeset for help on using the changeset viewer.