[mapserver-users] python mapscript AGG problem

Guillaume Sueur no-reply at neogeo-online.net
Tue Apr 21 04:54:17 PDT 2009


Yes, you can, by compiling your own version of MapServer including agg
support and running setup.py install from mapscript/python directory.
But you'll run into agg static lib problem, that you can fix following
the included instructions from PerryGeo (http://www.perrygeo.net/wordpress/)

Best regards,

Guillaume

dzizes a écrit :
> 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
> <no-reply at neogeo-online.net <mailto:no-reply at neogeo-online.net>> 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?
>     >
>     >
> 
> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: agg_mapserver.txt
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090421/1f3256ec/attachment.txt>


More information about the MapServer-users mailing list