[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,
> 
> &nbsp;
> 
> Sorry about duplicating this with a query in IRC, but I&#8217;m
> about to go to bed here in New Zealand and everyone seems to be away.
Basically
> I&#8217;m trying to get agg support working with my config, but I&#8217;m
> having a few problems. I&#8217;ve got the following in my tilecache.cfg
file:
> 
> &nbsp;
> 
> [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
> 
> &nbsp;
> 
> But I get the error:
> 
> &nbsp;
> 
> &lt;HTML&gt;
> 
> &lt;HEAD&gt;&lt;TITLE&gt;MapServer
> Message&lt;/TITLE&gt;&lt;/HEAD&gt;
> 
> &lt;!--
> 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
> --&gt;
> 
> &lt;BODY
> BGCOLOR=&quot;#FFFFFF&quot;&gt;
> 
> msEvalRegex():
> Regular expression error. String
(../mapping/osmm/line.map?format=agg/png24)
> failed expression test.
> 
> &lt;/BODY&gt;&lt;/HTML&gt;
> 
> &nbsp;
> File &quot;/var/www/tilecache/TileCache/Service.py&quot;, line 497, in
> cgiHandler
> 
> &nbsp;&nbsp;&nbsp;
> format, image = service.dispatchRequest( params, path_info, req_method,
host )
> 
> &nbsp;
> File &quot;/var/www/tilecache/TileCache/Service.py&quot;, line 415, in
> dispatchRequest
> 
> &nbsp;&nbsp;&nbsp;
> return self.renderTile(tile, params.has_key('FORCE'))
> 
> &nbsp;
> File &quot;/var/www/tilecache/TileCache/Service.py&quot;, line 377, in
renderTile
> 
> &nbsp;&nbsp;&nbsp;
> data = layer.render(tile)
> 
> &nbsp;
> File &quot;/var/www/tilecache/TileCache/Layer.py&quot;, line 253, in
render
> 
> &nbsp;&nbsp;&nbsp;
> return self.renderTile(tile)
> 
> &nbsp;
> File &quot;/var/www/tilecache/TileCache/Layer.py&quot;, line 297, in
renderTile
> 
> &nbsp;&nbsp;&nbsp;
> tile.data, response = wms.fetch()
> 
> &nbsp;
> File &quot;/var/www/tilecache/TileCache/Client.py&quot;, line 55, in fetch
> 
> &nbsp;&nbsp;&nbsp;
> raise Exception(&quot;Did not get image data back. nURL: %snContent-Type
> Header: %snResponse: n%s&quot; % (self.url(), ctype, data))
> 
> &nbsp;
> 
> &nbsp;
> 
> Does anyone have any ideas on what I&#8217;m doing wrong? Agg
> seems to work fine when I access mapserver directly, so I&#8217;m thinking
it&#8217;s
> something wrong with my syntax.
> 
> &nbsp;
> 
> Thanks,
> 
> Simon
> 
> &nbsp;
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
> 






More information about the Tilecache mailing list