mapscript.legendObj¶
- class mapscript.legendObj¶
- The LEGEND object - Overview - The legendObj has the following relationships:     - Attributes - height- int Legend height - imagecolor- colorObjLegend background color - see IMAGECOLOR- keysizex- int Width in pixels of legend keys - see KEYSIZE - keysizey- int Height in pixels of legend keys - see KEYSIZE - keyspacingx- int Horizontal padding around keys in pixels - see KEYSPACING - keyspacingy- int Vertical padding around keys in pixels - see KEYSPACING - label- map- mapObjimmutable Instances of legendObj are always are always embedded inside the mapObj- outlinecolor- colorObjKey outline color, -1 for no outline - see OUTLINECOLOR- position- int Used for embedded legends, see POSITION - postlabelcache- int - MS_TRUE,- MS_FALSE- see POSTLABELCACHE- status- template- char See TEMPLATE - thisown- The membership flag - transparent- int Allows transparency for an embedded legend - see TRANSPARENT - width- int Legend width - Methods - convertToString() char[kaynak]¶
- Output the - legendObjobject as a Mapfile string. Provides the inverse option for- legendObj.updateFromString().
 - updateFromString(snippet: char) int[kaynak]¶
- Update a - legendObjfrom a string snippet. Returns- MS_SUCCESSor- MS_FAILURE
 














