[MapProxy] Transparent Tile Cache over Tile Server

Greg Albrecht gba at gregalbrecht.com
Fri Aug 3 21:47:30 PDT 2018


Figured it out, deleted my local cache :)

https://www.dropbox.com/s/nsxl4hipr6g3xzn/Screenshot%202018-08-03%2021.47.19.png?dl=0

On Fri, Aug 3, 2018 at 12:22 AM, Greg Albrecht <gba at gregalbrecht.com> wrote:

> Thanks for the help thus-far Oliver, and I apologize if I'm not grasping
> the problem appropriately on my side, but with the configuration you've
> sent over I no longer see my Special-Event tiles.
>
> Config is as follows:
>
> https://gist.github.com/ampledata/48b982196ffb9aa21c6ddc79863ce3c0
>
> I've tried omitting the 'custom_format' as well, to no avail.
>
> Thanks for any further help!
>
> -g
>
>
> On Fri, Aug 3, 2018 at 12:02 AM, Oliver Tonnhofer <olt at omniscale.de>
> wrote:
>
>> Hi,
>>
>> sorry I haven't read your first mail careful enough.
>>
>> You second configuration does not work, because MapProxy does not load
>> the OSM tile to place it behind you Special-Event tiles if there is already
>> a tile in the cache.
>>
>> You need something like:
>>
>> layers:
>>   - name: combined_layer
>>     title: osm + osl
>>     sources: [combined_cache]
>>
>> caches:
>>   combined_cache:
>>     grids: [webmercator]
>>     sources: [osm_cache, osl_cache]
>>
>>   osl_cache:
>>     grids: [webmercator]
>>     sources: []
>>     format: custom_format
>>     cache:
>>       type: file
>>       directory: /mapproxy/osl/
>>       directory_layout: tms
>>
>> sources:
>>   osm:
>>     type: tile
>>     grid: GLOBAL_WEBMERCATOR
>>     url: http://a.tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png
>>     transparent: true
>>
>>
>>
>> Regards,
>> Oliver
>>
>> --
>> Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
>> OpenStreetMap WMS and tile services         | https://maps.omniscale.com
>>
>>
>>
>>
>>
>>
>>
>> > On 1. Aug 2018, at 20:55, Greg Albrecht <gba at gregalbrecht.com> wrote:
>> >
>> > Thanks for the help Oliver. I've updated the config as follows:
>> >
>> > https://gist.github.com/ampledata/13434095e2923d25e2e4f36b1902b69e
>> >
>> > Unfortunately what I'm seeing is the Special-Event tiles (right) as
>> non-transparent over the OSM tiles (left) in the background:
>> >
>> > https://www.dropbox.com/s/t8gkchp1o9le8jw/Screenshot%202018-
>> 08-01%2011.53.06.png?dl=0
>> >
>> > Thanks,
>> > -g
>> >
>> >
>> >
>> > On Wed, Aug 1, 2018 at 5:02 AM, Oliver Tonnhofer <olt at omniscale.de>
>> wrote:
>> > Hi,
>> >
>> > you need to 'mark' your tile source as transparent:
>> > https://mapproxy.org/docs/nightly/configuration_examples.
>> html#merge-tile-sources
>> >
>> >
>> > Regards,
>> > Oliver
>> >
>> > --
>> > Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
>> > OpenStreetMap WMS and tile services         |
>> https://maps.omniscale.com
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > On 30. Jul 2018, at 20:37, Greg Albrecht <gba at gregalbrecht.com>
>> wrote:
>> > >
>> > > Hi All,
>> > >
>> > > I'm trying to use a Special-Event PDF as a transparent layer overlay
>> for an existing OSM Tile Source. I've already used MapTiler to split the
>> PDF into the appropriate tiles and can export them as a TMS directory
>> structure or as a mbtiles file.
>> > >
>> > > If I use a tile server to host the Special-Event tiles and use a
>> combined cache to provide a layer to my web browser (via WMTS), the
>> Special-Event tiles are transparent and I can see all the way through to
>> the underlying OSM tiles.
>> > >
>> > > Config: https://gist.github.com/ampledata/c60602300ea02adb744b216a0b
>> 21439a
>> > >
>> > > If I use a local TMS file cache to host the Special-Event tiles and
>> use a combined cache to provide a layer to my web browser (via WMTS), I can
>> ONLY see the Special-Event tiles and I cannot see the underlying OSM tiles:
>> > >
>> > > Config: https://gist.github.com/ampledata/e81f8848d92621774e0cb2d397
>> 3edb64
>> > >
>> > > I'd prefer using a local TMS file cache to host the Special-Event
>> tiles, and have them be transparent on top of the externally hosted OSM
>> tiles. I appreciate any pointers on what might be wrong with my config.
>> > >
>> > > The tile files themselves are: "PNG image data, 256 x 256, 8-bit
>> colormap, non-interlaced"
>> > >
>> > > Thanks,
>> > > -g
>> > >
>> > >
>> > > --
>> > > Greg Albrecht <gba at gregalbrecht.com> W2GMD
>> > > EMT, Emergency & Disaster Communications Supervisor
>> > > Mobile: 1-415-598-8226
>> > > http://ampledata.org/
>> > > http://twitter.com/ampledata
>> > > https://github.com/ampledata
>> > > _______________________________________________
>> > > MapProxy mailing list
>> > > MapProxy at lists.osgeo.org
>> > > https://lists.osgeo.org/mailman/listinfo/mapproxy
>> >
>> >
>> >
>> >
>> > --
>> > Greg Albrecht <gba at gregalbrecht.com> W2GMD
>> > EMT & Disaster Communications Specialist
>> > Mobile: 1-415-598-8226
>> > http://ampledata.org/
>> > http://twitter.com/ampledata
>> > https://github.com/ampledata
>>
>>
>
>
> --
> Greg Albrecht <gba at gregalbrecht.com> W2GMD
> EMT & Disaster Communications Specialist
> Mobile: 1-415-598-8226
> http://ampledata.org/
> http://twitter.com/ampledata
> https://github.com/ampledata
>



-- 
Greg Albrecht <gba at gregalbrecht.com> W2GMD
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180803/0ad7a825/attachment.html>


More information about the MapProxy mailing list