[MapProxy] GetLegend URL same as OnlineResource

Klemm, Stephan - LISt Stephan.Klemm at list.smwa.sachsen.de
Thu Jun 1 23:56:58 PDT 2017


Hi Oliver,

Thanks for the tip, and yes, I had this yesterday also still discovered and i will try it.

Regards, 
Stephan


-----Ursprüngliche Nachricht-----
Von: Oliver Tonnhofer [mailto:olt at omniscale.de] 
Gesendet: Donnerstag, 1. Juni 2017 21:00
An: Klemm, Stephan - LISt
Cc: mapproxy
Betreff: Re: [MapProxy] GetLegend URL same as OnlineResource

Hi,

the online_resource in the WMS metadata is for linking to a homepage. It is not used for the DCPType/HTTP URLs, unlike Mapserver.

If you are using MapProxy behind a proxy, make sure that you pass X-Forwarded-Proto to MapProxy.
See https://mapproxy.org/docs/nightly/deployment.html#http-proxy

Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
OpenStreetMap WMS and tile services         | https://maps.omniscale.com





> On 01.06.2017, at 09:22, Klemm, Stephan - LISt <Stephan.Klemm at list.smwa.sachsen.de> wrote:
> 
> Good Morning,
>  
> We use MapProxy in the version 1.8.0. 
> Our MapProxy cascades an internal WMS and makes it more structured -->MapProxy-WMS is only accessible in the intranet.
>  
> 
> In the wmts.yaml file I defined in the "services:" area a WMS with an online_resource in https:
> 
> services:
>   wms:
>     md:
>       title:
>       abstract:
>       Online_resource: https://gdi-sbv.list.smwa.sachsen.de/kk3/wms/service?
> 
> This WMS is defined by “source” area as follows:
> 
> wms_bauprojekte:
>     Type: wms
>     wms_opts:
>       Featureinfo: true
>       Legendgraphic: true
>     req:
>       Url: http://172.24.50.75/kk3/wms?
>       Layers: Kompensations_Bauprojekte_Polygon, Kompensations_Bauprojekte_Line, Kompensations_Bauprojekte_Point
>       Transparent: true
> 
> 
> Now to my question: 
> In the Capabilities appear the OnlineResorurce as https address, the OnlineResource for GetMap or GetLegend etc. appears only http.
> 
> How can I adjust this?
> It would be enough if I can define a legendurl in https.
> I have tried it according to the instructions [1] already, but does not work.
> 
> [1] https://github.com/mapproxy/mapproxy/blob/master/mapproxy/config_template/base_config/full_example.yaml
> 
> 
>  
> Defined OnlineResource with https
>  
> <image005.jpg>
>  
> OnlineResoure for GetLegend, GetMap, GetFeatureInfo only http
> <image006.jpg>
>  
>  
> Thanks and best regards!
> Stephan
>  
> <wmts.yaml>_______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list