<div dir="ltr">Glad I could help, Jeff! MapServer.pdf is a great resource!<div><br></div><div>-Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 21, 2023 at 1:02 PM Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Wonderful to hear that you are using the MapServer.pdf!  (I actually put <br>
much effort into maintaining that PDF output, that but I never hear <br>
feedback...until someone reports a problem, like you did now, ha). <br>
Sometimes my updates differ from website rebuilds, will be sure to <br>
update the PDF for the upcoming 8.0.1 release.<br>
<br>
Again, thanks for this report!<br>
<br>
(also, don't be afraid to report doc issues like this at <br>
<a href="https://github.com/MapServer/MapServer-documentation/issues" rel="noreferrer" target="_blank">https://github.com/MapServer/MapServer-documentation/issues</a> )<br>
<br>
thanks again for the report!<br>
<br>
-jeff<br>
<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
GatewayGeo: Developers of MS4W, MapServer Consulting and Training<br>
co-founder of FOSS4G<br>
<a href="http://gatewaygeo.com/" rel="noreferrer" target="_blank">http://gatewaygeo.com/</a><br>
<br>
<br>
<br>
On 2023-02-21 12:52 p.m., Matthew Graber wrote:<br>
> Hello all!<br>
> <br>
> With MapServer 8, I'm wondering what the proper way to change the <br>
> opacity of a single layer in a multilayer WMS request is.<br>
> <br>
> For example, the following URL excerpt shows the old way of <br>
> accomplishing this that worked while using MapServer 7:<br>
> <br>
> SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&LAYERS=test_a,test_b&map.layer[test_b]=OPACITY+50<br>
> <br>
> My understanding is that this would have the same effect as adding <br>
> "OPACITY 50" to the test_b layer in the mapfile. The mapfile containing <br>
> test_a and test_b did not have OPACITY included when they were written. <br>
> Obviously, this no longer works with MapServer 8, and now that request <br>
> has the same results as omitting the "&map.layer[test_b]=OPACITY+50" <br>
> portion entirely.<br>
> <br>
> Based on <a href="https://mapserver.org/fr/MIGRATION_GUIDE.html" rel="noreferrer" target="_blank">https://mapserver.org/fr/MIGRATION_GUIDE.html</a> <br>
> <<a href="https://mapserver.org/fr/MIGRATION_GUIDE.html" rel="noreferrer" target="_blank">https://mapserver.org/fr/MIGRATION_GUIDE.html</a>>, I see that OPACITY now <br>
> belongs inside a COMPOSITE object. I tried the following modifications <br>
> to the request URL:<br>
> <br>
> SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&LAYERS=test_a,test_b&map.layer[test_b].composite=OPACITY+50<br>
> SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&LAYERS=test_a,test_b&map.layer[test_b].composite[0]=OPACITY+50<br>
> <br>
> I also tried this both with the mapfile left as-is, and with an empty <br>
> COMPOSITE object being included in each layer object, and each time I <br>
> got the same unsuccessful result as before.<br>
> <br>
> Is there a way to accomplish this in MapServer 8?<br>
> <br>
> Also, does this map.layer[layername]=... syntax still work in MapServer <br>
> 8? The documentation at <br>
> <a href="https://mapserver.org/cgi/controls.html#using-mapserver-version-8" rel="noreferrer" target="_blank">https://mapserver.org/cgi/controls.html#using-mapserver-version-8</a> <br>
> <<a href="https://mapserver.org/cgi/controls.html#using-mapserver-version-8" rel="noreferrer" target="_blank">https://mapserver.org/cgi/controls.html#using-mapserver-version-8</a>> <br>
> suggests it might no longer work for MapServer 8 (based on the heading <br>
> "Using MapServer version < 8"), but the documentation at <br>
> <a href="https://mapserver.org/pdf/MapServer.pdf" rel="noreferrer" target="_blank">https://mapserver.org/pdf/MapServer.pdf</a> <br>
> <<a href="https://mapserver.org/pdf/MapServer.pdf" rel="noreferrer" target="_blank">https://mapserver.org/pdf/MapServer.pdf</a>> shows the same examples with <br>
> the heading "Using MapServer version <= 8" on page 1065 of the PDF, so <br>
> I'm unsure if this is still intended to work in MapServer 8.<br>
> <br>
> Thank you,<br>
> Matt<br>
> <br>
> _______________________________________________<br>
> MapServer-users mailing list<br>
> <a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div>