<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>RE: [UMN_MAPSERVER-USERS] access to KEYIMAGE from Class object in mapscript</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I've tried to use it as following :</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;-&gt; mapfile :</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .....</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">LAYER # RASTER 2</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">GROUP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IGN</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Nord-ouest'</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IgnScan25/G092_052.tif</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEFAULT</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RASTER</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">PROJECTION</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&quot;init=epsg-dist:27572&quot;</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">END</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">CLASS</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Nord-ouest'</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">KEYIMAGE&nbsp;&nbsp; 'ignG.gif'</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">END</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">END # END RASTER 2</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp; ....</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; </FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;-&gt; code :</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ......</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">$classes = $currentLayer-&gt;getClasses();</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">foreach ($classes as $class) {</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">$layImgUrl = $class-&gt;keyimage;</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">error_log('main.phtml&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; icon get from keyimage = '.$layImgUrl,0);</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">....</FONT></SPAN>

<BR><SPAN LANG="fr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">}</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .....</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">$class-&gt;keyimage return always a null string in spite of KEYIMAGE keyword in the class section...</FONT></SPAN>
</P>

<P><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Perhaps $classObj-&gt;keyimage doesn't implemented ?</FONT></SPAN>
</P>

<P><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Does somebody know the answer ?</FONT></SPAN>
</P>

<P><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Thanks.</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Sebastien</FONT></SPAN>
</P>
<UL>
<P><SPAN LANG="fr"><FONT SIZE=1 FACE="Arial">-----Message d'origine-----</FONT></SPAN>

<BR><SPAN LANG="fr"><B><FONT SIZE=1 FACE="Arial">De:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">Lowell Filak [SMTP:lfilak@medinaco.org]</FONT></SPAN>

<BR><SPAN LANG="fr"><B><FONT SIZE=1 FACE="Arial">Date:&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">vendredi 14 janvier 2005 17:07</FONT></SPAN>

<BR><SPAN LANG="fr"><B><FONT SIZE=1 FACE="Arial">À:</FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</B> <FONT SIZE=1 FACE="Arial">Bel Sébastien; MAPSERVER-USERS@LISTS.UMN.EDU</FONT></SPAN>

<BR><SPAN LANG="fr"><B><FONT SIZE=1 FACE="Arial">Objet:&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">Re: [UMN_MAPSERVER-USERS] access to KEYIMAGE from Class object in mapscript</FONT></SPAN>
</P>

<P><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">I believe &quot;keyimage&quot; should be a member of classobj.?</FONT></SPAN>
</P>

<P><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">Lowell</FONT></SPAN>
</P>

<P><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">The following message was sent by =?iso-8859-1?Q?Bel_S=E9bastien?=</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&lt;s-bel@VILLE-THONON.FR&gt; on Fri, 14 Jan 2005 11:23:27 +0100.</FONT></SPAN>
</P>

<P><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; Hi list,</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; </FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; i'd like to retreive the keyimage value of a class from my mapfile</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">using &gt; php.</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; i've not found any attributs or method into the Class object of &gt;</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">phpmapscript</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; to do that.</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; </FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; how is it possible ?</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; </FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; Thank's for your help.</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; </FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; Sébastien</FONT></SPAN>

<BR><SPAN LANG="fr"><FONT SIZE=2 FACE="Arial">&gt; </FONT></SPAN>
</P>
</UL>
</BODY>
</HTML>