Hi,<br><br>You might want to specify parameters for leg_group_html, leg_layer_html and leg_class_html respectively. Like for example:<br><br>[leg_group_html opt_flag=12]<br><tr><br> <td colspan=3 bgcolor=#cccccc><b>[leg_group_name]</b></td>
<br></tr><br>[/leg_group_html]<br><br>[leg_layer_html order_metadata=legend_order opt_flag=5]<br><tr><br> <td><br> <input type=checkbox name="map_[leg_layer_name]_status" <br> value=1 [if name=layer_status oper=eq value=2]CHECKED[/if]>
<br> </td><br> <td colspan=2><br> <a href="[metadata name=href]">[metadata name=layer_title]</a><br> </td><br></tr ><br>[/leg_layer_html]<br><br>[leg_class_html opt_flag=14]
<br><tr><br> <td width=15> </td><br> <td><br> <img src="[leg_icon width=20 height=10]" width=20 height=10><br> </td><br> <td><br> [leg_class_name]
<br> </td><br></tr><br>[/leg_class_html]<br><br>Without adding these parameters<br><br>msFreeHashTable(groupArgs);<br>msFreeHashTable(layerArgs);<br>msFreeHashTable(classArgs);<br><br>will fail in generateLegendTemplate (
maptemplate.c)<br><br>I suggest to file a bug report on this issue with the requirement of allowing to specify these template elements without adding parameters.<br><br>Best regards,<br><br>Tamas<br><br><br><br><div><span class="gmail_quote">
2007/4/12, Jean Michel PIERRET <<a href="mailto:jmp@geosys.com">jmp@geosys.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="FR">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hi,</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">How I can use </span></font><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">processLegendTemplate
in c#</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">My source :</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
map = new mapobj(<font color="maroon"><span style="color: maroon;">@"C:\Fichier.map");</span></font></span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
...</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
<font color="blue"><span style="color: blue;">string</span></font> str = <font color="blue"><span style="color: blue;">null</span></font>;</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
<font color="blue"><span style="color: blue;">string</span></font>[] names = <font color="blue"><span style="color: blue;">null</span></font>, values = <font color="blue"><span style="color: blue;">null</span></font>;</span>
</font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
names = <font color="blue"><span style="color: blue;">new</span></font> <font color="blue"><span style="color: blue;">string</span></font>[] {<font color="maroon"><span style="color: maroon;">"map"</span></font>
};</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
values = <font color="blue"><span style="color: blue;">new</span></font> <font color="blue"><span style="color: blue;">string</span></font>[] { <font color="maroon"><span style="color: maroon;">@"C:\Fichier.map"
</span></font>
};</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
str =
map.processLegendTemplate(names, values, names.Length);</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">
...</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Error :</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">{"msFreeHashItems(): Hash table error. Can't
free NULL table;msFreeHashItems(): Hash table error. Can't free NULL
table;msFreeHashItems(): Hash table error. Can't free NULL table"}</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks for your help.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<table style="width: 184.5pt;" border="0" cellpadding="0" width="246">
<tbody><tr>
<td style="padding: 0.75pt; width: 147.75pt;" width="197">
<p><b><font color="#eebb22" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: rgb(238, 187, 34); font-weight: bold;"><a href="mailto:jmp@geosys.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
<font color="#eebb22"><span style="color: rgb(238, 187, 34);">Jean-michel
PIERRET</span></font></a> - Poste 376</span></font></b></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; width: 147.75pt;" width="197">
<p><b><font color="#999999" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: rgb(153, 153, 153); font-weight: bold;">Tel
: +33 (0)5 62 47 80 76</span></font></b><font color="#999999" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: rgb(153, 153, 153);"><br>
<b><span style="font-weight: bold;">Mail</span></b> : <a href="mailto:jmp@geosys.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#336699"><span style="color: rgb(51, 102, 153);">
jmp@geosys.com</span></font></a><br>
</span></font><b><font color="#336699" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: rgb(51, 102, 153); font-weight: bold;">GEOSYS
SA</span></font></b></p>
</td>
</tr>
</tbody></table>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div>
</div>
</blockquote></div><br>