[mapserver-users] RE FILTER syntax

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Jan 17 09:39:47 PST 2013


remove () around values and remove spaces after , and use double quote 
around the values
try
FILTER ([field1] in "value1,value2,valueN")






Clément MONIER <Clement.MONIER at v-trafic.com>@lists.osgeo.org 
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2013-01-17 12:04

A
"mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
cc

Objet
[mapserver-users] FILTER syntax








Hi,
 
I searching how to convert a sql request like ?where field1 in (value1, 
value2, ?, valueN)?
into a FILTER clause inside a map file (layer block)
 
I tried ?FILTER ([field1] in (value1, value2, ?, valueN))?
But it doesn?t work
Though it works fine when ?FILTER ([field1] = value1)?
 
My data is shapefile
 
Thanks for your help
 
Clément_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130117/68fe0e8c/attachment.html>


More information about the mapserver-users mailing list