Thanks Arnd,<br><br>After a lot of trial and error I&#39;ve added a new rule specific when the attributes equals 0<br>And added this style:<br>          &lt;PolygonSymbolizer&gt;<br>            &lt;Fill&gt;<br>              &lt;CssParameter name=&quot;fill&quot;&gt;<br>

                &lt;ogc:Literal&gt;#D73027&lt;/ogc:Literal&gt;<br>              &lt;/CssParameter&gt;<br>              &lt;CssParameter name=&quot;fill-opacity&quot;&gt;<br>                &lt;ogc:Literal&gt;0.001&lt;/ogc:Literal&gt;<br>

              &lt;/CssParameter&gt;              <br>            &lt;/Fill&gt;<br>            &lt;Stroke&gt;<br>              &lt;CssParameter name=&quot;stroke&quot;&gt;<br>                &lt;ogc:Literal&gt;false&lt;/ogc:Literal&gt;                <br>

              &lt;/CssParameter&gt;<br>              &lt;CssParameter name=&quot;stroke-width&quot;&gt;&lt;ogc:Literal&gt;0.001&lt;/ogc:Literal&gt;&lt;/CssParameter&gt;<br>              &lt;CssParameter name=&quot;stroke-opacity&quot;&gt;<br>

                &lt;ogc:Literal&gt;0.001&lt;/ogc:Literal&gt;<br>              &lt;/CssParameter&gt;              <br>            &lt;/Stroke&gt;            <br>          &lt;/PolygonSymbolizer&gt;<br><br>Just using 0 as opacity doesn&#39;t do anything and without the stroke-width a line is drawn on IE7 (not on IE8, IE9 or FF).<br>

<br>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><br><br><div class="gmail_quote">2012/5/7 Arnd Wippermann <span dir="ltr">&lt;<a href="mailto:arnd.wippermann@web.de" target="_blank">arnd.wippermann@web.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<u></u>



<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">Have you tried</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left">        
&lt;Rule&gt;<br>          
&lt;Name&gt;Default&lt;/Name&gt;<br>          
&lt;PolygonSymbolizer<span>/</span>&gt;<br>        
&lt;/Rule&gt;<br></div>
<div><span><font color="#0000ff" face="Arial">Perhaps it will work.</font></span></div>
<div><span><font color="#0000ff" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" face="Arial">Arnd</font></span></div>
<div><font color="#0000ff" face="Arial"></font><br> </div>
<div dir="ltr" align="left" lang="de">
<hr>
<font face="Tahoma"><b>Von:</b> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a> 
[mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>] <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 class="h5">
<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&#39;t want to see the feature so I added this to my 
SLD:<br>        
&lt;Rule&gt;<br>          
&lt;Name&gt;Default&lt;/Name&gt;<br>          
&lt;PolygonSymbolizer&gt;<br>            
&lt;Fill&gt;false&lt;/Fill&gt;<br>            
&lt;Stroke&gt;false&lt;/Stroke&gt;               
<br>          
&lt;/PolygonSymbolizer&gt;<br>        
&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&#39;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/" target="_blank">http://www.mapwindow.org/conference/2012/</a><br><br></div></div></div>
</blockquote></div><br>