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 "add" 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 "new" <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"><<a href="mailto:mschulz@webgis.de">mschulz@webgis.de</a>></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'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'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 "on" at map or layer level. I find<br>
it most convenient to specify an errorfile path via CONFIG<br>
"MS_ERRORFILE" "/ms4w/tmp/ms_error.txt" at map level.<br>
<br>
Be sure to set the SLD's NamedLayer Name tag value exactly the same as<br>
your mapfile's layer name you want to style.<br>
<br>
Cheers, Michael<br>
<br>
<br>
2009/7/30 Andrea Dessì <<a href="mailto:nkjoep@gmail.com">nkjoep@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> i've started using Mapserver few days ago and i cannot apply SLD styles.<br>
><br>
> i'm using MapServer version 5.4.2<br>
> OUTPUT=GIF OUTPUT=PNG<br>
> OUTPUT=JPEG OUTPUT=WBMP<br>
> OUTPUT=SVG<br>
> SUPPORTS=PROJ<br>
> SUPPORTS=AGG<br>
> SUPPORTS=FREETYPE<br>
> SUPPORTS=ICONV<br>
> SUPPORTS=WMS_SERVER<br>
> SUPPORTS=WMS_CLIENT<br>
> SUPPORTS=WFS_SERVER<br>
> SUPPORTS=WFS_CLIENT<br>
> SUPPORTS=WCS_SERVER<br>
> SUPPORTS=FASTCGI<br>
> SUPPORTS=THREADS<br>
> SUPPORTS=GEOS<br>
> INPUT=EPPL7<br>
> INPUT=POSTGIS<br>
> INPUT=OGR<br>
> INPUT=GDAL<br>
> INPUT=SHAPEFILE<br>
><br>
> under Ubuntu 9.04.<br>
><br>
> I want to user mapserver as WMS Server and the apply SLD styles on the<br>
> fly... the common query is:<br>
> <a href="http://localhost/cgi-bin/wms?SERVICE=WMS&" target="_blank">http://localhost/cgi-bin/wms?SERVICE=WMS&</a><br>
> VERSION=1.1.1&<br>
> REQUEST=GetMap&<br>
> BBOX=-74.012362,40.752314,-73.948216,40.791051&<br>
> SRS=EPSG:4326&<br>
> WIDTH=500&<br>
> HEIGHT=500&<br>
> LAYERS=myground,myroads&<br>
> FORMAT=image/gif&<br>
> TRANSPARENT=TRUE&<br>
> SLD=<a href="http://localhost/mysld.xml" target="_blank">http://localhost/mysld.xml</a><br>
><br>
> But sld is not applying.<br>
><br>
> The question is: there are specific parameters for using SLD in mapfile?<br>
> I'm feeling a bit confused about this.<br>
><br>
> Thank You,<br>
> --<br>
> Andrea<br>
><br>
</div></div>> _______________________________________________<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>
><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>