[ms4w-users] When I use an EXPRESSION in my map file using FIELD STRING, the condition never returns as true, even though I know the values exist in my table.

Jeff McKenna jmckenna at dmsolutions.ca
Mon Nov 13 10:34:05 EST 2006


I would try to see if OGR/GDAL can find those values using the ogrinfo 
utility and the sql switch:

e.g. ogrinfo -ro PG:dbname=warmerda -sql "SELECT pop_1994 from canada 
where province_name = 'Alberta'"

If that works, I have no idea what is wrong.


jeff




Orlando Giovanny Solarte Delgado wrote:
> Hi.
> 
> When I use an EXPRESSION in my map file using FIELD STRING, the 
> condition never returns as true, even though I know the values exist in 
> my table. <http://postgis.refractions.net/docs/ch04.html#id2525201>
> 
> I am doing something like:
> 
> CLASSITEM "cod_carto"
> 
> CLASS...
>      EXPRESSION "vts"
> ...
> END
> CLASS..
>      EXPRESSION "VTS"
> END
> 
> I am using both lower an upper case, I know VTS value exist in my table 
> postgis, but never returns as true.
> 
> Somebody can help me?
> 
> -- 
> Atentamente,
> 
> Orlando Giovanny Solarte Delgado
> Ing. Desarrollador SIG
> Emprendedor BioSIG
> 
> 

-- 
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca


More information about the ms4w-users mailing list