[Mapserver-users] Class logical expression - date comparison

Nelson Luna Silvestre nls at myrealbox.com
Wed Dec 4 09:48:07 PST 2002


Ok, ok... Maybe I didn't explained me right.

My goal is to do a numeric/date comparison in a date field.
"('[DATE]'='01-01-2001')" evaluates the same way as
"('[DATE]'eq'01-01-2001')".
The problem is not being able to get a valid result from
"('[DATE]'>'01-01-2001')"

Anyway, thanks for your fast reply.

Nelson


-----Original Message-----
From: Vinko Vrsalovic [mailto:vinko at cprsig.cl]
Sent: quarta-feira, 4 de Dezembro de 2002 19:34
To: Nelson Luna Silvestre
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Class logical expression - date
comparison


On Wed, Dec 04, 2002 at 04:54:23PM -0000, Nelson Luna Silvestre wrote:

> I noticed that it's possible to evaluate a expression like:
>
> ('[DATE]'='01-01-2001')
>
> but this is a string comparison that does not takes me far enough...

That's not a string comparison, is a numeric comparison, try

('[DATE]' eq '01-01-2001')

--
Vinko Vrsalovic <el[|- at -|]vinko.cl>
http://www.cprsig.cl





More information about the MapServer-users mailing list