Hello all,
We are using OSWlib to rest WMS GetCapagilities and we need's the ScaleHint
(chapter 7.1.4.5.8 of Web Map Service Implementation Specification,
date: 2002-01-16, ref: OGC 01-068r3, version 1.1.1)
Than I create a small patch for having thoses attributes (min and max
ScaleHint).
Thanks in advance to consider my patch.
Best regards,
Stéphane
--
camptocamp.com
mapfish.org
Index: c2cgeoportail/owslib/owslib/wms.py
===================================================================
--- c2cgeoportail/owslib/owslib/wms.py (revision 1735)
+++ c2cgeoportail/owslib/owslib/wms.py (working copy)
@@ -341,6 +341,12 @@
if hasattr(self.parent, 'boundingBox'):
self.boundingBox = self.parent.boundingBox
+ # ScaleHint
+ sh = elem.find('ScaleHint')
+ self.scaleHint = None
+ if sh is not None:
+ self.scaleHint = {'min': sh.attrib['min'], 'max': sh.attrib['max']}
+
attribution = elem.find('Attribution')
if attribution is not None:
self.attribution = dict()
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community