wbronsema at DMSOLUTIONS.CA
Thu Aug 11 08:34:41 EDT 2005
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
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
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users