<div dir="ltr">Makes complete sense to me at first glance. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 22, 2019 at 3:48 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
when serving vector through WFS currently, we can use the gml_[item name]_type <br>
to define the type of a field. Currently we have a value "Date" whose <br>
semantics is rather loose. All input backends (OGR, Oracle, MSSQL, PostGIS) <br>
use it whereas they have distinct types for Date (without time), DateTime, and <br>
Time (without date). MapServer having internally a single type makes that when <br>
using OGR output (for example GeoJSON), we'll have lost some information, and <br>
thus the OGR output currently prefers to use a OGR OFTDateTime to avoid <br>
potentially losses. But "2019-10-22T00:00:00Z" is not semantically equivalent <br>
to "2019-10-22".<br>
So my proposal would be to change (define) Date to be a Date without time <br>
information, and add DateTime and Time types.<br>
<br>
Thoughts ?<br>
<br>
(note: some backends like Oracle and PostGIS have distinctions between <br>
DateTime with or without timezone, but we probably don't need to go to that <br>
level of subtelty)<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a></blockquote></div>