[mapserver-users] Dynamic expressions in php mapscript 3.6
Daniel Morissette
morissette at dmsolutions.ca
Tue Jul 16 13:58:29 PDT 2002
Does it work in 3.6 if you set the same expression directly in the
mapfile instead of doing it via the setExpression() method?
Dylan Rawlins wrote:
>
> Hi,
>
> I have just updated to 3.6.1 from 3.5 but can't get my dynamic
> expressions to work. The expression is:
>
> $Query = "('[DAY]' =~ /$weekday/ AND '[OFFENCE]' =~ /Burglary
> Residential/ AND '[MONTH]' =~ /$month/ AND '[TIMECODE]' =~
> /$time/)";
> $class = $cLayer->getClass(0);
> $class->setexpression($Query);
>
> This worked fine in 3.5 but doesn't draw in 3.6.1 even though the
> legend picks it up.
>
> Any ideas on how to fix it or a better way of running multiple
> attribute expressions?
>
> Thanks
> Dylan
> http://www.mapserver.co.za
> Innovative Geographic Information Systems
More information about the MapServer-users
mailing list