<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 May 2013 18:14, Daniel Morissette <span dir="ltr"><<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 13-05-02 9:58 AM, thomas bonfort wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Daniel,<br>
A self contained project doable by a gsoc student could be the ability<br>
to add blend modes (additive, soft-light, etc..) and layer filters (e.g.<br>
blurring) to mapserver.<br>
<br>
</blockquote>
<br></div>
I saw this too late for GSoC, but I would still be interested in seeing examples of how this would be used if you have some (I am not sure to understand the use case).<div><div><br></div></div></blockquote>
<div><a href="http://nyalldawson.net/2013/03/coming-soon-in-qgis-2-0-blend-modes-for-layers/" target="_blank">http://nyalldawson.net/2013/03/coming-soon-in-qgis-2-0-blend-modes-for-layers/</a><br></div><div><br></div><div>
allowing to blur a layer would also allow for some cool effects, e.g. with land that bleeds out with a halo effect into the ocean.</div><div><br></div><div style>In terms of implementation, you first render the layer to a temporary, initially transparent image buffer, as we are actually doing when using layer level opacity. Once that image is rendered, you apply the transforms to it while merging it into the final map image.</div>
<div style>For this to be usefull, you have to be able to chain/apply different transforms e.g. something like:</div><div style><br></div><div style>layer</div><div style> name "land"</div><div style> operations</div>
<div style>   operation</div><div style>     #here we want to blur the rendered layer, and merge it with 30%opacity using the soft light operator</div><div style>     transform "blur type=gaussian radius=50"</div>
<div style>     opacity 30</div><div style>     composite "soft-light"</div><div style>   end</div><div style>   operation</div><div style>    #intentionally left empty, we want the normal layer to be rendered on top of the blurred one</div>
<div style>   end</div><div style> end</div><div style>end</div><div style><br></div><div style>for an overview of the composition operators, you can have a look at <a href="http://mapbox.com/tilemill/docs/guides/comp-op/#color_blending">http://mapbox.com/tilemill/docs/guides/comp-op/#color_blending</a> . Supporting all of them is easy to implement as they are available in cairo and agg. In practice, only a few would be really useful for cartography output (/me forgets the famous "640k should be enough for everyone" quote :) )</div>
<div style><br></div><div style>--</div><div style>thomas</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>
<br>
<br>
-- <br>
Daniel Morissette<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
Provider of Professional MapServer Support since 2000<br>
<br>
______________________________<u></u>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-dev</a><br>
</div></div></blockquote></div><br></div></div>