mapscript.symbolSetObj¶
- class mapscript.symbolSetObj(symbolfile: char const = None)¶
A
symbolSetObjis an attribute of amapObjand is associated with instances ofsymbolObj.Overview
The symbolSetObj has the following relationships:
Attributes
filenamechar Symbolset filename
imagecachesizeint Symbols in the cache
maxsymbolsint immutable Maximum number of allowed symbols
numsymbolsint immutable Number of symbols in the set
thisownThe membership flag
Methods
- __init__(symbolfile: char const = None)[source]¶
Create new
symbolSetObjinstance. If symbolfile is specified, symbols will be loaded from the file.
- appendSymbol(symbol: symbolObj) int[source]¶
Add a copy of symbol to the symbolset and return its index.
- index(symbolname: char) int[source]¶
Return the index of the symbol named name or -1 in the case that no such symbol is found.
- removeSymbol(index: int) symbolObj[source]¶
Remove the symbol at index and return a copy of the symbol.
- save(filename: char const) int[source]¶
Save symbol set to a file. Returns
MS_SUCCESSorMS_FAILURE
