[OpenLayers-Users] [Geoserver-users] Filter Encoding
Fabio D'Ovidio
fabiodovidio at gmail.com
Tue Jul 1 05:45:12 EDT 2008
Hi,
thanks for you replay! I have the following problem:
var poligono = new OpenLayers.Layer.WFS(
"Elementi poligonali",
"/geoserver/wfs",
{typename: 'topp:poligono'},
{
typename: 'poligono',
featureNS: 'http://www.openplans.org/topp',
extractAttributes: false,
useBbox: false
}
);
poligono.params.FILTER='<ogc:Filter>'+'<PropertyIsEqualTo>'+'<PropertyName>idOperazione</PropertyName>'+'<Literal>'+OpenLayers.Util.getParameters();+'</Literal>'+'</PropertyIsEqualTo>'+'</ogc:Filter>';
//'<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">'+
'<ogc:PropertyIsEqualTo>' +
'<ogc:PropertyName>topp:idOperazione</ogc:PropertyName>'+
'<ogc:Literal>3</ogc:Literal>' + '</ogc:PropertyIsEqualTo>' +
'</ogc:Filter>';
..the query and the filter works fine on GeoServer but not from
OpenLayers...
bartvde at osgis.nl ha scritto:
> You can't since OpenLayers 2.6 by default uses a BBOX strategy, and BBOX
> and FILTER are mutually exclusive.
>
> See e.g.:
> http://trac.openlayers.org/ticket/1113
> http://trac.openlayers.org/ticket/1430
>
> The new vector behaviour work is gonna solve this by the way, but doesn't
> help you now.
>
> Best regards,
> Bart
>
> On Tue, 01 Jul 2008 11:15:25 +0200, Fabio D'Ovidio <fabiodovidio at gmail.com>
> wrote:
>
>> Hi!
>> I am trying to do as following:
>>
>> var poligono = new OpenLayers.Layer.WFS(
>> "Elementi poligonali",
>> "/geoserver/wfs",
>> {typename: 'topp:poligono'},
>> {
>> typename: 'poligono',
>> featureNS: 'http://www.openplans.org/topp',
>> extractAttributes: true,
>> filter:
>>
>>
> '<Filter><PropertyIsEqualTo><PropertyName>idOperazione</PropertyName><Literal>'+OpenLayers.Util.getParameters();+'</Literal></PropertyIsEqualTo></Filter>'
>
>>
>> }
>> );
>>
>>
>> It doesn't work! How can I filter my WFS data ?
>>
>> Tnaks !
>>
>> --
>> Ing. Fabio D'Ovidio
>>
>> INOVA Open Solutions s.r.l.
>> Web : http://www.inovaos.it
>> Tel.: 081 197 57 600
>> mail: fabiodovidio at gmail.com
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Geoserver-users mailing list
>> Geoserver-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
>
--
Ing. Fabio D'Ovidio
INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: fabiodovidio at gmail.com
More information about the Users
mailing list