<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello Stephan,</div><div class=""><br class=""></div><div class="">it looks like the method is not implemented right now for group layers and since there is not test for this</div><div class="">as well, it most certainly is a bug.</div><div class=""><br class=""></div><div class="">I would suggest to disable the legend graphic for group layers right now until a fix is deployed.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Marcel</div><br class=""><div><blockquote type="cite" class=""><div class="">On 16 Jul 2015, at 11:06, <a href="mailto:mapproxy-request@lists.osgeo.org" class="">mapproxy-request@lists.osgeo.org</a> wrote:</div><div class=""><br class="">Date: Thu, 16 Jul 2015 08:50:15 +0000<br class="">From: "Klemm, Stephan - LIST" <<a href="mailto:Stephan.Klemm@list.smwa.sachsen.de" class="">Stephan.Klemm@list.smwa.sachsen.de</a>><br class="">To: "'<a href="mailto:mapproxy@lists.osgeo.org" class="">mapproxy@lists.osgeo.org</a>'" <<a href="mailto:mapproxy@lists.osgeo.org" class="">mapproxy@lists.osgeo.org</a>><br class="">Subject: [MapProxy] Legend for group layer<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span><<a href="mailto:5A21763885B5424F87CF9D046CF385C32230A6@LIST-XC-04.smwa.sachsen.de" class="">5A21763885B5424F87CF9D046CF385C32230A6@LIST-XC-04.smwa.sachsen.de</a>><br class="">Content-Type: text/plain; charset="us-ascii"<br class=""><br class="">Dear Community,<br class=""><br class="">we use MapProxy 1.8.0 and have build some group layer as described in the documentation<<a href="http://mapproxy.org/docs/nightly/configuration.html#layers" class="">http://mapproxy.org/docs/nightly/configuration.html#layers</a>>. Now we have an understanding problem.<br class=""><br class="">Here an excerpt from the yaml:<br class="">layers:<br class="">  - name: SachsenNetz Rad (SNR)<br class="">    title: SachsenNetz Rad (Layergruppe)<br class="">    layers:<br class="">      - name: Radfernwege<br class="">        title: SNR Radfernwege<br class="">        layers:<br class="">          - name: RFW Bestand<br class="">            title: RFW Bestand<br class="">            sources: ['rvk_wms_rfw:Radfernwege_Bestand']<br class="">          - name: RFW Mangelhaft<br class="">            title: RFW mangelhaft<br class="">            sources: ['rvk_wms_rfw:Radfernwege_Mangelhaft']<br class="">          - name: RFW Planung<br class="">            title: RFW Planung<br class="">            sources: ['rvk_wms_rfw:Radfernwege_Planung']<br class="">      - name: Regionale Hauptradrouten<br class="">        title: SNR Regionale Hauptradrouten<br class="">        layers:<br class="">          - name: HRR Bestand<br class="">            title: HRR Bestand<br class="">            sources: ['rvk_wms_hrr:Regionale_Hauptradrouten_Bestand']<br class="">          - name: HRR Mangelhaft<br class="">            title: HRR mangelhaft<br class="">            sources: ['rvk_wms_hrr:Regionale_Hauptradrouten_Mangelhaft']<br class="">          - name: HRR Planung<br class="">            title: HRR Planung<br class="">            sources: ['rvk_wms_hrr:Regionale_Hauptradrouten_Planung']<br class="">      - name: Sonstige Strecken<br class="">        title: SNR Sonstige Strecken<br class="">        layers:<br class="">          - name: SoS Bestand<br class="">            title: SoS Bestand<br class="">            sources: ['rvk_wms_sos:Sonstige_Strecken_Bestand']<br class="">          - name: SoS Mangelhaft<br class="">            title: SoS mangelhaft<br class="">            sources: ['rvk_wms_sos:Sonstige_Strecken_Mangelhaft']<br class="">          - name: SoS Planung<br class="">            title: SoS Planung<br class="">            sources: ['rvk_wms_sos:Sonstige_Strecken_Planung']<br class=""><br class="">sources:      #( UMN MapServer as WMS)<br class="">   rvk_wms_rfw:<br class="">    type: wms<br class="">    wms_opts:<br class="">      featureinfo: true<br class="">      legendgraphic: true<br class="">    req:<br class="">      url: server?<br class="">      layers: Radfernwege_Planung,Radfernwege_Mangelhaft,Radfernwege_Bestand<br class="">      transparent: true<br class="">   rvk_wms_hrr:<br class="">    type: wms<br class="">    wms_opts:<br class="">      featureinfo: true<br class="">      legendgraphic: true<br class="">    req:<br class="">      url: server?<br class="">      layers: Regionale_Hauptradrouten_Planung,Regionale_Hauptradrouten_Mangelhaft,Regionale_Hauptradrouten_Bestand<br class="">      transparent: true<br class="">   rvk_wms_sos:<br class="">    type: wms<br class="">    wms_opts:<br class="">      featureinfo: true<br class="">      legendgraphic: true<br class="">    req:<br class="">      url: server?<br class="">      layers: Sonstige_Strecken_Planung,Sonstige_Strecken_Mangelhaft,Sonstige_Strecken_Bestand<br class="">      transparent: true<br class=""><br class=""><br class="">When I activate the layer in QGIS everything looks great:<br class="">[<a href="cid:image002.jpg@01D0BFB5.32AABB20]" class="">cid:image002.jpg@01D0BFB5.32AABB20]</a><br class=""><br class="">But: when I tried to do an request to the layer group "SachsenNetz Rad" the legend does not appear and get an error on the apache log. The legend for the layer "RFW Bestand" is shown as needed.<br class="">[<a href="cid:image005.jpg@01D0BFB5.32AABB20]" class="">cid:image005.jpg@01D0BFB5.32AABB20]</a><br class=""><br class="">apache error message:<br class="">File "/usr/local/lib/python2.7/dist-packages/mapproxy/service/wms.py", line 306, in legendgraphic<br class="">legend = self.layers[layer].legend(request)<br class=""><br class="">File "/usr/local/lib/python2.7/dist-packages/mapproxy/service/wms.py", line 632, in legend<br class="">raise NotImplementedError()<br class="">NotImplementedError<br class=""><br class=""><br class="">Thank you very much in advance for your help.<br class=""><br class="">Regards,<br class="">Stephan<br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <<a href="http://lists.osgeo.org/pipermail/mapproxy/attachments/20150716/bf6097c3/attachment.html" class="">http://lists.osgeo.org/pipermail/mapproxy/attachments/20150716/bf6097c3/attachment.html</a>><br class="">-------------- next part --------------<br class="">A non-text attachment was scrubbed...<br class="">Name: image002.jpg<br class="">Type: image/jpeg<br class="">Size: 26825 bytes<br class="">Desc: image002.jpg<br class="">URL: <<a href="http://lists.osgeo.org/pipermail/mapproxy/attachments/20150716/bf6097c3/attachment.jpg" class="">http://lists.osgeo.org/pipermail/mapproxy/attachments/20150716/bf6097c3/attachment.jpg</a>><br class="">-------------- next part --------------<br class="">A non-text attachment was scrubbed...<br class="">Name: image005.jpg<br class="">Type: image/jpeg<br class="">Size: 6828 bytes<br class="">Desc: image005.jpg<br class="">URL: <<a href="http://lists.osgeo.org/pipermail/mapproxy/attachments/20150716/bf6097c3/attachment-0001.jpg" class="">http://lists.osgeo.org/pipermail/mapproxy/attachments/20150716/bf6097c3/attachment-0001.jpg</a>><br class=""><br class="">------------------------------<br class=""><br class="">_______________________________________________<br class="">MapProxy mailing list<br class=""><a href="mailto:MapProxy@lists.osgeo.org" class="">MapProxy@lists.osgeo.org</a><br class="">http://lists.osgeo.org/mailman/listinfo/mapproxy<br class=""><br class="">End of MapProxy Digest, Vol 65, Issue 3<br class="">***************************************<br class=""></div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">——</div><div class="">Datalyze Solutions UG</div><div class="">Urbanstr. 116 | 10967 Berlin</div><div class=""><br class=""></div><div class="">Marcel Radischat | <a href="mailto:m.radischat@datalyze-solutions.com" class="">m.radischat@datalyze-solutions.com</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>