[Geoserver-users] CQL_FILTER : condicional composed

I create a layer with a simple cql_filter

new OpenLayers.Layer.WMS( 'layer 1', 'http://dmz:8080/geoserver/wms’,
{CQL_FILTER: 'mod_codigo = 3',layers: topp:lineas, transparent:'true',
styles: '', srs: 'EPSG:4326', tiled: 'true',}, { 'reprojected':true,
'isBaseLayer': false, 'opacity': 0.5 },{buffer: 0});

It work!

But
How do I make a conditional composed?
Example

new OpenLayers.Layer.WMS( 'layer 1', 'http://dmz:8080/geoserver/wms’,
{CQL_FILTER: 'mod_codigo = 3 and cap_codigo = 400',layers: topp:lineas,
transparent:'true', styles: '', srs: 'EPSG:4326', tiled: 'true',}, {
'reprojected':true, 'isBaseLayer': false, 'opacity': 0.5 },{buffer: 0});

This don't work!

Thank you

Abel
--
View this message in context: http://www.nabble.com/CQL_FILTER-%3A-condicional-composed-tp22874240p22874240.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

The syntax looks fine. What exactly happens. Do you get a blank map? Do you get an exception from GeoServer? More info might help.

Thanks,

-Justin

abelq wrote:

I create a layer with a simple cql_filter

new OpenLayers.Layer.WMS( 'layer 1', 'http://dmz:8080/geoserver/wms’,
{CQL_FILTER: 'mod_codigo = 3',layers: topp:lineas, transparent:'true',
styles: '', srs: 'EPSG:4326', tiled: 'true',}, { 'reprojected':true,
'isBaseLayer': false, 'opacity': 0.5 },{buffer: 0});

It work!

But
How do I make a conditional composed?
Example

new OpenLayers.Layer.WMS( 'layer 1', 'http://dmz:8080/geoserver/wms’,
{CQL_FILTER: 'mod_codigo = 3 and cap_codigo = 400',layers: topp:lineas,
transparent:'true', styles: '', srs: 'EPSG:4326', tiled: 'true',}, {
'reprojected':true, 'isBaseLayer': false, 'opacity': 0.5 },{buffer: 0});

This don't work!

Thank you

Abel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.