[MapProxy] internal error when using clip with datasource

Lars-Daniel Weber Lars-Daniel.Weber at gmx.de
Sun Apr 21 20:59:22 PDT 2019


Anyone with an idea on this? I'm getting thousands of errors in my logs.
Is there a way to limit /tiles to a BBOX or a datasource? Limiting the source isn't enough.

Maybe this is a bug, but before reporting it, I'd love to communicate with anyone using MapProxy.


> Gesendet: Mittwoch, 10. April 2019 um 16:03 Uhr
> Von: "Lars-Daniel Weber" <Lars-Daniel.Weber at gmx.de>
> An: mapproxy at lists.osgeo.org
> Betreff: [MapProxy] internal error when using clip with datasource
>
> Hi there!
>
> I'd like to narrow down to the visible area of my tiles to a BBOX.
>
> When using pure BBOX in source-coverage, the tiles don't get limited, they still can be requested outside the BBOX:
> sources:
>   src_distribution:
>     type: mapnik
>     mapfile: data/mapnik.xml
>     layers: lyr_distribution
>     transparent: true
>     coverage:
>       bbox: 'xxxx'
>       srs: 'EPSG:3857'
>
> Adding "clip: true" to bbox doesn't work, it directly leads to "internal error".
> The only way seems to be a datasource with the geometry of the bbox, then "clip: true" works:
>
> sources:
>   src_distribution:
>     type: mapnik
>     mapfile: data/mapnik.xml
>     layers: lyr_distribution
>     transparent: true
>     coverage:
>       clip: true
>       datasource: 'distribution_bbox.geojson'
>       srs: 'EPSG:3857'
>
>
> The tiles are perfectly within this bbox only, but I'm getting hundrets of "internal error" as text around the bbox. On areas very far outside the bbox, I'm getting the normal XML error that the requested tile is out of boundary.
>
> Is this a bug?
>
> Best regards,
> Lars-Daniel
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy


More information about the MapProxy mailing list