[OpenLayers-Users] Why this this CQL expression in format.read?

Phil Scadden p.scadden at gns.cri.nz
Tue May 8 00:11:20 EDT 2012


I have CQL filter of:
NOT TRANS_NAME LIKE 'OTS%'
or
TRANS_NAME NOT LIKE 'OTS%'
or
TRANS_NAME !LIKE 'OTS%'

All of these formats work when applied as filter to a layer (ie 
CQL_FILTER in a GET).
However, if I want to use this filter  in a WFS query, (protocol.read)  via
                        var format = new OpenLayers.Format.CQL();
                         filter = format.read(CQLStr);

Then format.read fails. What is the valid syntax?


-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Users mailing list