scalebar units

Stéphane RIFF stephane.riff at CERENE.FR
Thu Mar 17 03:14:13 EST 2005


I want to change scalebar units via phpmapscript when scale under a
certain number.
I want to change from MS_KILOMETERS to MS_METERS.
I did it like this :
  $map->scalebar->set("units",MS_METERS);

This seems to work because when i look in the mapfile after
$map->save(<filename>)
I see UNITS METERS in the scalebar section. The problem
is when i reload the .map file i've just save and draw an image from it
the scale is still in KILOMETERS........

Does someone success in changing scalebar units with phpmapscript ???
Thanks



More information about the mapserver-users mailing list