[Mapserver-users] Class logical expression - date comparison

Vinko Vrsalovic vinko at cprsig.cl
Wed Dec 4 14:59:10 EST 2002


On Wed, Dec 04, 2002 at 05:48:07PM -0000, Nelson Luna Silvestre wrote:
> 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')"
 
I'm not sure if there's an easy way to do it through Mapserver accessing
shapefiles. You could try PostGIS and use a real date datatype, then you
can use standard SQL queries that support dates.

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



More information about the mapserver-users mailing list