[Mapserver-users] WMS GetLegendGraphic and KEYIMAGE

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Wed Jul 7 08:39:11 EDT 2004


> -----Original Message-----
> From: Norbert Thieme [mailto:norbert.thieme at ilmenau.baw.de] 
> Sent: Wednesday, July 07, 2004 2:44 AM
> To: Kralidis,Tom [Burlington]
> Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE
> 
> 
> Kralidis,Tom [Burlington] schrieb:
> > Hi,
> > 
> > I've created a WMS, which has a layer, which defines 
> KEYIMAGE in the 
> > CLASS object.
> > 
> >>From what I understand, KEYIMAGE points to a static image file, so 
> >>when
> > requesting a legend (either through OGC:WMS or classic mapserv 
> > mode=legend), the static image is fed back.
> > 
> > When I request GetLegendGraphic from my WMS layer with 
> KEYIMAGE, the 
> > image comes back really small (i.e. 20 x 10).  My legend 
> image is like 
> > 300 x 50 -- the output image looks like it scrunched into 20 x 10.
> > 
> > Suggestions?
> > 
> > Thanks
> > 
> > ..Tom
> > 
> > _______________________________________________
> > Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > 
> > 
> 
> 
> Hi,
> 
> isn't the "20 x 10" size the default value for the legend 
> icon? Did you 
> define a size for the keyimage in the legend section of your mapfile 
> (KEYSIZE)?
>

Can you define this even?  Chunk:

  CLASS
   NAME "GLC"
   KEYIMAGE "glc2000/tiny-legend.gif"
   SIZE 741 141
  END


..gives me a MapServer error:

loadClass(): Unknown identifier. Parsing error near (141):(line 348)

 
> Regards,
> Norbert
> 




More information about the mapserver-users mailing list