Changeset 2890 for TI02-CSML


Ignore:
Timestamp:
18/09/07 09:54:15 (12 years ago)
Author:
domlowe
Message:

getNativeCRS() method added to feature

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

Legend:

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

    r2863 r2890  
    11 
    22class CSMLBoundingBox(object): 
    3 """ class to represent an EnvelopeWithTimePeriod Bounding Box """ 
     3    """ class to represent an EnvelopeWithTimePeriod Bounding Box """ 
    44    def __init__(self, envelope): 
    55        self.envelope=envelope 
     
    1313      
    1414    def getBox(self): 
    15          return [self.minX, self.minY, self.maxX, self.maxY] 
     15        return [self.minX, self.minY, self.maxX, self.maxY] 
    1616     
    17      def getTimeLimits(self): 
    18          return [self.envelope.beginPosition.CONTENT,self.envelope.endPosition.CONTENT] 
     17    def getTimeLimits(self): 
     18        return [self.envelope.beginPosition.CONTENT,self.envelope.endPosition.CONTENT] 
    1919        
  • TI02-CSML/trunk/csml/API/ops_Dataset.py

    r2863 r2890  
    11''' ops_Dataset  contains operations for root Dataset class''' 
    2  
    32import codecs 
    43import csml.csmllibs.xmlEncoding 
    54import csml.parser_extra 
    65import csml.API.existDB 
     6import csml.API.csmlbbox 
     7 
    78try: #python 2.5 
    89    from xml.etree import cElementTree as ET 
  • TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py

    r2863 r2890  
    6161            self.domain[name]=valList     
    6262    return self.domain 
     63 
     64def getNativeCRS(self): 
     65    #returns the crs of the feature 
     66    return self.value.gridSeriesDomain.srsName 
    6367 
    6468def getUom(self): 
Note: See TracChangeset for help on using the changeset viewer.