POSGIS timefilter date_trunc bug

Denis Nadeau denis.nadeau at GMAIL.COM
Wed Jun 28 13:55:49 PDT 2006


Hi,

I found the solution to this problem.

When using shp2pgsql the data type for the date and time column are set to
varchar datatype.

Make sure that the table was create with DATE datatype for timestamps
columns.

Example:

CREATE TABLE "mapserver" (gid serial PRIMARY KEY, "location" varchar, "time"
date, "imgdate" date);

The WMS time filter works fine now with PostGIS connection.

Regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060628/11c25843/attachment.htm>


More information about the MapServer-users mailing list