Marco, in my previous email I mentioned your mapserver returns opaque images even if you request them with transparent set to true.<br>can you confirm that? and if so change tha format on your mapserver to RGBA.<br><br>regards, michael<br>
<div class="gmail_quote">On Sat, Jan 7, 2012 at 2:34 PM, DeDuikertjes <span dir="ltr"><<a href="mailto:DeDuikertjes@xs4all.nl">DeDuikertjes@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font size="-1">Hi Michael, Oliver,<br>
<br>
I've tried all options.<br>
It didn't matter.<br>
All results became opaque.<br>
<br>
Then I added opacity: 0.4 to the definition of the CACHE.<br>
Then the result is as expected. Nice and transparent.<br>
<br>
Image mode can be RGBA or P, paletted true or false, transparent
true or false. All doesn't matter. If opacity is set on the cache
the results are OK, otherwise not.<br>
<br>
Only when seeding mapproxy complains: </font><br>
<pre>mapproxy.config - WARNING - unknown 'opacity' in caches._Bedrijventerrein.image
Also from doc's I understood that opacity should be set in source not cache.
Anyhow thank you all!
MArco
</pre>
<br>
Op 6-1-2012 19:29, Michael Shishcu schreef:
<div><div class="h5"><blockquote type="cite">Hi Marco<br>
<br>
Can you try adding <br>
image:<br>
mode: RGBA<br>
transparent: true<br>
paletted: false<br>
<br>
to the cache (and source?) config. I can share my current yaml
file that is working a little bit later, if you want.<br>
<br>
regards, michael<br>
<br>
<div class="gmail_quote">On Fri, Jan 6, 2012 at 7:38 PM,
DeDuikertjes <span dir="ltr"><<a href="mailto:DeDuikertjes@xs4all.nl" target="_blank">DeDuikertjes@xs4all.nl</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font size="-1">Oliver,<br>
<br>
Thank you. I did as you suggested<br>
<br>
I've added a layer to may config (see attached).<br>
The result can be seen at: <br>
<a href="http://178.63.74.185/hosting/demo/show_source.html?layernames=testlufo,Bedrijventerrein&test=true&opacity=1&url=http://test.tiles.md-kwadraat.nl/mp/service" target="_blank">http://178.63.74.185/hosting/demo/show_source.html?layernames=testlufo,Bedrijventerrein&test=true&opacity=1&url=http://test.tiles.md-kwadraat.nl/mp/service</a><br>
<br>
Still the layer defined with transparency 0.4 is fully
opaque. Am miss understanding something?<br>
<br>
Marco<br>
<br>
caches:<br>
_Bedrijventerrein:<br>
grids:<br>
- applas_grid<br>
link_single_color_images: true<br>
sources:<br>
- wms_Bedrijventerrein<br>
_testlufo:<br>
grids:<br>
- applas_grid<br>
link_single_color_images: true<br>
sources:<br>
- wms_testlufo<br>
globals:<br>
cache:<br>
base_dir: /var/applas_user_data/test/cache/<br>
lock_dir: /var/applas_user_data/test/cache/locks/<br>
meta_buffer: 255<br>
meta_size:<br>
- 3<br>
- 3<br>
minimize_meta_requests: true<br>
grids:<br>
applas_grid:<br>
bbox:<br>
- -285401.920000<br>
- 22598.080000<br>
- 595401.920000<br>
- 903401.920000<br>
res:<br>
- 3440.640000<br>
- 1720.320000<br>
- 860.160000<br>
- 430.080000<br>
- 215.040000<br>
- 107.520000<br>
- 53.760000<br>
- 26.880000<br>
- 13.440000<br>
- 6.720000<br>
- 3.360000<br>
- 1.680000<br>
- 0.840000<br>
- 0.420000<br>
- 0.210000<br>
srs: EPSG:28992<br>
tile_size:<br>
- 256<br>
- 256<br>
layers:<br>
- name: Bedrijventerrein<br>
sources:<br>
- _Bedrijventerrein<br>
title: Bedrijventerrein<br>
- name: testlufo<br>
sources:<br>
- _testlufo<br>
title: testlufo<br>
services:<br>
tms: ~<br>
wms:<br>
image_formats:<br>
- image/png<br>
- png<br>
md:<br>
abstract: test for transparency.<br>
access_constraints: none<br>
contact:<br>
address: none<br>
city: none<br>
country: The Netherlands<br>
email: none<br>
organization: none<br>
person: none<br>
phone: none<br>
position: none<br>
postcode: none<br>
fees: None<br>
online_resource: <a href="http://tiles.md-kwadraat.nl/" target="_blank">http://tiles.md-kwadraat.nl/</a><br>
title: test for transparency.<br>
srs:<br>
- EPSG:28992<br>
sources:<br>
wms_Bedrijventerrein:<br>
image:<br>
opacity: 0.400000<br>
req:<br>
layers: Bedrijventerrein<br>
transparent: true<br>
url:
<a href="http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map" target="_blank">http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map</a><br>
supported_srs:<br>
- EPSG:28992<br>
type: wms<br>
wms_testlufo:<br>
concurrent_requests: 4<br>
image:<br>
opacity: 1.000000<br>
req:<br>
layers: Lufo<br>
transparent: true<br>
url:
<a href="http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map" target="_blank">http://178.63.74.185/fcgi-bin/mapserv?map=/var/www/html/shared/services/wmsproxy/wmsproxy.map</a><br>
supported_srs:<br>
- EPSG:28992<br>
type: wms<br>
wms_opts:<br>
featureinfo: true<br>
<br>
<br>
<br>
<br>
<br>
</font>Op 6-1-2012 14:29, Oliver Tonnhofer schreef:
<blockquote type="cite">
<pre>Hi Marco,
On 06.01.2012, at 14:16, DeDuikertjes wrote:
</pre>
<blockquote type="cite">
<pre>Please help me with tracking down this problem.
Is there anything wrong with my config?
How can I track this problem. I really don't know where to start.
</pre>
</blockquote>
<pre>it does only work when you overlay multiple layers. So you should try to add another layer below your layer.
Regards,
Oliver
</pre>
</blockquote>
</div>
<br>
_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
</div></div></div>
</blockquote></div><br>