thanks for the response daniel.<br>
<br>
i figured this out shortly after i posted the question.<br>
<br>getting the symbols by id&nbsp; [1 ... numSymbols] does indeed work.<br><br>ak<br><br><div class="gmail_quote">On Thu, Apr 3, 2008 at 12:00 PM, Daniel Morissette &lt;<a href="mailto:dmorissette@mapgears.com">dmorissette@mapgears.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">alim karim wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
i would also like the user to be presented with a list of all the symbols defined in the mapfile that i am working with. i have gone through the API but haven&#39;t come across any functions that will allow me to accomplish this. does such functionality exist in the API?<br>

<br>
</blockquote>
<br></div>
The mapObj&#39;s getNumSymbols() and getSymbolObjectById() methods should allow you to do something like this (untested):<br>
<br>
<br>
 &nbsp;$numsymbols = $map-&gt;getNumSymbols();<br>
<br>
 &nbsp;# Start looping at 1 since symbol 0 is the default symbol<br>
 &nbsp;for ($id=1; $id &lt; $numsymbols; $id++)<br>
 &nbsp;{<br>
 &nbsp; &nbsp;$symbol = $map-&gt;getSymbolObjectById($id);<br>
 &nbsp; &nbsp;# Do something with $symbol here... see the symbolObj class docs...<br>
 &nbsp;}<br>
<br>
Daniel<br><font color="#888888">
-- <br>
Daniel Morissette<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br>