[Mapserver-users] PhpMapscript - fields types
W. Steph
chewbizz@hotmail.com
Fri, 04 Jul 2003 11:37:18 +0000
Hello list !
I can't find a way to get the types of the fields of shape objects.
I need to know if each field is a string (or varchar...) or an integer, or a
date.
I know i can use something like this :
$fieldValue = $myShapeObj->values[$fieldName];
if (is_string($fieldValue))
{...}
if (is_int($fieldValue))
{...}
But doing this way, I won't find if the field is a date (I think is_string
will return true with a date)
Maybe there's a solution with a layer object... I don't know... I didn't
find any infos in mapscript reference.
Any ideas ???
Thank you
Steph
_________________________________________________________________
Découvrez les nouvelles émoticônes animées de http://g.msn.fr/FR1001/866
MSN Messenger nouvelle formule
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users