[MapProxy] forward_req_params not working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[MapProxy] forward_req_params not working

Charlton Galvarino
I have an incoming mapproxy request that looks like this . . .

http://map1/test/ncep_gwes/service?LAYERS=ncep_gwes&TRANSPARENT=TRUE&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TIME=20150214T0000Z&SRS=EPSG%3A4326&BBOX=-104.48571504865,10.76428590502,-73.914286477226,37.83571447645&WIDTH=1284&HEIGHT=1137

And part of my yaml looks like this . . .

sources:
  ncep_gwes:
    type: wms
    forward_req_params: ['TIME']
    req:
      url: http://map0/uc.php?cgi=/ogc/ncep_gwes_DB
      layers: ncep_gwes
      transparent: true
    http:
      client_timeout: 180

caches:
  ncep_gwes_cache:
    grids: [ncep_gwes_grid]
    sources: [ncep_gwes]
    disable_storage: true
    meta_size: [4, 4]

The problem is that the TIME param is not being forwarded along to my target (map0).  Am I doing something wrong?

MapProxy Version 1.7.1

Many thanks,

Charlton





Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 : fax
[hidden email]

P.O. Box 50960
Columbia, SC 29250

_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy
Reply | Threaded
Open this post in threaded view
|

Re: [MapProxy] forward_req_params not working

Oliver Tonnhofer-3
Hi,

forward_req_params only works with cascaded/uncached layers.

See: http://mapproxy.org/docs/nightly/sources.html#forward-req-params


Regards,
Oliver

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



> On 04.02.2015, at 22:38, Charlton Galvarino <[hidden email]> wrote:
>
> I have an incoming mapproxy request that looks like this . . .
>
> http://map1/test/ncep_gwes/service?LAYERS=ncep_gwes&TRANSPARENT=TRUE&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TIME=20150214T0000Z&SRS=EPSG%3A4326&BBOX=-104.48571504865,10.76428590502,-73.914286477226,37.83571447645&WIDTH=1284&HEIGHT=1137
>
> And part of my yaml looks like this . . .
>
> sources:
>  ncep_gwes:
>    type: wms
>    forward_req_params: ['TIME']
>    req:
>      url: http://map0/uc.php?cgi=/ogc/ncep_gwes_DB
>      layers: ncep_gwes
>      transparent: true
>    http:
>      client_timeout: 180
>
> caches:
>  ncep_gwes_cache:
>    grids: [ncep_gwes_grid]
>    sources: [ncep_gwes]
>    disable_storage: true
>    meta_size: [4, 4]
>
> The problem is that the TIME param is not being forwarded along to my target (map0).  Am I doing something wrong?
>
> MapProxy Version 1.7.1
>
> Many thanks,
>
> Charlton
>
>
>
>
>
> Charlton Galvarino
> 1 (803) 233-6205 : voice
> 1 (803) 223-9579 : fax
> [hidden email]
>
> P.O. Box 50960
> Columbia, SC 29250
>
> _______________________________________________
> MapProxy mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapproxy

_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy
Reply | Threaded
Open this post in threaded view
|

Re: [MapProxy] forward_req_params not working

Charlton Galvarino
Thanks, Oliver.  That did the trick.  I thought that disable_storage: true in a cache would be the equivalent of bypassing the cache altogether.  I guess the adage about assumptions strikes again!

A total MapProxy fan.

>> caches:
>>  ncep_gwes_cache:
>>    grids: [ncep_gwes_grid]
>>    sources: [ncep_gwes]
>>    disable_storage: true
>>    meta_size: [4, 4]
_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy