[Tilecache] maxExtent and BBOX setting
Etides
etienne.desgagne at roche.ca
Tue Jan 12 18:19:59 EST 2010
Hi, as Steve, I also need to set the extent of a Tilecache layer as small as
possible to minimize the quantity of tiles created. I'm using Google layer
as a base map with OL... Is it possible or do I need to create all the
useless tiles to full the bbox that Google force me to use at a specific
lvl?
Thanks a lot.
Etienne
Steve.Toutant wrote:
>
> Hello,
> I read several posts on bbox and maxExtent settings but I still can't make
> tilecache works.
> I'm confuse with maxExtent, maxResolution and BBOX of OpenLayers
> mapOptions, OpenLayers layer definition, tilecache.cfg and
> tilecache_seed.py.
>
> I need help for clarifying this please.
> Below are the different settings.
> thanks
> Steve
>
> ************************OpenLayers
> Options*********************************
>
> var mapOptions = {
> projection: "EPSG:900913",//google
> displayProjection: new OpenLayers.Projection("EPSG:4326"), //Pour afficher
> les coord lat long
> units: "m",
> maxExtent: new OpenLayers.Bounds(-9239517, 5465442, -5565974,
> 9349764),//bbox google = bbox tilecache_seed.py
> maxResolution: "4892", //BEcause of minZoomLevel: 5 for google MAp
> controls: [],
> numZoomLevels: 20 //google
> };
> //basemap
> var googleM = new OpenLayers.Layer.Google( "Google Map", { minZoomLevel:
> 5, type: G_NORMAL_MAP, 'sphericalMercator': true} );
>
> ************************OpenLayers Layer definition
> *********************************
> createTileCacheLayer
> (
> 'ilotsMiniTC', 'http://10.2.192.247/tilecache/dataWms',
> 'ilotsMiniTC',
> {
> REPROJECT: 'false',
> format:"image/gif",
> transparent: "true",
> maxExtent: new
> OpenLayers.Bounds(-9239517,5465442,-7987172.729,5465442), // = bbox of
> tilecache.cfg
> maxResolution: 4892,
> attribution:'ICU - INSPQ et
> http://www.santepub-mtl.qc.ca/ DSP de Montréal '
> }
> );
>
> ************************TILECACHE.CFG*********************************
>
> [ilotsMiniTC]
> type=WMSLayer
> url=http://localhost/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&
> extent_type=loose
> levels=15
> #Du niveau inférieur au niveau supérieur
> layers=ilotsLavalMini,ilotsMtlMini,ilotsMonteregieMini3,ilotsMonteregieMini1,ilotsMonteregieMini2,ilotsEstrieMini2,ilotsEstrieMini1,ilotsGatMini,ilotsLauMini2,ilotsLauMini1,ilotsLanMini,ilotsMauMini1,ilotsMauMini2,ilotsMauMini3,ilotsChauMini2,ilotsQcMini2,ilotsChauMini1,ilotsQcMini1
> extension=gif
> srs=EPSG:900913
> #metaTile=true
> metaBuffer=30
> #metaSize=10,10
> maxResolution=4892
> bbox=-9239517,5465442,-7987172.729,5465442
> #BBOX = maxExtent of OL Layer definition
>
> ************************tilecache_seed.py************************
> BBOX = maxExtent of OL map options
> tilecache_seed.py -f ilotsMiniTC 0 2 -b "-9239517, 5465442, -5565974,
> 9349764"
>
>
>
> Steve Toutant, M. Sc.
> Analyste en géomatique
> Secteur environnement
> Direction des risques biologiques, environnementaux et occupationnels
> Institut national de santé publique du Québec
> 945, avenue Wolfe
> Québec, Qc G1V 5B3
> Tél.: (418) 650-5115 #5281
> Fax.: (418) 654-3144
> steve.toutant at inspq.qc.ca
> http://www.inspq.qc.ca
>
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>
--
View this message in context: http://n2.nabble.com/maxExtent-and-BBOX-setting-tp3310441p4295225.html
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list