[Tilecache] tilecache_seed.py not matching up with OpenLayers requests...

John Cole jcole at carinatek.com
Wed Sep 3 11:43:48 EDT 2008


Josh,
  1) The SVN version seems to be ok (after figuring out that the command
line options removed the URL :-) )

  2) If I loaded the WMS layer first, and then switched to the TileCache
layer second, the tiles that came up matched those from the WMS layer.


  I'll use the SVN version of the tilecache_seed.py

John

-----Original Message-----
From: Josh Livni [mailto:josh at umbrellaconsulting.com] 
Sent: Wednesday, September 03, 2008 10:26 AM
To: John Cole
Cc: tilecache at openlayers.org
Subject: Re: [Tilecache] tilecache_seed.py not matching up with
OpenLayers requests...

1) Can you try svn trunk and see if you get the same behavior?  Note 
tilecache_seed now has different cmd line syntax.

2) Do you get the same offset if you run tilecache_seed and display as a

Layer.WMS in OpenLayers (eg trying to isolate if it is because of 
tilecache_seed [likely] vs. the off chance it's the OL Tilecache Layer)

  -Josh

John Cole wrote:
> I'm seeding a tilecache for use as a TileCache layer on OpenLayers.
> The problem I'm seeing is that issuing the same BBOX from OpenLayers
> through TileCache (running under mod_python) does not create the same
> tiles as running tilecache_seed.py with the same BBOX (I'm getting the
> bbox from map.getExtent().toBBOX() form the javascript console).
>
> It appears that the tilecache_seed.py is creating tiles offset from
the
> BBOX.  Is there something different you need to do when issuing a
> tilecache_seed BBOX over what OL sends?
>
> Let me see if some ascii art helps demonstrate this.
>
> *** requested bbox
>
> ----  returned tiles
>
>
> Openlayers WMS layer through TileCache running through mod_python
>
> ----------------------------------
> |                                |
> |    ***********************     |
> |    *                     *     |
> |    *                     *     |
> |    *                     *     |
> |    *                     *     |
> |    ***********************     |
> |                                |
> ----------------------------------
>
> Using tilecahce_seed.py and displaying as a TileCache layer in
> OpenLayers
>
>
>      ************************
>      *                      *
> -----*----------------------*-
> |    *                      *|
> |    *                      *|
> |    *                      *|
> |    ************************|
> |                            |
> ------------------------------
>
>
> Here is my TileCache config:
>
> [btes_maps4ms2008-1]
> type=WMS
>
url=http://gemini.carinatek.com/ms/mapserv.exe?map=/maps/maps4ms_standar
> d_2008-1/map/maps4ms_standard_2008-1_tiger_global_vector.map&
>
layers=world_countries_large_scale,world_countries_mid_scale,world_count
>
ries_small_scale1,world_countries_small_scale2,built_up_areas,rivers_and
>
_streams,canals,regional_borders,international_borders,roads,railroads,s
>
ea_labels,ocean_labels,continent_labels_large_scale,country_labels,state
>
_province_labels,world_major_cities,world_capitals,island_labels,us_smal
>
l_scale_land,us_land,small_scale_urban_areas,us_urban_areas,us_land_use,
>
us_small_scale_parks,us_parks,us_water,inland_water_small_scale,inland_w
>
ater,inland_water_no_us,us_rivers_streams,us_small_scale_state_borders,u
>
s_large_scale_state_borders,us_international_borders,us_county_borders,u
>
s_county_labels,us_ramps,us_trails,us_ferries,us_streets,us_railways,us_
>
small_scale_secondary_roads,us_secondary_roads,us_small_scale_primary_ro
>
ads,us_primary_roads,us_primary_road_shields_small_scale,us_primary_road
>
_shields,us_secondary_road_shields_small_scale,us_secondary_road_shields
> ,us_populated_places
> extension=png
>
resolutions=0.0012699126752168362,0.0006349563376084181,0.00039684771100
>
52614,0.00023810862660315684,0.0001111173590814732,0.0000555586795407366
>
,0.00003809738025650509,0.000023810862660315683,0.000007936954220105226,
> 0.000003809738025650509,0.0000019048690128252545
> metaTile=true
> metaSize=5,5
>
>
> Here are my Openlayer layers
>
> map_Layer6 = new OpenLayers.Layer.WMS('Maps4MS 2008-1 TC',
> 	
>
['http://msA.carinatek.com/tilecache/tilecache.py?','http://msB.carinate
>
k.com/tilecache/tilecache.py?','http://msC.carinatek.com/tilecache/tilec
> ache.py?','http://msD.carinatek.com/tilecache/tilecache.py?'],
> 	{'layers': 'btes_maps4ms2008-1','format': 'image/png'}, {buffer:
> 0,ratio: 1});
> map.addLayer(map_Layer6);
>
> TC_USStreets2008 = new OpenLayers.Layer.TileCache('Maps4MS 2008-1
> (TCD)',
> 	
>
['http://msa.carinatek.com:81/tc/','http://msb.carinatek.com:81/tc/','ht
> tp://msc.carinatek.com:81/tc/','http://msd.carinatek.com:81/tc/'],
> 	'btes_maps4ms2008-1',
> 	{'format': 'image/png',buffer: 0,tileSize: new
> OpenLayers.Size(256,256)});
> map.addLayer(TC_USStreets2008);
>
>
> My tilecahce_seed.py command is:
>
> D:\tilecache-2.04>tilecache_seed.py
> http://gemini.carinatek.com/tilecache/tilecache.py? btes_maps4ms2008-1
0
> 3 -83.439116,35.7898,-81.000884,37.2502
>
> And the extent at max level is:
> map.getExtent().toBBOX()
> "-83.439116,35.7898,-81.000884,37.2502"
>
> Thanks,
>
> John
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>   



More information about the Tilecache mailing list