[mapserver-users] MAPSCRIPT - queryByAttributes on WFS layer

Daniel Morissette dmorissette at mapgears.com
Thu Jan 7 13:30:30 EST 2010


Charlotte DECLERCQ wrote:
> Hello Daniel and thanks for the quick answer.
> 
> $oLayer->queryByAttributes($m_Champs, "(".stripslashes($m_Requete).")", 
> MS_MULTIPLE );
> 
> doesn't seem to work with $m_Requete : upper(gid) = upper(\'140\').
> 

I don't think MapServer Logical Expressions support the upper() 
operator. See 
http://mapserver.org/mapfile/expressions.html#mapserver-expressions


> Is it possible to do some comparison like gid > 140 ... on a WFS layer?
> I know it is possible on other types of layers.
> 

Yes, use gid > 140 as your expression.

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-users mailing list