<HTML>
<HEAD>
<TITLE>Assorted formatting queries</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I’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 “1:[scale]”). 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. 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. 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. Is this a bug in mapserver, or should I be doing something different? The HTML is:<BR>
<img title=”scalebar” alt=”scalebar” align=”right” src=”[scalebar]”> and the map entry is:<BR>
SCALEBAR<BR>
IMAGECOLOR 255 255 255<BR>
LABEL<BR>
COLOR 0 0 0<BR>
SIZE SMALL<BR>
END<BR>
STYLE 1<BR>
SIZE 200 4<BR>
COLOR 0 0 0<BR>
UNITS METERS<BR>
INTERVALS 2<BR>
TRANSPARENT FALSE<BR>
STATUS 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. However, the Grid layer is included in the layers shown in the Legend, which I don’t want. How can I exclude the Grid layer from the Legend?<BR>
<BR>
4. The Map being displayed is not a ‘real world’ map, but a map of a virtual environment. This environment is square, of side 2^32 –1 units. 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). 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>