Mapscript getClassByName
Steve Young
steve at SIERRACLUB.BC.CA
Thu Aug 11 21:17:37 PDT 2005
Thanks Bill,
That gives me what I needed.
Steve
________________________________
From: William Bronsema [mailto:wbronsema at dmsolutions.ca]
Sent: August 11, 2005 5:35 AM
To: Steve Young; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] Mapscript getClassByName
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/c0900339/attachment.htm>
More information about the MapServer-users
mailing list