[Tilecache] cache seeder in 1.4

Tim Langlois tlanglois at archetypecorp.com
Thu Mar 8 15:28:24 EST 2007


Yes, it looks like this:
[cache]
 type=DiskCache
 base=/var/tilecache

And tilecache will place images in that directory when i invoke it via openlayers like this:

var tilemap = new OpenLayers.Layer.WMS( "Map Layer",

["http://maps1.hostname.net/mapserver/tilecache-1.4/tilecache.py?"],
 {layers: site, format: 'image/png'}, 
{numZoomLevels: map.getNumZoomLevels()});


The difference, of coarse, is I am using a localhost url for the seeder
instead of the public hostname.   For my maps to work with openlayers, I
am specifying a maxextent for the OpenLayers.map.  The bounding box I
use for this is the same one I pass to the seeder.

In the tilecache.cfg I specify the bbox and resolutions that I am using
in openlayers.  Like I said, it works great browsing the map via
openlayers, it's just the seeder that doesn't appear to like it.

Here is the section from my tilecache.cfg

[china]
type=WMSLayer
bbox=68.9707, 14.9495, 140.1514, 52.3941
resolutions=0.10652799626625355,0.05326399813312677339,0.0266319990665633867,0.013315999533281693,0.006657999766640846674,0.003328999883320423337,0.0016644999416602117,0.0008322499708301058343, 0.0004161249854150529,0.00020806249270752646,0.0001040312463537632293,0.000052015623176881615,.00002600781158844080732,0.000013003905794220404
debug=yes
url=http://localhost:8080/maps/wms?map=/var/sites/china/china.map
extension=png
layers=china,BJStreets
 
Thanks,

Tim

On Wed, 2007-03-07 at 15:23 -0800, Bill Woodall wrote:
> Hi Tim,
> 
> In your tilecache.cfg, what are the parameters of your [cache] ?
> 
> Are they something like;
>   [cache]
>   type=DiskCache
>   base=/data/tilecache/v1.5
> 
> As for the output of the seeding, those look normal as far as I can see.
> 
> ........Bill,
> 
> On Wed, 2007-03-07 at 11:47 -0600, Tim Langlois wrote:
> > Does the cache seeder in 1.4 work?  I tried seeding the cache as
> > described in the readme using a command similiar to this:
> > 
> > python ./Client.py
> > http://localhost:8080/mapserver/tilecache-1.4/tilecache.py china 1 5
> > "68.9707, 14.9495, 140.1514, 52.3941"
> > 
> > I get results like below, but I do not see any images generated in the
> > image directory.  I can browse the maps with no problems and the images
> > are generated properly, but I wanted to pre-cache these maps.
> > 
> > Thanks
> > 
> > Tim
> > 
> > ###### (2, 1, 1), (3, 1, 1)
> > 01 (000002, 000001) = (0.0000 0.0000 90.0000 90.0000) [0.1263s :
> > 7.895/s] 1/2
> > 01 (000003, 000001) = (90.0000 0.0000 180.0000 90.0000) [0.0033s :
> > 15.383/s] 2/2
> > ###### (5, 2, 2), (3, 1, 1)
> > ###### (11, 4, 3), (7, 3, 2)
> > ###### (22, 9, 4), (28, 12, 4)
> > 04 (000022, 000009) = (67.5000 11.2500 78.7500 22.5000) [0.0034s :
> > 22.461/s] 1/28
> > 04 (000023, 000009) = (78.7500 11.2500 90.0000 22.5000) [0.0063s :
> > 28.589/s] 2/28
> > 0
> > 
> > The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company.  Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission.
> > 
> > _______________________________________________
> > Tilecache mailing list
> > Tilecache at openlayers.org
> > http://openlayers.org/mailman/listinfo/tilecache
> 
> ------=_NextPart_f0703071724167ECB--
> 

The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company.  Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission.




More information about the Tilecache mailing list