shapefile date type field

Steve Lime steve.lime at DNR.STATE.MN.US
Mon Nov 28 13:15:27 EST 2005


MapServer treats everything as a string unless you explicitly use expressions
to change the context in which a value is being referenced. So, for example 
you can use a number stored as a string in math expressions and you can
use numbers in string expressions. To put a value into date context you need
to enclose it in backtics, e.g.:

  (`[DATECOL]` < `2004-10-20`)

Steve

>>> Pierre GIRAUD <bluecarto at GMAIL.COM> 11/28/05 11:39 AM >>>
Hi all,

I have a shapefile with attribute datas. One field is of date type.
An orginfo gives it for integer type while jump says it's of date type
Is date type in the shapefile specifications ?
Is Mapserver able to tell what type it is on query results ?

Thx

Pierre GIRAUD



More information about the mapserver-users mailing list