QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
The Qgis class provides global constants for use throughout the application. More...
#include <qgis.h>
Public Types | |
enum class | BrowserDirectoryMonitoring : int { Default , NeverMonitor , AlwaysMonitor } |
Browser directory item monitoring switches. More... | |
enum class | BrowserItemCapability : int { NoCapabilities = 0 , SetCrs = 1 << 0 , Fertile = 1 << 1 , Fast = 1 << 2 , Collapse = 1 << 3 , Rename = 1 << 4 , Delete = 1 << 5 } |
Browser item capabilities. More... | |
enum class | BrowserItemState : int { NotPopulated , Populating , Populated } |
Browser item states. More... | |
enum class | BrowserItemType : int { Collection , Directory , Layer , Error , Favorites , Project , Custom , Fields , Field } |
Browser item types. More... | |
enum class | BrowserLayerType : int { NoType , Vector , Raster , Point , Line , Polygon , TableLayer , Database , Table , Plugin , Mesh , VectorTile , PointCloud } |
Browser item layer types. More... | |
enum class | DataType : int { UnknownDataType = 0 , Byte = 1 , UInt16 = 2 , Int16 = 3 , UInt32 = 4 , Int32 = 5 , Float32 = 6 , Float64 = 7 , CInt16 = 8 , CInt32 = 9 , CFloat32 = 10 , CFloat64 = 11 , ARGB32 = 12 , ARGB32_Premultiplied = 13 } |
Raster data types. More... | |
enum class | DriveType : int { Unknown , Invalid , Removable , Fixed , Remote , CdRom , RamDisk } |
Drive types. More... | |
enum class | FeatureCountState : int { Uncounted = -2 , UnknownCount = -1 } |
Enumeration of feature count states. More... | |
enum | MessageLevel { Info = 0 , Warning = 1 , Critical = 2 , Success = 3 , NoLevel = 4 } |
Level for messages This will be used both for message log and message bar in application. More... | |
enum class | PythonMacroMode : int { Never = 0 , Ask = 1 , SessionOnly = 2 , Always = 3 , NotForThisSession } |
Authorisation to run Python Macros. More... | |
enum class | ScaleMethod : int { ScaleArea , ScaleDiameter } |
Scale methods. More... | |
enum class | SymbolFlag : int { RendererShouldUseSymbolLevels = 1 << 0 } |
Flags controlling behavior of symbols. More... | |
enum class | SymbolPreviewFlag : int { FlagIncludeCrosshairsForMarkerSymbols = 1 << 0 } |
Flags for controlling how symbol preview images are generated. More... | |
enum class | SymbolRenderHint : int { DynamicRotation = 2 } |
Flags controlling behavior of symbols during rendering. More... | |
enum class | SymbolType : int { Marker , Line , Fill , Hybrid } |
Symbol types. More... | |
enum class | UnplacedLabelVisibility : int { FollowEngineSetting , NeverShow } |
Unplaced label visibility. More... | |
enum class | VectorExportResult : int { SIP_MONKEYPATCH_COMPAT_NAME =( NoError ) = 0 , SIP_MONKEYPATCH_COMPAT_NAME =( ErrCreateDataSource ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrCreateLayer ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrAttributeTypeUnsupported ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrAttributeCreationFailed ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrProjection ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrFeatureWriteFailed ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrInvalidLayer ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrInvalidProvider ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrProviderUnsupportedFeature ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrConnectionFailed ) , SIP_MONKEYPATCH_COMPAT_NAME =( ErrUserCanceled ) } |
Vector layer export result codes. More... | |
Static Public Member Functions | |
static QString | defaultProjectScales () |
A string with default project scales. More... | |
static QString | devVersion () |
The development version. More... | |
static QString | geosVersion () |
GEOS string version linked. More... | |
static int | geosVersionInt () |
GEOS version number linked. More... | |
static int | geosVersionMajor () |
GEOS Major version number linked. More... | |
static int | geosVersionMinor () |
GEOS Minor version number linked. More... | |
static int | geosVersionPatch () |
GEOS Patch version number linked. More... | |
static QString | releaseName () |
Release name. More... | |
static QString | version () |
Version string. More... | |
static int | versionInt () |
Version number used for comparing versions using the "Check QGIS Version" function. More... | |
Static Public Attributes | |
static const double | DEFAULT_HIGHLIGHT_BUFFER_MM = 0.5 |
Default highlight buffer in mm. More... | |
static const QColor | DEFAULT_HIGHLIGHT_COLOR = QColor( 255, 0, 0, 128 ) |
Default highlight color. More... | |
static const double | DEFAULT_HIGHLIGHT_MIN_WIDTH_MM = 1.0 |
Default highlight line/stroke minimum width in mm. More... | |
static const double | DEFAULT_M_COORDINATE = 0.0 |
Default M coordinate value. More... | |
static const float | DEFAULT_MAPTOPIXEL_THRESHOLD = 1.0f |
Default threshold between map coordinates and device coordinates for map2pixel simplification. More... | |
static const double | DEFAULT_SEARCH_RADIUS_MM = 2. |
Identify search radius in mm. More... | |
static const double | DEFAULT_SNAP_TOLERANCE = 12.0 |
Default snapping distance tolerance. More... | |
static const QgsTolerance::UnitType | DEFAULT_SNAP_UNITS = QgsTolerance::Pixels |
Default snapping distance units. More... | |
static const double | DEFAULT_Z_COORDINATE = 0.0 |
Default Z coordinate value. More... | |
static const char * | QGIS_DEV_VERSION = QGSVERSION |
The development version. More... | |
static const double | SCALE_PRECISION = 0.9999999999 |
Fudge factor used to compare two scales. More... | |
static const double | UI_SCALE_FACTOR = 1 |
UI scaling factor. More... | |
The Qgis class provides global constants for use throughout the application.
|
strong |
|
strong |
Browser item capabilities.
Enumerator | |
---|---|
NoCapabilities | Item has no capabilities. |
SetCrs | Can set CRS on layer or group of layers.
|
Fertile | Can create children. Even items without this capability may have children, but cannot create them, it means that children are created by item ancestors. |
Fast | CreateChildren() is fast enough to be run in main thread when refreshing items, most root items (wms,wfs,wcs,postgres...) are considered fast because they are reading data only from QgsSettings. |
Collapse | The collapse/expand status for this items children should be ignored in order to avoid undesired network connections (wms etc.) |
Rename | Item can be renamed. |
Delete | Item can be deleted. |
|
strong |
|
strong |
Browser item types.
|
strong |
Browser item layer types.
|
strong |
Raster data types.
This is modified and extended copy of GDALDataType.
|
strong |
enum Qgis::MessageLevel |
|
strong |
|
strong |
|
strong |
Flags controlling behavior of symbols.
Enumerator | |
---|---|
RendererShouldUseSymbolLevels | If present, indicates that a QgsFeatureRenderer using the symbol should use symbol levels for best results. |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Vector layer export result codes.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |