<HTML>
<HEAD>
<TITLE>Assorted formatting queries</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I&#8217;m just finishing the first iteration of a Mapserver template and have a number of small queries that I cannot find the answers to in the documentation:<BR>
<BR>
1. I am using [scale] to insert the current map scale (as &#8220;1:[scale]&#8221;). &nbsp;However, the value inserted by mapserver includes many decimal places and would be better rounded to a reasonable number of significant figures before it is displayed. &nbsp;Is there any easier way of doing this than writing a rounding routine in Javascript?<BR>
<BR>
2. I am using [scalebar] to insert a scalebar. &nbsp;However, when the end of the scalebar should be showing a scale larger than about 10^6, the image generated by mapserver collapses into a mess of overlapping characters, all in an image only about 10 pixels across, although the scalebar at smaller scales is 200 pixels wide. &nbsp;Is this a bug in mapserver, or should I be doing something different? &nbsp;The HTML is:<BR>
&lt;img title=&#8221;scalebar&#8221; alt=&#8221;scalebar&#8221; align=&#8221;right&#8221; src=&#8221;[scalebar]&#8221;&gt; and the map entry is:<BR>
SCALEBAR<BR>
&nbsp;&nbsp;&nbsp;&nbsp;IMAGECOLOR &nbsp;&nbsp;&nbsp;255 255 255<BR>
&nbsp;&nbsp;&nbsp;&nbsp;LABEL<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;COLOR &nbsp;&nbsp;&nbsp;0 0 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SIZE &nbsp;&nbsp;&nbsp;SMALL<BR>
&nbsp;&nbsp;&nbsp;&nbsp;END<BR>
&nbsp;&nbsp;&nbsp;&nbsp;STYLE &nbsp;&nbsp;&nbsp;1<BR>
&nbsp;&nbsp;&nbsp;&nbsp;SIZE 200 4<BR>
&nbsp;&nbsp;&nbsp;&nbsp;COLOR 0 0 0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;UNITS &nbsp;&nbsp;&nbsp;METERS<BR>
&nbsp;&nbsp;&nbsp;&nbsp;INTERVALS &nbsp;&nbsp;&nbsp;2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;TRANSPARENT &nbsp;&nbsp;&nbsp;FALSE<BR>
&nbsp;&nbsp;&nbsp;&nbsp;STATUS &nbsp;&nbsp;&nbsp;ON<BR>
END<BR>
<BR>
3. I am displaying a Grid (Graticule) on the map, following the example in the Mapfile Reference document, which uses a separate Grid layer. &nbsp;However, the Grid layer is included in the layers shown in the Legend, which I don&#8217;t want. &nbsp;How can I exclude the Grid layer from the Legend?<BR>
<BR>
4. The Map being displayed is not a &#8216;real world&#8217; map, but a map of a virtual environment. &nbsp;This environment is square, of side 2^32 &#8211;1 units. &nbsp;Mapserver manages to display this effectively, I am pleased to say. However, this virtual world has no units of distance (well, at least not meters or miles), but the scalebar seems to insist on there being some distance unit (meters by default). &nbsp;Is there a way of tell the scalebar generation routine not to show a unit at all at the end of the scalebar?<BR>
<BR>
Thanks for any hints about any of these queries!<BR>
<BR>
<BR>
Nigel<BR>
</SPAN></FONT>
</BODY>
</HTML>