[Geoserver-users] Query empty string in SLD ?

Dear All:
I have a problem here. I want to write a SLD, which has a filter is query a empty string (attribute type is string, some objects has value, some oject are empty, without any value or txt)

Can I query empty string(null) in a filter?

ogc:Filter
ogc:Or
ogc:PropertyIsEqualTo
ogc:PropertyNameattribute1</ogc:PropertyName>
ogc:Literal00000</ogc:Literal>
</ogc:PropertyIsEqualTo>
ogc:PropertyIsEqualTo
ogc:PropertyNameattribute2</ogc:PropertyName>
ogc:Literal</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>

Thanks in advance

All the best

Xiaoyu


Xiaoyu Guan (Sam)
Geo-information Science
Wageningen UR

For GetMap, I've had luck with the <PropertyIsNull> tag.
Here, where FTCF is the name of my field:

<Filter xmlns="http://www.opengis.net/ogc&quot;&gt;
  <PropertyIsNull>
    <PropertyName>FTCF</PropertyName>
  </PropertyIsNull>
</Filter>

I haven't tried GetFeature, but hopefully it would work the same there as
well.
--
View this message in context: http://www.nabble.com/Query-empty-string-in-SLD---tp18927543p18927657.html
Sent from the GeoServer - User mailing list archive at Nabble.com.