[MapProxy] legendgraphic

Klemm, Stephan - LISt Stephan.Klemm at list.smwa.sachsen.de
Wed Mar 16 02:07:05 PDT 2016


Dear Community,

i need a help for display a legend in mapproxy 1.8.2.
Following an excerpt from the .yaml file with the parameter legendurl at the "layers" and "sources" section.

The trouble is that mapproxy ignored the specified legendurl from another wms-server. I've tried a number of cases but without success.
Aim is to display an legend fort he group layer "SachsenNetz Rad (SNR)"

Does anybody have experience with legends in group layers or the parameter legendurl?

Thanks a lot!
Stephan

...
layers:
  - name: SachsenNetz Rad (SNR)
    title: SachsenNetz Rad (Layergruppe)
    layers:
      - name: Radfernwege
        title: SNR Radfernwege
        legendurl: http://172.24.50.75/radverkehr/wms?version=1.1.1&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=Radfernwege&format=image/png&STYLE=default
        layers:
          - name: RFW Bestand
            title: RFW Bestand
            sources: ['rvk_wms_rfw:Radfernwege_Bestand']
          - name: RFW Mangelhaft
            title: RFW mangelhaft
            sources: ['rvk_wms_rfw:Radfernwege_Mangelhaft']
          - name: RFW Planung
            title: RFW Planung
            sources: ['rvk_wms_rfw:Radfernwege_Planung']
      - name: Regionale Hauptradrouten
        title: SNR Regionale Hauptradrouten
        layers:
          - name: HRR Bestand
            title: HRR Bestand
            sources: ['rvk_wms_hrr:Regionale_Hauptradrouten_Bestand']
          - name: HRR Mangelhaft
            title: HRR mangelhaft
            sources: ['rvk_wms_hrr:Regionale_Hauptradrouten_Mangelhaft']
          - name: HRR Planung
            title: HRR Planung
            sources: ['rvk_wms_hrr:Regionale_Hauptradrouten_Planung']
      - name: Sonstige Strecken
        title: SNR Sonstige Strecken
        layers:
          - name: SoS Bestand
            title: SoS Bestand
            sources: ['rvk_wms_sos:Sonstige_Strecken_Bestand']
          - name: SoS Mangelhaft
            title: SoS mangelhaft
            sources: ['rvk_wms_sos:Sonstige_Strecken_Mangelhaft']
          - name: SoS Planung
            title: SoS Planung
            sources: ['rvk_wms_sos:Sonstige_Strecken_Planung']
...
...
sources:
   rvk_wms_rfw:
    type: wms
    wms_opts:
      featureinfo: true
      legendgraphic: true
      legendurl: http://172.24.50.75/radverkehr/wms?version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=Radfernwege&format=image/png&STYLE=default
    req:
      url: http://172.24.50.75/radverkehr/wms?
      layers: Radfernwege_Planung,Radfernwege_Mangelhaft,Radfernwege_Bestand
      transparent: true
   rvk_wms_hrr:
    type: wms
    wms_opts:
      featureinfo: true
      legendgraphic: true
    req:
      url: http://172.24.50.75/radverkehr/wms?
      layers: Regionale_Hauptradrouten_Planung,Regionale_Hauptradrouten_Mangelhaft,Regionale_Hauptradrouten_Bestand
      transparent: true
   rvk_wms_sos:
    type: wms
    wms_opts:
      featureinfo: true
      legendgraphic: true
    req:
      url: http://172.24.50.75/radverkehr/wms?
      layers: Sonstige_Strecken_Planung,Sonstige_Strecken_Mangelhaft,Sonstige_Strecken_Bestand
      transparent: true

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20160316/0f60ae43/attachment.html>


More information about the MapProxy mailing list