<div>Thanks you guys. You are the greatest.</div>
<div> </div>
<div>Linda Rawson<br><br> </div>
<div><span class="gmail_quote">On 9/26/07, <b class="gmail_sendername">Arnd Wippermann</b> <<a href="mailto:arnd.wippermann@web.de">arnd.wippermann@web.de</a>> 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 1<br>ft 12<br>mi 63360<br>m 39,3701
<br>km 39370,1<br>dd 4374754<br>in 1<br><br>dpi 72<br>Einheit dd<br>Faktor 4374754<br><br>Left -122,1655000<br>Right -122,1077000<br>Top 43,0083000<br>Bottom 42,9505000
<br>WIDTH 600 pixel<br>HEIGHT 600 pixel<br>dx 0,0578 LE<br>dy 0,0578 LE<br>Scale 30343,29374<br>Resolution 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. 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. 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>