# Filter Encoding

Using the filter format write out filter objects.

filter = new OpenLayers.Filter.Logical({ type: OpenLayers.Filter.Logical.AND, filters: [ new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.LIKE, property: "person", value: "me" }), new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.NOT_EQUAL_TO, property: "mean", value: "yes" }), new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.BBOX, value: new OpenLayers.Bounds(-180, -90, 180, 90), projection: "EPSG:4326" }) ] });
Filter Encoding 1.0
Filter Encoding 1.1