getLegendGraphic - GD Library Error

Astrid Emde astrid.emde at CCGIS.DE
Tue Oct 26 02:44:30 PDT 2004


Hello,

wenn I send my getLegendGraphic-Request I get the following error:

msDrawLegend(): GD library error. Unable to initialize image.
msImageCreateGD(): Image handling error. Cannot create GD image of size
60 x 0.

Does anyone know, what can be wrong? How can I solve the problem?

---------------
that's how the request looks like:
http://192.168.2.78/cgi-bin/mapserv?map=/data/map/test.map&request=getLegendGraphic&VERSION=1.1.1&LAYER=poi&FORMAT=text/html
---------------


That's how the Mapfile looks like:

   # Start of legend
#
LEGEND
   STATUS ON
   KEYSIZE 40 20
   KEYSPACING 10 10
   IMAGECOLOR 128 128 128
   #OUTLINECOLOR 0 0 0
   LABEL
       COLOR 120 120 120
       TYPE TRUETYPE
       FONT "arial"
       SIZE 12
   END # END LABEL
END   #LEGEND

.....
  LAYER
     NAME 'poi'
     STATUS ON
     CONNECTIONTYPE postgis
     CONNECTION 'user=pgsql dbname=test host=localhost'
     DATA "the_geom from poi"
     TYPE POINT
     PROJECTION
         'init=epsg:31494'
     END

     METADATA
       'WMS_SRS'    'epsg:31494'
       'WMS_TITLE'    'test'
       'WMS_FEATURE_INFO_MIME_TYPE'    'text/html'
     END

   CLASSITEM "symbol"
   CLASS
      NAME "Geldautomat"
      EXPRESSION /./
    MINSCALE 0
    MAXSCALE 1000
    STYLE
       SYMBOL "geldautomat_50"
       SIZE 10
    END
   END
END
.....


Thanx

Astrid Emde



More information about the MapServer-users mailing list