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