should (classObj.getLabel() == null) when MAP.LAYER.CLASS has no LABEL ?
rich.fromm
nospam420 at YAHOO.COM
Wed Jan 9 17:53:04 PST 2008
rich.fromm wrote:
>
> Within each MAP.LAYER.CLASS in my *.map files, some classes have a LABEL,
> but
> many do not. My guess had been that when parsing the classObj in Java
> mapscript, that if there was no LABEL, that classObj.getLabel() would
> return a
> null labelObj. This is not the case. A non-null labelObj is returned
> whether
> or not there is a LABEL.
>
I do see that for a MAP.LAYER that has no LABELITEM (which at least for me
then implies that it has no CLASS.LABEL), that layerObj.getLabelitem() does
return null, which is a workaround to figuring out whether or not a layer
has
a label.
I also do see that layerObj.getLabelitem() is also missing from the
mapscript
docs.
Oh yeah, I forgot to mention before, this is mapserver-5.0.0
- Rich
--
View this message in context: http://www.nabble.com/should-%28classObj.getLabel%28%29-%3D%3D-null%29-when-MAP.LAYER.CLASS-has-no-LABEL---tp14726078p14726128.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list