joey: thuban/Extensions/wms/test test_parser.py,1.17,1.18
cvs@intevation.de
cvs at intevation.de
Tue Apr 13 19:17:42 CEST 2004
Author: joey
Update of /thubanrepository/thuban/Extensions/wms/test
In directory doto:/tmp/cvs-serv3737/test
Modified Files:
test_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 added another test method to ensure the LatLonBoundingBox
values will be returned if the request SRS is EPSG:3426.
Index: test_parser.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/test/test_parser.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- test_parser.py 13 Apr 2004 17:16:20 -0000 1.17
+++ test_parser.py 13 Apr 2004 17:17:40 -0000 1.18
@@ -221,6 +221,27 @@
self.assertEquals(self.getLayerBBox('beschriftung', '31490'), None)
+ def test_LatLonBoundingBoxes_as_bboxes(self):
+ """
+ Check if the LatLonBoundingBoxes are returned properly
+ """
+
+ # main LatLonBoundingBox
+ bbox = {'minx': "7.92881", 'miny': "52.2131",
+ 'maxx': "8.18349", 'maxy': "52.341"}
+ self.compareDicts(self.getLayerBBox('Osnabrueck', '4326'), bbox)
+
+ # inherited LatLonBoundingBox
+ bbox = {'minx': "7.92881", 'miny': "52.2131",
+ 'maxx': "8.18349", 'maxy': "52.341"}
+ self.compareDicts(self.getLayerBBox('gewaesser', '4326'), bbox)
+
+ # third layer non-inherited LatLonBoundingBox
+ bbox = {'minx': "7.93531", 'miny': "52.2328",
+ 'maxx': "8.17739", 'maxy': "52.3353"}
+ self.compareDicts(self.getLayerBBox('gewaesserpolyl', '4326'), bbox)
+
+
def test_queryable(self):
"""
Check if layers are properly classified queryable or not
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)