scale is an attribute of mapObj. I don&#39;t know for phyton but for java its simple: map.getScale()<br><br><div class="gmail_quote">On Nov 14, 2007 6:50 PM, David Niergarth &lt;<a href="mailto:dn@hddesign.com" target="_blank">
dn@hddesign.com
</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Using an html template, I can render the current map scale using [scale]. How
<br>can I do this from mapscript?<br><br>I&#39;m not using html templates. Instead, I start with a map file, instantiate it<br>in Python mapscript, add various layers, then render the map and legend.<br><br>I&#39;m trying to tweak my map file (adjusting MAXSCALE, MINSCALE for layers) but
<br>it&#39;s tedious without knowing what mapserver thinks the current map scale is. Is<br>there some simple way to calculate the current scale?<br><br>Thanks for any suggestions,<br><font color="#888888"><br>--David<br>
</font>
</blockquote></div><br>