[OpenLayers-Users] OpenLayers.Filter.Comparison.LIKE and
singleChar
Arnd Wippermann
arnd.wippermann at web.de
Thu Aug 5 13:08:15 EDT 2010
Thanks Ian,
I have tried this, to test, if the SLD reader principal works. But I
wouldn't like this approach, because you have to remember, that you changed
the value for singleChar.
Arnd
-----Ursprüngliche Nachricht-----
Von: Ian Turton [mailto:ijturton at gmail.com]
Gesendet: Donnerstag, 5. August 2010 18:53
An: Arnd Wippermann
Cc: users at openlayers.org
Betreff: Re: [OpenLayers-Users] OpenLayers.Filter.Comparison.LIKE and
singleChar
Another solution is to use a character other than . for the single character
wildcard so that it no longer looks like a number to the parser. Try
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsLike wildCard="*" singleChar="#" escape="!">
<ogc:PropertyName>indice</ogc:PropertyName>
<ogc:Literal>#2</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
Ian
--
Ian Turton
More information about the Users
mailing list