[MapProxy] WSGI Filter working example

Matt Walker walkermatt at longwayaround.org.uk
Sun Apr 18 10:19:48 PDT 2021


Hi Erik,

I don't have time to test with Python 3 right now but here is an example
from a few years ago which wraps MapProxy in order to set
the mapproxy.decorate_img callback.

https://gist.github.com/walkermatt/1cae669defce037511ada4e0ed01b3cd

Kind regards,

Matt.

On Sun, 18 Apr 2021, 16:09 Erik Tiengo, <etiengo at gmail.com> wrote:

> Hello to everybody,
>
> someone could share a simple example of customization by WSGI filter.
> Documentation is a very clear entry point, but I am not able to see
> __call__ method in action :-( I guess that GetCapabilities request is
> enough to see __call__ in action, right? __init__ is it but no __call__ for
> every request I make
>
> I am using Python 3.9.1, MapProxy 1.13.0 and gunicorn 20.1.0
>
> Thank in advance for support
>
> et
>
> --
> *Erik Tiengo*
> GIS Solution Architect
> ------------------------------
> mobile:    *+39 348 1230364*
> Skype:     *erik.tiengo*
> Hangouts:  *etiengo at gmail.com <etiengo at gmail.com>*
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210418/927f3590/attachment.html>


More information about the MapProxy mailing list