mapscript.symbolObj¶
- class mapscript.symbolObj(symbolname: char, imagefile: char const = None)¶
- The SYMBOL object - Overview - The symbolObj has the following relationships:   - Attributes - anchorpoint_x- double See ANCHORPOINT - anchorpoint_y- double See ANCHORPOINT - character- char For TrueType symbols - see CHARACTER - filled- font- char For TrueType symbols - see FONT - imagepath- char immutable Path to pixmap file - see IMAGE - inmapfile- int Boolean value for writing - if set to - TRUE, the symbol will be saved inside the Mapfile.- maxx- double - MS_SYMBOL_VECTORand- MS_SYMBOL_ELLIPSEoption- maxy- double - MS_SYMBOL_VECTORand- MS_SYMBOL_ELLIPSEoption- minx- double - MS_SYMBOL_VECTORand- MS_SYMBOL_ELLIPSEoption- miny- double - MS_SYMBOL_VECTORand- MS_SYMBOL_ELLIPSEoption- name- char Symbol name - see NAME - numpoints- int immutable Number of points of a vector symbol - refcount- int immutable Reference counter - sizex- double - MS_SYMBOL_VECTORand- MS_SYMBOL_ELLIPSEoption- sizey- double - MS_SYMBOL_VECTORand- MS_SYMBOL_ELLIPSEoption- thisown- The membership flag - transparent- int TODO Remove - transparentcolor- int TODO Remove - type- int See TYPE - Methods - __init__(symbolname: char, imagefile: char const = None)[source]¶
- Create new default - symbolObjnamed- symbolname. If- imagefileis specified, then the symbol will be of type- MS_SYMBOL_PIXMAP.
 - getImage(input_format: outputFormatObj) imageObj[source]¶
- Returns a pixmap symbol’s imagery as an - imageObj.
 - setImage(image: imageObj) int[source]¶
- Set a pixmap symbol’s imagery from image. Returns - MS_SUCCESSor- MS_FAILURE
 - setImagepath(imagefile: char const) int[source]¶
- Sets the - imagefilepath for a- MS_SYMBOL_PIXMAP. Returns- MS_SUCCESSor- MS_FAILURE
 






 
        
          
            






