Thanks.<br><br>I try to appli a SLD with diferent calses but , I have and SLD error:<br><br>Tue Feb 09 09:01:55 2010].152000 : WMS server error. Invalid SLD document : <?xml version="1.0" encoding="utf-8"?><StyledLayerDescriptor xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>" xmlns="<a href="http://www.opengis.net/sld">http://www.opengis.net/sld</a>" xsi:schemaLocation="<a href="http://www.opengis.net/sld">http://www.opengis.net/sld</a> StyledLayerDescriptor.xsd" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" version="1.0.0" ><NamedLayer><Name>HIDROGRAFIA_GEO_REGVEN_25MIL.shp</Name><UserStyle><FeatureTypeStyle><Rule><Name><br>
<br>I need to define my classes in the CLASS tag of the layer in the mapfile?<br><br><br><br><div class="gmail_quote">2010/2/8 Jeff McKenna <span dir="ltr"><<a href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">David Martinez Morata wrote:<br>
> Hello.<br>
><br>
> I have a map file to Serve some layers, and I need to link some layers<br>
> with a sld files.<br>
> I read the SLD documentation in the MApserver web site, but i don't<br>
> reali understud what I'm doing:<br>
><br>
> 1 I put in my layer defifnition<br>
><br>
> SLD "Path/to/my/sld/file.sld"<br>
><br>
> I try with metadatas<br>
><br>
> "wms_sld_url" "Path/to/my/sld/file.sld"<br>
> "wms_sld_body" "AUTO"<br>
> *"ows_sld_enabled"* "true"<br>
><br>
> But didn't works<br>
><br>
> I modifie my sld (gvsig generated) file deleting the tags that are not<br>
> compatible with mapserver and I don't know what to do with...<br>
><br>
> Any Help?<br>
<br>
</div></div>I don't have any other advice other than to follow the advice in the SLD<br>
document (<a href="http://www.mapserver.org/ogc/sld.html#client-side-support" target="_blank">http://www.mapserver.org/ogc/sld.html#client-side-support</a>).<br>
It sounds like you have a local SLD file, so you should read the<br>
instructions there for using the "wms_sld_body" metadata parameter in<br>
your WMS Client layer (I believe the contents of that metadata is not a<br>
path, but all of the text in the sld document...in any case it is<br>
described more in the SLD document for your reference).<br>
<br>
-jeff<br>
<br>
<br>
--<br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
<a href="http://www.gatewaygeomatics.com/" target="_blank">http://www.gatewaygeomatics.com/</a><br>
<br>
<br>
_______________________________________________<br>
MS4W-Users mailing list<br>
<a href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/ms4w-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Martinez Morata David<br>Thinking GIS<br>