Changeset 1503 for TI02-CSML


Ignore:
Timestamp:
11/09/06 13:15:30 (13 years ago)
Author:
domlowe
Message:

fixed problem with srsName attribute in EnvelopeWithTimePeriod?

File:
1 edited

Legend:

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

    r1498 r1503  
    21152115    def fromXML(self,csmlFrag): 
    21162116        EnvTPfrag=csmlFrag.getchildren()[0] 
     2117        if EnvTPfrag.attrib.has_key('srsName'): 
     2118            self.srsName=EnvTPfrag.attrib['srsName'] 
    21172119        for frag in EnvTPfrag.getchildren(): 
    2118             if frag.attrib.has_key('srsName'): 
    2119                 self.srsName=frag.attrib['srsName'] 
    21202120            if frag.tag == GML('lowerCorner'): 
    2121                 #self.lowerCorner=frag.text 
    21222121                self.lowerCorner=DirectPosition() 
    21232122                DirectPosition.fromXML(self.lowerCorner, frag) 
    21242123            if frag.tag == GML('upperCorner'): 
    2125                 #self.upperCorner=frag.text 
    21262124                self.upperCorner=DirectPosition() 
    21272125                DirectPosition.fromXML(self.upperCorner, frag) 
Note: See TracChangeset for help on using the changeset viewer.