Discussion:
[MapProxy] Transparent Tile Cache over Tile Server
Greg Albrecht
2018-07-30 18:37:45 UTC
Permalink
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/c60602300ea02adb744b216a0b21439a

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/e81f8848d92621774e0cb2d3973edb64

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 <***@gregalbrecht.com> W2GMD
EMT, Emergency & Disaster Communications Supervisor
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
Oliver Tonnhofer
2018-08-01 12:02:47 UTC
Permalink
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
Post by Greg Albrecht
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/c60602300ea02adb744b216a0b21439a
Config: https://gist.github.com/ampledata/e81f8848d92621774e0cb2d3973edb64
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
--
EMT, Emergency & Disaster Communications Supervisor
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
_______________________________________________
MapProxy mailing list
https://lists.osgeo.org/mailman/listinfo/mapproxy
Greg Albrecht
2018-08-01 18:55:24 UTC
Permalink
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:

Loading Image...

Thanks,
-g
Post by Oliver Tonnhofer
Hi,
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
Post by Greg Albrecht
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.
Post by Greg Albrecht
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.
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/c60602300ea02adb744b216a0b2143
9a
Post by Greg Albrecht
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
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/e81f8848d92621774e0cb2d3973edb
64
Post by Greg Albrecht
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.
Post by Greg Albrecht
The tile files themselves are: "PNG image data, 256 x 256, 8-bit
colormap, non-interlaced"
Post by Greg Albrecht
Thanks,
-g
--
EMT, Emergency & Disaster Communications Supervisor
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
_______________________________________________
MapProxy mailing list
https://lists.osgeo.org/mailman/listinfo/mapproxy
--
Greg Albrecht <***@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
2018-08-02 17:35:21 UTC
Permalink
I've also tried setting the cache to transparent, but that doesn't seem to
work either.
Post by Greg Albrecht
https://gist.github.com/ampledata/13434095e2923d25e2e4f36b1902b69e
Unfortunately what I'm seeing is the Special-Event tiles (right) as
https://www.dropbox.com/s/t8gkchp1o9le8jw/Screenshot%
202018-08-01%2011.53.06.png?dl=0
Thanks,
-g
Post by Oliver Tonnhofer
Hi,
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
Post by Greg Albrecht
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.
Post by Greg Albrecht
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.
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/c60602300ea02adb744b216a0b
21439a
Post by Greg Albrecht
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
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/e81f8848d92621774e0cb2d397
3edb64
Post by Greg Albrecht
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.
Post by Greg Albrecht
The tile files themselves are: "PNG image data, 256 x 256, 8-bit
colormap, non-interlaced"
Post by Greg Albrecht
Thanks,
-g
--
EMT, Emergency & Disaster Communications Supervisor
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
_______________________________________________
MapProxy mailing list
https://lists.osgeo.org/mailman/listinfo/mapproxy
--
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
--
Greg Albrecht <***@gregalbrecht.com> W2GMD
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
Oliver Tonnhofer
2018-08-03 07:02:36 UTC
Permalink
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: Loading Image...
transparent: true



Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | https://omniscale.com
OpenStreetMap WMS and tile services | https://maps.omniscale.com
Post by Greg Albrecht
https://gist.github.com/ampledata/13434095e2923d25e2e4f36b1902b69e
https://www.dropbox.com/s/t8gkchp1o9le8jw/Screenshot%202018-08-01%2011.53.06.png?dl=0
Thanks,
-g
Hi,
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
Post by Greg Albrecht
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/c60602300ea02adb744b216a0b21439a
Config: https://gist.github.com/ampledata/e81f8848d92621774e0cb2d3973edb64
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
--
EMT, Emergency & Disaster Communications Supervisor
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
_______________________________________________
MapProxy mailing list
https://lists.osgeo.org/mailman/listinfo/mapproxy
--
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
Greg Albrecht
2018-08-03 07:22:19 UTC
Permalink
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
Post by Oliver Tonnhofer
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.
- name: combined_layer
title: osm + osl
sources: [combined_cache]
grids: [webmercator]
sources: [osm_cache, osl_cache]
grids: [webmercator]
sources: []
format: custom_format
type: file
directory: /mapproxy/osl/
directory_layout: tms
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
Post by Greg Albrecht
https://gist.github.com/ampledata/13434095e2923d25e2e4f36b1902b69e
Unfortunately what I'm seeing is the Special-Event tiles (right) as
https://www.dropbox.com/s/t8gkchp1o9le8jw/Screenshot%
202018-08-01%2011.53.06.png?dl=0
Post by Greg Albrecht
Thanks,
-g
Hi,
https://mapproxy.org/docs/nightly/configuration_
examples.html#merge-tile-sources
Post by Greg Albrecht
Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | https://omniscale.com
OpenStreetMap WMS and tile services | https://maps.omniscale.com
Post by Greg Albrecht
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.
Post by Greg Albrecht
Post by Greg Albrecht
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.
Post by Greg Albrecht
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/
c60602300ea02adb744b216a0b21439a
Post by Greg Albrecht
Post by Greg Albrecht
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
Post by Greg Albrecht
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/
e81f8848d92621774e0cb2d3973edb64
Post by Greg Albrecht
Post by Greg Albrecht
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.
Post by Greg Albrecht
Post by Greg Albrecht
The tile files themselves are: "PNG image data, 256 x 256, 8-bit
colormap, non-interlaced"
Post by Greg Albrecht
Post by Greg Albrecht
Thanks,
-g
--
EMT, Emergency & Disaster Communications Supervisor
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
_______________________________________________
MapProxy mailing list
https://lists.osgeo.org/mailman/listinfo/mapproxy
--
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
--
Greg Albrecht <***@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
2018-08-04 04:47:30 UTC
Permalink
Figured it out, deleted my local cache :)

Loading Image...
Post by Greg Albrecht
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.
https://gist.github.com/ampledata/48b982196ffb9aa21c6ddc79863ce3c0
I've tried omitting the 'custom_format' as well, to no avail.
Thanks for any further help!
-g
Post by Oliver Tonnhofer
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.
- name: combined_layer
title: osm + osl
sources: [combined_cache]
grids: [webmercator]
sources: [osm_cache, osl_cache]
grids: [webmercator]
sources: []
format: custom_format
type: file
directory: /mapproxy/osl/
directory_layout: tms
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
Post by Greg Albrecht
https://gist.github.com/ampledata/13434095e2923d25e2e4f36b1902b69e
Unfortunately what I'm seeing is the Special-Event tiles (right) as
https://www.dropbox.com/s/t8gkchp1o9le8jw/Screenshot%202018-
08-01%2011.53.06.png?dl=0
Post by Greg Albrecht
Thanks,
-g
Hi,
https://mapproxy.org/docs/nightly/configuration_examples.
html#merge-tile-sources
Post by Greg Albrecht
Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | https://omniscale.com
OpenStreetMap WMS and tile services |
https://maps.omniscale.com
Post by Greg Albrecht
Post by Greg Albrecht
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.
Post by Greg Albrecht
Post by Greg Albrecht
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.
Post by Greg Albrecht
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/c60602300ea02adb744b216a0b
21439a
Post by Greg Albrecht
Post by Greg Albrecht
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
Post by Greg Albrecht
Post by Greg Albrecht
Config: https://gist.github.com/ampledata/e81f8848d92621774e0cb2d397
3edb64
Post by Greg Albrecht
Post by Greg Albrecht
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.
Post by Greg Albrecht
Post by Greg Albrecht
The tile files themselves are: "PNG image data, 256 x 256, 8-bit
colormap, non-interlaced"
Post by Greg Albrecht
Post by Greg Albrecht
Thanks,
-g
--
EMT, Emergency & Disaster Communications Supervisor
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
_______________________________________________
MapProxy mailing list
https://lists.osgeo.org/mailman/listinfo/mapproxy
--
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
--
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
--
Greg Albrecht <***@gregalbrecht.com> W2GMD
EMT & Disaster Communications Specialist
Mobile: 1-415-598-8226
http://ampledata.org/
http://twitter.com/ampledata
https://github.com/ampledata
Loading...