funky legend

Bob Basques Bob.Basques at CI.STPAUL.MN.US
Fri Jan 4 16:22:06 EST 2008


All,
 
I'm so embarrassed.
 
figured it out for myself.  Needed to change the Shield symbol layer to
ANNOTATION from LINE  Just needed a separate layer for the Symbol
Points
 
Thanks
 
The previous link show the corrected Symbols now.
 
bobb
 


>>> Bob Basques <Bob.Basques at ci.stpaul.mn.us> wrote:
This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=__Part775143B9.0__=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

All,

Note, the last Highway Shield in the Legend output is generated from a
carbon copy of the first CLASS in the listing below but at the line
drawing stage.  I was trying to move the Legend generation stuff into
it's own LAYER as list below, but the Symbols don't want to cooperate
for some reason.  Are there some default settings that should be used
or
????

Thanks

bobb


Here is the MAPFILE fragment for the legend output:

########################
##  Legend Chips - This section used exclusively for Legend Generation
##                 Basically these are duplicates of the Style entries
##                 for the separate layer
########################
  LAYER
    NAME 'legend_chips'
    GROUP 'interstate_poly'
    STATUS DEFAULT
    TYPE LINE
    CLASS
      NAME 'US Interstate'
      STYLE
        SYMBOL 'interstate1_wide_back'
        SIZE 22
        COLOR 255 0 0
      END
      STYLE
        SYMBOL 'interstate1_wide_front'
        SIZE 22
        COLOR 115 113 206
        OUTLINECOLOR 254 254 254
      END      
      LABEL
        TYPE TRUETYPE
        FONT bluehigh
        SIZE 12
        COLOR 254 254 254
        MINDISTANCE 200
        MINFEATURESIZE 10
        OFFSET 0 0
        PARTIALS FALSE
      END
    END
    CLASS
      NAME 'Access Ramp'
      STYLE
        SYMBOL 'circle'
        SIZE 6
        COLOR 175 175 175
      END
      STYLE
        SYMBOL 'circle'
        SIZE 4
        COLOR 239 211 66
      END
    END
    CLASS
      NAME 'Local Roads'
      STYLE
        SYMBOL 'circle'
        SIZE 14
        COLOR 175 175 175
      END
      STYLE
        SYMBOL 'circle'
        SIZE 10
        COLOR 254 254 254
      END
    END
    CLASS
      NAME 'Secondary Road'
      STYLE
        SYMBOL 'circle'
        SIZE 14
        COLOR 175 175 175
      END
      STYLE
        SYMBOL 'circle'
        SIZE 10
        COLOR 255 251 115
      END
    END
    CLASS
      NAME 'MN Highway'
      STYLE
        SYMBOL 'circle'
        SIZE 14
        COLOR 175 175 175
      END
      STYLE
        SYMBOL 'circle'
        SIZE 10
        COLOR 255 251 115
      END
    END
    CLASS
      NAME 'US Highway'
      STYLE
        SYMBOL 'circle'
        SIZE 14
        COLOR 175 175 175
      END
      STYLE  
        SYMBOL 'circle'  
        SIZE 10  
        COLOR 255 251 115 
      END
    END
    END
    
  END

--=__Part775143B9.0__=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html;
charset=3Diso-8859-15=
">
<META content=3D"MSHTML 6.00.2800.1505" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN: 4px 4px 1px; FONT: 10pt Comic Sans MS">
<DIV>All,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Note, the last Highway Shield in the Legend output is generated
from =
a carbon copy of the first CLASS in the listing below but at the line
=
drawing stage.&nbsp; I was trying to move the Legend generation stuff
into =
it's own LAYER as list below, but the Symbols don't want to cooperate
for =
some reason.&nbsp; Are there some default settings that should be used
or =
????</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>bobb</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is the MAPFILE fragment for the legend output:</DIV>
<DIV>&nbsp;</DIV>
<DIV>########################<BR>##&nbsp; Legend Chips - This section
used =
exclusively for Legend
Generation<BR>##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Basically
=
these are duplicates of the Style
entries<BR>##&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
for =
the separate layer<BR>########################<BR>&nbsp;
LAYER<BR>&nbsp;&nb=
sp;&nbsp; NAME 'legend_chips'<BR>&nbsp;&nbsp;&nbsp; GROUP
'interstate_poly'=
<BR>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; TYPE
LINE<BR>&n=
bsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'US =
Interstate'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
STYLE<BR>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp; SYMBOL
'interstate1_wide_back'<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; SIZE
22<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; COLOR 255 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
END<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SYMBOL =
'interstate1_wide_front'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
=
SIZE 22<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 115 113 =
206<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 254 254
=
254<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
=
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 175 175 =
175<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
END<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
STYLE&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL =
'circle'&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE =
10&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 251
115 =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp;
END<BR>&nbsp;&=
nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;
END</DIV></BODY></HTML>

--=__Part775143B9.0__=--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080104/f83a2ce2/attachment.html


More information about the mapserver-users mailing list