[OpenLayers-Users] HELP!!! How implement Filter in WMS Layer
fsalas
fsalas at geocuba.cu
Fri Sep 11 14:41:23 EDT 2009
Andreas, Thanks , but I am beginner and don't have information about this
topic.
Can you send me illustrative example or information.
I using GeoServer and I like obtain dynamic maps with some condition.
I try with this code but don't change the maps.
....................
mapa = new OpenLayers.Map('map', options);
// setup tiled layer SLD: "http://deltha:8080/SLD/mapa.sld",
faro= new OpenLayers.Layer.WMS(
"topp:mapacuba - Tiled", "http://deltha:8080/geoserver/wms",
{
layers: 'topp:faro,
styles: '',
height: '300',
width: '800',
srs: 'EPSG:4267',
format: 'image/png',
tiled: 'true',
tilesOrigin : "-85.49711392680179,19.65266328193469"
},
{buffer: 0}
);
map.addLayers([faro]);
and after that........
mapa.mergeNewParams({sld:'http://localhost:8080/SLD/faros.sld'});
mapa.redraw();
Best reggards,
Salas
----- Original Message -----
From: "Andreas Hocevar" <ahocevar at opengeo.org>
To: "fsalas" <fsalas at geocuba.cu>
Cc: <users at openlayers.org>
Sent: Thursday, September 10, 2009 1:42 PM
Subject: Re: [OpenLayers-Users] HELP!!! How implement Filter in WMS Layer
> fsalas wrote:
>>
>> In this time , I have openlayer 2.8 and be studying the filter.html
>> example.
>>
>> my question is
>>
>> 1. ¿ How I can use the WMS Layer with filter?
>>
>
> If you want to do it the OGC way, you have to add a SLD_BODY param with an
> SLD that contains the filter and the symbology you want.
>
> If you are using GeoServer, you can also use the FILTER param directly.
> In that case, you may want to have a look at the CQL_FILTER param which
> provides a more compact filter language.
>
> Regards,
> Andreas.
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
___________________________________
Dirección de Comunicaciones
Grupo Empresarial GEOCUBA
Este mensaje esta libre de virus.
Revisado por Kaspersky Antivirus
----------------------------------------------------------------------
Definition count: 2526893
Definition date: 9/11/2009
SecurityPlus version: 3.0.5
More information about the Users
mailing list