[Mapserver-users] Legend templates, classes and lines...

Jean-Francois.Doyon at CCRS.NRCan.gc.ca Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Tue Jun 24 11:02:00 PDT 2003


Steve,

Hmmm, as you know we use HTML legends extensively, and as of yet I've never
heard of anybody running into this kind of problem in our shop.

It's a pretty simple legend template too, not much room for error.

Also the page output suggests MapServer DID indeed render 3 different icons
for each of the classes.

I would try looking at the caching features of MapServer ... Maybe it's not
overwriting previous icons? Clear the temp directory or something like that?

Maybe you could send the mapfile along to see if there's anything weird in
there? Otherwise, I'm afraid you'll have to look in the code!

Good luck!

J.F.

-----Original Message-----
From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
Sent: Tuesday, June 24, 2003 1:48 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Legend templates, classes and lines...


Hi Folks: I'm using 4.0 and wondered if anyone else has run into
problems with legend templates with LINE layers and multiple classes.
Check out the following URL:

 
http://maps.dnr.state.mn.us/cgi-bin/mapserv40?mapserv=http%3A//maps.dnr.stat
e.mn.us/cgi-bin/mapserv40&map_status=on&mapsize=800+750&map=LANDVIEW_HERITAG
E_MAPFILE&template=/usr/local/www/docs/landview/heritage/templates/print.htm
l&mapext=316287.17433148284+4891207.862044461+342298.221100423+4910705.97065
5294&layers=mnrrpln3+mnnpcpy3+mnsbspy3+lakes+ctybdln2+doq03im4

It's a "print" layout and uses the legend template functionality. The
problem is that the line legend for the "Railroad Rights-of-Way Praries"
ain't right. The 3 classes should be red, yellow and orange (as in the
map) and not all red. The polygon layer below it ("Sites of Biodiversity
Significance") works as expected. Before I run to the source code I want
to make sure I'm not doing anything stupid. The legend template is
included below.

Steve



More information about the MapServer-users mailing list