[mapserver-users] Multiple Filter options. WMS Service
NN SS
nsanchezb08 at gmail.com
Tue Sep 22 15:39:09 PDT 2009
Hi.
I'm using wms service to load layers in openlayers. This works fine, but I
have a problem.
I need to use different filters options to load data. I need a dynamic
filter
My layer is some like this :
***********
LAYER
NAME "Polizas"
STATUS ON
CONNECTION "polizas.ovf"
CONNECTIONTYPE OGR
DATA "polizas"
TYPE POINT
METADATA
"wms_name" "Polizas"
"wms_server_version" "1.1.1"
"wms_format" "image/png"
"wms_transparent" "true"
END
FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and
([cod_lin_business] eq %CODLINEA%) and ("[geoestado]" eq "%GEOESTADO%") and
("[txt_municipio]" eq "%CIUDAD%" ) )
CLASS
STYLE
SYMBOL 'circle'
SIZE 8
COLOR 255 255 0
OUTLINECOLOR 0 0 0
END
END
END
*************
I some cases I need all filter options :
FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and
([cod_lin_business] eq %CODLINEA%) and ("[geoestado]" eq "%GEOESTADO%") and
("[txt_municipio]" eq "%CIUDAD%" ) )
but other cases I need 2 parameters or 3 parameters
FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) )
FILTER (([cod_suc] eq %CODSUC%) and ([cod_ramo] eq %CODRAMO%) and
([cod_lin_business] eq %CODLINEA%) )
or 1 parameter :
FILTER (([cod_suc] eq %CODSUC%) )
How can I do this?
Thanks for your help.
Regards
Nelson S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090922/31de7698/attachment.htm>
More information about the MapServer-users
mailing list