[Tilecache] Resolution error
Alexandre Dube
adube at mapgears.com
Tue May 26 08:31:30 EDT 2009
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