[OpenLayers-Users] OpenLayers.Filter.Comparison.LIKE and singleChar

Ian Turton ijturton at gmail.com
Thu Aug 5 13:51:31 EDT 2010


On Thu, Aug 5, 2010 at 1:08 PM, Arnd Wippermann <arnd.wippermann at web.de> wrote:
> 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.

I suspect that this filter will cause you problems until you make the
change - the problem is when parsing a Literal value .2 the parser
(probably) doesn't know that the . is special and will assume that you
are trying to enter the value 0.2 rather than the string ".2".

Fortunately the OGC spec allows for this and the wild chars used in
the filter are explicitly encoded in the filter, and these are
required elements so they will always be there to remind you of what
is going on.

Ian
-- 
Ian Turton



More information about the Users mailing list