access to KEYIMAGE from Class object in mapscript

Bel Sébastien s-bel at VILLE-THONON.FR
Tue Jan 25 09:01:05 PST 2005


> I've tried to use it as following :
>  -> mapfile :
>       .....
>       LAYER # RASTER 2
>               GROUP        IGN
>               NAME         'Nord-ouest'
>               DATA         IgnScan25/G092_052.tif
>               STATUS       DEFAULT
>               TYPE         RASTER
>               PROJECTION
>                       "init=epsg-dist:27572"
>               END
>               CLASS
>                       NAME       'Nord-ouest'
>                       KEYIMAGE   'ignG.gif'
>               END
>       END # END RASTER 2
>      ....
>     
>  -> code :
>       ......
>       $classes = $currentLayer->getClasses();
>       foreach ($classes as $class) {
>               $layImgUrl = $class->keyimage;
>               error_log('main.phtml      > icon get from keyimage = '.$layImgUrl,0);
>               ....
>       }
>       .....
> 
> 
> $class->keyimage return always a null string in spite of KEYIMAGE keyword in the class section...
> 
> Perhaps $classObj->keyimage doesn't implemented ?
> 
> Does somebody know the answer ?
> 
> Thanks.
> Sebastien
> 
> -----Message d'origine-----
> De:   Lowell Filak [SMTP:lfilak at medinaco.org]
> Date: vendredi 14 janvier 2005 17:07
> À:  Bel Sébastien; MAPSERVER-USERS at LISTS.UMN.EDU
> Objet:        Re: [UMN_MAPSERVER-USERS] access to KEYIMAGE from Class object in mapscript
> 
> I believe "keyimage" should be a member of classobj.?
> 
> Lowell
> 
> The following message was sent by =?iso-8859-1?Q?Bel_S=E9bastien?=
> <s-bel at VILLE-THONON.FR> on Fri, 14 Jan 2005 11:23:27 +0100.
> 
> > Hi list,
> > 
> > i'd like to retreive the keyimage value of a class from my mapfile
> using > php.
> > i've not found any attributs or method into the Class object of >
> phpmapscript
> > to do that.
> > 
> > how is it possible ?
> > 
> > Thank's for your help.
> > 
> > Sébastien
> > 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050125/df813851/attachment.htm>


More information about the MapServer-users mailing list