[mapserver-users] loadOutputFormat(): error AGG/PNG driver isn't configured.

Ganaël Jatteau gju at galigeo.com
Fri Jul 24 01:22:32 PDT 2009


Hi Thomas,

Thanks for your answer. The info I get with mapserver -v is:

MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

It doesn't say anything about AGG, however it has PNG (which I believe use
the same driver).

Cheers,
Ganael

-----Message d'origine-----
De : Thomas Bonfort [mailto:thomas.bonfort at camptocamp.com] 
Envoyé : vendredi 24 juillet 2009 10:08
À : Galigeo
Cc : mapserver-users at lists.osgeo.org
Objet : Re: [mapserver-users] loadOutputFormat(): error AGG/PNG driver isn't
configured.

what's the output of

mapserv -v

it should include the AGG key somewhere for agg to be supported.

regards,
thomas

www.camptocamp.com
+33 4 79 26 57 97



On Fri, Jul 24, 2009 at 09:58, Galigeo<gju at galigeo.com> wrote:
>
> Hi kapilmanoj
>
> I do have actually the same problem (exept I use Ubuntu 8.04). I had to
> compile mapscript by myself since I use Java and Java mapscript is not
> pre-packaged by Ubuntu. Maybe I missed a dependency during the compilation
?
>
> Anyway, if anyone has a solution to this problem, I'd be glad to know it!
>
> Cheers,
> Ganael
>
>
> kapilmanoj wrote:
>>
>> Dear users,
>>
>> I am using mapserver 5.0.3 on fedora 9. i have been trying out the
>> examples
>> given in the mapserver 5.x tutorial. i am receiving the following error
>> message when attempting to use AGG Output format. i have installed
AGG-2.5
>> through yum install command in fedora 9....
>>
>> error message:   *loadOutputFormat(): General error message. OUTPUTFORMAT
>> clause references driver AGG/PNG, but this driver isn't configured.
>> *
>>
>> This my mapfile for your kind attention
>> MAP
>>   NAME           Gods own country
>>   EXTENT         201621.496941 -294488.285333 1425518.020722
498254.511514
>> #
>> LAEA
>>   #EXTENT         -97.5 41.619778 -82.122902 49.38562 # Geographic
>>   SIZE           400 300
>>   IMAGECOLOR     255 255 255
>>   SHAPEPATH      "/var/www/html/ms4w/aapa/tutorial/data"
>>   SYMBOLSET      "/var/www/html/ms4w/aapa/tutorial/symbols/symbols35.sym"
>>   FONTSET        "/var/www/html/ms4w/aapa/tutorial/fonts/fonts.list"
>>
>>   IMAGETYPE PNG24
>>
>>   OUTPUTFORMAT
>>     NAME png
>>     DRIVER "GD/PNG"
>>     MIMETYPE "image/png"
>>     IMAGEMODE PC256
>>     EXTENSION "png"
>>   END
>>   OUTPUTFORMAT
>>     NAME png24
>>     DRIVER "GD/PNG"
>>     MIMETYPE "image/png"
>>     IMAGEMODE RGBA
>>     EXTENSION "png"
>>   END
>>   OUTPUTFORMAT
>>     NAME jpeg
>>     DRIVER "GD/JPEG"
>>     FORMATOPTION "QUALITY=75"
>>     MIMETYPE "image/jpeg"
>>     IMAGEMODE RGB
>>     EXTENSION "jpg"
>>   END
>>   OUTPUTFORMAT
>>     NAME GTiff
>>     DRIVER "GDAL/GTiff"
>>     MIMETYPE "image/tiff"
>>     IMAGEMODE RGB
>>     EXTENSION "tif"
>>   END
>>
>>   OUTPUTFORMAT
>>     NAME AGG
>>     DRIVER "AGG/PNG"
>>     IMAGEMODE RGB
>>   END
>>   OUTPUTFORMAT
>>     NAME AGGA
>>     DRIVER "AGG/PNG"
>>     IMAGEMODE RGBA
>>   END
>>   OUTPUTFORMAT
>>     NAME AGGJ
>>     DRIVER "AGG/JPEG"
>>     IMAGEMODE RGB
>>   END
>>
>>    WEB
>>     IMAGEPATH '/tmp/ms_tmp/'
>>     IMAGEURL  '/ms_tmp/'
>>   END
>>
>>   PROJECTION
>>        "init=epsg:2163"
>>   END
>>   LAYER
>>     NAME         districts
>>     DATA         parl_04
>>     STATUS       OFF
>>     TYPE         POLYGON
>>
>>     PROJECTION
>>       "init=epsg:4326"
>>     END
>>
>>      CLASSITEM    "NAME"
>>
>>       CLASS
>>       EXPRESSION 'party'
>>       STYLE
>>         SYMBOL     0
>>         COLOR      232 232 232
>>       END
>>     END
>>   END
>>            .
>>            .
>>            .
>>            .
>>
>>   LAYER
>>     NAME         districts
>>     DATA         parl_04
>>     STATUS       OFF
>>     TYPE         ANNOTATION
>>
>>     PROJECTION
>>       "init=epsg:4326"
>>     END
>>
>>     CLASSITEM    "NAME"
>>     LABELITEM    "WINNER"
>>     CLASS
>>       EXPRESSION 'party'
>>       STYLE
>>         COLOR      -1 -1 -1
>>       END
>>       LABEL
>>         COLOR    255 255 255
>>         TYPE     TRUETYPE
>>         FONT     arial-bold
>>         SIZE     12
>>         ANTIALIAS    TRUE
>>         POSITION     CL
>>         PARTIALS     FALSE
>>         MINDISTANCE  300
>>         BUFFER       4
>>       END # end of label
>>     END # end of class
>>   END # States label layer ends here
>>   # End of LAYER DEFINITIONS -------------------------------
>>
>> END # end of map file
>>
>>
>>
>> can anyone please help me out .....
>> suggestion will be appreciated..
>>
>> Thanks
>> kapilmanoj
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
> --
> View this message in context:
http://n2.nabble.com/loadOutputFormat%28%29%3A-error-AGG-PNG-driver-isn%27t-
configured.-tp2388899p3314438.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>




More information about the MapServer-users mailing list