Class: Qgis

class qgis.core.Qgis

Bases: sip.wrapper

The Qgis class provides global constants for use throughout the application.

Methods

defaultProjectScales

A string with default project scales.

devVersion

The development version

geosVersion

GEOS string version linked

geosVersionInt

GEOS version number linked

geosVersionMajor

GEOS Major version number linked

geosVersionMinor

GEOS Minor version number linked

geosVersionPatch

GEOS Patch version number linked

releaseName

Release name

version

Version string.

versionInt

Version number used for comparing versions using the “Check QGIS Version” function

Attributes

ARGB32

ARGB32_Premultiplied

Always

Ask

Byte

CFloat32

CFloat64

CInt16

CInt32

Critical

DEFAULT_HIGHLIGHT_BUFFER_MM

DEFAULT_HIGHLIGHT_COLOR

DEFAULT_HIGHLIGHT_MIN_WIDTH_MM

DEFAULT_MAPTOPIXEL_THRESHOLD

DEFAULT_SEARCH_RADIUS_MM

DEFAULT_SNAP_TOLERANCE

DEFAULT_SNAP_UNITS

DEFAULT_Z_COORDINATE

Float32

Float64

Info

Int16

Int32

Never

None

NotForThisSession

QGIS_DEV_VERSION

QGIS_RELEASE_NAME

QGIS_VERSION

QGIS_VERSION_INT

SCALE_PRECISION

SessionOnly

Success

UI_SCALE_FACTOR

UInt16

UInt32

UnknownDataType

Warning

staticMetaObject

ARGB32 = 12
ARGB32_Premultiplied = 13
Always = 3
Ask = 1
Byte = 1
CFloat32 = 10
CFloat64 = 11
CInt16 = 8
CInt32 = 9
Critical = 2
DEFAULT_HIGHLIGHT_BUFFER_MM = 0.5
DEFAULT_HIGHLIGHT_COLOR = <PyQt5.QtGui.QColor object>
DEFAULT_HIGHLIGHT_MIN_WIDTH_MM = 1.0
DEFAULT_MAPTOPIXEL_THRESHOLD = 1.0
DEFAULT_SEARCH_RADIUS_MM = 2.0
DEFAULT_SNAP_TOLERANCE = 12.0
DEFAULT_SNAP_UNITS = 1
DEFAULT_Z_COORDINATE = 0.0
class DataType

Bases: int

baseClass

alias of qgis._core.Qgis

Float32 = 6
Float64 = 7
Info = 0
Int16 = 3
Int32 = 5
class MessageLevel

Bases: int

Never = 0
None = 4
NotForThisSession = 4
class PythonMacroMode

Bases: int

baseClass

alias of qgis._core.Qgis

QGIS_DEV_VERSION = 'exported'
QGIS_RELEASE_NAME = 'Master'
QGIS_VERSION = '3.19.0-Master'
QGIS_VERSION_INT = 31900
SCALE_PRECISION = 0.9999999999
SessionOnly = 2
Success = 3
UI_SCALE_FACTOR = 1.0
UInt16 = 2
UInt32 = 4
UnknownDataType = 0
Warning = 1
defaultProjectScales()str

A string with default project scales.

New in version 3.12.

Return type

str

devVersion()str

The development version

New in version 3.12.

Return type

str

geosVersion()str

GEOS string version linked

New in version 3.20.

Return type

str

geosVersionInt()int

GEOS version number linked

New in version 3.20.

Return type

int

geosVersionMajor()int

GEOS Major version number linked

New in version 3.20.

Return type

int

geosVersionMinor()int

GEOS Minor version number linked

New in version 3.20.

Return type

int

geosVersionPatch()int

GEOS Patch version number linked

New in version 3.20.

Return type

int

releaseName()str

Release name

New in version 3.12.

Return type

str

staticMetaObject = <PyQt5.QtCore.QMetaObject object>
version()str

Version string.

New in version 3.12.

Return type

str

versionInt()int

Version number used for comparing versions using the “Check QGIS Version” function

New in version 3.12.

Return type

int