joey: thuban/Extensions/wms parser.py,1.1,1.2

cvs@intevation.de cvs at intevation.de
Tue Mar 30 19:25:22 CEST 2004


Author: joey

Update of /thubanrepository/thuban/Extensions/wms
In directory doto:/tmp/cvs-serv18247

Modified Files:
	parser.py 
Log Message:
Adjusted the getLayerSRS method to return the list of SRSes extracted
from <SRS> elements instead of <BoundingBox> elements.  Added a bit of
documentation as well.

Index: parser.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/parser.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- parser.py	24 Mar 2004 19:31:54 -0000	1.1
+++ parser.py	30 Mar 2004 17:25:20 -0000	1.2
@@ -385,6 +385,11 @@
         - Layers may optionally add to the global SRS list, or to the
           list inherited from a parent layer.
 
+        - A server which has the ability to transform data to
+          different SRSes may choose not to provide an explicit
+          BoundingBox for every possible SRS available for each Layer.
+          Thus the list of <SRS> elements are authoritative.
+
         This implementation returns the list of SRS for the given
         layer, calculated by looking at BoundingBoxes defined in the
         named layer and all layers higher in the hierarchy up to the
@@ -400,8 +405,8 @@
 
         result = []
         while pivot != -1:
-            if 'bbox' in self.layers[pivot]:
-                for srs in self.layers[pivot]['bbox'].keys():
+            if 'srs' in self.layers[pivot]:
+                for srs in self.layers[pivot]['srs']:
                     if srs not in result:
                         result.append(srs)
             pivot = self.layers[pivot]['parent']





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)