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