Hi Michael,<br><br>Thank you for your answer :)<br><br>Now SLD is working i had a mistake with names references.<br><br>I have just another question: how is possible to &quot;add&quot; a style <br>using SLD without overriding the whole server style?<br>
<br>I explain what i want to do: I have a map served by MapServer, so a <br>mapfile with layers and styles. I want to add a style with &quot;new&quot; <br>characteristics (could be outline or overriding just the color of the text).<br>
<br>Thanks,<br>Andrea<br>
<br><br><br><div class="gmail_quote">2009/7/30 Michael Schulz <span dir="ltr">&lt;<a href="mailto:mschulz@webgis.de">mschulz@webgis.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Andrea,<br>
<br>
to use SLD you won&#39;t need very special mapfile configuration. You<br>
should pay attention to setting the imgpath parameter of the web<br>
section correctly, i.e. accessible and writable by mapserver-cgi,<br>
since the sld&#39;s are stored there temporarily while/after downloading<br>
them from the specified URL. I am not aware of any other special<br>
configuration, but very helpful are the debugging outputs, that you<br>
can enable with the keyword DEBUG &quot;on&quot; at map or layer level. I find<br>
it most convenient to specify an errorfile path via CONFIG<br>
&quot;MS_ERRORFILE&quot; &quot;/ms4w/tmp/ms_error.txt&quot; at map level.<br>
<br>
Be sure to set the SLD&#39;s NamedLayer Name tag value exactly the same as<br>
your mapfile&#39;s layer name you want to style.<br>
<br>
Cheers, Michael<br>
<br>
<br>
2009/7/30 Andrea Dessì &lt;<a href="mailto:nkjoep@gmail.com">nkjoep@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt; i&#39;ve started using Mapserver few days ago and i cannot apply SLD styles.<br>
&gt;<br>
&gt; i&#39;m using  MapServer version 5.4.2<br>
&gt; OUTPUT=GIF OUTPUT=PNG<br>
&gt; OUTPUT=JPEG OUTPUT=WBMP<br>
&gt; OUTPUT=SVG<br>
&gt; SUPPORTS=PROJ<br>
&gt; SUPPORTS=AGG<br>
&gt; SUPPORTS=FREETYPE<br>
&gt; SUPPORTS=ICONV<br>
&gt; SUPPORTS=WMS_SERVER<br>
&gt; SUPPORTS=WMS_CLIENT<br>
&gt; SUPPORTS=WFS_SERVER<br>
&gt; SUPPORTS=WFS_CLIENT<br>
&gt; SUPPORTS=WCS_SERVER<br>
&gt; SUPPORTS=FASTCGI<br>
&gt; SUPPORTS=THREADS<br>
&gt; SUPPORTS=GEOS<br>
&gt; INPUT=EPPL7<br>
&gt; INPUT=POSTGIS<br>
&gt; INPUT=OGR<br>
&gt; INPUT=GDAL<br>
&gt; INPUT=SHAPEFILE<br>
&gt;<br>
&gt; under Ubuntu 9.04.<br>
&gt;<br>
&gt; I want to user mapserver as WMS Server and the apply SLD styles on the<br>
&gt; fly... the common query is:<br>
&gt; <a href="http://localhost/cgi-bin/wms?SERVICE=WMS&amp;" target="_blank">http://localhost/cgi-bin/wms?SERVICE=WMS&amp;</a><br>
&gt; VERSION=1.1.1&amp;<br>
&gt; REQUEST=GetMap&amp;<br>
&gt; BBOX=-74.012362,40.752314,-73.948216,40.791051&amp;<br>
&gt; SRS=EPSG:4326&amp;<br>
&gt; WIDTH=500&amp;<br>
&gt; HEIGHT=500&amp;<br>
&gt; LAYERS=myground,myroads&amp;<br>
&gt; FORMAT=image/gif&amp;<br>
&gt; TRANSPARENT=TRUE&amp;<br>
&gt; SLD=<a href="http://localhost/mysld.xml" target="_blank">http://localhost/mysld.xml</a><br>
&gt;<br>
&gt; But sld is not applying.<br>
&gt;<br>
&gt; The question is: there are specific parameters for using SLD in mapfile?<br>
&gt; I&#39;m feeling a bit confused about this.<br>
&gt;<br>
&gt; Thank You,<br>
&gt; --<br>
&gt; Andrea<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Aufwind durch Wissen!<br>
<br>
Qualifizierte Open Source Schulungen bei der<br>
<a href="http://www.foss-akademie.de/" target="_blank">http://www.foss-akademie.de/</a><br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br>
-----------------------------------------------------------<br>
Michael Schulz<br>
<a href="mailto:mschulz@webgis.de">mschulz@webgis.de</a><br>
<br>
in medias res<br>
Gesellschaft für Informationstechnologie mbH<br>
<br>
+++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++<br>
<br>
Schwimmbadstraße 2<br>
D-79100  Freiburg i. Br.<br>
<br>
Tel:  +49 (0)761 705798-102<br>
Tel:  +49 (0)761 705798-0<br>
Fax: +49 (0)761 705798-09<br>
<br>
+++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++<br>
<br>
<a href="http://www.webgis.de" target="_blank">http://www.webgis.de</a> / <a href="http://www.zopecms.de" target="_blank">http://www.zopecms.de</a><br>
--------------------------------------------------------------<br>
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck<br>
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>