<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
<link href="chrome://translator/skin/floatingPanel.css"
type="text/css" rel="stylesheet">
</head>
<body text="#000000" bgcolor="#ffffff">
El 26/12/11 18:11, josego escribió:
<blockquote cite="mid:4EF8E302.9070104@simgia.com" type="cite">Hola
a todos.
<br>
Estoy usando tilecache y no se como encontrar bien las
resoluciones. En algunas partes me dibuja bien el mapa pero no en
todas partes.
<br>
Mi mapserver tiene la siguiente extensión --> -62.6454 -27.4933
-54.1077 -19.2755
<br>
<br>
Mi openlayer también tiene la misma extension como también el
tilecache. No se como encontrar bien el tilecache. No se si me
podrían dar links o ejemplos para poder realizar. Estoy hace una
semana viendo y no encuentro la solución. No se que requisitos
necesitaría para realizar correctamente.
<br>
<br>
<br>
muchas gracias por todo.
<br>
saludos, jose
<br>
</blockquote>
<br>
Problema resuelto. Les dejo como yo realice el tema:<br>
<br>
<p dir="ltr" style="text-align: center; margin-top: 0pt;
margin-bottom: 0pt;"
id="internal-source-marker_0.1714577802273921"><span
style="font-size: 19px; font-family: Arial; color: rgb(0, 0, 0);
background-color: transparent; font-weight: bold; font-style:
normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;">Para conseguir las resoluciones y
colocar en el tileCache</span><span style="font-size: 16px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: bold; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"></span></p>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"></span><span style="font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: bold; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">OBS</span><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0);
background-color: transparent; font-weight: normal; font-style:
normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;">:</span><br>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;">Las aplicaciones que se usan y funciona
el tilecache son:</span>
<ul>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">MapSever 5.6</span></li>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">OpenLayers 2.10</span></li>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">TileCache 2.10</span></li>
</ul>
<b>OBS</b>: <br>
TileCache 2.11 tiene un bug.<br>
<br>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;">Para obtener la revolución de cada zoom
del tilecache sincronizando el OpenLayer se tienen que seguir
algunos pasos:</span>
<ul>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">Las resoluciones (atributo
resolutions del tilecache y del openlayer) tienen que
coincidir. Ejemplo:</span></li>
<ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">OpenLayers
(dentro de las opciones del map:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">resolutions:
[0.013052769,0.00846666,0.00070555,0.00007937,0.000079371095,0.000003968477],</span></li>
</ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">TileCache:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">resolutions=0.013052769,0.00846666,0.00070555,0.00007937,0.000079371095,0.000003968477,0.091309,0.005706609,0.00071335068,0.000089168836,0.000044584418,0.0028534028,0.022827</span></li>
</ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: bold; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">OBS</span><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">: en el tilecache tiene mas
resoluciones que en el openLayer pero eso debería ser así
porque o sino salen varios errores en el navegador con el
OpenLAyers. Regla general de esta parte. Las resoluciones
del tilecache y del openlayers tienen que ser iguales. Una
vez hecho esto, probar con el openlayers y si salen,
errores, colocar esas nuevas resoluciones.</span></li>
</ul>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">Los valores de xmin, xmax,
ymin y ymax tienen que coincidir entre el tilecache y el
openlayers. El atributo del openlayer se llama maxExtent que
esta dentro de las opciones del map. El atributo en el
tilecache se llama bbox.</span></li>
<ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en el openLayers:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">maxExtent:
new
OpenLayers.Bounds(-62.6454,-27.4933,-54.1077,-19.2755),</span></li>
</ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en el tilecache:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">bbox=-62.6454,-27.4933,-54.1077,-19.2755</span></li>
</ul>
</ul>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">Los valores del maxResolution
tienen que coincidir entre el tileCache y el OpenLayers. El
atributo de ambos se llama </span><span style="font-size:
15px; font-family: Arial; color: rgb(0, 0, 0);
background-color: transparent; font-weight: normal;
font-style: italic; font-variant: normal; text-decoration:
none; vertical-align: baseline;">maxResolution. </span><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">Esto es necesario para cuando
se hace zoom de abajo para arriba y aparecen errores. Con esto
limitamos la maxResolutions que puede tener nuestro programa.</span><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: italic; font-variant: normal; text-decoration:
none; vertical-align: baseline;"></span></li>
<ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en OpenLayers:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">maxResolution:
0.013052769,</span></li>
</ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en TileCache:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">maxResolution=0.013052769</span></li>
</ul>
</ul>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">Los valores de los zooms
tienen que coincidir. El atributo en openlayers que se ubica
en las opciones del mapa se llama numZoomLevels, y el atributo
en el tileCache se llama levels.</span></li>
<ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en el OpenLayers:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">numZoomLevels:
6</span></li>
</ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en el tileCache:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">levels=6</span></li>
</ul>
</ul>
<li style="list-style-type: disc; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">Los tiles tiene que coincidir
entre ambos. El atributo en el openLayers se llama tileSize y
en el tileCache se llama size.</span></li>
<ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en el OpenLayers:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">tileSize:
new OpenLayers.Size(256, 256),</span></li>
</ul>
<li style="list-style-type: circle; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Ejemplo
en el tileCache:</span></li>
<ul>
<li style="list-style-type: square; font-size: 15px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;"><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">size=256,256</span></li>
</ul>
</ul>
</ul>
<br>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"></span><b>Dos</b><span
style="font-size: 16px; font-family: Arial; color: rgb(0, 0, 0);
background-color: transparent; font-weight: bold; font-style:
normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"><b> </b>formas de hallar la resolucion</span><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0);
background-color: transparent; font-weight: normal; font-style:
normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;">:</span>
<ol>
<li style="list-style-type: decimal; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">Para hallar las resoluciones
usen la calculadora (qcalculate), porque tiene mas decimales
que el programa gcalctool que trae por defecto en gnome. Para
las resoluciones mas bajas se necesitan mejor precisión en los
decimales.</span></li>
</ol>
<br>
<p dir="ltr" style="margin-left: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: bold; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">Referencias</span><span
style="font-size: 9px; font-family: Arial; color: rgb(0, 0, 0);
background-color: transparent; font-weight: normal; font-style:
normal; font-variant: normal; text-decoration: none;
vertical-align: super;"></span></p>
<p dir="ltr" style="margin-left: 36pt; text-indent: 36pt;
margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size:
15px; font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;">INCHES_PER_UNIT['dd'] = 4374754</span></p>
<p dir="ltr" style="margin-left: 36pt; text-indent: 36pt;
margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size:
15px; font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;">DOTS_PER_INCH = 72</span><span style="font-size: 9px;
font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
super;"></span></p>
<span style="font-size: 9px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: super;"></span><br>
<p dir="ltr" style="margin-left: 36pt; text-indent: 36pt;
margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size:
15px; font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;">La formula que se usa para la resolucion es =</span></p>
<p dir="ltr" style="margin-left: 36pt; text-indent: 36pt;
margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size:
15px; font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: normal; font-style: normal;
font-variant: normal; text-decoration: none; vertical-align:
baseline;">resolution = scale / (inches_per_unit *
dots_per_inch)</span></p>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: bold; font-style:
normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"></span><br>
<p dir="ltr" style="text-indent: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: bold; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">Ejemplo con la
escala 1250</span><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">:</span></p>
<p dir="ltr" style="text-indent: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">resolution =
1250 / (72 * 4374754) = 0.0000039684771</span></p>
<ol start="2">
<li style="list-style-type: decimal; font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">En caso que salgan errores en
el OpenLayer, por ejemplo esto → </span><a
href="http://localhost/tilecache/tilecache.py?LAYERS=MapaParaguay&TRANSPARENT=false&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-56.801631111111,-27.4933,-50.957862222222,-21.649531111111&WIDTH=256&HEIGHT=256"><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
153); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
underline; vertical-align: baseline;">http://localhost/tilecache/tilecache.py?LAYERS=MapaParaguay&TRANSPARENT=false&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-56.801631111111,-27.4933,-50.957862222222,-21.649531111111&WIDTH=256&HEIGHT=256</span></a><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;"></span></li>
</ol>
<br>
<p dir="ltr" style="text-indent: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">Agarramos el
valor absoluto entre (xmin - xmax)/tamaño del tileCache. En este
caso seria (50.95786222222 - 56.80163111111)/256=0.022827222. </span></p>
<p dir="ltr" style="text-indent: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: bold; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">Ojo</span><span
style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0);
background-color: transparent; font-weight: normal; font-style:
normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;">: el 256 es el valor del tamaño del
tile.</span></p>
<p dir="ltr" style="text-indent: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">Luego con ese
valor =0.02282722*72 * 4374754= 7190170 </span></p>
<p dir="ltr" style="text-indent: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: bold; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">Formula
anterior</span><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent; font-weight:
normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">: ((xmin -
xmax)/tamaño del tileCache)*DOTS_PER_INCH*INCHES_PER_UNIT['dd']
</span></p>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"> Y por ultimo
7190170/(72*4374754)=0.02282722 → este es el valor de la
resolucion que colocamos en el tilecache. El valor 7190170 seria
la escala.</span><br>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"> </span><span style="font-size:
15px; font-family: Arial; color: rgb(0, 0, 0); background-color:
transparent; font-weight: bold; font-style: normal; font-variant:
normal; text-decoration: none; vertical-align: baseline;">Formula
anterior</span><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent; font-weight:
normal; font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">: resolution = scale /
(inches_per_unit * dots_per_inch)</span><br>
<p dir="ltr" style="text-indent: 36pt; margin-top: 0pt;
margin-bottom: 0pt;"><span style="font-size: 15px; font-family:
Arial; color: rgb(0, 0, 0); background-color: transparent;
font-weight: normal; font-style: normal; font-variant: normal;
text-decoration: none; vertical-align: baseline;">Luego borramos
los tmp del tilecache y reiniciamos el servidor apache. Ahora
debería de funcionar el OpenLayers sin errores.</span></p>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"></span><br>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;"></span><br>
<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0,
0); background-color: transparent; font-weight: normal;
font-style: normal; font-variant: normal; text-decoration: none;
vertical-align: baseline;">Esto es todo y así debería de funcionar
todo. </span><span style="font-size: 15px; font-family: Arial;
color: rgb(0, 0, 0); background-color: transparent; font-weight:
bold; font-style: normal; font-variant: normal; text-decoration:
none; vertical-align: baseline;">XD</span><br>
<br>
saludos, jose<br>
<div style="bottom: auto; left: 0px; right: auto; top: 354px;
display: none;" class="translator-theme-default"
id="translator-floating-panel">
<div title="Clic para traducir"
id="translator-floating-panel-button"></div>
</div>
</body>
</html>