[mapserver-users] Making a Legend?

Keith Baker krbaker@metacarta.com
14 Nov 2002 13:23:43 -0500


--=-CTgplcQf341p68hYleyu
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I'd like to make just a legend on a separate page from everything else.=20
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   =20
  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=3Dlegend&map=3D/mapdata/vmap.map&MAPE=
XT=3D-180.000000%2081.449275%20180.000000%20-81.449275&MAPSIZE=3D621%20281


I get a small image with no content?  what do I do?

--=-CTgplcQf341p68hYleyu
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA90+ovyzx89uXZKRERAoh6AKDJnfSGbzXicesI/VaAyKD+d6RpjgCgti92
ACBAOyni9EJrXylZ0vmmJGI=
=arwS
-----END PGP SIGNATURE-----

--=-CTgplcQf341p68hYleyu--