From: <seb...@me...> - 2007-06-29 13:09:12
|
S=E9bastien Geindre a =E9crit : > hi everybody, > > is it possible to encode a filter which does temporal selection ? > > ie, uses comparison operatos on timeStamp field in a postGIS datastore = ? > > Merci ! > > =20 Yes it is : <ogc:Between> does not seem to work... but it can be done with <ogc:PropertyIsGreaterThan> and=20 <ogc:PropertyIsLessThan> and what about the time zone ? which timezone geoserver use when it fills postGIS datastore through=20 WFS ??? <?xml version=3D"1.0" encoding=3D"UTF-8"?> <wfs:GetFeature service=3D"WFS" version=3D"1.1.0"=20 xmlns:wims=3D"http://www.flysafe-eu.org/wims"=20 xmlns:wfs=3D"http://www.opengis.net/wfs"=20 xmlns:ogc=3D"http://www.opengis.net/ogc"=20 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=20 xsi:schemaLocation=3D"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName=3D"wims:ice_geom"> <ogc:Filter> <ogc:And> <ogc:PropertyIsGreaterThan> <ogc:PropertyName>issue_time</ogc:PropertyName> <ogc:Literal>2006-12-14T12:00:13</ogc:Literal> </ogc:PropertyIsGreaterThan> <ogc:PropertyIsLessThan> <ogc:PropertyName>issue_time</ogc:PropertyName> <ogc:Literal>2006-12-14T13:00:13</ogc:Literal> </ogc:PropertyIsLessThan> </ogc:And> </ogc:Filter> </wfs:Query> </wfs:GetFeature> --=20 S=E9bastien Geindre DPREVI/AERO/DEV sebastien.geindre __at__ meteo.fr 05 61 07 84 93 |