<br><font size=2 face="sans-serif">Yes the units are set.</font>
<br><font size=3 color=#1f497d face="Calibri">What do you mean by &#8220;</font><font size=3 face="Arial">the
map is well scaled but the scalebar is not</font><font size=3 color=#1f497d face="Calibri">
&#8220;?</font>
<br><font size=2 face="sans-serif">I mean the image printed is the same
size as the map in my application.</font>
<br><font size=2 face="sans-serif">But it seems that the scalebar is not
appropriate</font>
<br>
<br><font size=2 face="sans-serif">$oMap-&gt;setProjection is set to 900913
in php mapscript, </font>
<br><font size=2 face="sans-serif">The WMS called is in Projection EPSG:32198,
but 900913 is in the list of available projections</font>
<br>
<br><font size=2 face="sans-serif">Is it possible that php mapscript returns
the map image in 900913, but a scalebar in 32198?</font>
<br><font size=2 face="sans-serif">Any other ideas</font>
<br><font size=2 face="sans-serif">Thank you for your help,</font>
<br><font size=2 face="sans-serif">Steve<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Lime, Steve D (DNR)&quot;
&lt;steve.lime@state.mn.us&gt;</b> </font>
<p><font size=1 face="sans-serif">2011-06-16 18:31</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">&quot;Steve.Toutant@inspq.qc.ca&quot;
&lt;Steve.Toutant@inspq.qc.ca&gt;, &quot;mapserver-users@lists.osgeo.org&quot;
&lt;mapserver-users@lists.osgeo.org&gt;</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">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><font size=3 color=#1f497d face="Calibri">What do you mean by &#8220;</font><font size=3 face="Arial">the
map is well scaled but the scalebar is not</font><font size=3 color=#1f497d face="Calibri">
&#8220;? Other common params would be SIZE, STYLE and INTERVALS. Does the map
have units set?</font>
<br><font size=3 color=#1f497d face="Calibri">&nbsp;</font>
<br><font size=3 color=#1f497d face="Calibri">Steve</font>
<br><font size=3 color=#1f497d face="Calibri">&nbsp;</font>
<br><font size=3 face="Tahoma"><b>From:</b> mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Steve.Toutant@inspq.qc.ca<b><br>
Sent:</b> Thursday, June 16, 2011 12:29 PM<b><br>
To:</b> mapserver-users@lists.osgeo.org<b><br>
Subject:</b> [mapserver-users] Scalebar Object in PHP Mapscript</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Arial"><br>
Hi,</font><font size=3 face="Times New Roman"> </font><font size=3 face="Arial"><br>
I create a scalebar like this</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
$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">
<br>
</font><font size=3 face="Arial"><br>
And create an image of the map with the scalebar embedded</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
On the image, the map is well scaled but the scalebar is not.</font><font size=3 face="Times New Roman">
<br>
</font><font size=3 face="Arial"><br>
Is the code above good? Is there some more parameters I should set?</font><font size=3 face="Times New Roman">
</font><font size=3 face="Arial"><br>
thanks</font><font size=3 face="Times New Roman"> </font><font size=3 face="Arial"><br>
Steve</font>
<br>
<br>
<br>