<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="address"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="State"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="Street"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Verdana;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle19 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle20 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>Julian -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>No, that's not correct. As Greg pointed out, MINSCALE
and MAXSCALE are scale ratios (actually, scale ratio denominators) and as such
have no units. Therefore, changing your mapfile UNITS will have no
effect.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>A map scale must refer to two measurements - the size of
the object on the map, and the size of the real, physical object it
represents. I'm not sure what your "3280m zoom" means, since you're only
providing one of those two numbers - you must mean that 3280m on the ground is
displayed as some particular size on the map, but you don't say what that size
is.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>There is a problem with digital images and scale
ratios. If MapServer creates a digital output image, it can't really tell
how large it is on your screen or printer. You can fiddle with the
horizontal and vertical size controls on your monitor and change the size of
that image and MapServer can't possibly know that. So if MapServer refers
to a scale of 1:10,000, it means that (for example) 10,000 centimeters on the
ground (100 meters) equals one centimeter on the screen. But you don't
know how many pixels per centimeter your monitor is showing, so you can't really
know how much of your image is displayed in that one centimeter on the
screen.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>To get around this problem, MapServer assumes by default
that your output device has a resolution of 72 pixels per inch. The
RESOLUTION statement in your mapfile can be used to change this default to a
different value. But it's still just an estimate, since you don't know the
real value on your user's screen. Setting the RESOLUTION simply allows you
do to the math differently for MAXSCALE and MINSCALE calculations, which you may
find more convenient (it also affects a few other things).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>The RESOLUTION and MAX/MINSCALE values together can be used
to make some sense out of this. In my example above, we now know that
MapServer thinks that there are 72 pixels in one inch on the screen. A
scale of 1:10,000 means 100m on the ground = 1cm on the screen. There are
2.54cm in one inch, so 1cm = 28.34 pixels (at 72 pixels per inch). Your
image shows 100m in 28.34 pixels, so each pixel represents 3.53 meters on the
ground. That value doesn't change if you modify the size of the image, and
is a more sensible way to think of digital image scale (meters per
pixel).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>So - a MAXSCALE value of 12000 means that the maximum scale
ratio is 1:12,000. At 72 pixels per inch, that means that 72 pixels (one
inch) = 12,000 inches on the ground. 12,000 / 72 = 166.667 inches per
pixel, so each pixel is 4.2344 meters on the ground. When a pixel would
cover more than 4.2344 meters of ground, that layer will be turned off because
you exceeded the MAXSCALE setting.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2>I can't figure out your "scale factor" without the other
half of your scale definition (3280m = ???), but I'd be happy to work through
that example if you provide the additional information.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006> <FONT
face=Arial color=#0000ff size=2>- Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312413916-29082006>
<P><FONT size=2>Ed McNierney<BR>President and Chief Mapmaker<BR>TopoZone.com /
Maps a la carte, Inc.<BR>73 Princeton Street, Suite 305<BR>North Chelmsford,
MA 01863<BR>ed@topozone.com<BR>(978) 251-4242 </FONT></P></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Julian
Parker<BR><B>Sent:</B> Tuesday, August 29, 2006 12:45 AM<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] FW:
MINSCALE & MAXSCALE Units<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Greetings
list,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It was my assumption that I could
set UNITS as meters in a layer and that the MIN & MAX SCALE values would
utilize these units. This does not seem to be the case – a MAXSCALE value of
12000 on one layer will have the layer display at 3936m zoom. Another layer with
a MAXSCALE of 10000 will display at 3280m zoom. The ‘scale factor’ equals about
3.05. How is it that this ‘scale factor’ can be altered or the units used for
scale changed? What am I missing?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in
advance!<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-AU
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P style="MARGIN: 0in 0in 0pt"><FONT face=Verdana size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Regards<BR><BR><B><FONT
color=#006699><SPAN style="FONT-WEIGHT: bold; COLOR: #006699">Julian
Parker<BR>Systems Analyst</SPAN></FONT></B></SPAN></FONT><o:p></o:p></P>
<P style="MARGIN: 0in 0in 0pt; WORD-SPACING: 0px"><FONT face=Verdana
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Digital Mapping
Solutions<BR>Level 2, <st1:Street w:st="on"><st1:address w:st="on">2 Hardy
Street</st1:address></st1:Street><BR><st1:place w:st="on">SOUTH <st1:City
w:st="on">PERTH</st1:City></st1:place> <st1:State w:st="on">WA</st1:State>
6151<BR>Ph: 08 9474 6311 Fax: 08 9474 6411<BR><st1:place w:st="on"><st1:City
w:st="on">Mobile</st1:City></st1:place>: 0438 844 079<BR><A
title=http://www.mapsolutions.com.au/
href="http://www.mapsolutions.com.au/">www.mapsolutions.com.au</A></SPAN></FONT>
<o:p></o:p></P>
<P style="MARGIN: 0in 0in 0pt; WORD-SPACING: 0px"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P>
<P style="MARGIN: 0in 0in 0pt; WORD-SPACING: 0px"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt"><A
title=http://www.mapsolutions.com.au/services/training/index.html
href="http://www.mapsolutions.com.au/services/training/index.html"><FONT
face=Verdana size=1><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana">MapInfo
Training </SPAN></FONT></A></SPAN></FONT><FONT face=Verdana size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana">| <A
title=http://www.mapsolutions.com.au/products/intramaps/index.html
href="http://www.mapsolutions.com.au/products/intramaps/index.html">IntraMaps</A>
| <A title=http://www.mapsolutions.com.au/products/intermaps/index.html
href="http://www.mapsolutions.com.au/products/intermaps/index.html">InterMaps</A>
| <A title=http://www.mapsolutions.com.au/products/mobilemap/index.html
href="http://www.mapsolutions.com.au/products/mobilemap/index.html">MobileMap</A>
| <A title=http://www.mapsolutions.com.au/news/index.html
href="http://www.mapsolutions.com.au/news/index.html">News</A></SPAN></FONT><o:p></o:p></P>
<P class=MsoAutoSig><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-AU
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN lang=EN-AU
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disclaimer<o:p></o:p></SPAN></FONT></B></P>
<P class=MsoNormal><FONT face=Arial color=black size=1><SPAN lang=EN-AU
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Arial">This email and any
files transmitted with it are intended solely for the use of the individual or
entity to whom they are addressed.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=black size=1><SPAN lang=EN-AU
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Arial">Although every effort
has been made to ensure the correctness and integrity of attachments that may be
included in this email, this can only apply to the unaltered/uncorrupted form. A
copy of the original attachment is available from our office should you require
it. </SPAN></FONT><FONT size=1><SPAN
style="FONT-SIZE: 8pt"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=black size=1><SPAN lang=EN-AU
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Arial">Alternately, if further
verification is required please request a hard copy
version.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-AU
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV></BODY></HTML>