I know that its not proper. It is standard one which goes with default linux package.<br>I'm wandering if there is a way for upgrading python mapscript module with reference to AGG library.<br><br>--<br>Micha³<br>
<br><br><div class="gmail_quote">On Tue, Apr 21, 2009 at 12:38 PM, Guillaume Sueur <span dir="ltr"><<a href="mailto:no-reply@neogeo-online.net">no-reply@neogeo-online.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">Hi,<br>
<br>
I guess that the mapscript you are using with python is not the proper<br>
one. Did you go to mapserver/mapscript/python and run setup.py install ?<br>
<br>
Note that integration of agg in python-mapscript is not trivial due to<br>
some limitations in the agg lib.<br>
<br>
regards<br>
<br>
Guillaume<br>
<br>
dzizes a écrit :<br>
> HEllo!<br>
><br>
> I've compiled mapserver against AGG on linux. My web application that works<br>
> with mapserver renders nice images with the use of AGG library.<br>
><br>
> /usr/lib/cgi-bin$ ./mapserv -v<br>
> MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV<br>
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI<br>
> SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR<br>
> INPUT=GDAL INPUT=SHAPEFILE<br>
><br>
><br>
> However, when I try to open simple mapfile with mapscript - python craches.<br>
><br>
> Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)<br>
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
>>>> import mapscript<br>
>>>> m = mapscript.mapObj('/tmp/test.map')<br>
> Traceback (most recent call last):<br>
> File "<stdin>", line 1, in <module><br>
> File "/usr/lib/python2.5/site-packages/mapscript.py", line 1267, in<br>
> __init__<br>
> this = _mapscript.new_mapObj(*args)<br>
> _mapscript.MapServerError: loadOutputFormat(): General error message.<br>
> OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't<br>
> configured.<br>
><br>
> # mapfile output specification<br>
> OUTPUTFORMAT<br>
> NAME png<br>
> DRIVER "AGG/PNG"<br>
> MIMETYPE "image/png"<br>
> IMAGEMODE RGB<br>
> EXTENSION "png"<br>
><br>
> FORMATOPTION "TRANSPARENT=ON"<br>
> FORMATOPTION "INTERLACE=OFF"<br>
> FORMATOPTION "QUANTIZE_FORCE=OFF"<br>
> END<br>
><br>
> Any ideas what might be wrong?<br>
><br>
><br>
</div></div></blockquote></div><br>