<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [mapserver-users] Map Scale</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>That's about as succinct an explanation as I've heard/seen.</FONT>
</P>

<P><FONT SIZE=2>So if the map units were in meters, would one plug in a resolution value of 182.88 pixels per centimeter (72 * 2.54) to derive the scale?</FONT></P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Ed McNierney [<A HREF="mailto:ed@topozone.com">mailto:ed@topozone.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Monday, November 11, 2002 4:58 PM</FONT>
<BR><FONT SIZE=2>To: vinko@cprsig.cl; mapserver-users@lists.gis.umn.edu</FONT>
<BR><FONT SIZE=2>Subject: RE: [mapserver-users] Map Scale</FONT>
</P>
<BR>

<P><FONT SIZE=2>Vinko -</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>The scale number has no units - a scale ratio, as in &quot;1:25,000&quot; scale.</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>Scale ratios basically make no sense with a digital image, unless you specify the physical output (display or print) resolution of that image in pixels per some physical unit.&nbsp; By default, MapServer assumes that the output device has a resolution of 72 pixels per inch, and computes the scale ratio that way.</FONT></P>

<P><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>For example, if MapServer generated a line that it knows is 12 miles long (because MapServer knows such things), and the resulting image is 144 pixels long (which MapServer also knows since it generated the image), then at 72 pixels per inch the image will be two inches long, which is a scale ratio of 12 miles = 2 inches or 6 miles = 1 inch or 380,160 inches = 1 inch.&nbsp; That's a scale of 1:380,160, which is what MapServer will report.</FONT></P>

<P><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>You can use the RESOLUTION keyword in the MAP file to change the presumed output resolution.&nbsp; Unless you control the output device completely, reporting the scale as a ratio will never be accurate - but it's what most users expect, so it's worth doing.</FONT></P>

<P><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp; - Ed</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>Ed McNierney</FONT>
<BR><FONT SIZE=2>President and Chief Mapmaker</FONT>
<BR><FONT SIZE=2>TopoZone.com</FONT>
<BR><FONT SIZE=2>ed@topozone.com</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>-----Original Message----- </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>From: Vinko Vrsalovic [<A HREF="mailto:vinko@cprsig.cl">mailto:vinko@cprsig.cl</A>] </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Sent: Mon 11/11/2002 7:32 PM </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>To: mapserver-users@lists.gis.umn.edu </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Cc: </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Subject: [mapserver-users] Map Scale</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Hello,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>I've been looking at the archives, but didn't find a clear explanation</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>about this issue: The scale number shown by Mapserver is measured in</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>what? and in what ways it can be useful for output?</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Because it doesn't make sense viewing the image, compared to what is</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>'normal' in real paper maps.</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Thanks,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>--</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Vinko Vrsalovic &lt;el[|-@-|]vinko.cl&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2><A HREF="http://www.cprsig.cl" TARGET="_blank">http://www.cprsig.cl</A></FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</P>

</BODY>
</HTML>