joey: thuban/Extensions/wms parser.py,1.8,1.9
cvs@intevation.de
cvs at intevation.de
Tue Apr 13 19:21:21 CEST 2004
Author: joey
Update of /thubanrepository/thuban/Extensions/wms
In directory doto:/tmp/cvs-serv3837
Modified Files:
parser.py
Log Message:
Looks like I misinterpreted the specs.
First of all, a <BoundingBox> element does not have to be specified.
This could cause the program to fail if later a bbox will be requested
which wasn't defined in the Capabilities XML.
Secondly, since EPSG:3426 is the implicit spatial reference system for
<LatLonBoundingBox> its values should be returned if the client
requests a bounding box for SRS EPSG:3426, even if no <BoundingBox>
was defined for EPSG:3426.
Therefore whenever a native BoundingBox request cannot be fulfilled,
check whether the requested SRS is EPSG:3426, in which case return the
LatLonBoundingBox values.
Index: parser.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/parser.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- parser.py 13 Apr 2004 17:05:56 -0000 1.8
+++ parser.py 13 Apr 2004 17:21:19 -0000 1.9
@@ -458,6 +458,10 @@
if srs in pivot['bbox']:
return pivot['bbox'][srs]
+ # No matching BBox found, let's see if it was EPSG:4326
+ if srs == '4326':
+ return self.getLayerLatLonBBox(name)
+
return None
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)