Hi list,<br>I have a particular WFS layer here which is giving me trouble and I need some help on identifying the correct geometryName and the filter property.<br><br>It’s gazetteer service and I want to apply comparison filters eventually. <br><br>var myFilter = new OpenLayers.Filter.Comparison({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: "~",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; property: "nombreEntidad", //no<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value: "Madrid" <br>});<br><br><br>So far I’ve managed to display points on my map using Strategy.Fixed without any filter:&nbsp; <br><br>var myLayer = new OpenLayers.Layer.Vector( "my title",&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.Fixed()],<br>&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: "http://www.idee.es/IDEE-WFS-Nomenclator-NGC/services?",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureType: 'Entidad', <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featurePrefix: 'mne',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureNS :&nbsp; "http://www.idee.es/mne",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; readFormat: new OpenLayers.Format.GML(),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srsName: "EPSG:4230",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version: '1.1.0',&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxFeatures: 10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; extractAttributes: true<br>&nbsp;&nbsp; }),<br>&nbsp;&nbsp; projection: new OpenLayers.Projection("EPSG:4230"),<br>&nbsp;&nbsp; // filter: myFilter;<br>});<br><br>I tried setting the filter property to "nombre" or "nombreEntidad" – with and without prefix, but no luck. ("PropertyName " nombreEntidad" cannot be resolved”).<br>For applying any spatial filters or just the BBOX strategy I’d have to indicate additionally the geometryName which I haven’t figured out either.<br><br>Besides, I can select features but the attribute values are null (feature.attributes have the expected keys but their values are null). <br><br>Does anybody have a clue? I could post some XML if it’s of help.<br><br>I’d also like to know if there is any difference in terms of performance between <br>1) filterStrategy, 2) filter, and 3) style with a rule and a filter. I guess the third option is slowest but what about the other 2 options?<br><br>Best regards<br>