Class: QgsScaleUtils

class qgis.core.QgsScaleUtils
class qgis.core.QgsScaleUtils(QgsScaleUtils)None

Bases: sip.wrapper

Methods

loadScaleList

Load scales from the given file

saveScaleList

Save scales to the given file

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 and False 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 and False if failed