Thanks Arnd,<br><br>After a lot of trial and error I've added a new rule specific when the attributes equals 0<br>And added this style:<br> <PolygonSymbolizer><br> <Fill><br> <CssParameter name="fill"><br>
<ogc:Literal>#D73027</ogc:Literal><br> </CssParameter><br> <CssParameter name="fill-opacity"><br> <ogc:Literal>0.001</ogc:Literal><br>
</CssParameter> <br> </Fill><br> <Stroke><br> <CssParameter name="stroke"><br> <ogc:Literal>false</ogc:Literal> <br>
</CssParameter><br> <CssParameter name="stroke-width"><ogc:Literal>0.001</ogc:Literal></CssParameter><br> <CssParameter name="stroke-opacity"><br>
<ogc:Literal>0.001</ogc:Literal><br> </CssParameter> <br> </Stroke> <br> </PolygonSymbolizer><br><br>Just using 0 as opacity doesn'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"><<a href="mailto:arnd.wippermann@web.de" target="_blank">arnd.wippermann@web.de</a>></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">
<Rule><br>
<Name>Default</Name><br>
<PolygonSymbolizer<span>/</span>><br>
</Rule><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't want to see the feature so I added this to my
SLD:<br>
<Rule><br>
<Name>Default</Name><br>
<PolygonSymbolizer><br>
<Fill>false</Fill><br>
<Stroke>false</Stroke>
<br>
</PolygonSymbolizer><br>
</Rule><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/" target="_blank">http://www.mapwindow.org/conference/2012/</a><br><br></div></div></div>
</blockquote></div><br>