Ignore:
Timestamp:
25/01/08 14:05:32 (13 years ago)
Author:
domlowe
Message:

Documenting CSML code - not complete

File:
1 edited

Legend:

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

    r2890 r3267  
    1  
     1''' Contains implementation of a CSML bounding box with methods for getting the times, CRS and bounding points''' 
    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 
     
    1010     
    1111    def getCRSName(self): 
     12        '''  
     13        Get the name of the coordinate reference system for this bounding box 
     14        @return:    string containing name of crs 
     15        ''' 
    1216        return self.envelope.srsName      
    1317      
    1418    def getBox(self): 
     19        ''' 
     20        Get the bounding box values 
     21        @return:    a list of the form [minX, minY, maxX, maxY] 
     22        ''' 
    1523        return [self.minX, self.minY, self.maxX, self.maxY] 
    1624     
    1725    def getTimeLimits(self): 
     26        '''  
     27        Get the start and end times of the bounding box 
     28        @return:    a list of strings: ['starttime', 'endtime'] 
     29        ''' 
    1830        return [self.envelope.beginPosition.CONTENT,self.envelope.endPosition.CONTENT] 
    1931        
Note: See TracChangeset for help on using the changeset viewer.