[mapserver-users] maxscale in php
Daniel Morissette
morissette at dmsolutions.ca
Thu Oct 10 11:20:27 PDT 2002
Pedro Carrasco wrote:
>
> I'm defined my map file with maxscale set in some layers, but in some cases
> I want to set the maxscale manually in php, I try to do
> layer->set('maxscale','500000');
> But it does nothing.
>
> how could I set the maxscale with php??
>
Are you running the latest 3.6.3 release?
There was a bug (fixed in 3.6.3) where passing a numeric value as a
string like you did would give unpredictable results.
You can either upgrade to 3.6.3 or try changing your code to:
$layer->set('maxscale', doubleval('500000'));
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list