mapscript.scalebarObj¶
- class mapscript.scalebarObj¶
- The SCALEBAR object - Overview - The scalebarObj has the following relationships:     - Attributes - align- int See ALIGN - backgroundcolor- colorObjScalebar background color - see BACKGROUNDCOLOR- color- height- int Height in pixels - see SIZE - imagecolor- colorObjBackground color of scalebar - see IMAGECOLOR- intervals- int Number of intervals - see INTERVALS - label- offsetx- int See OFFSET - offsety- int See OFFSET - outlinecolor- colorObjForeground outline color - see OUTLINECOLOR- position- int For embedded scalebars - see POSITION - - MS_UL,- MS_UC,- MS_UR,- MS_LL,- MS_LC, or- MS_LR- postlabelcache- int See POSTLABELCACHE - - MS_TRUEor- MS_FALSE- status- int ON, OFF or EMBED - see STATUS - - MS_ON,- MS_OFF, or- MS_EMBED.- style- int 0 or 1 - see STYLE - thisown- The membership flag - transparent- int Allows transparency for an embedded scalebar - see TRANSPARENT - 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_SUCCESSor- MS_FAILURE
 

 
        
          











