[MapProxy] Solved... and tms?

Daniel Cebulla daniel.cebulla at jena.de
Fri Dec 6 00:14:57 PST 2024


Hi,

We are serving WMTS, which has the same limitation.
The workaround would be, to configure a third cache with the other both 
caches as source and taking this as source for the layer. You can use 
"|disable_storage:true"|, if you did not want to storage the third 
cache, too.

layers:
   - name: basemap
     title: Basemap Tiles
     sources: [basemap_cache]

caches:
   basemap_cache:
|    disable_storage:true|
     sources: [basemap_cache_tiles, basemap_cache_schumm]
     grids: [GLOBAL_WEBMERCATOR]
   basemap_cache_tiles:
     sources: [basemap_tiles]
     request_format: image/png
     image:
       format: image/png
       mode: RGBA
       transparent: true
     grids: [GLOBAL_WEBMERCATOR]
   basemap_cache_schumm:
     sources: [basemap_schumm]
     request_format: image/png
     image:
       format: image/png
       mode: RGBA
     grids: [GLOBAL_WEBMERCATOR]

Greetings
Daniel

im Auftrag
Daniel Cebulla
Anwendungsbetreuer GIS

Telefon: 03641 49-5190      E-Mail:daniel.cebulla at jena.de

Kommunale Informationstechnik und Telekommunikation Jena (KITT)

Optimierter Regiebetrieb    Regiebetriebsleiter: Dr. Arndt Döhler
der Stadt Jena              Paradiesstr. 6, 07743 Jena

kitt at jena.de                 USt.-ID DE150546569
rechnungen-kitt at jena.de

Am 06.12.2024 um 09:01 schrieb Johannes Weskamm via MapProxy:
>
> Hello Michael,
>
> I created an issue for the warning: 
> https://github.com/mapproxy/mapproxy/issues/1053
>
> For your TMS question, the reason it does not work currently is stated 
> in the documentation:
>
>
> You have more than one source in your cache. I dont know why this 
> limitation exists, but there may be workarounds.
>
>
> Greetings,
>
> Johannes
>
>
> Am 05.12.24 um 17:53 schrieb Michael Heerdegen via MapProxy:
>> Hi Johannes,
>>
>> I did all of what you had suggested - perfect!  It works fine.  Very
>> cool.
>>
>>> image:
>>>    format: image/png
>>>    #mode: RGBA
>>>    #transparent: true
>>>    opacity: 0.5
>> This gives me a warning ("unknown 'opacity' in
>> caches.basemap_cache_tiles.image") - this might be the reason why I
>> rejected this solution while trying - without testing whether it
>> actually worked.
>>
>>
>> Now, my remaining problem is that the tms service is not provided with
>> my configuration, although I have specified it.  Any idea why?  Do I
>> have to adjust tile sizes, use a different grid, something else?
>>
>> The demo service does show a tms section but it is a more or less void
>> template which provides no link.  Trying to request information about
>> the layer using the expected url only tells me "unknown layer: basemap".
>>
>> Help appreciated.
>>
>>
>> Thanks again,
>>
>> Michael.
>> _______________________________________________
>> MapProxy mailing list
>> MapProxy at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapproxy
>>
>
> _______________________________________________
> 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/20241206/8fbc2176/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xBQF9G41Wdfw7nNc.png
Type: image/png
Size: 32629 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20241206/8fbc2176/attachment-0001.png>


More information about the MapProxy mailing list