[MapProxy] transparent_color for TMS?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[MapProxy] transparent_color for TMS?

André Pirard
Hi,

I was a bit mixed up about transparent_color and transparent_color_tolerance and it seems that my tests show that they can be used only in a WMS source definition.  Is that true?

The only way  found for TMS is to make, like below, a second source definition calling back localhost source in WMS mode to apply the transparency.
Any way to achieve that more directly?

Also, what is the meaning of "transparent: true" for a tile source as there is no way to control if it sends transparent tiles or not?
And what is the meaning of "transparent: true" when transparent_color is used?
(see commented lines)

Thanks in advance,

Cheers

André.

BTW: may I recall that if there was a precise howto make documentation updates, I would gladly make the changes that would have had me understand immediately.

  Tile_source:
    type: tile
#    transparent: true
    url: <a class="moz-txt-link-freetext" href="http://">http://...
    grid: GLOBAL_WEBMERCATOR

  Transparent_source:
    type: wms
    supported_srs: ['EPSG:3857']
    image:
      transparent_color: '#ffffff'
      transparent_color_tolerance: 0
    req:
      url: http://localhost:8080/service?
      layers: Tile
#      transparent: true
      format: png8



_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy
Reply | Threaded
Open this post in threaded view
|

Re: [MapProxy] transparent_color for TMS?

Oliver Tonnhofer-3
Hi,

> On 09.06.2015, at 09:59, André Pirard <[hidden email]> wrote:
> I was a bit mixed up about transparent_color and transparent_color_tolerance and it seems that my tests show that they can be used only in a WMS source definition.  Is that true?
>
> The only way  found for TMS is to make, like below, a second source definition calling back localhost source in WMS mode to apply the transparency.
> Any way to achieve that more directly?


transparent_color is only supported for WMS and MapServer sources. See http://mapproxy.org/docs/nightly/sources.html#image


> Also, what is the meaning of "transparent: true" for a tile source as there is no way to control if it sends transparent tiles or not?
> And what is the meaning of "transparent: true" when transparent_color is used?
> (see commented lines)


MapProxy needs to know when it must keep the transparency for a source. transparent: true is used for that.


> BTW: may I recall that if there was a precise howto make documentation updates, I would gladly make the changes that would have had me understand immediately.


You can make smaller changes directly on GitHub. https://github.com/mapproxy/mapproxy/tree/master/doc
For larger changes you should check out the repo, create a new branch, make changes in doc/, commit the changes and create a new pull request. See https://guides.github.com/activities/contributing-to-open-source/ for a guide.



Regards,
Oliver

--
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
OpenStreetMap WMS and tile services         | http://maps.omniscale.com

_______________________________________________
MapProxy mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapproxy