I am using OpenLayers 4.6.5 and I need to filter crash data by date. I have
tried creating an "and" filter as follows:
filter = new ol.format.filter.and(
ol.format.filter.IsBetween('CRASH_TIME_MS', startDate, endDate),
ol.format.filter.within('SHAPE', options.geom, 'EPSG:4326')
)
but the first filter (IsBetween) is always 'undefined'. I have converted the
startDate and endDate values to milliseconds and the CRASH_TIME_MS field is
also in milliseconds.
I have not been able to find an example of how to create an IsBetween filter.
Does anyone have an example of how to create an IsBetween filter?
Graham Humphries | System Analyst
ICT & SSG Branch | Department of State Growth
4 Salamanca Place | GPO Box 536, Hobart TAS 7001
P (03) 6166 3155
________________________________
CONFIDENTIALITY NOTICE AND DISCLAIMER
The information in this transmission may be confidential and/or protected by
legal professional privilege, and is intended only for the person or persons to
whom it is addressed. If you are not such a person, you are warned that any
disclosure, copying or dissemination of the information is unauthorised. If you
have received the transmission in error, please immediately contact this office
by telephone, fax or email, to inform us of the error and to enable
arrangements to be made for the destruction of the transmission, or its return
at our cost. No liability is accepted for any unauthorised use of the
information contained in this transmission.
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users