[Tilecache] Tilecase_seed.py bounding not working?

Chad Clabaugh cclabaugh at centwire.com
Mon Jun 1 15:16:22 EDT 2009


Thanks Josh!  I changed my config to.

 

[vmap0]

type=MapServerLayer

layers=coverage

bbox=-13912762.13841797,3088377.0068987245,-7386874.412451172,5945581.573759
635

mapfile=/srv/www/htdocs/mapserver/ftw.map

metaTile=true

metaSize=2,2

metabuffer=0,500

spherical_mercator=true

srs=EPSG:900913

 

and ran.

 

linux: # python tilecache_seed.py vmap0 6 7 -b
"-13912762.13841797,3088377.0068987245,-7386874.412451172,5945581.573759635"
-f

 

which resulted in the tiles being generated.

 

You da man!

Thanks again,

 

Chad

 

From: Josh Livni [mailto:josh at umbrellaconsulting.com] 
Sent: Monday, June 01, 2009 2:23 PM
To: Chad Clabaugh
Cc: tilecache at openlayers.org
Subject: Re: [Tilecache] Tilecase_seed.py bounding not working?

 

You have 'spherical mercator=true' which means your bounding box needs to
match units (meters) and location for spherical mercator projection
(meters), rather than the lat/lon bbox you are using.  So you will want to
transform your bbox of interest from lat/lon (probably epsg:4326) to
spherical mercator (epsg:900913) and use the resulting bbox.

you can do this in openlayers if you want.  For example, you could go to
openlayers.org and zoom to about the US and type this into firebug:
map.getExtent().transform(new OpenLayers.Projection('EPSG:4326'), new
OpenLayers.Projection('EPSG:900913'))

Cheers,

 -Josh



On Mon, Jun 1, 2009 at 11:09 AM, Chad Clabaugh <cclabaugh at centwire.com>
wrote:

I am getting the following output when I try to seed my tiles using a
bounding box surrounding the continental united states.

 

linux: # python tilecache_seed.py vmap0 5 12 -b "-125,24,-66,49.5" -f

###### (16, 16, 5), (16, 16, 5)

Cache miss: -0.000799998641014,-0.000799998641014,1252344.2704,1252344.2704,
Tile: x: 16, y: 16, z: 5, time: 0.239030122757

05 (000016, 000016) = (-0.0008 -0.0008 1252344.2704 1252344.2704) [0.2391s :
4.178/s] 1/0

###### (32, 32, 6), (32, 32, 6)

Cache miss: -0.000799998641014,-0.000799998641014,626172.1348,626172.1348,
Tile: x: 32, y: 32, z: 6, time: 0.21990609169

06 (000032, 000032) = (-0.0008 -0.0008 626172.1348 626172.1348) [0.2202s :
4.351/s] 1/0

###### (64, 64, 7), (64, 64, 7)

Cache miss: -0.000799998641014,-0.000799998641014,313086.067,313086.067,
Tile: x: 64, y: 64, z: 7, time: 0.21994304657

07 (000064, 000064) = (-0.0008 -0.0008 313086.0670 313086.0670) [0.2202s :
4.411/s] 1/0

###### (128, 128, 8), (128, 128, 8)

Cache miss: -0.000799998641014,-0.000799998641014,156543.0331,156543.0331,
Tile: x: 128, y: 128, z: 8, time: 0.220010042191

08 (000128, 000128) = (-0.0008 -0.0008 156543.0331 156543.0331) [0.2203s :
4.442/s] 1/0

###### (256, 256, 9), (256, 256, 9)

Cache miss: -0.000799998641014,-0.000799998641014,78271.51615,78271.51615,
Tile: x: 256, y: 256, z: 9, time: 0.219614982605

09 (000256, 000256) = (-0.0008 -0.0008 78271.5162 78271.5162) [0.2199s :
4.462/s] 1/0

###### (512, 512, 10), (512, 512, 10)

Cache miss: -0.000799998641014,-0.000799998641014,39135.757675,39135.757675,
Tile: x: 512, y: 512, z: 10, time: 0.220409154892

10 (000512, 000512) = (-0.0008 -0.0008 39135.7577 39135.7577) [0.2207s :
4.473/s] 1/0

###### (1024, 1024, 11), (1024, 1024, 11)

Cache miss:
-0.000799998641014,-0.000799998641014,19567.8784375,19567.8784375, Tile: x:
1024, y: 1024, z: 11, time: 0.21924996376

11 (001024, 001024) = (-0.0008 -0.0008 19567.8784 19567.8784) [0.2195s :
4.484/s] 1/0

 

And here is my config.

 

[vmap0]

type=MapServerLayer

layers=coverage

bbox=-125,24,-66,49.5

mapfile=/srv/www/htdocs/mapserver/ftw.map

metaTile=true

metaSize=2,2

metabuffer=0,500

spherical_mercator=true

srs=EPSG:4326

 

Any thoughts as to what I may be doing wrong?  Thanks!

 

 

Chad Clabaugh

Mobile: 260.466.8861

 


_______________________________________________
Tilecache mailing list
Tilecache at openlayers.org
http://openlayers.org/mailman/listinfo/tilecache

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20090601/3a817450/attachment.html


More information about the Tilecache mailing list