[Date Prev][Date Next] [Chronological] [Thread] [Top]

[Mapserver-users] Class logical expression - date comparison



Hello,

I'm trying to write a logical expression to filter a shapefile's contents
based on a Date type field.

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...

How do I perform a value-like comparison with dates?

I have tried:
- ([DATE]=dd-mm-yyyy)
- ([DATE]=yyyy-mm-dd)
- ([DATE]=#dd-mm-yyyy#)
- (#[DATE]#=#dd-mm-yyyy#)
- ...
but I'm not having any luck :(


From daniel.berstein@dmapas.com" <daniel.berstein@dmapas.com  Wed Dec  4 17:03:08 2002
From: daniel.berstein@dmapas.com" <daniel.berstein@dmapas.com (Daniel Berstein)
Date: Wed, 4 Dec 2002 14:03:08 -0300
Subject: [Mapserver-users] PHP/MapScript
Message-ID: <01C29B9D.E0104A90.daniel.berstein@dmapas.com>

I believe you are using incompatible version of php_mapscript and php 
(php_mapscript_X.dll and php version Y).

What version of PHP are you using? Create a test.phtml file with the 
following line:
<?php phpinfo();?>

The output of the above script should tell your PHP version (and probably 
the same error you are reporting). Then take a look at your extensions 
directory (on Windows usually C:\Php\extensions) and search for 
php_mapscript_NN.dll. NN should be the version of php_mapscript you are 
using.

Regards,

Daniel Berstein Z.
Jefe de Proyectos, dmapas.com
Eduardo Hyatt 583, Providencia, Santiago CHILE
*(56) (2) 222 22 60


-----Mensaje original-----
De:	LUIS FRANCISCO ARAYA ARANA [SMTP:araya_lf@hotmail.com]
Enviado el:	Miercoles, 04 de Diciembre de 2002 13:39
Para:	mapserver-users@lists.gis.umn.edu
Asunto:	[Mapserver-users] PHP/MapScript

I'm developing a app that need to render a point from a given
coordinate... I try to use php/mapscript, but php give me the next
warning:

PHP Warning: MapScript: Unable to initialize module
Module compiled with debug=0, thread-safety=0 module API=20020429
PHP compile with debug=0, thread-safety=0 module API=20010901
These option need to match
in Unknown on line 0

Someone know why???

Is there other way to draw a point without using the MapScript?
Because I dont want to use php as a CGI.... I configure the Web Server
to run the scripts when the they end with .phtml extension and when they
end with the .php it uses the DSO.
Any help?

Thank you...





  _____

Obtenga el maximo provecho del Web. Descarga GRATUITA de MSN Explorer:
http://explorer.msn.es/intl.asp#es <http://explorer.msn.es/intl.asp#es>


 <<Archivo: ATT00001.htm>>