Mapscript getClassByName
William Bronsema
wbronsema at DMSOLUTIONS.CA
Thu Aug 11 05:34:41 PDT 2005
Hi Steve,
The work around would be something like this:
for ($i=0; $i<$oLayer->numclasses; $i++)
{
$oClass = $ oLayer->getClass($i);
If ( $oClass->name == $myClassName )
{
// do something
}
}
Makes sense?
HTH
Regards,
Bill
________________________________________________
William A. Bronsema, C.E.T.
Software & Applications Development,
DM Solutions Group Inc.
_____
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Steve Young
Sent: Wednesday, August 10, 2005 8:40 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Mapscript getClassByName
Hi List,
I'm trying to get a handle on mapscript. One of the mapfile attributes I
want to access for dynamic legend creation is the class name.
As best I can tell this isn't accessible using getClassByName(); or similar
function. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=209. Mentions
there is a simple workaround. Unfortuately it isn't simple enough for me to
figure out. Can anyone help?
Thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050811/3c1e6640/attachment.htm>
More information about the MapServer-users
mailing list