<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi!<br>
<br>
I have some problems with strategies and filters:<br>
<br>
* A filter strategy seems to be entierly ignored when creating the
URL parameters for the protocol (adding a
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
filterToParams-function that prints filters seems to confirm that my
filter strategy filter doesn't make it to the protocol, only the
BBOX filter).<br>
<br>
* Updating a filter strategy (setFilter) does not re-request data
from the server <br>
<br>
* If I set layer.filter to some filter, this is ANDed in with the
bbox filter, however while GREATER_THAN, SMALLER_THAN etc Logical
filters seems to work fine, BETWEEN filters are just ignored
(looking into Format/QueryStringFilter.js seems to confirm that
BETWEEN is just ignored, and OpenLayers.Console.warn does not print
anything by default :/ )<br>
<br>
So, how is strategies, filters and protocol query params suppsed to
work together (that is, what is "the big picture" that isn't
documented)?<br>
<br>
Example code that does not work...<br>
<br>
map.addLayers([<br>
 new OpenLayers.Layer.OSM("Simple OSM Map"),<br>
 new OpenLayers.Layer.Vector("Local data", {<br>
   projection: new OpenLayers.Projection("EPSG:4326"), // Same as
WGS84<br>
   strategies: [<br>
     new OpenLayers.Strategy.BBOX({resFactor: 1}),<br>
     new OpenLayers.Strategy.Filter({filter:<br>
       new OpenLayers.Filter.Comparison({<br>
           type: OpenLayers.Filter.Comparison.GREATER_THAN,<br>
           property: "when",<br>
           value: new Date(),<br>
       })<br>
     })<br>
   ],<br>
   protocol: new OpenLayers.Protocol.HTTP({<br>
     url: "{% url appomatic_mapserver.views.mapserver %}",<br>
     format: new OpenLayers.Format.SkyTruth({egiltest:4711}),<br>
     params: {},<br>
   })<br>
 })<br>
]);<br>
<br>
<br>
Best regards,<br>
Egil<br>
</body>
</html>