Subgroup: Scale
Class: QgsScaleUtils¶
-
class
qgis.core.
QgsScaleUtils
¶ Bases:
sip.wrapper
QgsScaleUtils(QgsScaleUtils)
Methods
loadScaleList
Load scales from the given file saveScaleList
Save scales to the given file Attributes
-
loadScaleList
(fileName: str, scales: Iterable[str], errorMessage: str) → bool¶ Load scales from the given file
Parameters: - fileName – the name of the file to process
- scales – it will contain loaded scales
- errorMessage – it will contain the error message if something
went wrong
Returns: true on success and false if failed
-
saveScaleList
(fileName: str, scales: Iterable[str], errorMessage: str) → bool¶ Save scales to the given file
Parameters: - fileName – the name of the output file
- scales – the list of scales to save
- errorMessage – it will contain the error message if something
went wrong
Returns: true on success and false if failed
-