<!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=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046">
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Verdana;
}
@page WordSection1 {size: 612.0pt 792.0pt; margin: 70.85pt 70.85pt 2.0cm 70.85pt; }
P.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt; mso-fareast-language: EN-US
}
LI.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt; mso-fareast-language: EN-US
}
DIV.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt; mso-fareast-language: EN-US
}
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.E-MailFormatvorlage17 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: windowtext; mso-style-type: personal-compose
}
.MsoChpDefault {
        FONT-FAMILY: "Calibri","sans-serif"; mso-fareast-language: EN-US; mso-style-type: export-only
}
DIV.WordSection1 {
        page: WordSection1
}
</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=DE-AT link=blue vLink=purple>
<DIV dir=ltr align=left><SPAN class=895442316-06062011><FONT color=#0000ff
size=2 face=Arial>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895442316-06062011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=895442316-06062011><FONT color=#0000ff
size=2 face=Arial>The Remote Server needs the sld file to render serverside the
map. Your sld file have to be reachable over the internet. The Remote Server
can't get access of your local file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895442316-06062011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=895442316-06062011><FONT color=#0000ff
size=2 face=Arial>If you cann't save your file on an online reachable address,
your only way is to use the WMS paramater SLD_BODY.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895442316-06062011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=895442316-06062011><FONT color=#0000ff
size=2 face=Arial>Arnd</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von
</B>Morper-Busch, Lucia<BR><B>Gesendet:</B> Montag, 6. Juni 2011
14:58<BR><B>An:</B> openlayers-users@lists.osgeo.org<BR><B>Betreff:</B>
[OpenLayers-Users] WMS-Layer from Remote Server: MergeNewParams
SLD<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN lang=EN-US>Hello OpenLayers
Users!<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>How can I apply my sld-File to a WMS-Layer
from a Remote Server?<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>var testRemoteLayer = new
OpenLayers.Layer.WMS("test_Remote", <o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: 35.4pt" class=MsoNormal><SPAN
lang=EN-US>"http://<B><I>RemoteServer</I></B>:8080/geoserver/thermotest/wms",
{<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
layers: namespace + ":test_area",<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
transparent: true,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
format: 'image/png'<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
}, {<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
singleTile: false,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
isBaseLayer: false,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
visibility: false<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
lang=EN-US>
}<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>);<o:p></o:p></SPAN></P>
<P style="TEXT-ALIGN: justify" class=MsoNormal><SPAN
lang=EN-US>map.addLayers([testRemoteLayer]);<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>testRemoteLayer.mergeNewParams({sld:
"http://<B><I>myServer</I></B>:8080/geoserver/thermomap/styles/test_area.sld"});<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>It works for the Layers on my Server, but
not with Remote Servers. I don’t want to send SLD-Files via Email to the WMS
providing partners.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>Error: Connection timed
out<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>Thanks for suggestions<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>Lucia<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><o:p> </o:p></SPAN></P>
<P style="MARGIN-BOTTOM: 1pt" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: #365f91; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US>Dipl.-Geogr. Lucia Morper-Busch</SPAN></B><B><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: #1f497d; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US> | </SPAN></B><B><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: #c00000; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US>Researcher</SPAN></B><B><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: #1f497d; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US><o:p></o:p></SPAN></B></P>
<P style="MARGIN-BOTTOM: 1pt" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: gray; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US>University of Salzburg | Centre for Geoinformatics -
Z_GIS<o:p></o:p></SPAN></P>
<P style="MARGIN-BOTTOM: 1pt" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: gray; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US>Schillerstr.30 | Techno-Z, Block 15, 3rd floor | 5020 Salzburg,
Austria<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: gray; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US>Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044
5260<o:p></o:p></SPAN></P>
<P class=MsoNormal><B><I><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: gray; FONT-SIZE: 8pt; mso-fareast-language: DE-AT"
lang=EN-US>> <A href="http://www.zgis.at/research"><SPAN
style="COLOR: gray; TEXT-DECORATION: none">Z_GIS…experts for the spatial
view</SPAN></A><o:p></o:p></SPAN></I></B></P>
<P class=MsoNormal><SPAN
lang=EN-US><o:p> </o:p></SPAN></P></DIV></BODY></HTML>