<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you Josh, <br>
<br>
I was suspecting either my zoom levels were off, or my coordinates were
wrong. I will convert them to spherical mercator and try again.<br>
<br>
Thanks again for clarifying things.<br>
<br>
Regards,<br>
Adrian<br>
<br>
P.S. - the bbox in lonlat coordinates inside my tilecache.conf works ok
with OpenLayers - Should I change that too to spherical mercator
coordinates? Or it doesn't matter?<br>
<br>
Josh Livni wrote:
<blockquote
cite="mid:698156f30910230029u3c57d5eeg7d73ef07444e695f@mail.gmail.com"
type="cite">
<blockquote type="cite">Hi Adrian,<br>
<br>
Your layer setup has a confusing mix of geographic
(lat/lon)�coordinates and spherical mercator projection. �Your
projection is epsg:900913 which has units if meters, but your bounding
box is not projected. �You should probably fix this, but definitely
you'll need to pass tilecache_seed the bounding box in the correct
coordinate system.<br>
<br>
If you don't know how to project/transform your coordinates, note you
�can do this in firebug or whatever using openlayers itself (for
example: [ new OpenLayers.LonLat(20.26,43.16).transform(new
OpenLayers.Projection('EPSG:4326'), new
OpenLayers.Projection('EPSG:900913')) ]<br>
<br>
<br>
Cheers,<br>
<br>
�� -Josh<br>
<br>
On Oct 22, 2009 10:36 PM, "Adrian Popa" <<a moz-do-not-send="true"
href="mailto:adrian_gh.popa@romtelecom.ro" target="_blank">adrian_gh.popa@romtelecom.ro</a>>
wrote:<br>
<br>
Hello everyone,<br>
<br>
I'm new to tilecache and I've managed to get it running, but now, to<br>
increase performance I would like to generate tiles between some zoom<br>
levels so loading will be faster.<br>
<br>
I've read the documentation and I'm trying to generate the tiles with<br>
tilecache_seed.py. If I run it like this:<br>
<br>
python tilecache_seed.py my_layer 1 6<br>
<br>
... it starts crunching and generates loads of images. However, I've<br>
read it doesn't generate those images using the bbox parameter in<br>
tilecache.conf (so it's basically plotting the whole world). Now, I'm<br>
trying to cache layers 1 - 5 (as defined in my conf file) within my bbox<br>
- but the script finishes too quickly...<br>
<br>
[root@terra tilecache]# python tilecache_seed.py my_layer 1 5 --bbox<br>
"20.26,43.16,29.70,48.46"<br>
###### (64, 64, 1), (64, 64, 1)<br>
01 (000064, 000064) = (-0.0008 -0.0008 313086.0670 313086.0670) [0.0002s<br>
: 2007.391/s] 1/0<br>
###### (128, 128, 2), (128, 128, 2)<br>
02 (000128, 000128) = (-0.0008 -0.0008 156543.0331 156543.0331) [0.0002s<br>
: 2262.037/s] 1/0<br>
###### (256, 256, 3), (256, 256, 3)<br>
03 (000256, 000256) = (-0.0008 -0.0008 78271.5162 78271.5162) [0.0002s :<br>
2436.929/s] 1/0<br>
###### (512, 512, 4), (512, 512, 4)<br>
04 (000512, 000512) = (-0.0008 -0.0008 39135.7577 39135.7577) [0.0002s :<br>
2463.097/s] 1/0<br>
<br>
Here is my layer configuration:<br>
[my_layer]<br>
type=WMS<br>
debug=no<br>
url=<a moz-do-not-send="true"
href="http://terra/fcgi-bin/mapserv?map=/var/www/html/map/my_base.maplayers=Judete,RuralSate,Rural,Urban,highway,sechighway,streets,buildings,GranitaJudete"
target="_blank">http://terra/fcgi-bin/mapserv?map=/var/www/html/map/my_base.map<br>
layers=Judete,RuralSate,Rural,Urban,highway,sechighway,streets,buildings,GranitaJudete</a><br>
<br>
bbox=20.26,43.16,29.70,48.46<br>
spherical_mercator=true<br>
levels=13<br>
srs=EPSG:900913<br>
size=256,256<br>
extension=png<br>
mime_type=image/png2<br>
maxResolution=2445.9849046875<br>
map_imagetype=agg<br>
resolutions=2445.9849046875,1222.99245234375,611.496226171875,305.7481130859375,152.87405654296876,76.43702827148438,38.21851413574219,19.109257067871095,9.554628533935547,4.777314<br>
<br>
266967774,2.388657133483887,1.1943285667419434,0.597164283<br>
extent_type=loose<br>
<br>
<br>
OpenLayers + WMS Layer pointing to tilecache.py works just fine, so I<br>
must be missing some parameters...<br>
<br>
Thanks,<br>
Adrian<br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a moz-do-not-send="true" href="mailto:Tilecache@openlayers.org"
target="_blank">Tilecache@openlayers.org</a><br>
<a moz-do-not-send="true"
href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</blockquote>
</blockquote>
<br>
</body>
</html>