[Tilecache] seed and "Did not get image data back" problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Tilecache] seed and "Did not get image data back" problem

xiuxu
This post has NOT been accepted by the mailing list yet.

Dear all

I have a problem with seeding a layer which use a wms service. When I deal with the basic layer,the example tilecache took itself,it is all right.

Practicaly, when running tilecache seed script, I get some python exception with the message "Did not get image data back" and the seeding stop. (see full backtrace below)

I would like to know the reason of the problem. The url http://127.0.0.1:80/cgi-bin/mapserv.exe?MAP=F:/ms4w/tutorial/htdocs/example1.map&LAYERS=ALL&MODE=MAP is ok, I can see the map, but when the tilecache works, it tells “msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.”?

this is what I use to call the seeding script:
states 0 5

my layer definition in my tilecache.cfg

[states]
type=WMS
url=http://127.0.0.1:80/cgi-bin/mapserv.exe?MAP=F:/ms4w/tutorial/htdocs/example1.map
layers=states
extension=png
bbox=-97.238976,41.619778,-82.122902,49.385620
size=256,256
srs=EPSG:4326

the error traceback

C:\Python27\python.exe "E:\Program Files\JetBrains\PyCharm 2.6.3\helpers\pydev\pydevd.py" --multiproc --client 127.0.0.1 --port 8961 --file F:/ms4w/Apache/htdocs/tilecache/tilecache_seed.py
pydev debugger: process 448 is connecting
Connected to pydev debugger (build 121.378)
###### (0, 0, 0), (2, 1, 0)
Traceback (most recent call last):
  File "E:\Program Files\JetBrains\PyCharm 2.6.3\helpers\pydev\pydevd.py", line 1457, in <module>
    debugger.run(setup['file'], None, None)
  File "E:\Program Files\JetBrains\PyCharm 2.6.3\helpers\pydev\pydevd.py", line 1103, in run
    pydev_imports.execfile(file, globals, locals) #execute the script
  File "F:/ms4w/Apache/htdocs/tilecache/tilecache_seed.py", line 9, in <module>
    TileCache.Client.main()
  File "F:/ms4w/Apache/htdocs/tilecache\TileCache\Client.py", line 189, in main
    seed(svc, layer, map(int, args[1:3]), bboxlist , padding=options.padding, force = options.force, reverse = options.reverse, delay=options.delay)
  File "F:/ms4w/Apache/htdocs/tilecache\TileCache\Client.py", line 124, in seed
    svc.renderTile(tile,force=force)
  File "F:/ms4w/Apache/htdocs/tilecache\TileCache\Service.py", line 138, in renderTile
    data = layer.render(tile, force=force)
  File "F:/ms4w/Apache/htdocs/tilecache\TileCache\Layer.py", line 444, in render
    return self.renderTile(tile)
  File "F:/ms4w/Apache/htdocs/tilecache\TileCache\Layers\WMS.py", line 29, in renderTile
    tile.data, response = wms.fetch()
  File "F:/ms4w/Apache/htdocs/tilecache\TileCache\Client.py", line 69, 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:80/cgi-bin/mapserv.exe?MAP=F:/ms4w/tutorial/htdocs/example1.map&layers=states&styles=&service=WMS&width=256&format=image%2Fpng&request=GetMap&height=256&srs=EPSG%3A4326&version=1.1.1&bbox=-97.238976%2C41.619778%2C-89.680939%2C49.177815
Content-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>
msWMSDispatch(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings.
</ServiceException>
</ServiceExceptionReport>

Process finished with exit code 1
Reply | Threaded
Open this post in threaded view
|

supplement : [Tilecache] seed and "Did not get image data back" problem

xiuxu
This post has NOT been accepted by the mailing list yet.