<div>Hi all,</div><div><br></div><div>I would like a confirmation to be sure that I understand the process:</div><div><br></div><div>Considering that I can&#39;t use a sld directly inside a layer definition (in my case BDTQ_HYDRO_L_ARC), I have to define another WMS layer (BDTQ_HYDRO_L_ARC_SLD in my example below) that will be redirected to the BDTQ_HYDRO_L_ARC layer WITH the  style definition file (&quot;wms_sld_url&quot;) to use for the rendering?</div>
<div><br></div><div>Currently, this process works very well but:</div><div>Q1: Is there a better way (or faster way for mapserver) for doing that ?(apply a sld to a non-WMS layer)?</div><div><br></div><div>Q2: What kind of degradation of performance can I expect with this cascading workflow (2 time slower?)</div>
<div><br></div><div>regards MartinO</div><div><br></div><div>Example:</div><div>    LAYER</div><div><div>        NAME &quot;BDTQ_HYDRO_L_ARC&quot;</div><div>        DATA &quot;geom from bdtq_hydro_l_arc using srid=4269&quot;</div>
<div>        TYPE LINE</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>MAXSCALEDENOM 150000</div><div>    <span class="Apple-tab-span" style="white-space:pre">        </span>MINSCALEDENOM 0</div><div>        METADATA</div>
<div>            &quot;wms_name&quot;             &quot;BDTQ_HYDRO_L_ARC&quot;</div><div>            &quot;wms_title&quot;                &quot;Hydrographie Linéaire&quot;</div><div>            &quot;wms_keywordlist&quot;     &quot;TODO&quot;</div>
<div>            &quot;wms_abstract&quot;          &quot;TODO&quot;</div><div>        END</div><div>        PROJECTION</div><div>            &quot;init=epsg:4269&quot;</div><div>        END</div><div>        CLASS</div><div>
            STYLE</div><div>                COLOR 0 0 0</div><div>            END</div><div>        END</div><div>    END</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>#-- Hydrographie WMS</div>
<div>    LAYER</div><div>        NAME &quot;BDTQ_HYDRO_L_ARC_SLD&quot;</div><div>        TYPE RASTER</div><div>        CONNECTION &quot;http://&lt;my server&gt;/mapserv?map=bdtq&quot;</div><div>        CONNECTIONTYPE WMS</div>
<div>        METADATA</div><div>            &quot;wms_srs&quot;                &quot;EPSG:4269&quot;</div><div>            &quot;wms_name&quot;             &quot;BDTQ_HYDRO_L_ARC&quot;</div><div>            &quot;wms_server_version&quot; &quot;1.1.1&quot;</div>
<div>            &quot;wms_format&quot;            &quot;png&quot;</div><div>            &quot;wms_extent&quot;            &quot;-80 45 -54 60&quot;</div><div>            &quot;wms_sld_url&quot;<span class="Apple-tab-span" style="white-space:pre">        </span>    &quot;http://&lt;my server&gt;/sld/bdtq_hydro_l_arc.sld&quot;</div>
<div>        END</div><div>    END</div></div><div><br></div><div>regards </div><div><br></div><div>MartinO</div>