/[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 2133 by joey, Wed Mar 24 19:31:54 2004 UTC revision 2144 by joey, Tue Mar 30 17:25:20 2004 UTC
# Line 385  class WMSCapabilitiesParser: Line 385  class WMSCapabilitiesParser:
385          - Layers may optionally add to the global SRS list, or to the          - Layers may optionally add to the global SRS list, or to the
386            list inherited from a parent layer.            list inherited from a parent layer.
387    
388            - A server which has the ability to transform data to
389              different SRSes may choose not to provide an explicit
390              BoundingBox for every possible SRS available for each Layer.
391              Thus the list of <SRS> elements are authoritative.
392    
393          This implementation returns the list of SRS for the given          This implementation returns the list of SRS for the given
394          layer, calculated by looking at BoundingBoxes defined in the          layer, calculated by looking at BoundingBoxes defined in the
395          named layer and all layers higher in the hierarchy up to the          named layer and all layers higher in the hierarchy up to the
# Line 400  class WMSCapabilitiesParser: Line 405  class WMSCapabilitiesParser:
405    
406          result = []          result = []
407          while pivot != -1:          while pivot != -1:
408              if 'bbox' in self.layers[pivot]:              if 'srs' in self.layers[pivot]:
409                  for srs in self.layers[pivot]['bbox'].keys():                  for srs in self.layers[pivot]['srs']:
410                      if srs not in result:                      if srs not in result:
411                          result.append(srs)                          result.append(srs)
412              pivot = self.layers[pivot]['parent']              pivot = self.layers[pivot]['parent']

Legend:
Removed from v.2133  
changed lines
  Added in v.2144

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26