[mapserver-users] maxscale in php

Daniel Morissette morissette@dmsolutions.ca
Thu, 10 Oct 2002 14:20:27 -0400


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@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.