[Tilecache] agg support
Simon Cantem
simon at citysafe.org
Tue Oct 30 16:25:45 EDT 2007
Doh! Damn jetlag, I knew it would be something simple, thanks for
pointing that out. I'm no longer getting an error, but it's still not
rendering with agg. I've tried calling it with:
this.topoline24 = new OpenLayers.Layer.WMS("TopographicLine Agg",
"http://xxx.xxx.xxx.xxx/tilecache.cgi", {layers: 'topographicline',
format: 'agg/png24', gutter: 15}, {isBaseLayer: false} );
this.topoline24 = new OpenLayers.Layer.WMS("TopographicLine Agg",
"http://xxx.xxx.xxx.xxx/tilecache.cgi", {layers: 'topographicline',
format: 'png', gutter: 15}, {isBaseLayer: false} );
but both produce the same result. Any ideas on how to call it properly
to get it to render through agg?
Thanks very much,
Simon
-----Original Message-----
From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl]
Sent: Tuesday, 30 October 2007 11:46 PM
To: Simon Cantem; tilecache at openlayers.org
Subject: Re: [Tilecache] agg support
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