should (classObj.getLabel() == null) when MAP.LAYER.CLASS has
no LABEL ?
nospam420 at YAHOO.COM
Wed Jan 9 20:53:04 EST 2008
> Within each MAP.LAYER.CLASS in my *.map files, some classes have a LABEL,
> 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
> 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
I also do see that layerObj.getLabelitem() is also missing from the
Oh yeah, I forgot to mention before, this is mapserver-5.0.0
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