<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">You might be able to lay it out as a map (using a mapfile) with a bunch of inline features that you could assign symbols (could be calls to MapServer to get legend
icons since a SYMBOL can be a URL) and labels.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The problem is that if this needs to be really dynamic (different layers show/hide) then I think you’d have to lay things out using other tools – MapScript, ImageMagik
or something else along those line. MapScript could probably automate much of the layout as a map/mapfile programmatically.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">--Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Basques, Bob (CI-StPaul)<br>
<b>Sent:</b> Thursday, December 14, 2017 10:00 AM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] Legend graphic output: Nested.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anbyone have any ideas on how to output a nested, or indented legend graphic (as a raster image?)?
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Looking for something like this:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Storm <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Fitting (blue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Catchbasin (blue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Manhole (blue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Forcemain (blue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Storm Pipe (blue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Storm, Private<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">— Fitting (lightblue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Catchbasin (lightblue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Manhole (lightblue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Forcemain (lightblue)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Storm Pipe (lightblue)<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">Storm, Saint Paul<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">— Fitting (purple)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Catchbasin (purple)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Manhole (purple)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Forcemain (purple)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">— Storm Pipe (purple)<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">etc. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Each of the sub list items are a separate layer in the MAPFILE, and the Main headings, would be used to filter on. Do all 15 layers above need to be defined in order to get a line in the legend to appear. This is just an example BTW,
I have many more main headings to contend with. I guess it comes down to, how do I grab the filter item and insert it into the Legend graphic, and probably along with the color assignment as well. Maybe I’m thinking about this backwards. I could pass in
the color along with the main heading filter . . . but how to get a composite legend. Maybe it needs to be three (or more) different calls.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">. . . .<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">A simpler description of the need, is to display a seamless Sewer network with color coded ownership, but using the same cartography for each sub-heading. Hmm, maybe an INCLUDE . . .<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">It feels like a Monday today for some reason . . . . :c)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">bobb<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="widows: 1"><em><span style="font-size:10.5pt">We learn from history that we do not learn from history.</span></em><span style="font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><strong><i><span style="font-size:10.5pt"> ~ George Wilhelm Hegel</span></i></strong><span style="font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>