[mapserver-users] Legend size problem in GetLegendGraphic request

Dejan Gambin dejan.gambin at coin.hr
Fri Feb 17 06:52:22 EST 2012


Steve,

It is also happening with a layer that has pixel units, that legend symbol exceeds the key box. For example I have a polygon layer with outline width 5 and the symbol exceeds the key box borders. With a width of 1 for example, everything is ok.

Am I doing something wrong? 

regards, dejan
On 9. vel. 2012., at 15:47, Lime, Steve D (DNR) wrote:

> We could always size symbols relative to the KEYSIZE but if you do that then relative differences between wide and narrow lines or large and small markers would be lost. If units are in pixels then one could compute a global scaling factor across all layers so that differences are preserved. Doesn't help with non-pixel units.
> 
> Steve
> 
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Dejan Gambin [dejan.gambin at coin.hr]
> Sent: Thursday, February 09, 2012 1:33 AM
> To: Lime, Steve D (DNR)
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request
> 
> Thx Steve,
> 
> Shouldn't the request somehow take into account the KEYSIZE, that is always in pixels?
> 
> Anyway, I have reported this (before your email) as a bug: http://trac.osgeo.org/mapserver/ticket/4177
> 
> In the mean time, yes I could use KEYIMAGE, I just wanted to avoid it. Or I can make my points circles and use pixels for SIZEUNITS
> 
> dejan
> On 7. vel. 2012., at 22:11, Lime, Steve D (DNR) wrote:
> 
>> I'd call this a bug. Question is what size to use if sizeunits are specified. I don't have a good suggestion for that, anyone? One idea for an immediate workaround would be to create an image ahead of time and use KEYIMAGE to reference it instead.
>> 
>> Steve
>> 
>> -----Original Message-----
>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin
>> Sent: Monday, February 06, 2012 9:37 AM
>> To: mapserver-users at lists.osgeo.org
>> Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request
>> 
>> Does someone know if this is some kind of a bug or it is supposed to be so? Should the legend symbol box size really depend on sizeunits? Or should I report it as a bug?
>> 
>> thx, dejan
>> 
>> On 3. vel. 2012., at 09:45, Dejan Gambin wrote:
>> 
>>> Hi,
>>> 
>>> I have point shapefile and trying to show the points as big circles on the map. So I am using something like:
>>> 
>>> ...
>>> SIZEUNITS kilometers
>>> CLASS
>>> Name "myname"
>>> SIZE 10
>>> ...
>>> END
>>> ...
>>> 
>>> Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18.
>>> 
>>> Btw, I am using WMS GetLegendGraphic request for getting the legend
>>> 
>>> Thanks very much
>>> 
>>> regards, dejan_______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> 
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> 
>> 
> 
> _______________________________________________
> 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