Class: QgsScaleUtils

class qgis.core.QgsScaleUtils
class qgis.core.QgsScaleUtils(a0: QgsScaleUtils)

Bases: sip.wrapper

Methods

loadScaleList

Load scales from the given file

saveScaleList

Save scales to the given file

loadScaleList(fileName: str | None, scales: Iterable[str | None], errorMessage: str | None) bool

Load scales from the given file

Parameters:
  • fileName (Optional[str]) – the name of the file to process

  • scales (Iterable[Optional[str]]) – it will contain loaded scales

  • errorMessage (Optional[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 | None, scales: Iterable[str | None], errorMessage: str | None) bool

Save scales to the given file

Parameters:
  • fileName (Optional[str]) – the name of the output file

  • scales (Iterable[Optional[str]]) – the list of scales to save

  • errorMessage (Optional[str]) – it will contain the error message if something went wrong

Return type:

bool

Returns:

True on success and False if failed