SWIG Mapscript: Checking for label object

Sean Gillies sgillies at FRII.COM
Wed May 18 13:23:49 PDT 2005


On May 18, 2005, at 11:59 AM, Ryan, Adam wrote:

> Mapscripters,
>
> Labels are drawn for a class with as little as 'LABEL END' in the map
> file.
> That's pretty cool.
>
> But how can I tell, using mapscript, if such a label is defined?
> classObj.label returns an object regardless.
>
> Hints?
>
> Adam
>

Adam,

That's right, all classObjs have a default label.  Whether or not a
class is labeled depends on the parent layer's labelitem.

Sean

--
Sean Gillies
sgillies at frii dot com
http://zcologia.com



More information about the MapServer-users mailing list