[mapserver-users] GetLegendGraphic and Mapserver upgrade

Scott Stewart scott.stewart at nbtsolutions.com
Fri Apr 1 09:04:17 PDT 2011


Hi

I recently upgraded a mapserver 5.2 server to 5.6.6 and it has "broken" my
abiltity to get legend icons WITHOUT labels and a specificied size

here is my legend block from my mapfile

LEGEND
    IMAGECOLOR 255 255 255
    KEYSIZE 20 10
    KEYSPACING 5 5
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
    END
    POSITION LL
    STATUS OFF
  END


and here is my RULE for the layer

 CLASS
      NAME "AboveNet"
      STYLE
        ANGLE 360
        COLOR 0 0 255
        OPACITY 100
        SYMBOL 0
        WIDTH 4
      END
    END

 and here is my request

http://
<server>/cgi-bin/mapserv?map=/home/fiberlocatormaps/mapfiles/fiberlocator.map&LAYER=l_abovenet&RULE=AboveNet&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&FORMAT=image%2Fpng&WIDTH=16&HEIGHT=16


When I make this call on the new server, I ALWAY get back a legend graphic
with a label. On the old server, i get back a nice 16x16 png. I have read in
some place about ommiting the RULE in the request, but this didnt work for
me. It still returns the label. If i remove the CLASS from the mapfile, it
returns an "empty" image

My question is what changed and how do i go about fixing or rectifying the
problem?

-- 
Scott Stewart
Principal
NBT Solutions LLC
phone: (757)941-5110
email: scott.stewart at nbtsolutions.com
website:www.nbtsolutions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110401/41d04f83/attachment.htm>


More information about the MapServer-users mailing list