[mapserver-users] Making a Legend?

Keith Baker krbaker at metacarta.com
Thu Nov 14 13:23:43 EST 2002


I'd like to make just a legend on a separate page from everything else. 
This is what I am trying:


# Start of map file
# GLOBAL CONFIG

NAME Vmap0
STATUS ON
SIZE 600 600
EXTENT -180 -90 180 90

IMAGETYPE PNG
INTERLACE OFF

SHAPEPATH "/mapdata/vmap0/"
SYMBOLSET "/mapdata/vmap.sym"
FONTSET "/mapdata/vmap.font"

#We don't like drawing Oceans so we'll leave the background ocean color
IMAGECOLOR 131 157 255

LEGEND
  STATUS ON
  LABEL
    TYPE TRUETYPE
    FONT arial
    COLOR 0 0 0
    SIZE 12
  END
END


LAYER
  NAME ground
  TYPE POLYGON
  STATUS DEFAULT
  TILEINDEX ground_tile    
  CLASS
    COLOR 251 188 61
  END
END

LAYER
  NAME population
  TYPE POLYGON
  STATUS DEFAULT
  TILEINDEX pop_tile
  MAXSCALE 100
  CLASS
#	COLOR 255 0 0
	COLOR 255 240 82
  END
END


and I send the query:
http://10.1.0.19/cgi-bin/mapserv?mode=legend&map=/mapdata/vmap.map&MAPEXT=-180.000000%2081.449275%20180.000000%20-81.449275&MAPSIZE=621%20281


I get a small image with no content?  what do I do?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20021114/0d2d224c/attachment.bin


More information about the mapserver-users mailing list