[MapProxy] Layer becomes black

Travis Kirstine traviskirstine at gmail.com
Thu May 3 14:59:36 PDT 2018


On Thu, May 3, 2018 at 3:33 PM Travis Kirstine <traviskirstine at gmail.com>
wrote:

> I have a similar setup without the issue however I declare the format
>
> Hope this helps.  BTW I would double check that your source WMS service
> isn't generating the black data, sometimes the nodata in the tiffs can be
> incorrect or the MapServer offset value could be incorrect
>
> ####
>
> globals:
>    cache:
>       base_dir: /opt/caches
>       lock_dir: /opt/locks
>    image:
>       paletted: false
>       formats:
>          image/jpg:
>             encoding_options:
>                jpeg_quality: 80
>          image/png:
>             mode: RGBA
>             transparent: true
>
> sources:
>    mapserver_wms:
>       type: wms
>       req:
>          url: http://foobar.com/cgi-bin/service?
>       wms_opts:
>          version: 1.0.0
>          featureinfo: true
>          featureinfo_format: application/vnd.ogc.gml
>       supported_srs: ['EPSG:3857','EPSG:900913','EPSG:4326','EPSG:4269']
>       concurrent_requests: 4
>       supported_formats: ['image/jpeg','image/png']
>       coverage:
>          bbox: [-10592453.1057418, 5113361.84195586, -8275939.84644254,
> 7568890.88630739]
>          srs: 'EPSG:3857'
>
> caches:
>    some_cache:
>       grids: [spherical_mercator]
>       sources: ['mapserver_wms:PARK']
>       meta_buffer: 256
>       meta_size: [4,4]
>       format: image/png
>       cache:
>          type: riak
>          nodes:
>            - host: riak.foobar
>          bucket: PARK
>          secondary_index: true
>
> layers:
>    - name: PARK
>      title: 'Parks and Nature Reserves'
>      sources: ['mapserver_wms:PARK']
>      tile_sources: [some_cache]
>
>
>
>
>
> On 2 May 2018 at 05:09, Gerald Kogler <geraldo at servus.at> wrote:
>
>> I have the same issue. Update to Pillow 5.1.0 didn't fix it, which
>> version of Pillow solved your problem?
>>
>>
>> > Updating Pillow to latest version did the trick.
>> >
>> > On Wed, Dec 6, 2017 at 3:24 AM, Denis Rykov <rykovd at gmail.com>
>> wrote:
>> > > Faced with the very strange issue.
>> > >
>> > > I have the following configuration: source as MapServer WMS (TIF
>> > > raster) -> MapProxy -> WMS Service.
>> > > If MaProxy requests extent which not contains any data then I get
>> > > black image, otherwise all works as expected.
>> > >
>> > > You can check live demo here:
>> http://rykovd.nextgis.com/resource/358/display
>> > >
>> > > MapProxy config:
>> > >
>> > > caches:
>> > >   bfa_cache:
>> > >     grids: [webmercator]
>> > >     sources: ['mapserver:bfa']
>> > >     cache:
>> > >       type: sqlite
>> > >
>> > > sources:
>> > >   mapserver:
>> > >     type: mapserver
>> > >     wms_opts:
>> > >       featureinfo: true
>> > >     req:
>> > >       map: /opt/mapserver/mapfile.map
>> > >       transparent: true
>> > >
>> > > Any thoughts?
>> _______________________________________________
>> 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/20180503/e667f899/attachment.html>


More information about the MapProxy mailing list