<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Pedro,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I use CubeWerx WMS. This allows you to apply SLDs externally
with no effect on STYLES but you can also undertake a PutStyles if you have
that access privilege which will add/update the STYLE. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I build a library of SLDs if I want to keep them as permanent filters
which is important in my case as I am producing an infinite number of thematic
maps (DemographicDrapes) from Census statistics.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Have a look at <a
href="http://demos.numaps.com.au/demographicdrapes.html">http://demos.numaps.com.au/demographicdrapes.html</a><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have built a complex Style Builder application that allows the
user to pretty much change all aspects of a SLD and Save or SaveAs.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers, Brad&#8230;. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <b>On Behalf Of </b>Pedro Baracho<br>
<b>Sent:</b> Tuesday, November 17, 2009 7:36 AM<br>
<b>To:</b> Ian Turton<br>
<b>Cc:</b> OpenLayers Users<br>
<b>Subject:</b> Re: [OpenLayers-Users] SLD on the fly<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Wow, I am impressed! What a
cool map that is being displayed on my screen! hehe :)<br>
<br>
Thanks for the reply.<br>
<br>
Guess I am set in solution 2.<br>
<br>
Just another question. I don't see SLD BODY on WMS Spec, but I see it on SLD
profile for WMS. And it also states:<br>
&quot;GetMap is defined in WMS 1.3. The SLD profile for WMS defines additional
parameters allowing clients to request layers to be portrayed according to some
specified style.&quot;<br>
<br>
Do you know any map server that doesn't support SLD profile for WMS, but
supports WMS? I am just curious about it, because imho it doesn't make sense
splitting SLD profile for WMS from WMS spec.<o:p></o:p></p>

<div>

<p class=MsoNormal>On Mon, Nov 16, 2009 at 5:54 PM, Ian Turton &lt;<a
href="mailto:ijturton@gmail.com">ijturton@gmail.com</a>&gt; wrote:<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>On Mon, Nov 16, 2009 at 2:29 PM,
Pedro Baracho &lt;<a href="mailto:pedropbaracho@gmail.com">pedropbaracho@gmail.com</a>&gt;
wrote:<br>
&gt; I need to change SLD on the fly to create some thematic maps. I would also<br>
&gt; appreciate if compatibility with OGC's WFS was mantained. Have you guys
done<br>
&gt; this before? I could use some suggestions... :P<br>
&gt;<br>
&gt; I have done some searching and came up with a couple of solutions.<br>
&gt;<br>
&gt; 1- GeoServer GeoExt Styler Plugin.<br>
&gt; I don't know if it is a good solution, because as far as I know, it
changes<br>
&gt; the style of the layer for all the users. I would need to replicate styles<br>
&gt; on the server for each user and each layer. And also this requires the<br>
&gt; server to be Geoserver, and breaks OGC compatibility.<br>
&gt;<o:p></o:p></p>

</div>

<p class=MsoNormal>You are right that will change it for everyone<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
&gt; 2- WMS 1.3 and SLD<br>
&gt; MapServer implements WMS 1.3 and accepts a SLD description in the request.<br>
&gt; GeoServer doesn't.<br>
&gt; Nothing against MapServer, but my current development environment is set<br>
&gt; with GeoServer..<o:p></o:p></p>

</div>

<p class=MsoNormal>Try <a
href="http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&amp;Format=image/png&amp;request=GetMap&amp;width=550&amp;height=250&amp;srs=EPSG:4326&amp;SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:states%3C/Name%3E%3CUserStyle%3E%3CName%3EUserSelection%3C/Name%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%20xmlns:gml%3D%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3EIllinois%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23FF0000%3C/CssParameter%3E%3C/Fill%3E%3C/PolygonSymbolizer%3E%3C/Rule%3E%3CRule%3E%3CLineSymbolizer%3E%3CStroke/%3E%3C/LineSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E"
target="_blank">http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&amp;Format=image/png&amp;request=GetMap&amp;width=550&amp;height=250&amp;srs=EPSG:4326&amp;SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:states%3C/Name%3E%3CUserStyle%3E%3CName%3EUserSelection%3C/Name%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%20xmlns:gml%3D%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3EIllinois%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23FF0000%3C/CssParameter%3E%3C/Fill%3E%3C/PolygonSymbolizer%3E%3C/Rule%3E%3CRule%3E%3CLineSymbolizer%3E%3CStroke/%3E%3C/LineSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E</a><br>
(from the demo requests page in geoserver 1.7.5) - works for all WMS versions.<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>&gt;<br>
&gt; 3- WFS and treat SLD exhibition on the client<br>
&gt; This is a double edged solution. The good thing about WFS is that I have<br>
&gt; many more possibilities of control over the map. I can use SelectFeature<br>
&gt; control, instead of hacking some code to implement it over WMS. But it
also<br>
&gt; gives me many other options I don't need such as the vector data. I only<br>
&gt; need the images.<o:p></o:p></p>

</div>

<p class=MsoNormal>Not sure I understand your plan here but sounds like
overkill - and<br>
may kill off the browser if you have too much data.<br>
<br>
Ian<br>
<span style='color:#888888'>--<br>
Ian Turton<br>
<br>
Sent from Houserville, Pennsylvania, United States</span><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>