[Tilecache] Resolution error

Vidal, Antoni antoni.vidal at icc.cat
Tue May 26 10:41:48 EDT 2009


Thank's Alexandre.

Finnally, I begin to get a satisfactory result, and I could view tiles in OpenLayers.

Now, I'm working in to get a better quality for the images.

Thank's a lot.

Antoni Vidal

-----Missatge original-----
De: Alexandre Dube [mailto:adube at mapgears.com] 
Enviat: martes, 26 de mayo de 2009 14:32
Per a: Vidal, Antoni
A/c: tilecache at openlayers.org
Tema: Re: [Tilecache] Resolution error

Hi,

Here's some advices :

- determine fixed scales/resolutions you wish to use in your 
application. You could use the Google resolutions (see the Google layer 
in OpenLayers) for example.
- set theses scales/resolutions values to your map (OpenLayers.Map)
- if you're using scales, see the base layer resolutions array in 
firebug, all resolutions are calculated there.
- take all resolutions values and place them in your tilecache.cfg 
(resolutions=...)

See the tilecache docs for more details,

Alexandre

Vidal, Antoni wrote:
>
> Hello,
>
> I'm new on Tilecache, and I'm trying to generate new imagery over a 
> wms server to be displayed with an OpenLayers client, but I get the 
> following error:
>
> An error occurred: can't find resolution index for 0.005493. Available 
> resolutions are:
>
> [0.012874910093749999, 0.0064374550468749995, 0.0032187275234374997, 
> 0.0016093637617187499, 0.00080468188085937493,
>
> My my main doubt is: What are the resolution's units? (meters / pixel ?)
>
> My tilecache.cfg:
>
> [topotest]
>
> type=WMSLayer
>
> url=http://lzserver/lizardtech/iserv/ows?
>
> srs=EPSG:4326
>
> layers=top50m
>
> extension=jpg
>
> bbox=0.143973163,40.478589161,3.439950147,42.917930549
>
> extent_type=loose
>
> levels=10
>
> Thank's in advance
>
> *Antoni Vidal*
>
> Unitat d'Aplicacions SIG-WEB
> Institut Cartogràfic de Catalunya 
> <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
> Parc de Montjuïc, E-08038 Barcelona
> Tel. (+34) 93 567 15 00 (ext. 3228)
> www.icc.cat <http://www.icc.cat/>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Tilecache mailing list