<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Darren,<br>
I think wms_style and wms_style_<stylename>_sld works only
when cascading external WMS (CONNECTIONTYPE WMS).<br>
You can use SLDs with postgis layers using mapscript applySLD()<br>
<br>
<br>
Francesco<br>
<br>
<br>
Il 16/01/2012 18:10, Carman, Darren ha scritto:
<blockquote
cite="mid:715BFDBEEEDA5245AF02E1C1DCE01C3707706ACD@SV025.infoterra-global.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using mapserver 5.6.7 trying to get
SLDs to work for a postgis layer.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can get this to work when adding the SLD
parameter onto the url but cannot get it to work using the
wms_sld_url parameter in the mapfile. Should it be possible to
have this working from the mapfile? I have also tried the
wms_style and wms_style_<stylename>_sld metadata
parameters with no luck as well.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The reason I ask is that we have many
layers stored in postgresql/postgis with different SLDs for
each. I am hoping I have done something wrong in the mapfile
(or missing something vital) so that I can set up the layers
to use individual SLDs – the alternative is for me to combine
the SLDs into 1 xml file, which is work I would like to avoid
if the mapfile solution is possible.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for any help in advance<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My layer config:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">LAYER<o:p></o:p></p>
<p class="MsoNormal"> NAME layer1<o:p></o:p></p>
<p class="MsoNormal"> CONNECTIONTYPE postgis<o:p></o:p></p>
<p class="MsoNormal"> CONNECTION "user=<user>
password=<password> dbname=<database>
host=<host>"<o:p></o:p></p>
<p class="MsoNormal"> DATA "geometry from <table> using
unique geometry using SRID=27700"<o:p></o:p></p>
<p class="MsoNormal"> PROJECTION<o:p></o:p></p>
<p class="MsoNormal"> "init=epsg:27700"<o:p></o:p></p>
<p class="MsoNormal"> END<o:p></o:p></p>
<p class="MsoNormal"> DUMP true<o:p></o:p></p>
<p class="MsoNormal"> METADATA<o:p></o:p></p>
<p class="MsoNormal"> "wms_title" "Layer 1"<o:p></o:p></p>
<p class="MsoNormal"> "wms_srs" "EPSG:27700"<o:p></o:p></p>
<p class="MsoNormal"> "wms_server_version" "1.3.0"<o:p></o:p></p>
<p class="MsoNormal"> "wms_name" "sldname"<o:p></o:p></p>
<p class="MsoNormal"> "wms_boundingbox" "EPSG:27700 0 0
700000 1300000"<o:p></o:p></p>
<p class="MsoNormal"> "wms_latlonboundingbox" "-7.556 49.776
2.934 60.810"<o:p></o:p></p>
<p class="MsoNormal"> "wfs_extent" "0 0 700000 1300000"<o:p></o:p></p>
<p class="MsoNormal"> "wms_sld_url" "<a class="moz-txt-link-freetext" href="http://">http://</a><my
server>/SLDs/MySLD.sld"<o:p></o:p></p>
<p class="MsoNormal"> END<o:p></o:p></p>
<p class="MsoNormal"> TYPE POINT<o:p></o:p></p>
<p class="MsoNormal"> STATUS ON<o:p></o:p></p>
<p class="MsoNormal"> CLASS<o:p></o:p></p>
<p class="MsoNormal"> NAME "POI"<o:p></o:p></p>
<p class="MsoNormal"> COLOR 0 0 255<o:p></o:p></p>
<p class="MsoNormal"> symbol 'circle'<o:p></o:p></p>
<p class="MsoNormal"> size 10<o:p></o:p></p>
<p class="MsoNormal"> END<o:p></o:p></p>
<p class="MsoNormal">END<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Darren<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<div class="moz-signature"><br>
</div>
</div>
</body>
</html>