<br><font size=3 face="Arial">Here is my definition</font>
<br><font size=3 face="Arial">$oMap-&gt;scalebar-&gt;set(&quot;units&quot;,
MS_METERS);</font><font size=3 face="Times New Roman"> </font><font size=3 face="Arial"><br>
$oMap-&gt;scalebar-&gt;outlinecolor-&gt;setRGB(0,0,0);</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
$oMap-&gt;scalebar-&gt;set(&quot;status&quot;, MS_EMBED);</font><font size=3 face="Times New Roman">
</font><font size=2 face="sans-serif"><br>
</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Daniel Morissette &lt;dmorissette@mapgears.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2011-06-17 12:58</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Polluriel potentiel] &nbsp;Re: [mapserver-users]
Scalebar Object in PHP Mapscript</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>On 11-06-17 12:18 PM, Steve.Toutant@inspq.qc.ca wrote:<br>
&gt;<br>
&gt; $oMap-&gt;setProjection is set to 900913 in php mapscript,<br>
&gt; The WMS called is in Projection EPSG:32198, but 900913 is in the list
of<br>
&gt; available projections<br>
&gt;<br>
<br>
Did you set the units at the map level? Setting the projection is not <br>
enough. i.e.<br>
<br>
$oMap-&gt;set(&quot;units&quot;, MS_METERS);<br>
<br>
-- <br>
Daniel Morissette<br>
http://www.mapgears.com/<br>
Provider of Professional MapServer Support since 2000<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>