[Tilecache] agg support

Simon Cantem simon at citysafe.org
Tue Oct 30 06:41:19 EDT 2007


Hi,

 

Sorry about duplicating this with a query in IRC, but I'm about to go to
bed here in New Zealand and everyone seems to be away. Basically I'm
trying to get agg support working with my config, but I'm having a few
problems. I've got the following in my tilecache.cfg file:

 

[topographicline]

type=WMSLayer

layers=TopographicLine

url=http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?MAP=../mapping/osmm/line.map?
format=agg%2Fpng24

extension=png

extent_type=loose

 

But I get the error:

 

<HTML>

<HEAD><TITLE>MapServer Message</TITLE></HEAD>

<!-- MapServer version 5.0.0-beta6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE -->

<BODY BGCOLOR="#FFFFFF">

msEvalRegex(): Regular expression error. String
(../mapping/osmm/line.map?format=agg/png24) failed expression test.

</BODY></HTML>

  File "/var/www/tilecache/TileCache/Service.py", line 497, in
cgiHandler

    format, image = service.dispatchRequest( params, path_info,
req_method, host )

  File "/var/www/tilecache/TileCache/Service.py", line 415, in
dispatchRequest

    return self.renderTile(tile, params.has_key('FORCE'))

  File "/var/www/tilecache/TileCache/Service.py", line 377, in
renderTile

    data = layer.render(tile)

  File "/var/www/tilecache/TileCache/Layer.py", line 253, in render

    return self.renderTile(tile)

  File "/var/www/tilecache/TileCache/Layer.py", line 297, in renderTile

    tile.data, response = wms.fetch()

  File "/var/www/tilecache/TileCache/Client.py", line 55, in fetch

    raise Exception("Did not get image data back. \nURL:
%s\nContent-Type Header: %s\nResponse: \n%s" % (self.url(), ctype,
data))

 

 

Does anyone have any ideas on what I'm doing wrong? Agg seems to work
fine when I access mapserver directly, so I'm thinking it's something
wrong with my syntax.

 

Thanks,

Simon

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20071030/05d52307/attachment.html


More information about the Tilecache mailing list