[mapserver-users] Making a Legend?
Keith Baker
krbaker at metacarta.com
Thu Nov 14 10:23:43 PST 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: signature.asc
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.sig>
More information about the MapServer-users
mailing list