<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702">
<STYLE>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
LI.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
DIV.MsoNormal {
        MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
.MsoChpDefault {
        mso-style-type: export-only
}
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 dir=ltr align=left><SPAN class=158254214-17112009><FONT color=#0000ff
size=2 face=Arial>Hello, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=158254214-17112009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=158254214-17112009><FONT color=#0000ff
size=2 face=Arial>I'm using MapServer WMS and want to apply some complex SLD to
an OL WMS layer. It seems that some features cannot be used in OL, for example
putting the text label in the centroid of the polygon or fill-opacity (I can't
make this work, even with mapserver). I've been looking to your web page and
I've realized that you have a slider bar which lets you set some transparency to
the style. How do you do that, if I can ask??</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=158254214-17112009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=158254214-17112009><FONT color=#0000ff
size=2 face=Arial>Thanks.</FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV class=Section1>
<P class=MsoNormal align=left><FONT size=2 face=Arial></FONT> </P>
<P class=MsoNormal><FONT size=2 face=Arial></FONT> </P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Frutiger 55 Roman'; FONT-SIZE: 10pt">Un saludo,</SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 7.5pt"> <o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Frutiger 55 Roman'; FONT-SIZE: 10pt">··················································································</SPAN><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 7.5pt"><BR></SPAN><SPAN
style="FONT-FAMILY: 'Frutiger 55 Roman'; FONT-SIZE: 10pt"></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><B><SPAN
style="FONT-SIZE: 9pt"><FONT face=Verdana>David Alda Fernández de
Lezea</FONT></SPAN></B></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt">Lurralde eta Biodibertsitate Saila
/ Dpto. de Territorio y Biodiversidad<o:p></o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt"><o:p> </o:p></SPAN></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><B
style="mso-bidi-font-weight: normal"><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt">IKT<o:p></o:p></SPAN></B></P>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt">Granja Modelo s/n · 01192 · Arkaute
(Araba)<o:p></o:p></SPAN></P>
<P class=MsoNormal></SPAN><SPAN
style="FONT-FAMILY: Verdana; FONT-SIZE: 7.5pt"><BR>··················································································<BR>Tlfnos.:
945-00-32-95<SPAN style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-tab-count: 1"> </SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>Fax:
945-00.32.90<BR>··················································································<BR>email:
<A
href="mailto:dalda@ikt.es">dalda@ikt.es</A>
web: <A
href="http://www.ikt.es/">www.ikt.es</A><BR>··················································································<o:p></o:p></SPAN></P></DIV>
<DIV> </DIV><BR>
<DIV dir=ltr lang=es class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>En nombre de </B>Brad
Spencer<BR><B>Enviado el:</B> lunes, 16 de noviembre de 2009
22:24<BR><B>Para:</B> 'Pedro Baracho'; 'Ian Turton'<BR><B>CC:</B> 'OpenLayers
Users'<BR><B>Asunto:</B> Re: [OpenLayers-Users] SLD on the
fly<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Pedro,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">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-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">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-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">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-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">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-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Cheers,
Brad…. <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">
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> </o:p></P>
<P style="MARGIN-BOTTOM: 12pt" class=MsoNormal>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>"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."<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 <<A
href="mailto:ijturton@gmail.com">ijturton@gmail.com</A>>
wrote:<o:p></o:p></P>
<DIV>
<P style="MARGIN-BOTTOM: 12pt" class=MsoNormal>On Mon, Nov 16, 2009 at 2:29 PM,
Pedro Baracho <<A
href="mailto:pedropbaracho@gmail.com">pedropbaracho@gmail.com</A>>
wrote:<BR>> I need to change SLD on the fly to create some thematic maps. I
would also<BR>> appreciate if compatibility with OGC's WFS was mantained.
Have you guys done<BR>> this before? I could use some suggestions...
:P<BR>><BR>> I have done some searching and came up with a couple of
solutions.<BR>><BR>> 1- GeoServer GeoExt Styler Plugin.<BR>> I don't
know if it is a good solution, because as far as I know, it changes<BR>> the
style of the layer for all the users. I would need to replicate styles<BR>>
on the server for each user and each layer. And also this requires the<BR>>
server to be Geoserver, and breaks OGC
compatibility.<BR>><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 style="MARGIN-BOTTOM: 12pt" class=MsoNormal><BR>> 2- WMS 1.3 and
SLD<BR>> MapServer implements WMS 1.3 and accepts a SLD description in the
request.<BR>> GeoServer doesn't.<BR>> Nothing against MapServer, but my
current development environment is set<BR>> with
GeoServer..<o:p></o:p></P></DIV>
<P class=MsoNormal>Try <A
href="http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&Format=image/png&request=GetMap&width=550&height=250&srs=EPSG:4326&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&Format=image/png&request=GetMap&width=550&height=250&srs=EPSG:4326&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 style="MARGIN-BOTTOM: 12pt" class=MsoNormal>><BR>> 3- WFS and treat SLD
exhibition on the client<BR>> This is a double edged solution. The good thing
about WFS is that I have<BR>> many more possibilities of control over the
map. I can use SelectFeature<BR>> control, instead of hacking some code to
implement it over WMS. But it also<BR>> gives me many other options I don't
need such as the vector data. I only<BR>> 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> </o:p></P></DIV></BODY></HTML>