[Tilecache] tilecache_seed.py problem
Matthew Doyle
M.Doyle at bom.gov.au
Mon Aug 31 20:47:17 EDT 2009
Hello all,
Sorry to resurface an old topic, but I just came across the below issue
while attempting to seed my cache. I too use metaTile=true and a metaBuffer
on the layers i was trying to seed. The below fix seems to have worked, but
i'm curious as to whether this was the correct fix or just a band-aid
solution?
Did anyone ever track down the reason why this was being thrown in the first
place?
Regards,
Matt
Jay Douillard wrote:
>
> I can confirm that replacing line 140 of Service.py with:
> else:pass #raise Exception("Zero length data returned from layer.")
>
>
> Clears up the problem... Now to track down why is was being raised in the
> first place.....
> jay
> ----- Original Message -----
> From: "Matt Bartolome" <mattxbart at gmail.com>
> To: "Jay Douillard" <jay.douillard at ubc.ca>
> Cc: "Walter Lorenzetti" <lorenzetti at gis3w.it>, tilecache at openlayers.org
> Sent: Thursday, February 5, 2009 2:27:41 PM GMT -08:00 US/Canada Pacific
> Subject: Re: [Tilecache] tilecache_seed.py problem
>
> I had the same issue here so I just put a pass instead of raising the
> error and it seems to work with no ill effects.
>
> -Matt
>
> On Thu, Feb 5, 2009 at 1:29 PM, Jay Douillard <jay.douillard at ubc.ca>
> wrote:
>>
>> Walter,
>>
>> I've had this exact problem. Tilecache 2.10, ubuntu 8.10. Like you my
>> layer works fine when browsing through openlayers, and seeding works when
>> I remove the metatiling...
>>
>>
>>
>>
>> [layer]
>> type=Mapnik
>> mapfile=/var/www/style/layer.xml
>> srs=EPSG:3005
>> extension=png256
>> projection= +proj=aea +lat_1=50 +lat_2=58.5 +lat_0=45 +lon_0=-126
>> +x_0=1000000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs
>> bbox=273875.668326, 362347.212348,1870571.753510, 1735670.548899
>> data_extent=273875.668326, 362347.212348,1870571.753510, 1735670.548899
>> levels=12
>> maxResolution=3118.547
>> metaTile=true
>> metaSize=8,8
>>
>>
>>
>> ----- Original Message -----
>> From: "Walter Lorenzetti" <lorenzetti at gis3w.it>
>> To: tilecache at openlayers.org
>> Sent: Thursday, February 5, 2009 9:02:37 AM GMT -08:00 US/Canada Pacific
>> Subject: [Tilecache] tilecache_seed.py problem
>>
>> Hi all,
>>
>> I've a problem with tielcache_seed python script... of tilecache 2.10
>> My cfg file and the relative layer is:
>>
>> [mylayer]
>> type=MapServerLayer
>> mapfile=mylayer.map
>> layers=layer1,laeyr2,...
>> srs=EPSG:3003
>> extension=png
>> bbox=1634000,4843000,1654000,4858000
>> metaTile=true
>> metaSize=5,5
>> metaBuffer=20
>>
>> if a try to use tilcache_seddd.py I obtian the seguent error:
>>
>> python tilecache_seed.py -f mylayer 1 6
>> ###### (0, 0, 1), (2, 2, 1)
>> Traceback (most recent call last):
>> File "tilecache_seed.py", line 9, in <module>
>> TileCache.Client.main()
>> File "/var/tilecache.gis3w.it/TileCache/Client.py", line 162, in main
>> seed(svc, layer, map(int, args[1:3]), bboxlist ,
>> padding=options.padding, force = options.force, reverse =
>> options.reverse)
>> File "/var/tilecache.gis3w.it/TileCache/Client.py", line 117, in seed
>> svc.renderTile(tile,force=force)
>> File "/var/tilecache.gis3w.it/TileCache/Service.py", line 140, in
>> renderTile
>> else: raise Exception("Zero length data returned from layer.")
>>
>> But if I don't use the metaTiles... it works!!!
>>
>> by htttp request with metaTile it works to!
>>
>> Have any idea about?
>>
>> Thanks in advance
>> Walter
>>
>>
>> --
>>
>> Walter Lorenzetti
>> email: lorenzetti at gis3w.it
>> skype: aiki74
>> Cell: (+39) 347-6597931 Tel+Fax: (+39) 0583 926684
>> Via di Tofori 123a 55010, Camigliano-S.Gemma Lucca
>> Italy
>>
>> _______________________________________________
>> Tilecache mailing list
>> Tilecache at openlayers.org
>> http://openlayers.org/mailman/listinfo/tilecache
>> _______________________________________________
>> Tilecache mailing list
>> Tilecache at openlayers.org
>> http://openlayers.org/mailman/listinfo/tilecache
>>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>
--
View this message in context: http://n2.nabble.com/tilecache-seed-py-problem-tp2275922p3557527.html
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list