Ignore:
Timestamp:
27/03/08 18:39:42 (11 years ago)
Author:
mkochan
Message:

Extended csmlGrapher to allow multiple datasets (that is, data served from multiple WFSs).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DPPP/kml/csml2kml/python/csml2kml/csml2kml/Station.py

    r3654 r3693  
    33''' 
    44 
     5import utils 
    56from ET import XML 
    67from matplotlib import dates     # a very good date/time module from matplotviz -- allows years < 1970 
     
    2122    @type lat: float 
    2223    @type features: C{NPStationFeature} list 
    23  
    2424    ''' 
    2525 
     
    9393        @type stationElement: C{cElementTree.Element} 
    9494        ''' 
     95 
    9596        (featureTypeElement, featureIdElement,  
    9697         collectBeginDateElement, collectEndDateElement) = stationFeatureElement.getchildren() 
    9798        self.featureType = featureTypeElement.text 
    9899        self.featureId = featureIdElement.text 
    99         self.collectBeginDate = dates.dateutil.parser.parse(collectBeginDateElement.text) 
    100         self.collectEndDate = dates.dateutil.parser.parse(collectEndDateElement.text) 
     100        self.collectBeginDate = utils.parseTimestamp(collectBeginDateElement.text) 
     101        self.collectEndDate = utils.parseTimestamp(collectEndDateElement.text) 
    101102 
    102103    def __repr__(self): 
Note: See TracChangeset for help on using the changeset viewer.