mapscript.scalebarObj¶
- class mapscript.scalebarObj¶
The SCALEBAR object
Overview
The scalebarObj has the following relationships:
Attributes
align
int See ALIGN
backgroundcolor
colorObj
Scalebar background color - see BACKGROUNDCOLORcolor
height
int Height in pixels - see SIZE
imagecolor
colorObj
Background color of scalebar - see IMAGECOLORintervals
int Number of intervals - see INTERVALS
label
offsetx
int See OFFSET
offsety
int See OFFSET
outlinecolor
colorObj
Foreground outline color - see OUTLINECOLORposition
int For embeded scalebars - see POSITION -
MS_UL
,MS_UC
,MS_UR
,MS_LL
,MS_LC
, orMS_LR
postlabelcache
int See POSTLABELCACHE -
MS_TRUE
orMS_FALSE
status
int ON, OFF or EMBED - see STATUS -
MS_ON
,MS_OFF
, orMS_EMBED
.style
int 0 or 1 - see STYLE
thisown
The membership flag
units
int See UNITS
width
int Height in pixels - see SIZE
Methods
- convertToString() char [source]¶
Saves the object to a string. Provides the inverse option for updateFromString.
- updateFromString(snippet: char) int [source]¶
Update a scalebar from a string snippet. Returns
MS_SUCCESS
orMS_FAILURE