[Mapserver-users] How is the scale calculated??
Murilo Lacerda Yoshida
murilo.yoshida at agx.com.br
Thu Jun 17 17:07:19 PDT 2004
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01C454AF.177CA070
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi all,
I am trying to dynamically change the scalebar units, from meters to
kilometers, when needed. Because if I don't the scale gets too crowded,
on value gets over another, and it becomes a mess.
I did a script to calculate the values in the scale, apparently it is
right, but the values are not equal, although they are close.
See if it is ok
$minX = $map->extent->minx;
$maxX = $map->extent->maxx;
$minY = $map->extent->miny;
$maxY = $map->extent->maxy;
$minPto = calcularUtm($minY, $minX);
$maxPto = calcularUtm($maxY, $maxX);
$deltaX = abs($maxPto->x - $minPto->x);
echo "deltaX = " . $deltaX . "<br>\n";
$deltaY = abs($maxPto->y - $minPto->y);
echo "deltaY = " . $deltaY . "<br>\n";
$diagonal = sqrt( ($deltaX * $deltaX) + ($deltaY * $deltaY) );
echo "diagonal = " . $diagonal . "<br>\n";
$deltaEscala = $map->scalebar->width;
echo "deltaEscala = " . $deltaEscala . "<br>\n";
$intEscala = $map->scalebar->intervals;
echo "intEscala = " . $intEscala . "<br>\n";
$pixelMapaX = $map->width;
echo "pixelMapaX = " . $pixelMapaX . "<br>\n";
$pixelMapaY = $map->height;
echo "pixelMapaY = " . $pixelMapaY . "<br>\n";
$diagonalPixel = sqrt( ($pixelMapaX * $pixelMapaX) + ($pixelMapaY *
$pixelMapaY) );
echo "diagonalPixel = " . $diagonalPixel . "<br>\n";
$escalaX = ($deltaEscala * $deltaX) / $pixelMapaX;
echo "escalaX = " . $escalaX . "<br>\n";
$escalaY = ($deltaEscala * $deltaY) / $pixelMapaY;
echo "escalaY = " . $escalaY . "<br>\n";
$escalaD = ($deltaEscala * $diagonal) / $diagonalPixel;
echo "escalaD = " . $escalaD . "<br>\n";
echo "cada intervalo em x igual a : " . ($escalaX / $intEscala) .
"<br>\n";
echo "cada intervalo em y igual a : " . ($escalaY / $intEscala) .
"<br>\n";
echo "cada intervalo em diagonal igual a : " . ($escalaD / $intEscala) .
"<br>\n";
The scale bar gives me 2 intervals of 220 meters.
With this method I get 2 intervals of 250 meters in the x axis, 2
intervals of 277 meters in the y axis and 2 intervals of 260 meters in
the diagonal.
Does anyone know how the mapserver calculates the scale values?
Thanks,
Murilo
------=_NextPart_000_0001_01C454AF.177CA070
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C454AF.1371EDA0">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EstiloDeEmail17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Tabela normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=3DPT-BR link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:35.4pt'>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> </span>Hi =
all,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> </span>I am trying to dynamically =
change the <span
class=3DSpellE>scalebar</span> units, from meters to kilometers, when =
needed.
Because if I don’t the scale gets too crowded, on value gets over
another, and it becomes a mess…<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> </span>I did a script to calculate the =
values
in the scale, apparently it is right, but the values are not equal, =
although
they are close.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> </span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>See if it is =
ok<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>$<span =
class=3DSpellE>minX</span>
=3D $map->extent->minx;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>$<span =
class=3DSpellE>maxX</span>
=3D $map->extent-><span =
class=3DSpellE>maxx</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>$<span =
class=3DSpellE>minY</span>
=3D $map->extent-><span =
class=3DSpellE>miny</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>$<span =
class=3DSpellE>maxY</span>
=3D $map->extent-><span =
class=3DSpellE>maxy</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>minPto</span></span> =3D
<span class=3DSpellE>calcularUtm</span>($<span =
class=3DSpellE>minY</span>, $<span
class=3DSpellE>minX</span>);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>maxPto</span></span> =3D
<span class=3DSpellE>calcularUtm</span>($<span =
class=3DSpellE>maxY</span>, $<span
class=3DSpellE>maxX</span>);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>deltaX</span></span> =3D
<span class=3DSpellE>abs</span>($<span =
class=3DSpellE>maxPto</span>->x - $<span
class=3DSpellE>minPto</span>->x);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>deltaX</span> =3D " . $<span class=3DSpellE><span =
class=3DGramE>deltaX</span></span>
. "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>$<span =
class=3DSpellE>deltaY</span>
=3D <span class=3DGramE>abs(</span>$<span =
class=3DSpellE>maxPto</span>->y - $<span
class=3DSpellE>minPto</span>->y);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-US'>echo=
</span></font></span><font
size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-US'> "<span class=3DSpellE>deltaY</span> =3D =
" . $<span
class=3DSpellE><span class=3DGramE>deltaY</span></span><span =
class=3DGramE> .</span>
"<<span class=3DSpellE><span =
class=3DGramE>br</span></span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>$diagonal =3D <span
class=3DSpellE><span class=3DGramE>sqrt</span></span><span =
class=3DGramE>(</span> ($<span
class=3DSpellE>deltaX</span> * $<span class=3DSpellE>deltaX</span>) + =
($<span
class=3DSpellE>deltaY</span> * $<span class=3DSpellE>deltaY</span>) =
);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>
"diagonal =3D " . $<span class=3DGramE>diagonal .</span> =
"<<span
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>deltaEscala</span></span>
=3D $<span class=3DSpellE>map</span>-><span =
class=3DSpellE>scalebar</span>-><span
class=3DSpellE>width</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>deltaEscala</span> =3D " . $<span =
class=3DSpellE><span
class=3DGramE>deltaEscala</span></span> . "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>intEscala</span></span>
=3D $<span class=3DSpellE>map</span>-><span =
class=3DSpellE>scalebar</span>-><span
class=3DSpellE>intervals</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>intEscala</span> =3D " . $<span class=3DSpellE><span =
class=3DGramE>intEscala</span></span>
. "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>pixelMapaX</span></span>
=3D $<span class=3DSpellE>map</span>-><span =
class=3DSpellE>width</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>pixelMapaX</span> =3D " . </span></font><font =
size=3D2
face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-US'>$<span class=3DSpellE><span =
class=3DGramE>pixelMapaX</span></span><span
class=3DGramE> .</span> "<<span class=3DSpellE><span =
class=3DGramE>br</span></span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'>$<span =
class=3DSpellE>pixelMapaY</span>
=3D $map->height;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>pixelMapaY</span> =3D " . $<span =
class=3DSpellE><span
class=3DGramE>pixelMapaY</span></span> . "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>diagonalPixel</span></span>
=3D <span class=3DSpellE>sqrt</span>( ($<span =
class=3DSpellE>pixelMapaX</span> * $<span
class=3DSpellE>pixelMapaX</span>) + ($<span =
class=3DSpellE>pixelMapaY</span> * $<span
class=3DSpellE>pixelMapaY</span>) );<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>diagonalPixel</span> =3D " . $<span =
class=3DSpellE><span
class=3DGramE>diagonalPixel</span></span> . "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>escalaX</span></span>
=3D ($<span class=3DSpellE>deltaEscala</span> * $<span =
class=3DSpellE>deltaX</span>)
/ $<span class=3DSpellE>pixelMapaX</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>escalaX</span> =3D " . $<span class=3DSpellE><span =
class=3DGramE>escalaX</span></span>
. "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>escalaY</span></span>
=3D ($<span class=3DSpellE>deltaEscala</span> * $<span =
class=3DSpellE>deltaY</span>)
/ $<span class=3DSpellE>pixelMapaY</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>escalaY</span> =3D " . $<span class=3DSpellE><span =
class=3DGramE>escalaY</span></span>
. "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$<span class=3DSpellE><span =
class=3DGramE>escalaD</span></span>
=3D ($<span class=3DSpellE>deltaEscala</span> * $diagonal) / $<span =
class=3DSpellE>diagonalPixel</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "<span
class=3DSpellE>escalaD</span> =3D " . $<span class=3DSpellE><span =
class=3DGramE>escalaD</span></span>
. "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "cada
intervalo em x igual a : " . ($<span class=3DSpellE><span =
class=3DGramE>escalaX</span></span>
/ $<span class=3DSpellE>intEscala</span>) . "<<span =
class=3DSpellE>br</span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "cada
intervalo em y igual a : " . </span></font><font size=3D2 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-US'>($<s=
pan
class=3DSpellE>escalaY</span> / $<span =
class=3DSpellE>intEscala</span><span
class=3DGramE>) .</span> "<<span class=3DSpellE><span =
class=3DGramE>br</span></span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>echo</span></font></span></s=
pan><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> "cada
intervalo em diagonal igual a : " . </span></font><font size=3D2 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-US'>($<s=
pan
class=3DSpellE>escalaD</span> / $<span =
class=3DSpellE>intEscala</span><span
class=3DGramE>) .</span> "<<span class=3DSpellE><span =
class=3DGramE>br</span></span>>\n";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> </span>The scale bar gives me 2 =
intervals of
220 meters.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> </span>With this method I get 2 =
intervals of 250
meters in the x axis, 2 intervals of 277 meters in the y axis and 2 =
intervals
of 260 meters in the diagonal.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><o:p> </o:p></span=
></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> </span>Does anyone know how the <span
class=3DSpellE>mapserver</span> calculates the scale =
values?<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> =
</span>Thanks,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-US'><span
style=3D'mso-spacerun:yes'> =
</span>Murilo<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt;mso-ansi-language:EN-US'><o:p> </o:p></spa=
n></font></p>
</div>
</body>
</html>
------=_NextPart_000_0001_01C454AF.177CA070--
More information about the MapServer-users
mailing list