[Tilecache] agg support
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Tue Oct 30 06:45:49 EDT 2007
Hi,
use:
url=http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?MAP=../mapping/osmm/line.map&format=agg%2Fpng24
note the & instead of the ? before format
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: Simon Cantem <simon at citysafe.org>
Naar: tilecache at openlayers.org <tilecache at openlayers.org>
Onderwerp: [Tilecache] agg support
Datum: 30/10/07 08:42
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 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: %snContent-Type
> Header: %snResponse: 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
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
More information about the Tilecache
mailing list