<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hello,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I have a gml file and I would like to filter the features visualization based on the presence of an attribute. In particular I have a gml file that may or not have the latitude attribute: if this attribute is present the features should not be viewed.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I'm working with the strategy filter but I don't get results.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">This is an extract of my code:</div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div><font face="'times new roman', 'new york', times, serif">filter = new OpenLayers.Filter.Logical({</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">        </span>type: OpenLayers.Filter.Comparison.LIKE,</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">        </span>property: 'latitude',</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">        </span>value: undefined</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">        </span>});</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york',
 times, serif">filterStrategy = new OpenLayers.Strategy.Filter({filter: filter});</font></div><div><font face="'times new roman', 'new york', times, serif">puntigml = new OpenLayers.Layer.GML("Point", "provider.gml",</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">        </span>{</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">                </span>projection: new OpenLayers.Projection("EPSG:4326"),</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space:pre">                </span>strategies: filterStrategy</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="Apple-tab-span" style="white-space: pre; ">        </span>});&nbsp;</font></div><div><font face="'times new roman', 'new york', times, serif">map.addLayer(puntigml);<span
 class="Apple-tab-span" style="white-space:pre">        </span><br></font></div><div><br></div><div>Thanks for the help!</div><div><br></div><div>Francesco</div></div></div></body></html>