Class: QgsScaleUtils

class qgis.core.QgsScaleUtils

Bases: sip.wrapper

QgsScaleUtils(QgsScaleUtils)

Enums

Methods

loadScaleList

Load scales from the given file

saveScaleList

Save scales to the given file

Signals

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