[Mapserver-users] WMS GetLegendGraphic and KEYIMAGE

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Wed Jul 7 17:37:00 PDT 2004


> -----Original Message-----
> From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] 
> Sent: Wednesday, July 07, 2004 2:14 PM
> To: Kralidis,Tom [Burlington]
> Cc: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE
> 
> 
> If it is for a specific layer, why not use the width and height 
> parameters in the request ? Do you have other suggestions ?
> 

I could explicitly, however if I'm a WMS client, my first inclination is
to do a GetCapabilities, and go from there.  This is where LegendURL
would be useful.

I suggest a KEYIMAGESIZE be added so that when LegendURL does get added
to WMS GetCapabilities, that the width and height attributes are taken
from KEYIMAGESIZE (or, even better, if MapServer can figure out the
KEYIMAGE value extents :))

What do you think?

..Tom


> 
> Kralidis,Tom [Burlington] wrote:
> 
> > Right, but doesn't the legend object define a legend for 
> the *entire* 
> > WMS?  This is a specific layer level legend KEYIMAGE -- 
> i.e. I don't 
> > want all my legend image dimensions to be the size of the 
> KEYIMAGE in 
> > the one layer.
> > 
> > ..Tom
> > 
> > 
> > 
> >>-----Original Message-----
> >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca]
> >>Sent: Wednesday, July 07, 2004 10:21 AM
> >>To: Kralidis,Tom [Burlington]
> >>Cc: mapserver-users at lists.gis.umn.edu
> >>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE
> >>
> >>
> >>Tom,
> >>
> >>   Here is how the size is determined :
> >>     -  If Width and Height parameter are passed in the
> >>GetLegendGraphic 
> >>request , they will be used.
> >>     - If not, it will use the size oparameters in the legend object
> >>     - if none of the above is valid, the defaut size will be 20/20.
> >>
> >>Later,
> >>
> >>Kralidis,Tom [Burlington] wrote:
> >>
> >>
> >>>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
> >>>
> >>
> >>
> >>--
> >>----------------------------------------------------------------
> >>Assefa Yewondwossen
> >>Software Analyst
> >>
> >>Email: assefa at dmsolutions.ca
> >>http://www.dmsolutions.ca/
> >>
> >>Phone: (613) 565-5056 (ext 14)
> >>Fax:   (613) 565-0925
> >>----------------------------------------------------------------
> >>
> >>
> >>
> > 
> > 
> > 
> 
> 
> -- 
> ----------------------------------------------------------------
> Assefa Yewondwossen
> Software Analyst
> 
> Email: assefa at dmsolutions.ca
> http://www.dmsolutions.ca/
> 
> Phone: (613) 565-5056 (ext 14)
> Fax:   (613) 565-0925
> ----------------------------------------------------------------
> 
> 
> 




More information about the MapServer-users mailing list