[Tilecache] Problem with tilecache_seed.py

Martin Ouellet geomartino at gmail.com
Tue Nov 11 11:05:46 EST 2008


Seem to be a Mapserver error while trying to read the ecw image (
MOS_07_22D12-SE_F07_21CM.ECW).  Maybe this error did not occur before, in
the previous zoom level, because it was just not suppose to be displayed
(MINSCALE/MAXSCALE).  Try to execute the WMS call (URL) outside tilecache
and if it failed, you will have your answer
MartinO

2008/11/11 Alexandre Dube <adube at mapgears.com>

> Well, I'm back with more problems.
>
>  The script stopped running after more than 12 hours.  I'll try to test
> with different type of data ( shapefiles, using gif, metaTile,
> MapServerLayer type ) locally to see if theses errors ( everyones I
> faced so far) occur.
>
> Here's was the content of the .cfg file :
>
> [raster]
> #type=MapServerLayer
> type=WMS
> layers=mos,img
> #mapfile=/home/mapgears/proj/toto_test/map/toto.map
> url=
> http://127.0.0.1:8080/cgi-bin/mapserv?map=/home/mapgears/proj/toto_test/map/toto.map
> extension=jpg
> srs=EPSG:32187
>
> resolutions=35.27775872778806,17.63887936389403,8.819439681947015,3.527775872778806,1.763887936389403,0.8819439681947016,0.35277758727788067,0.17638879363894033,0.08819439681947017,0.035277758727788065
> bbox=189653.232384,5373969.71,231271.235,5402372.275
> #metaTile=true<http://127.0.0.1:8080/cgi-bin/mapserv?map=/home/mapgears/proj/toto_test/map/toto.mapextension=jpgsrs=EPSG:32187resolutions=35.27775872778806,17.63887936389403,8.819439681947015,3.527775872778806,1.763887936389403,0.8819439681947016,0.35277758727788067,0.17638879363894033,0.08819439681947017,0.035277758727788065bbox=189653.232384,5373969.71,231271.235,5402372.275#metaTile=true>
>
> Here's the error :
>
> Traceback (most recent call last):
>  File "./tilecache_seed.py", line 9, in <module>
>    TileCache.Client.main()
>  File "/home/mapgears/tilecache/TileCache/Client.py", line 108, in main
>    seed(svc, base, layer, map(int, sys.argv[3:5]), map(float,
> sys.argv[5].split(",")))
>  File "/home/mapgears/tilecache/TileCache/Client.py", line 92, in seed
>    svc.renderTile(tile)
>  File "/home/mapgears/tilecache/TileCache/Service.py", line 138, in
> renderTile
>    data = layer.render(tile)
>  File "/home/mapgears/tilecache/TileCache/Layer.py", line 437, in render
>    return self.renderTile(tile)
>   File "/home/mapgears/tilecache/TileCache/Layers/WMS.py", line 29, in
> renderTile
>    tile.data, response = wms.fetch()
>  File "/home/mapgears/tilecache/TileCache/Client.py", line 64, in fetch
>    raise Exception("Did not get image data back. \nURL:
> %s\nContent-Type Header: %s\nResponse: \n%s" % (self.url(), ctype, data))
> Exception: Did not get image data back.
> URL:
> http:/
> 127.0.0.1:8080/cgi-bin/mapserv?map=/home/mapgears/proj/toto_test/map/toto.map&layers=mos%2Cimg&styles=&service=WMS&width=256&format=image%2Fjpeg&request=GetMap&height=256&srs=EPSG%3A32187&version=1.1.1&bbox=221442.726329%2C5378033.70781%2C221533.037391%2C5378124.01887
> Content-Type<http://127.0.0.1:8080/cgi-bin/mapserv?map=/home/mapgears/proj/toto_test/map/toto.map&layers=mos%2Cimg&styles=&service=WMS&width=256&format=image%2Fjpeg&request=GetMap&height=256&srs=EPSG%3A32187&version=1.1.1&bbox=221442.726329%2C5378033.70781%2C221533.037391%2C5378124.01887Content-Type>Header: application/vnd.ogc.se_xml
> Response:
> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http:/schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException>
> msDrawMap(): Image handling error. Failed to draw layer named
> &#39;mos&#39;.
> msDrawRaster(): Image handling error. Unrecognized or unsupported image
> format
> drawEPP(): Image handling error.
> /home/mapgears/proj/toto_test/map/../data/MOS_07_22D12-SE_F07_21CM.ECW
> is not an EPPL file.
> </ServiceException>
> </ServiceExceptionReport>
>
> Christopher Schmidt wrote:
> > On Mon, Nov 10, 2008 at 08:19:14AM -0500, Alexandre Dube wrote:
> >
> >> Hi,
> >>
> >>   I still have problems pre-generating tiles with the tilecache_seed.py
> >> command.  After a couple of failed tries, I finally gave up on metaTile,
> >> but it seems like the problem may be elsewhere because again I get
> >> errors after a couple of script running :
> >>
> >
> > I recommend not using a MapServer layer, and using a WMS layer instead,
> > talking to a local mapserver install.
> >
> > The former will sufer from memory leaks because the memory usage of
> > mapserver is in process -- with a seperate mapserv, memory leaks go away
> > when the process dies.
> >
> >
> >> Traceback (most recent call last):
> >>   File "./tilecache_seed.py", line 9, in <module>
> >>     TileCache.Client.main()
> >>   File "/home/mapgears/tilecache/TileCache/Client.py", line 108, in main
> >>     seed(svc, base, layer, map(int, sys.argv[3:5]), map(float,
> >> sys.argv[5].split(",")))
> >>   File "/home/mapgears/tilecache/TileCache/Client.py", line 92, in seed
> >>     svc.renderTile(tile)
> >>   File "/home/mapgears/tilecache/TileCache/Service.py", line 138, in
> >> renderTile
> >>     data = layer.render(tile)
> >>   File "/home/mapgears/tilecache/TileCache/Layer.py", line 437, in
> render
> >>     return self.renderTile(tile)
> >>   File "/home/mapgears/tilecache/TileCache/Layers/MapServer.py", line
> >> 51, in renderTile
> >>     mapImage = wms.draw()
> >>   File "/home/mapgears/fgs-5.2.0/www/lib/python2.5/mapscript.py", line
> >> 1363, in draw
> >>     def draw(*args): return _mapscript.mapObj_draw(*args)
> >> _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to
> >> draw layer named 'mos'.
> >> msDrawRasterLayerGDAL(): Memory allocation error. Allocating work image
> >> of size 256x256 failed.
> >>
> >>   I'm running out of ideas.  Can anybody help me, please ?
> >>
> >> --
> >> Alexandre Dubé
> >> Mapgears
> >> www.mapgears.com
> >>
> >> _______________________________________________
> >> Tilecache mailing list
> >> Tilecache at openlayers.org
> >> http:/openlayers.org/mailman/listinfo/tilecache
> >>
> >
> >
>
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
> _______________________________________________
> 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/20081111/360d8c81/attachment.html


More information about the Tilecache mailing list