<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'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 ("wms_sld_url") 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 "BDTQ_HYDRO_L_ARC"</div><div> DATA "geom from bdtq_hydro_l_arc using srid=4269"</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> "wms_name" "BDTQ_HYDRO_L_ARC"</div><div> "wms_title" "Hydrographie Linéaire"</div><div> "wms_keywordlist" "TODO"</div>
<div> "wms_abstract" "TODO"</div><div> END</div><div> PROJECTION</div><div> "init=epsg:4269"</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 "BDTQ_HYDRO_L_ARC_SLD"</div><div> TYPE RASTER</div><div> CONNECTION "http://<my server>/mapserv?map=bdtq"</div><div> CONNECTIONTYPE WMS</div>
<div> METADATA</div><div> "wms_srs" "EPSG:4269"</div><div> "wms_name" "BDTQ_HYDRO_L_ARC"</div><div> "wms_server_version" "1.1.1"</div>
<div> "wms_format" "png"</div><div> "wms_extent" "-80 45 -54 60"</div><div> "wms_sld_url"<span class="Apple-tab-span" style="white-space:pre"> </span> "http://<my server>/sld/bdtq_hydro_l_arc.sld"</div>
<div> END</div><div> END</div></div><div><br></div><div>regards </div><div><br></div><div>MartinO</div>