[mapserver-users] Possible to change scalebar units via PHP/Mapscript?

Assefa Yewondwossen assefa at dmsolutions.ca
Thu Mar 28 06:19:29 PST 2002


Hi There,

You can set the units parameter of the scalebar object to MS_KILOMETERS :
something like :

  $scalebarobj->set("units", MS_KILOMETERS);

Later,

Dan Barron wrote:

> Hi all,
>
> Does anyone know if it is possible to change the scalebar units via
> PHP/mapscript?  I'm trying to determine if it is possible to have the
> scalebar units defined as, say 'miles' in the .map file, then change them
> to 'kilometers' in the MapObj class via PHP before rendering the scalebar
> image.
>
> Thanks,
>
> Dan Barron
> Destination Software LLC

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056
Fax:   (613) 565-0925
----------------------------------------------------------------





More information about the MapServer-users mailing list