<div dir="ltr">Could you use the WMS dimension support? <a href="http://mapserver.org/uk/ogc/wms_dimension.html">http://mapserver.org/uk/ogc/wms_dimension.html</a> <div><br></div><div>Ian</div><div><br></div><div>PS does anyone know why the MapServer site thinks I'd like cyrillic characters in the headings? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 August 2016 at 12:56, drobins <span dir="ltr"><<a href="mailto:d.robins@gisarts.nl" target="_blank">d.robins@gisarts.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a PostGIS database and I have a column "startdate" and "enddate" in my<br>
database (YYYY-MM-DD format).<br>
What I want to do is make a filter/expression that checks if a certain<br>
selected date falls between those 2 dates.<br>
<br>
Example:<br>
I have a checkbox for enable/disable the following layers:<br>
2016<br>
2017<br>
2018<br>
2019<br>
2020<br>
<br>
I have an entry in my database with:<br>
startdate: 2016-01-01<br>
enddate: 2019-01-01<br>
<br>
If I check the layer 2017, I would like it to check if its between the<br>
start/enddate and if yes, display it.<br>
Is this possible with Mapserver/Openlayers?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-filter-expression-by-DATE-tp5280038.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/Mapserver-filter-<wbr>expression-by-DATE-tp5280038.<wbr>html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ian Turton<br></div>
</div>