[OpenLayers-Users] HELP!!! How implement Filter in WMS Layer

fsalas fsalas at geocuba.cu
Tue Sep 15 12:33:20 EDT 2009


Ian,

as you can see in my code, this time, I pass SLD_BODY without coded. but the 
maps don't appears.

The layer is undefined.

Can you send me, other suggestion.

Regards, Salas

***** My CODE *********************************


      Cuba = new OpenLayers.Layer.WMS(
             "Cuba","http://urano:3128/geoserver/wms",
             {
     layers: 'topp:cuba',
                    styles: 'line',
     transparent: 'true'
             },
    {buffer: 0}
            );
      Sennales = new OpenLayers.Layer.WMS(
     "Señales","http://urano:3128/geoserver/wms",
     {
      layers:'topp:sennal',
      SLD_BODY=<StyledLayerDescriptor 
version%3D"1.0.0"><UserLayer><Name>topp:sennal</Name><UserStyle><Name>UserSelection</Name>
                                    <FeatureTypeStyle><Rule><Filter 
xmlns:gml%3D"http://www.opengis.net/gml"><PropertyIsEqualTo><PropertyName>tipo</PropertyName><Literal>FV</Literal></PropertyIsEqualTo></Filter><PointSymbolizer><Graphic><ExternalGraphic><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" 
xlink:href="file:/D:/AppServ/www/SIGANAV/images/FV.gif"/><Format>image/gif</Format></ExternalGraphic><Opacity><Literal>1.0</Literal></Opacity><Size><Literal>20.0</Literal></Size><Rotation><Literal>0.0</Literal></Rotation></Graphic></PointSymbolizer></Rule></FeatureTypeStyle></UserStyle></UserLayer></StyledLayerDescriptor>
      transparent:'true'
      }
    );
   map.addLayers([Cuba,Sennales]);

************************************ **********************



----- Original Message ----- 
From: "Ian Turton" <ijturton at gmail.com>
To: "fsalas" <fsalas at geocuba.cu>
Cc: "Andreas Hocevar" <ahocevar at opengeo.org>; <users at openlayers.org>
Sent: Tuesday, September 15, 2009 9:43 AM
Subject: Re: [OpenLayers-Users] HELP!!! How implement Filter in WMS Layer


> did you try not encoding the SLD in the function body? - it's possible
> that it is being encoded twice and thus makes no sense at the server
> end.
> -- 
> Ian Turton
>
> Sent from State College, PA, United States
> 


___________________________________
Dirección de Comunicaciones
Grupo Empresarial GEOCUBA
Este mensaje esta libre de virus. 
Revisado por Kaspersky Antivirus
----------------------------------------------------------------------
Definition count:  2571166
Definition date:  9/15/2009
SecurityPlus version: 3.0.5






More information about the Users mailing list