Example #1
0
 def legend_url(self):
     if self.has_legend:
         req = WMS111LegendGraphicRequest(url='?',
             param=dict(format='image/png', layer=self.name, sld_version='1.1.0'))
         return req.complete_url
     else:
         return None
Example #2
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1'))
     self.common_lg_req_111 = WMS111LegendGraphicRequest(url='/service?',
         param=dict(format='image/png', layer='wms_legend', sld_version='1.1.0'))
     self.common_lg_req_130 = WMS130LegendGraphicRequest(url='/service?',
         param=dict(format='image/png', layer='wms_legend', sld_version='1.1.0'))
Example #3
0
 def setup(self):
     self.common_req = WMS111MapRequest(url="/service?",
                                        param=dict(service="WMS",
                                                   version="1.1.1"))
     self.common_lg_req_111 = WMS111LegendGraphicRequest(
         url="/service?",
         param=dict(format="image/png",
                    layer="wms_legend",
                    sld_version="1.1.0"),
     )
     self.common_lg_req_130 = WMS130LegendGraphicRequest(
         url="/service?",
         param=dict(format="image/png",
                    layer="wms_legend",
                    sld_version="1.1.0"),
     )