<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Andreas I followed his suggestion step by
step, but don't work I attach one image with my maps.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>as you can see i have defined base layer and
overlays layers.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I don't now </FONT> <FONT face=Arial
size=2>why when I put in my IE URL work fine?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://urano:3128/geoserver/wms?bbox=%20-86.09240990784447,%2019.463031059956343,-72.99589832490545,%2023.6349399434799280&Format=image/png&request=GetMap&width=800&height=250&srs=EPSG:4267&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:sennal%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%3Etipo%3C/PropertyName%3E%3CLiteral%3EFV%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource%20xmlns:xlink=%22http://www.w3.org/1999/xlink%22%20xlink:type=%22simple%22%20xlink:href=%22file:/D:/AppServ/www/SIGANAV/images/FV.gif%22/%3E%3CFormat%3Eimage/gif%3C/Format%3E%3C/ExternalGraphic%3E%3COpacity%3E%3CLiteral%3E1.0%3C/Literal%3E%3C/Opacity%3E%3CSize%3E%3CLiteral%3E20.0%3C/Literal%3E%3C/Size%3E%3CRotation%3E%3CLiteral%3E0.0%3C/Literal%3E%3C/Rotation%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E">http://urano:3128/geoserver/wms?bbox=%20-86.09240990784447,%2019.463031059956343,-72.99589832490545,%2023.6349399434799280&Format=image/png&request=GetMap&width=800&height=250&srs=EPSG:4267&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:sennal%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%3Etipo%3C/PropertyName%3E%3CLiteral%3EFV%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource%20xmlns:xlink=%22http://www.w3.org/1999/xlink%22%20xlink:type=%22simple%22%20xlink:href=%22file:/D:/AppServ/www/SIGANAV/images/FV.gif%22/%3E%3CFormat%3Eimage/gif%3C/Format%3E%3C/ExternalGraphic%3E%3COpacity%3E%3CLiteral%3E1.0%3C/Literal%3E%3C/Opacity%3E%3CSize%3E%3CLiteral%3E20.0%3C/Literal%3E%3C/Size%3E%3CRotation%3E%3CLiteral%3E0.0%3C/Literal%3E%3C/Rotation%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>However in my Sennales = new
OpenLayers.Layer.WMS(<BR> "Señales","<A
href="http://urano:3128/geoserver/wms"><FONT face=Arial
size=2>http://urano:3128/geoserver/wms</FONT></A><FONT face=Arial
size=2>",<BR> {<BR>
layers:'topp:sennal',<BR> sld_body:</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>*</FONT></DIV>
<DIV><FONT face=Arial size=2>*</FONT></DIV>
<DIV><FONT face=Arial size=2>*</FONT></DIV>
<DIV><FONT face=Arial size=2>*</FONT></DIV>
<DIV><FONT face=Arial size=2>dont't work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why??????</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards , Salas</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Andreas Hocevar" <</FONT><A
href="mailto:ahocevar@opengeo.org"><FONT face=Arial
size=2>ahocevar@opengeo.org</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "fsalas" <</FONT><A
href="mailto:fsalas@geocuba.cu"><FONT face=Arial
size=2>fsalas@geocuba.cu</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: <</FONT><A
href="mailto:users@openlayers.org"><FONT face=Arial
size=2>users@openlayers.org</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Monday, September 14, 2009 1:32
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [OpenLayers-Users] HELP!!! How
implement Filter in WMS Layer</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>Hi,<BR><BR>see my suggestions inline.<BR><BR>fsalas wrote:<BR>> thank
you Andeas for your help, but I continue with some problems and<BR>> maybe
you can be help me again.<BR>><BR>> I do it this and
nothing<BR>><BR>>
var bounds = new
OpenLayers.Bounds(<BR>>
-85.49711392680179,
19.65266328193469,<BR>>
-73.59119430594814,
23.44530772150158<BR>>
);<BR>><BR>>
var options =
{<BR>>
controls:
[],<BR>>
maxExtent:
bounds,<BR>>
maxResolution:
0.04650749851895958,<BR>>
projection:
"EPSG:4267",<BR>>
units:
'degrees'<BR>>
};<BR>><BR>>
map = new OpenLayers.Map('map',
options);<BR>><BR>><BR>><BR>>
Batimetria = new
OpenLayers.Layer.WMS(<BR>>
"Batimetría","</FONT><A href="http://urano:3128/geoserver/wms"><FONT face=Arial
size=2>http://urano:3128/geoserver/wms</FONT></A><FONT face=Arial
size=2>",<BR>>
{<BR>>
layers:
'topp:batimetria'<BR>>
}<BR>>
);<BR>><BR>><BR>>
Cuba = new
OpenLayers.Layer.WMS(<BR>>
"Cuba","</FONT><A href="http://urano:3128/geoserver/wms"><FONT face=Arial
size=2>http://urano:3128/geoserver/wms</FONT></A><FONT face=Arial
size=2>",<BR>>
{<BR>>
layers:
'topp:cuba',<BR>>
srs: 'EPSG:4267',<BR><BR>Remove the srs. You have set it on the map
already.<BR>>
styles:
'line',<BR>>
transparent:
'true',<BR>>
format:
'image/png'<BR>>
},<BR>>
{<BR>>
buffer:
0<BR>>
}<BR>>
);<BR>><BR>><BR>> Sennales = new
OpenLayers.Layer.WMS(<BR>> "Señales","</FONT><A
href="http://urano:3128/geoserver/wms"><FONT face=Arial
size=2>http://urano:3128/geoserver/wms</FONT></A><FONT face=Arial
size=2>",<BR>> {<BR>> layers:'topp:sennal',<BR>>
sld_body:'%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:sennal%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%3Etipo%3C/PropertyName%3E%3CLiteral%3EFV%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource%20xmlns:xlink=%22http://www.w3.org/1999/xlink%22%20xlink:type=%22simple%22%20xlink:href=%22file:/D:/AppServ/www/SIGANAV/images/FV.gif%22/%3E%3CFormat%3Eimage/gif%3C/Format%3E%3C/ExternalGraphic%3E%3COpacity%3E%3CLiteral%3E1.0%3C/Literal%3E%3C/Opacity%3E%3CSize%3E%3CLiteral%3E20.0%3C/Literal%3E%3C/Size%3E%3CRotation%3E%3CLiteral%3E0.0%3C/Literal%3E%3C/Rotation%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E',<BR>><BR>>
srs:'EPSG:4267',<BR><BR>Remove the srs<BR>> height:'557',<BR>>
width:'800',<BR>Remove height and width, these are handled by
OpenLayers.<BR><BR>>
transparent:'true',<BR>>
format: 'image/png',<BR>> }<BR><BR>All your layers are configured as
base layers, so I bet you only see the<BR>Batimetria layer. Make the layer an
overlay by adding<BR><BR>, {isBaseLayer: false}<BR><BR>>
);<BR>><BR>>
map.addLayers([Batimetria,Cuba,Sennales]);<BR>><BR>>
---------------------------------------------------------------------------------------<BR>><BR>><BR>>
I do it this and nothing<BR>><BR>> function CHANGE_SLD_BODY()<BR>>
{<BR>><BR>> var new_sld_body =<BR>>
'%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:sennal%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%3Etipo%3C/PropertyName%3E%3CLiteral%3EFV%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource%20xmlns:xlink=%22http://www.w3.org/1999/xlink%22%20xlink:type=%22simple%22%20xlink:href=%22file:/D:/AppServ/www/SIGANAV/images/FV.gif%22/%3E%3CFormat%3Eimage/gif%3C/Format%3E%3C/ExternalGraphic%3E%3COpacity%3E%3CLiteral%3E1.0%3C/Literal%3E%3C/Opacity%3E%3CSize%3E%3CLiteral%3E20.0%3C/Literal%3E%3C/Size%3E%3CRotation%3E%3CLiteral%3E0.0%3C/Literal%3E%3C/Rotation%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E';<BR>><BR>><BR>>
map.layers[2].mergeNewParams({sld_body : new_sld_body });<BR>>
map.layers[2].redraw();<BR><BR>Remove the redraw() line. mergeNewParams will
take care of that.<BR><BR>> }<BR>><BR>><BR>>
---------------------------------------------------------------------------------<BR>><BR>><BR>><BR>>
however I do it this and is working fine!<BR>><BR>><BR>> </FONT><A
href="http://localhost:3128/geoserver/wms?bbox"><FONT face=Arial
size=2>http://localhost:3128/geoserver/wms?bbox</FONT></A><FONT face=Arial
size=2>= -86.09240990784447,<BR>>
19.463031059956343,-72.99589832490545,<BR>>
23.6349399434799280&Format=image/png&request=GetMap&width=800&height=250&srs=EPSG:4267&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CUserLayer%3E%3CName%3Etopp:sennal%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%3Etipo%3C/PropertyName%3E%3CLiteral%3EFV%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E%3CPointSymbolizer%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource%20xmlns:xlink=%22http://www.w3.org/1999/xlink%22%20xlink:type=%22simple%22%20xlink:href=%22file:/D:/AppServ/www/SIGANAV/images/FV.gif%22/%3E%3CFormat%3Eimage/gif%3C/Format%3E%3C/ExternalGraphic%3E%3COpacity%3E%3CLiteral%3E1.0%3C/Literal%3E%3C/Opacity%3E%3CSize%3E%3CLiteral%3E20.0%3C/Literal%3E%3C/Size%3E%3CRotation%3E%3CLiteral%3E0.0%3C/Literal%3E%3C/Rotation%3E%3C/Graphic%3E%3C/PointSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/UserLayer%3E%3C/StyledLayerDescriptor%3E<BR>><BR>><BR>><BR>><BR>> and
only change it the first part<BR>><BR>> </FONT><A
href="http://localhost:3128/geoserver/wms?bbox"><FONT face=Arial
size=2>http://localhost:3128/geoserver/wms?bbox</FONT></A><FONT face=Arial
size=2>= -86.09240990784447,<BR>>
19.463031059956343,-72.99589832490545,<BR>>
23.6349399434799280&Format=image/png&request=GetMap&width=800&height=250&srs=EPSG:4267<BR>><BR>><BR>><BR>><BR>>
Well, I hope that you can be help me<BR><BR>The above is all I can find. I hope
it will work after making these changes.<BR><BR>Regards,<BR>Andreas.<BR><BR>--
<BR>Andreas Hocevar<BR>OpenGeo - </FONT><A href="http://opengeo.org/"><FONT
face=Arial size=2>http://opengeo.org/</FONT></A><BR><FONT face=Arial
size=2>Expert service straight from the
developers.<BR><BR><BR></FONT><br>___________________________________<br>
Dirección de Comunicaciones<br>
Grupo Empresarial GEOCUBA<br>
Este mensaje esta libre de virus. <br>
Revisado por Kaspersky Antivirus<br>
----------------------------------------------------------------------<br>
Definition count: 2571166
Definition date: 9/15/2009
SecurityPlus version: 3.0.5
<br>
</BODY></HTML>