/[thuban]/trunk/thuban/Extensions/wms/parser.py
ViewVC logotype

Diff of /trunk/thuban/Extensions/wms/parser.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2166 by joey, Tue Apr 13 16:42:48 2004 UTC revision 2167 by joey, Tue Apr 13 17:05:56 2004 UTC
# Line 170  class WMSCapabilitiesParser: Line 170  class WMSCapabilitiesParser:
170                  if srs[0:5] == 'EPSG:':                  if srs[0:5] == 'EPSG:':
171                      srs = srs[5:]                      srs = srs[5:]
172                  try:                  try:
173                      self.layers[index]['srs'].append(srs)                      int(srs)
174                  except KeyError:                      try:
175                      self.layers[index]['srs'] = [srs]                          self.layers[index]['srs'].append(srs)
176                        except KeyError:
177                            self.layers[index]['srs'] = [srs]
178                    except ValueError:
179                        if srs[0:4].upper() == 'AUTO' \
180                               or srs[0:4].upper() == 'NONE':
181                            try:
182                                self.layers[index]['_srs_'].append(srs)
183                            except KeyError:
184                                self.layers[index]['_srs_'] = [srs]
185                        else:
186                            self.error.append(_("SRS '%s' is not numerical and not"
187                                                " AUTO/NONE in layer '%s'") \
188                                              % (srs, self.layers[index]['title']))
189    
190          foo = getElementByName(top, 'LatLonBoundingBox')          foo = getElementByName(top, 'LatLonBoundingBox')
191          if foo is not None:          if foo is not None:

Legend:
Removed from v.2166  
changed lines
  Added in v.2167

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26