<div>Thanks you guys.&nbsp; You are the greatest.</div>
<div>&nbsp;</div>
<div>Linda Rawson<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/26/07, <b class="gmail_sendername">Arnd Wippermann</b> &lt;<a href="mailto:arnd.wippermann@web.de">arnd.wippermann@web.de</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello Linda,<br><br>to get myself some knowledge with scales and resolutions, i have build a<br>little example. The resolution for your extent must be 
0.00009633333333333<br>(= dx/WIDTH), then you get - with the right centerpoint - your area.<br>Change in your resolutions 0.0000858306884765625 with 0.00009633333333333.<br>One hint: to set own resolutions for google layers is not possible.
<br><br>To calculate scales for various units you must keep in mind to take the<br>right factor. Also must dx/WIDTH=dy/HEIGHT.<br><br>Einheit Faktor<br>inches&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<br>ft&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12<br>mi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;63360<br>m&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;39,3701
<br>km&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;39370,1<br>dd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4374754<br>in&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<br><br>dpi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 72<br>Einheit&nbsp;&nbsp; dd<br>Faktor&nbsp;&nbsp;&nbsp;&nbsp;4374754<br><br>Left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -122,1655000<br>Right&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-122,1077000<br>Top&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;43,0083000<br>Bottom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 42,9505000
<br>WIDTH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pixel<br>HEIGHT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pixel<br>dx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0,0578&nbsp;&nbsp;&nbsp;&nbsp; LE<br>dy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0,0578&nbsp;&nbsp;&nbsp;&nbsp; LE<br>Scale&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30343,29374<br>Resolution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0,000096333333<br><br>Scale = dx/WIDTH * dpi * Faktor
<br>Resolution = dx/WIDTH<br><br>I hope that will help to solve your problem.<br><br>Mit freundlichen Grüssen<br><br>Arnd Wippermann<br><a href="http://gis.ibbeck.de/ginfo/">http://gis.ibbeck.de/ginfo/</a><br><br><br>________________________________
<br><br>Von: <a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a> [mailto:<a href="mailto:users-bounces@openlayers.org">users-bounces@openlayers.org</a>] Im<br>Auftrag von Linda Rawson<br>Gesendet: Mittwoch, 26. September 2007 06:05
<br>An: <a href="mailto:users@openlayers.org">users@openlayers.org</a><br>Betreff: [OpenLayers-Users] Formula for calculating resolution?<br><br><br>I have a legacy mapping system that I am trying to convert to openlayers.
<br>MG.&nbsp;&nbsp;It is bad.<br><br>Anyway, I have the following dimensions of a 600 X 600 window.<br>var bounds = new OpenLayers.Bounds(-122.1655, 42.9507, -122.1077, 43.008);<br><br>I need the four lat/lon corners to be exactly these numbers at a certain
<br>zoom level.&nbsp;&nbsp;What would I set as the resolution in the resolution array to<br>get this?<br><br>My resolution array is the following:<br><br>var layerResolutions =<br>[0.703125,0.17578125,0.0439453125,0.0054931640625,0.0006866455078125
,0.00017<br>1661376953125,0.0000858306884765625,0.00004291534423828125,0.000021457672119<br>140625,0.000010728836059570312];<br><br>Thanks in advance,<br><br>Linda Rawson<br><br><br></blockquote></div><br>