<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19222"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=968163016-07052012><FONT color=#0000ff 
size=2 face=Arial>Have you tried</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968163016-07052012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Rule&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Name&gt;Default&lt;/Name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;PolygonSymbolizer<SPAN 
class=968163016-07052012>/</SPAN>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/Rule&gt;<BR></DIV>
<DIV><SPAN class=968163016-07052012><FONT color=#0000ff size=2 
face=Arial>Perhaps it will work.</FONT></SPAN></DIV>
<DIV><SPAN class=968163016-07052012><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=968163016-07052012><FONT color=#0000ff size=2 
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT><BR>&nbsp;</DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Paul 
Meems<BR><B>Gesendet:</B> Montag, 7. Mai 2012 11:34<BR><B>An:</B> 
openlayers-users<BR><B>Betreff:</B> [OpenLayers-Users] How to hide a feature 
from the map?<BR></FONT><BR></DIV>
<DIV></DIV>I have a WFS layer that shows about 10 features.<BR>I have made a SLD 
for this layer.<BR>This SLD works fine when I define fill colors but when my 
attribute value is 0 I don't want to see the feature so I added this to my 
SLD:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Rule&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Name&gt;Default&lt;/Name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;PolygonSymbolizer&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Fill&gt;false&lt;/Fill&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;Stroke&gt;false&lt;/Stroke&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/PolygonSymbolizer&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/Rule&gt;<BR>This results in my undefined (=default style) feature to be 
drawn with a gray fill color and a black stroke.<BR><BR>I can't filter this 
feature because the user can do some calculations which results in modified 
values of my attribute and thus in my coloring.<BR><BR>How should I hide this 
feature?<BR><BR clear=all>Thanks,<BR><BR>Paul<BR><BR>--<BR>Organizing the 
International Open Source GIS conference 2012 in The Netherlands:<BR><A 
href="http://www.mapwindow.org/conference/2012/">http://www.mapwindow.org/conference/2012/</A><BR><BR></BODY></HTML>