MapServer / MapServer-import

3 stars 2 forks source link

[WFS-Server] enable temporal support on filters #1583

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: tomkralidis Date: 2005/12/20 - 20:41

Note: see email thread below (bottom to top)

--

Tom,

 I think that should work. I checked a bit the code and It should not be
too bad to integrate. You should post it as an enhancement for sure.

Later,

Kralidis,Tom [Burlington] wrote:

>Assefa,
>
>Thanks for the info.  What about doing it like this:
>
>- WFS filter is sent
>- mapwfs.c checks mapfile to see if LAYER/METADATA/"ows_timeitem" matches
Property element
> - if yes, do a time-enabled expression
> - if no, do a literal expression as per usual
>
>Comments?
>
>..Tom
>
>
>
>-----Original Message-----
>From:  UMN MapServer Users List on behalf of Yewondwossen Assefa
>Sent:  Tue 20-Dec-05 14:00
>To:    MAPSERVER-USERS@LISTS.UMN.EDU
>Cc:   
>Subject:       Re: [UMN_MAPSERVER-USERS] temporal queries via WFS
>Tom,
>
> This end up to be setting the expression as It was a litteral
>expression instead of setting it using the back tics that indicates to
>mapserver to do time comparing (`[time_field]` ge `2004-10-12`). There
>is no detection right now to see if the filer parameters are time values
>or not. Not even sure how we should detect it. If we can find a way or
>logic to indicate that the value is a time, setting the filter is pretty
>easy.
>
>Later,
>Kralidis,Tom [Burlington] wrote:
>
> 
>
>>Hi,
>>
>>I'd like to do a GetFeature request, something like:
>>
>>http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?service=WFS&version=1.0.0&request=GetFeature&typename=obs&filter=<Filter><PropertyIsGreaterThan><Property>datetime</Property><Literal>2002-10-30T00:00:00Z</Literal></PropertyIsGreaterThan></Filter>
>>
>>The result should bring back two results (i.e. more recent than 2002), but
returned are all the records.  The data is configured for WMS Time support.
>>
>>Is it possible to do temporal slices in MapServer WFS in this fashion?
>>
>>..Tom
>>
tbonfort commented 12 years ago

Author: cplist Date: 2007/07/18 - 21:29 Hi, all. I am wondering where this feature request fits in the release priority queue. We are working on an OGC Interoperability Experiment (http://www.oostethys.org/ogc-oceans-interoperability-experiment) that would greatly benefit from this enhancement. As well as what appears to me to be a related eventTime SOS bug fix request http://trac.osgeo.org/mapserver/ticket/2154. Of course, I'm happy to help in whatever way possible.

tbonfort commented 12 years ago

Author: assefa Date: 2007/07/23 - 15:35 The work to be done on this is the following:

tbonfort commented 12 years ago

Author: cplist Date: 2007/07/23 - 19:36 Adding simple test case (using a CSV). There are 2 records (for the 12th and the 15th) in the CSV. Ideally, I'd like for the following WFS query to only return 1 result.

http://localhost/cgi-bin/mapserv?map=/tmp/test.map&request=getfeature&service=wfs&version=1.0.0&typename=data_lyr&eventTime=gml:TimePeriodgml:beginPosition2007-07-12/gml:beginPositiongml:endPosition2007-07-12/gml:endPosition/gml:TimePeriod

Untar in /tmp to maintain dir structure.

I'd also like to see the GetCapabilities list something about time.

tbonfort commented 12 years ago

Author: assefa Date: 2007/07/25 - 15:43 Charlton,

Note thate the time support in wfs would have to be through the Filter encoding as described originally in this bug. Somethink like this request=GetFeature&typename=obs&filter=datetime2002-10-30T00:00:00Z

I will not be possible to support eventTime parameter as you decribed it here since It is not part of the wfs 1.0.0 specifications. There is also no way to adevertize the time support in the GetCapbilities. The GetCapbilities of wfs advertixe the support of Operators (such as comparison operators PropertyIsEqual ...). The time is just a special case used with these operators.