QGIS API Documentation 4.3.0-Master (9b7fa678901)
Loading...
Searching...
No Matches
qgis.h
Go to the documentation of this file.
1/***************************************************************************
2 qgis.h - QGIS namespace
3 -------------------
4 begin : Sat Jun 30 2002
5 copyright : (C) 2002 by Gary E.Sherman
6 email : sherman at mrcc.com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGIS_H
19#define QGIS_H
20
21
22#include <cfloat>
23#include <cmath>
24#include <memory>
25
26#include "qgis_core.h"
27#include "qgis_sip.h"
28
29#include <QMetaEnum>
30#include <QString>
31#include <QTimeZone>
32
33using namespace Qt::StringLiterals;
34
35#ifdef SIP_RUN
36// clang-format off
37% ModuleHeaderCode
38#include <qgis.h>
39% End
40
41% ModuleCode
42int QgisEvent = QEvent::User + 1;
43% End
44// clang-format on
45#endif
46
47#ifndef SIP_RUN
48// qHash implementation for scoped enum type
49// https://gitlab.com/frostasm/programming-knowledge-base/-/snippets/20120
50#define QHASH_FOR_CLASS_ENUM( T ) \
51 inline size_t qHash( const T &t, size_t seed ) \
52 { \
53 return ::qHash( static_cast<typename std::underlying_type<T>::type>( t ), seed ); \
54 }
55#endif
56
61 class CORE_EXPORT Qgis
62{
63 Q_GADGET
64 Q_CLASSINFO( "RegisterEnumClassesUnscoped", "false" )
65
66 public:
72 static QString version();
73
79 static int versionInt();
80
86 static QString releaseName();
87
89 static const char *QGIS_DEV_VERSION;
90
96 static QString devVersion();
97
98 // Enumerations
99 //
100
107 {
108 ClearStorage = 1 << 0,
109
110 ReadConfiguration = 1 << 1,
111 UpdateConfiguration = 1 << 2,
112 DeleteConfiguration = 1 << 3,
113 CreateConfiguration = 1 << 4,
114
115 ReadCertificateIdentity = 1 << 5,
116 UpdateCertificateIdentity = 1 << 6,
117 DeleteCertificateIdentity = 1 << 7,
118 CreateCertificateIdentity = 1 << 8,
119
120 ReadSslCertificateCustomConfig = 1 << 9,
121 UpdateSslCertificateCustomConfig = 1 << 10,
122 DeleteSslCertificateCustomConfig = 1 << 11,
123 CreateSslCertificateCustomConfig = 1 << 12,
124
125 ReadCertificateAuthority = 1 << 13,
126 UpdateCertificateAuthority = 1 << 14,
127 DeleteCertificateAuthority = 1 << 15,
128 CreateCertificateAuthority = 1 << 16,
129
130 ReadCertificateTrustPolicy = 1 << 17,
131 UpdateCertificateTrustPolicy = 1 << 18,
132 DeleteCertificateTrustPolicy = 1 << 19,
133 CreateCertificateTrustPolicy = 1 << 20,
134
135 ReadMasterPassword = 1 << 21,
136 UpdateMasterPassword = 1 << 22,
137 DeleteMasterPassword = 1 << 23,
138 CreateMasterPassword = 1 << 24,
139
140 ReadSetting = 1 << 25,
141 UpdateSetting = 1 << 26,
142 DeleteSetting = 1 << 27,
143 CreateSetting = 1 << 28,
144
145 };
146 Q_ENUM( AuthConfigurationStorageCapability )
147
148
154
160 {
161 Info = 0,
166 };
167 Q_ENUM( MessageLevel )
168
169
175 {
176 PlainText SIP_MONKEYPATCH_COMPAT_NAME( MessageText ),
177 Html SIP_MONKEYPATCH_COMPAT_NAME( MessageHtml ),
178 };
179 Q_ENUM( StringFormat )
180
181
186 enum class NetworkRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
187 {
188 DisableMessageLogging = 1 << 0,
189 };
190 Q_ENUM( NetworkRequestFlag )
191
192
198 Q_FLAG( NetworkRequestFlags )
199
206 {
207 Vector SIP_MONKEYPATCH_COMPAT_NAME( VectorLayer ),
208 Raster SIP_MONKEYPATCH_COMPAT_NAME( RasterLayer ),
209 Plugin SIP_MONKEYPATCH_COMPAT_NAME( PluginLayer ),
210 Mesh SIP_MONKEYPATCH_COMPAT_NAME( MeshLayer ),
211 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( VectorTileLayer ),
212 Annotation SIP_MONKEYPATCH_COMPAT_NAME( AnnotationLayer ),
213 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( PointCloudLayer ),
214 Group SIP_MONKEYPATCH_COMPAT_NAME( GroupLayer ),
215 TiledScene,
216 };
217 Q_ENUM( LayerType )
218
219
225 {
226 RasterLayer = 1,
227 NoGeometry = 2,
228 PointLayer = 4,
229 LineLayer = 8,
230 PolygonLayer = 16,
231 HasGeometry = PointLayer | LineLayer | PolygonLayer,
232 VectorLayer = NoGeometry | HasGeometry,
233 PluginLayer = 32,
234 WritableLayer = 64,
235 MeshLayer = 128,
236 VectorTileLayer = 256,
237 PointCloudLayer = 512,
238 AnnotationLayer = 1024,
239 TiledSceneLayer = 2048,
240 All = RasterLayer | VectorLayer | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer,
241 SpatialLayer = RasterLayer | HasGeometry | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer
242 };
243 Q_DECLARE_FLAGS( LayerFilters, LayerFilter )
244 Q_FLAG( LayerFilters )
245
246
247
252 enum class LayerItemCapability : int SIP_ENUM_BASETYPE( IntFlag )
253 {
254 AddComments = 1 << 0,
255 };
256 Q_ENUM( LayerItemCapability )
257
258
264 Q_FLAG( LayerItemCapabilities )
265
271 enum class LoadStyleFlag : int SIP_ENUM_BASETYPE( IntFlag )
272 {
273 IgnoreMissingStyleErrors
274 = 1 << 0,
275 };
276 Q_ENUM( LoadStyleFlag )
277
278
283 Q_DECLARE_FLAGS( LoadStyleFlags, LoadStyleFlag )
284 Q_FLAG( LoadStyleFlags )
285
314 {
315 Unknown = 0,
316 Point = 1,
317 LineString = 2,
318 Polygon = 3,
319 Triangle = 17,
320 MultiPoint = 4,
321 MultiLineString = 5,
322 MultiPolygon = 6,
323 GeometryCollection = 7,
324 CircularString = 8,
325 CompoundCurve = 9,
326 CurvePolygon = 10,
327 MultiCurve = 11,
328 MultiSurface = 12,
329 PolyhedralSurface = 15,
330 TIN = 16,
331 NurbsCurve = 21,
332 NoGeometry = 100,
333 PointZ = 1001,
334 LineStringZ = 1002,
335 PolygonZ = 1003,
336 TriangleZ = 1017,
337 MultiPointZ = 1004,
338 MultiLineStringZ = 1005,
339 MultiPolygonZ = 1006,
340 GeometryCollectionZ = 1007,
341 CircularStringZ = 1008,
342 CompoundCurveZ = 1009,
343 CurvePolygonZ = 1010,
344 MultiCurveZ = 1011,
345 MultiSurfaceZ = 1012,
346 PolyhedralSurfaceZ = 1015,
347 TINZ = 1016,
348 NurbsCurveZ = 1021,
349 PointM = 2001,
350 LineStringM = 2002,
351 PolygonM = 2003,
352 TriangleM = 2017,
353 MultiPointM = 2004,
354 MultiLineStringM = 2005,
355 MultiPolygonM = 2006,
356 GeometryCollectionM = 2007,
357 CircularStringM = 2008,
358 CompoundCurveM = 2009,
359 CurvePolygonM = 2010,
360 MultiCurveM = 2011,
361 MultiSurfaceM = 2012,
362 PolyhedralSurfaceM = 2015,
363 TINM = 2016,
364 NurbsCurveM = 2021,
365 PointZM = 3001,
366 LineStringZM = 3002,
367 PolygonZM = 3003,
368 MultiPointZM = 3004,
369 MultiLineStringZM = 3005,
370 MultiPolygonZM = 3006,
371 GeometryCollectionZM = 3007,
372 CircularStringZM = 3008,
373 CompoundCurveZM = 3009,
374 CurvePolygonZM = 3010,
375 MultiCurveZM = 3011,
376 MultiSurfaceZM = 3012,
377 PolyhedralSurfaceZM = 3015,
378 TINZM = 3016,
379 TriangleZM = 3017,
380 NurbsCurveZM = 3021,
381 Point25D = 0x80000001,
382 LineString25D,
383 Polygon25D,
384 MultiPoint25D,
385 MultiLineString25D,
386 MultiPolygon25D
387 };
388 Q_ENUM( WkbType )
389
390
399 {
400 Point SIP_MONKEYPATCH_COMPAT_NAME( PointGeometry ),
401 Line SIP_MONKEYPATCH_COMPAT_NAME( LineGeometry ),
402 Polygon SIP_MONKEYPATCH_COMPAT_NAME( PolygonGeometry ),
403 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownGeometry ),
404 Null SIP_MONKEYPATCH_COMPAT_NAME( NullGeometry ),
405 };
406 Q_ENUM( GeometryType )
407
408
413 {
414 UnknownDataType = 0,
415 Byte = 1,
416 Int8 = 14,
417 UInt16 = 2,
418 Int16 = 3,
419 UInt32 = 4,
420 Int32 = 5,
421 Float32 = 6,
422 Float64 = 7,
423 CInt16 = 8,
424 CInt32 = 9,
425 CFloat32 = 10,
426 CFloat64 = 11,
427 ARGB32 = 12,
428 ARGB32_Premultiplied = 13
429 };
430 Q_ENUM( DataType )
431
432
437 enum class CaptureTechnique : int
438 {
439 StraightSegments,
440 CircularString,
441 Streaming,
442 Shape,
443 PolyBezier,
444 NurbsCurve,
445 };
446 Q_ENUM( CaptureTechnique )
447
448
449
454 enum class VectorLayerTypeFlag : int SIP_ENUM_BASETYPE( IntFlag )
455 {
456 SqlQuery = 1 << 0
457 };
458 Q_ENUM( VectorLayerTypeFlag )
461 Q_FLAG( VectorLayerTypeFlags )
462
467 enum class EmbeddedScriptMode SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, PythonMacroMode ) : int
468 {
469 Never = 0,
470 Ask = 1,
471 SessionOnly = 2,
472 Always = 3,
473 NotForThisSession = 4,
474 NeverAsk = 5,
475 };
476 Q_ENUM( EmbeddedScriptMode )
477
478
482 enum class EmbeddedScriptType : int
483 {
484 Macro = 0,
485 ExpressionFunction = 1,
486 Action = 2,
487 FormInitCode = 3,
488 };
489 Q_ENUM( EmbeddedScriptType )
490
491
495 enum class ProjectTrustStatus : int
496 {
497 Undetermined = 0,
498 Trusted = 1,
499 Untrusted = 2,
500 };
501 Q_ENUM( ProjectTrustStatus )
502
503
511 {
512 TrustDataSource SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustDataSource )
513 = 1 << 0,
514 SkipFeatureCount = 1 << 1,
515 LoadDefaultStyle SIP_MONKEYPATCH_COMPAT_NAME( FlagLoadDefaultStyle ) = 1 << 2,
516 SkipGetExtent = 1 << 3,
517 SkipFullScan = 1 << 4,
518 ForceReadOnly = 1 << 5,
519 SkipCredentialsRequest
520 = 1 << 6,
521 ParallelThreadLoading = 1 << 7,
522 };
523 Q_ENUM( DataProviderReadFlag )
524
525
533 Q_FLAG( DataProviderReadFlags )
534
535 // TODO QGIS 5 -- remove NoCapabilities and rely on VectorProviderCapabilities() instead
536
545 {
546 NoCapabilities = 0,
547 AddFeatures = 1,
548 DeleteFeatures = 1 << 1,
549 ChangeAttributeValues = 1 << 2,
550 AddAttributes = 1 << 3,
551 DeleteAttributes = 1 << 4,
552 CreateSpatialIndex = 1 << 6,
553 SelectAtId = 1 << 7,
554 ChangeGeometries = 1 << 8,
555 SelectEncoding = 1 << 13,
556 CreateAttributeIndex = 1 << 12,
557 SimplifyGeometries = 1 << 14,
558 SimplifyGeometriesWithTopologicalValidation = 1 << 15,
559 TransactionSupport = 1 << 16,
560 CircularGeometries = 1 << 17,
561 ChangeFeatures = 1 << 18,
562 RenameAttributes = 1 << 19,
563 FastTruncate = 1 << 20,
564 ReadLayerMetadata = 1 << 21,
565 WriteLayerMetadata = 1 << 22,
566 CancelSupport = 1 << 23,
567 CreateRenderer = 1 << 24,
568 CreateLabeling = 1 << 25,
569 ReloadData = 1 << 26,
570 FeatureSymbology = 1 << 27,
571 CacheData = 1 << 28,
572 ReadFieldDomains = 1 << 29,
573 EditingCapabilities = AddFeatures | DeleteFeatures | ChangeAttributeValues | ChangeGeometries | AddAttributes | DeleteAttributes | RenameAttributes,
574 };
575 Q_ENUM( VectorProviderCapability )
576
577
586
593 {
594 Abort,
595 CreateOrOverwriteFile,
596 CreateOrOverwriteLayer,
597 };
598 Q_ENUM( CreateLayerActionOnExisting )
599
600
606 {
607 Uncounted = -2,
608 UnknownCount = -1,
609 };
610 Q_ENUM( FeatureCountState )
611
612
619 {
620 Unknown SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexUnknown ) = 0,
621 NotPresent SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexNotPresent ) = 1,
622 Present SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexPresent ) = 2,
623 };
624 Q_ENUM( SpatialIndexPresence )
625
626
638 {
639 NoFeaturesAvailable = 0,
640 FeaturesAvailable,
641 FeaturesMaybeAvailable
642 };
643 Q_ENUM( FeatureAvailability )
644
645
651 {
652 EditAlias = 1 << 0,
653 EditComment = 1 << 1,
654 };
655
656 Q_ENUM( VectorDataProviderAttributeEditCapability )
657
658
665
671 {
672 Marker,
673 Line,
674 Fill,
675 Hybrid
676 };
677 Q_ENUM( SymbolType )
678
679
685 {
686 ScaleArea,
687 ScaleDiameter
688 };
689 Q_ENUM( ScaleMethod )
690
691
696 {
697 Custom,
698 Variant,
699 String,
700 StringList,
701 VariantMap,
702 Bool,
703 Integer,
704 Double,
705 EnumFlag,
706 Color
707 };
708 Q_ENUM( SettingsType )
709
710
715 {
716 Root,
717 Standard,
718 NamedList,
719 };
720 Q_ENUM( SettingsTreeNodeType )
721
722
726 enum class SettingsTreeNodeOption : int SIP_ENUM_BASETYPE( IntFlag )
727 {
728 NamedListSelectedItemSetting = 1 << 0,
729 };
730
731 Q_ENUM( SettingsTreeNodeOption )
734
743 {
744 Invalid SIP_MONKEYPATCH_COMPAT_NAME( InvalidProperty ),
745 Static SIP_MONKEYPATCH_COMPAT_NAME( StaticProperty ),
746 Field SIP_MONKEYPATCH_COMPAT_NAME( FieldBasedProperty ),
747 Expression SIP_MONKEYPATCH_COMPAT_NAME( ExpressionBasedProperty ),
748 };
749 Q_ENUM( PropertyType )
750
751
756 enum class SldExportOption : int SIP_ENUM_BASETYPE( IntFlag )
757 {
758 NoOptions = 0,
759 Svg = 1 << 0,
760 Png = 1 << 1,
761 };
762 Q_ENUM( SldExportOption )
764 Q_FLAG( SldExportOptions )
765
771 enum class SldExportVendorExtension : int SIP_ENUM_BASETYPE( IntFlag )
772 {
773 NoVendorExtension = 0,
774 GeoServerVendorExtension = 1 << 1,
775 DeegreeVendorExtension = 1 << 2,
776 };
777 Q_ENUM( SldExportVendorExtension )
778
779
780
784 enum class SettingsOption : int SIP_ENUM_BASETYPE( IntFlag )
785 {
786 SaveFormerValue = 1 << 1,
787 SaveEnumFlagAsInt = 1 << 2,
788 };
789 Q_ENUM( SettingsOption )
790 Q_DECLARE_FLAGS( SettingsOptions, SettingsOption )
791 Q_FLAG( SettingsOptions )
792
798 {
799 ActiveLayer = 1,
800 AllLayers = 2,
801 AdvancedConfiguration = 3,
802 };
803 Q_ENUM( SnappingMode )
804
805
810 {
811 NoSnap SIP_MONKEYPATCH_COMPAT_NAME( NoSnapFlag ) = 0,
812 Vertex SIP_MONKEYPATCH_COMPAT_NAME( VertexFlag ) = 1 << 0,
813 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentFlag ) = 1 << 1,
814 Area SIP_MONKEYPATCH_COMPAT_NAME( AreaFlag ) = 1 << 2,
815 Centroid SIP_MONKEYPATCH_COMPAT_NAME( CentroidFlag ) = 1 << 3,
816 MiddleOfSegment SIP_MONKEYPATCH_COMPAT_NAME( MiddleOfSegmentFlag ) = 1 << 4,
817 LineEndpoint SIP_MONKEYPATCH_COMPAT_NAME( LineEndpointFlag ) = 1 << 5,
818 };
819 Q_ENUM( SnappingType )
822 Q_FLAG( SnappingTypes )
823
830 {
831 DynamicRotation = 1 << 1,
832 IsSymbolLayerSubSymbol = 1 << 2,
833 ForceVectorRendering = 1 << 3,
834 ExcludeSymbolBuffers = 1 << 4,
835 };
836 Q_ENUM( SymbolRenderHint )
839 Q_FLAG( SymbolRenderHints )
840
847 {
848 ReadSymbol = 1 << 0,
849 WriteSymbol = 1 << 1,
850 };
851
852 Q_ENUM( SymbolConverterCapability )
853
854
861
867 enum class SymbolRotationMode : int
868 {
869 RespectMapRotation,
870 IgnoreMapRotation,
871 };
872 Q_ENUM( SymbolRotationMode )
873
874
875
887 Q_ENUM( HorizontalAnchorPoint )
888
889
902 Q_ENUM( VerticalAnchorPoint )
903
904
909 enum class FeatureRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
910 {
911 AffectsLabeling = 1 << 0,
912 };
913 Q_ENUM( FeatureRendererFlag )
914
915
921 Q_FLAG( FeatureRendererFlags )
922
928 enum class SymbolFlag : int SIP_ENUM_BASETYPE( IntFlag )
929 {
930 RendererShouldUseSymbolLevels = 1 << 0,
931 AffectsLabeling = 1 << 1,
932 };
933 Q_ENUM( SymbolFlag )
935 Q_DECLARE_FLAGS( SymbolFlags, SymbolFlag )
936 Q_FLAG( SymbolFlags )
937
944 {
945 FlagIncludeCrosshairsForMarkerSymbols = 1 << 0,
946 };
947 Q_ENUM( SymbolPreviewFlag )
950 Q_FLAG( SymbolPreviewFlags )
951
961 enum class SymbolLayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
962 {
963 DisableFeatureClipping = 1 << 0,
964 CanCalculateMaskGeometryPerFeature = 1 << 1,
965 AffectsLabeling = 1 << 2,
966 };
967 Q_ENUM( SymbolLayerFlag )
970 Q_FLAG( SymbolLayerFlags )
971
981 enum class SymbolLayerUserFlag : int SIP_ENUM_BASETYPE( IntFlag )
982 {
983 DisableSelectionRecoloring = 1 << 0,
984 };
985 Q_ENUM( SymbolLayerUserFlag )
986
987
993 Q_FLAG( SymbolLayerUserFlags )
994
1001 {
1002 Collection,
1003 Directory,
1004 Layer,
1005 Error,
1006 Favorites,
1007 Project,
1008 Custom,
1009 Fields,
1010 Field,
1011 };
1012 Q_ENUM( BrowserItemType )
1013
1014
1020 {
1021 NotPopulated,
1022 Populating,
1023 Populated,
1024 };
1025 Q_ENUM( BrowserItemState )
1026
1027
1033 {
1034 NoCapabilities = 0,
1035 SetCrs = 1 << 0,
1036 Fertile = 1 << 1,
1037 Fast = 1 << 2,
1038 Collapse = 1 << 3,
1039 Rename = 1 << 4,
1040 Delete = 1 << 5,
1041 ItemRepresentsFile = 1 << 6,
1042 RefreshChildrenWhenItemIsRefreshed = 1 << 7,
1043 ReadOnly = 1 << 8,
1044 };
1045 Q_ENUM( BrowserItemCapability )
1048 Q_FLAG( BrowserItemCapabilities )
1049
1055 enum class BrowserItemFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
1056 {
1057 HideWhenNotFilteringByLayerType = 1 << 0,
1058 };
1059 Q_ENUM( BrowserItemFilterFlag )
1060
1061
1067 Q_FLAG( BrowserItemFilterFlags )
1068
1077 {
1078 NoCapabilities SIP_MONKEYPATCH_COMPAT_NAME( NoDataCapabilities ) = 0,
1080 Directories SIP_MONKEYPATCH_COMPAT_NAME( Dir ) = 1 << 1,
1081 Databases SIP_MONKEYPATCH_COMPAT_NAME( Database ) = 1 << 2,
1082 NetworkSources SIP_MONKEYPATCH_COMPAT_NAME( Net ) = 1 << 3,
1083 };
1084 Q_ENUM( DataItemProviderCapability )
1085
1086
1095
1102 {
1103 NoType,
1104 Vector,
1105 Raster,
1106 Point,
1107 Line,
1108 Polygon,
1109 TableLayer,
1110 Database,
1111 Table,
1112 Plugin,
1113 Mesh,
1114 VectorTile,
1115 PointCloud,
1116 TiledScene,
1117 };
1118 Q_ENUM( BrowserLayerType )
1119
1120
1126 {
1127 Default,
1128 NeverMonitor,
1129 AlwaysMonitor,
1130 };
1131 Q_ENUM( BrowserDirectoryMonitoring )
1132
1133
1137 enum class HttpMethod : int
1138 {
1139 Get = 0,
1140 Post = 1,
1141 Head,
1142 Put,
1143 Delete,
1144 };
1145 Q_ENUM( HttpMethod )
1146
1147
1153 {
1155 ErrorCreatingDataSource SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateDataSource ),
1156 ErrorCreatingLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateLayer ),
1157 ErrorAttributeTypeUnsupported SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeTypeUnsupported ),
1158 ErrorAttributeCreationFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeCreationFailed ),
1159 ErrorProjectingFeatures SIP_MONKEYPATCH_COMPAT_NAME( ErrProjection ),
1160 ErrorFeatureWriteFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrFeatureWriteFailed ),
1161 ErrorInvalidLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidLayer ),
1162 ErrorInvalidProvider SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidProvider ),
1163 ErrorProviderUnsupportedFeature SIP_MONKEYPATCH_COMPAT_NAME( ErrProviderUnsupportedFeature ),
1164 ErrorConnectionFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrConnectionFailed ),
1165 UserCanceled SIP_MONKEYPATCH_COMPAT_NAME( ErrUserCanceled ),
1166 };
1167 Q_ENUM( VectorExportResult )
1168
1169
1174 {
1175 FieldAliases = 1 << 0,
1176 FieldComments = 1 << 2,
1177 };
1178 Q_ENUM( VectorFileWriterCapability )
1179
1180
1186
1192 {
1193 SubsetStringFilter = 1 << 1,
1194 GeometryColumn = 1 << 2,
1195 PrimaryKeys = 1 << 3,
1196 UnstableFeatureIds = 1 << 4
1197 };
1198 Q_ENUM( SqlLayerDefinitionCapability )
1202
1208 enum class SqlKeywordCategory : int
1209 {
1210 Keyword,
1211 Constant,
1212 Function,
1213 Geospatial,
1214 Operator,
1215 Math,
1217 String,
1218 Identifier
1219 };
1220 Q_ENUM( SqlKeywordCategory )
1221
1222
1226 enum class DriveType : int
1227 {
1228 Unknown,
1229 Invalid,
1230 Removable,
1231 Fixed,
1232 Remote,
1233 CdRom,
1234 RamDisk,
1235 Cloud,
1236 };
1237 Q_ENUM( DriveType )
1238
1239
1244 {
1245 Deferred SIP_MONKEYPATCH_COMPAT_NAME( DownloadLater ),
1246 Immediate SIP_MONKEYPATCH_COMPAT_NAME( DownloadImmediately ),
1247 };
1248 Q_ENUM( ActionStart )
1249
1250
1256 {
1257 FollowEngineSetting,
1258 NeverShow,
1259 };
1260 Q_ENUM( UnplacedLabelVisibility )
1261
1262
1267 enum class LabelOverlapHandling : int
1268 {
1269 PreventOverlap,
1270 AllowOverlapIfRequired,
1271 AllowOverlapAtNoCost,
1272 };
1273 Q_ENUM( LabelOverlapHandling )
1274
1275
1281 {
1282 TreatWhitespaceAsCollision,
1283 IgnoreWhitespaceCollisions,
1284 };
1285 Q_ENUM( LabelWhitespaceCollisionHandling )
1286
1287
1292 enum class LabelPrioritization : int
1293 {
1294 PreferCloser,
1295 PreferPositionOrdering,
1296 };
1297 Q_ENUM( LabelPrioritization )
1298
1299
1307 {
1308 AroundPoint,
1309 OverPoint,
1310 Line,
1311 Curved,
1312 Horizontal,
1313 Free,
1314 OrderedPositionsAroundPoint,
1315 PerimeterCurved,
1316 OutsidePolygons,
1317 };
1318 Q_ENUM( LabelPlacement )
1319
1320
1325 enum class CurvedLabelMode : int
1326 {
1327 Default,
1328 PlaceCharactersAtVertices,
1329 StretchCharacterSpacingToFitLine,
1330 StretchWordSpacingToFitLine,
1331 };
1332 Q_ENUM( CurvedLabelMode )
1333
1334
1342 {
1343 TopLeft,
1344 TopSlightlyLeft,
1345 TopMiddle,
1346 TopSlightlyRight,
1347 TopRight,
1348 MiddleLeft,
1349 MiddleRight,
1350 BottomLeft,
1351 BottomSlightlyLeft,
1352 BottomMiddle,
1353 BottomSlightlyRight,
1354 BottomRight,
1355 OverPoint,
1356 };
1357 Q_ENUM( LabelPredefinedPointPosition )
1358
1359
1365 {
1366 LabelLargestPartOnly,
1367 LabelEveryPartWithEntireLabel,
1368 SplitLabelTextLinesOverParts,
1369 };
1370 Q_ENUM( MultiPartLabelingBehavior )
1371
1372
1381 {
1382 FromPoint,
1383 FromSymbolBounds,
1384 };
1385 Q_ENUM( LabelOffsetType )
1386
1387
1395 {
1396 AboveLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveLeft ),
1397 Above SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAbove ),
1398 AboveRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveRight ),
1400 Over SIP_MONKEYPATCH_COMPAT_NAME( QuadrantOver ),
1402 BelowLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowLeft ),
1403 Below SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelow ),
1404 BelowRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowRight ),
1405 };
1406 Q_ENUM( LabelQuadrantPosition )
1407
1408
1415 {
1416 OnLine = 1,
1417 AboveLine = 2,
1418 BelowLine = 4,
1419 MapOrientation = 8,
1420 };
1421 Q_ENUM( LabelLinePlacementFlag )
1422
1423
1431 Q_FLAG( LabelLinePlacementFlags )
1432
1440 {
1441 AllowPlacementOutsideOfPolygon = 1 << 0,
1442 AllowPlacementInsideOfPolygon = 1 << 1,
1443 };
1444 Q_ENUM( LabelPolygonPlacementFlag )
1445
1446
1454
1463 {
1464 FlipUpsideDownLabels SIP_MONKEYPATCH_COMPAT_NAME( Upright ),
1465 AllowUpsideDownWhenRotationIsDefined SIP_MONKEYPATCH_COMPAT_NAME( ShowDefined ),
1466 AlwaysAllowUpsideDown SIP_MONKEYPATCH_COMPAT_NAME( ShowAll )
1467 };
1468 Q_ENUM( UpsideDownLabelHandling )
1469
1470
1478 {
1480 Center SIP_MONKEYPATCH_COMPAT_NAME( MultiCenter ),
1482 FollowPlacement SIP_MONKEYPATCH_COMPAT_NAME( MultiFollowPlacement ),
1483 Justify SIP_MONKEYPATCH_COMPAT_NAME( MultiJustify ),
1484 };
1485 Q_ENUM( LabelMultiLineAlignment )
1486
1487
1495 {
1496 StartOfText,
1497 CenterOfText,
1498 EndOfText,
1499 FollowPlacement,
1500 };
1501 Q_ENUM( TextAnchorPoint )
1502
1503
1510 {
1511 Vector SIP_MONKEYPATCH_COMPAT_NAME( FilterVector ) = 1,
1512 Raster SIP_MONKEYPATCH_COMPAT_NAME( FilterRaster ),
1513 Mesh SIP_MONKEYPATCH_COMPAT_NAME( FilterMesh ),
1514 MeshDataset SIP_MONKEYPATCH_COMPAT_NAME( FilterMeshDataset ),
1515 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( FilterPointCloud ),
1516 VectorTile,
1517 TiledScene,
1518 };
1519 Q_ENUM( FileFilterType )
1520
1521
1526 enum class UriCleaningFlag : int SIP_ENUM_BASETYPE( IntFlag )
1527 {
1528 RemoveCredentials = 1 << 0,
1529 RedactCredentials = 1 << 1,
1530 };
1531 Q_ENUM( UriCleaningFlag )
1532
1533
1539 Q_FLAG( UriCleaningFlags )
1540
1546 enum class SourceHierarchyLevel : int
1547 {
1548 Connection,
1549 Group,
1550 Object,
1551 };
1552 Q_ENUM( SourceHierarchyLevel )
1553
1554
1559 enum class SublayerQueryFlag : int SIP_ENUM_BASETYPE( IntFlag )
1560 {
1561 FastScan = 1 << 0,
1562 ResolveGeometryType = 1 << 1,
1563 CountFeatures = 1 << 2,
1564 IncludeSystemTables = 1 << 3,
1565 OpenLayersToResolveDescriptions = 1 << 4,
1566 };
1567
1570 Q_FLAG( SublayerQueryFlags )
1571
1572
1577 enum class SublayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
1578 {
1579 SystemTable = 1 << 0,
1580 };
1581
1582 Q_DECLARE_FLAGS( SublayerFlags, SublayerFlag )
1584 Q_FLAG( SublayerFlags )
1585
1586
1594 {
1595 Linear SIP_MONKEYPATCH_COMPAT_NAME( Interpolated ) = 0,
1596 Discrete = 1,
1597 Exact = 2,
1598 };
1599 Q_ENUM( ShaderInterpolationMethod )
1600
1601
1609 {
1610 Continuous = 1,
1611 EqualInterval = 2,
1612 Quantile = 3,
1613 };
1614 Q_ENUM( ShaderClassificationMethod )
1615
1616
1622 {
1623 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownRole ) = 0,
1624 Provider SIP_MONKEYPATCH_COMPAT_NAME( ProviderRole ) = 1,
1625 Renderer SIP_MONKEYPATCH_COMPAT_NAME( RendererRole ) = 2,
1626 Brightness SIP_MONKEYPATCH_COMPAT_NAME( BrightnessRole ) = 3,
1627 Resampler SIP_MONKEYPATCH_COMPAT_NAME( ResamplerRole ) = 4,
1628 Projector SIP_MONKEYPATCH_COMPAT_NAME( ProjectorRole ) = 5,
1629 Nuller SIP_MONKEYPATCH_COMPAT_NAME( NullerRole ) = 6,
1630 HueSaturation SIP_MONKEYPATCH_COMPAT_NAME( HueSaturationRole ) = 7,
1631 };
1632 Q_ENUM( RasterPipeInterfaceRole )
1633
1634
1639 {
1640 ResampleFilter,
1641 Provider,
1642 };
1643 Q_ENUM( RasterResamplingStage )
1644
1645
1653 {
1654 Nearest,
1655 Bilinear,
1656 Cubic,
1657 CubicSpline,
1658 Lanczos,
1659 Average,
1660 Mode,
1661 Gauss
1662 };
1663 Q_ENUM( RasterResamplingMethod )
1664
1665
1670 enum class RasterRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
1671 {
1672 InternalLayerOpacityHandling = 1 << 0,
1673 UseNoDataForOutOfRangePixels
1674 = 1 << 1,
1675 };
1676
1683
1685 Q_FLAG( RasterRendererFlags )
1686
1687
1693 {
1694 UsesMultipleBands = 1 << 0,
1695 };
1696 Q_ENUM( RasterRendererCapability )
1697
1698
1705
1714 {
1716 MinimumMaximum SIP_MONKEYPATCH_COMPAT_NAME( MinMax ),
1717 StdDev,
1718 CumulativeCut
1719 };
1720 Q_ENUM( RasterRangeLimit )
1721
1722
1730 {
1731 WholeRaster SIP_MONKEYPATCH_COMPAT_NAME( None_ ),
1732 FixedCanvas SIP_MONKEYPATCH_COMPAT_NAME( CurrentCanvas ),
1733 UpdatedCanvas,
1734 };
1735 Q_ENUM( RasterRangeExtent )
1736
1737
1745 {
1746 Exact,
1747 Estimated,
1748 };
1749 Q_ENUM( RasterRangeAccuracy )
1750
1751
1757 {
1758 Generic = 0,
1759 PixelCount = 1,
1760 Name = 2,
1761 Min = 3,
1762 Max = 4,
1763 MinMax = 5,
1764 Red = 6,
1765 Green = 7,
1766 Blue = 8,
1767 Alpha = 9,
1768 RedMin = 10,
1769 GreenMin = 11,
1770 BlueMin = 12,
1771 AlphaMin = 13,
1772 RedMax = 14,
1773 GreenMax = 15,
1774 BlueMax = 16,
1775 AlphaMax = 17,
1776 MaxCount
1777 };
1778 Q_ENUM( RasterAttributeTableFieldUsage )
1779
1780
1786 {
1787 Thematic = 0,
1788 Athematic = 1
1789 };
1790 Q_ENUM( RasterAttributeTableType )
1791
1792
1799 {
1800 Raw = 0,
1801 RenderedImage SIP_MONKEYPATCH_COMPAT_NAME( Image ) = 1
1802 };
1803 Q_ENUM( RasterExportType )
1804
1805
1812 {
1814 SourceProviderError = 1,
1815 DestinationProviderError SIP_MONKEYPATCH_COMPAT_NAME( DestProviderError ) = 2,
1816 CreateDatasourceError = 3,
1817 WriteError = 4,
1818 NoDataConflict = 5,
1819 Canceled SIP_MONKEYPATCH_COMPAT_NAME( WriteCanceled ) = 6,
1820 };
1821 Q_ENUM( RasterFileWriterResult )
1822
1823
1828 enum class MeshEditingErrorType : int
1829 {
1830 NoError,
1831 InvalidFace,
1832 TooManyVerticesInFace,
1833 FlatFace,
1834 UniqueSharedVertex,
1835 InvalidVertex,
1836 ManifoldFace,
1837 };
1838 Q_ENUM( MeshEditingErrorType )
1839
1840
1845 enum class FilePathType : int
1846 {
1847 Absolute,
1848 Relative,
1849 };
1850 Q_ENUM( FilePathType )
1851
1852
1857 enum class SublayerPromptMode : int
1858 {
1859 AlwaysAsk,
1860 AskExcludingRasterBands,
1861 NeverAskSkip,
1862 NeverAskLoadAll,
1863 };
1864 Q_ENUM( SublayerPromptMode )
1865
1866
1874 {
1875 Unknown SIP_MONKEYPATCH_COMPAT_NAME( OriginUnknown ),
1876 Provider SIP_MONKEYPATCH_COMPAT_NAME( OriginProvider ),
1877 Join SIP_MONKEYPATCH_COMPAT_NAME( OriginJoin ),
1878 Edit SIP_MONKEYPATCH_COMPAT_NAME( OriginEdit ),
1879 Expression SIP_MONKEYPATCH_COMPAT_NAME( OriginExpression )
1880 };
1881 Q_ENUM( FieldOrigin )
1882
1883
1890 enum class FieldConfigurationFlag : int SIP_ENUM_BASETYPE( IntFlag )
1891 {
1892 NoFlag = 0,
1893 NotSearchable = 1 << 1,
1894 HideFromWms = 1 << 2,
1895 HideFromWfs = 1 << 3,
1896 };
1897 Q_ENUM( FieldConfigurationFlag )
1898
1899
1907 Q_FLAG( FieldConfigurationFlags )
1908
1914 enum class FieldMetadataProperty : int
1915 {
1916 GeometryCrs = 0x1000,
1917 GeometryWkbType = 0x1001,
1918 CustomProperty = 0x100000,
1919 };
1920 Q_ENUM( FieldMetadataProperty )
1921
1922
1927 enum class SelectionRenderingMode : int
1928 {
1929 Default,
1930 CustomColor,
1931 CustomSymbol,
1932 };
1933 Q_ENUM( SelectionRenderingMode )
1934
1935
1941 {
1942 SetSelection,
1943 AddToSelection,
1944 IntersectSelection,
1945 RemoveFromSelection,
1946 };
1947 Q_ENUM( SelectBehavior )
1948
1949
1955 {
1956 Intersect,
1957 Within,
1958 };
1959 Q_ENUM( SelectGeometryRelationship )
1960
1961
1966 enum class SelectionFlag : int SIP_ENUM_BASETYPE( IntFlag )
1967 {
1968 SingleFeatureSelection = 1 << 0,
1969 ToggleSelection = 1 << 1,
1970 };
1971
1977 Q_DECLARE_FLAGS( SelectionFlags, SelectionFlag )
1978
1980 Q_FLAG( SelectionFlags )
1981
1982
1988 {
1990 EmptyGeometry = 1,
1991 EditFailed = 2,
1992 FetchFeatureFailed = 3,
1993 InvalidLayer = 4,
1994 };
1995 Q_ENUM( VectorEditResult )
1996
1997
2003 {
2004 SemiTransparentCircle,
2005 Cross,
2006 NoMarker,
2007 };
2008 Q_ENUM( VertexMarkerType )
2009
2010
2014 enum class ContentStatus : int
2015 {
2016 NotStarted,
2017 Running,
2018 Finished,
2019 Failed,
2020 Canceled,
2021 };
2022 Q_ENUM( ContentStatus )
2023
2024
2029 enum class GpsConnectionType : int
2030 {
2031 Automatic,
2032 Internal,
2033 Serial,
2034 Gpsd,
2035 };
2036 Q_ENUM( GpsConnectionType )
2037
2038
2043 enum class DeviceConnectionStatus SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, GpsConnectionStatus ) : int
2044 {
2045 Disconnected,
2046 Connecting,
2047 Connected,
2048 };
2049 Q_ENUM( DeviceConnectionStatus )
2050
2051
2059 {
2060 NoData,
2061 NoFix,
2062 Fix2D,
2063 Fix3D
2064 };
2066
2067
2074 {
2075 Unknown,
2076 Gps,
2077 Glonass,
2078 Galileo,
2079 BeiDou,
2080 Qzss,
2081 Navic,
2082 Sbas,
2083 };
2085
2092 {
2093 Unknown = -1,
2094 Invalid,
2095 GPS,
2096 DGPS,
2097 PPS,
2098 RTK,
2099 FloatRTK,
2100 Estimated,
2101 Manual,
2102 Simulation,
2103 };
2104 Q_ENUM( GpsQualityIndicator )
2105
2106
2111 enum class GpsNavigationStatus : int
2112 {
2113 NotValid,
2114 Safe,
2115 Caution,
2116 Unsafe,
2117 };
2119
2125 enum class GpsInformationComponent : int SIP_ENUM_BASETYPE( IntFlag )
2126 {
2127 Location = 1 << 0,
2128 Altitude = 1 << 1,
2129 GroundSpeed = 1 << 2,
2130 Bearing = 1 << 3,
2131 TotalTrackLength = 1 << 4,
2132 TrackDistanceFromStart = 1 << 5,
2133 Pdop = 1 << 6,
2134 Hdop = 1 << 7,
2135 Vdop = 1 << 8,
2136 HorizontalAccuracy = 1 << 9,
2137 VerticalAccuracy = 1 << 10,
2138 HvAccuracy = 1 << 11,
2139 SatellitesUsed = 1 << 12,
2140 Timestamp = 1 << 13,
2141 TrackStartTime = 1 << 14,
2142 TrackEndTime = 1 << 15,
2143 TrackDistanceSinceLastPoint = 1 << 16,
2144 TrackTimeSinceLastPoint = 1 << 17,
2145 GeoidalSeparation = 1 << 18,
2146 EllipsoidAltitude = 1 << 19,
2147 };
2148
2156 Q_FLAG( GpsInformationComponents )
2157
2158
2163 enum class BabelFormatCapability : int SIP_ENUM_BASETYPE( IntFlag )
2164 {
2165 Import = 1 << 0,
2166 Export = 1 << 1,
2167 Waypoints = 1 << 2,
2168 Routes = 1 << 3,
2169 Tracks = 1 << 4,
2170 };
2171
2174 Q_FLAG( BabelFormatCapabilities )
2175
2176
2182 enum class BabelCommandFlag : int SIP_ENUM_BASETYPE( IntFlag )
2183 {
2184 QuoteFilePaths = 1 << 0,
2185 };
2186
2189 Q_FLAG( BabelCommandFlags )
2190
2191
2196 enum class GpsFeatureType : int
2197 {
2198 Waypoint,
2199 Route,
2200 Track,
2201 };
2202 Q_ENUM( GpsFeatureType )
2203
2204
2212 {
2214 NothingHappened = 1000,
2215 InvalidBaseGeometry,
2216 InvalidInputGeometryType,
2217 SelectionIsEmpty,
2218 SelectionIsGreaterThanOne,
2219 GeometryEngineError,
2220 LayerNotEditable,
2221 // Add part issues
2222 AddPartSelectedGeometryNotFound,
2223 AddPartNotMultiGeometry,
2224 // Add ring issues
2225 AddRingNotClosed,
2226 AddRingNotValid,
2227 AddRingCrossesExistingRings,
2228 AddRingNotInExistingFeature,
2229 // Split features
2230 SplitCannotSplitPoint,
2231 GeometryTypeHasChanged,
2232 };
2233 Q_ENUM( GeometryOperationResult )
2234
2235
2241 {
2242 AllowSelfTouchingHoles SIP_MONKEYPATCH_COMPAT_NAME( FlagAllowSelfTouchingHoles )
2243 = 1 << 0,
2244 };
2245
2248 Q_FLAG( GeometryValidityFlags )
2249
2250
2255 {
2256 QgisInternal SIP_MONKEYPATCH_COMPAT_NAME( ValidatorQgisInternal ),
2257 Geos SIP_MONKEYPATCH_COMPAT_NAME( ValidatorGeos ),
2258 Sfcgal,
2259 };
2260 Q_ENUM( GeometryValidationEngine )
2261
2262
2272 Q_ENUM( BufferSide )
2273
2274
2285 Q_ENUM( EndCapStyle )
2286
2287
2293 {
2294 Round SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleRound ) = 1,
2295 Miter SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleMiter ),
2296 Bevel SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleBevel ),
2297 };
2298 Q_ENUM( JoinStyle )
2299
2300
2305 enum class JoinStyle3D : int
2306 {
2307 Round = 1,
2308 Flat,
2309 CylindersAndSpheres,
2310 };
2311 Q_ENUM( JoinStyle3D )
2312
2313
2318 enum class GeometryBackend : int
2319 {
2320 QGIS = 1,
2321 GEOS,
2322 };
2323 Q_ENUM( GeometryBackend )
2324
2325
2330 enum class GeosCreationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2331 {
2332 RejectOnInvalidSubGeometry = 1 << 0,
2333 SkipEmptyInteriorRings = 1 << 1,
2334 };
2335 Q_ENUM( GeosCreationFlag )
2336
2337
2343 Q_FLAG( GeosCreationFlags )
2344
2350 enum class CoverageValidityResult : int
2351 {
2352 Invalid = 0,
2353 Valid = 1,
2354 Error = 2,
2355 };
2356 Q_ENUM( CoverageValidityResult )
2357
2358
2363 enum class MakeValidMethod : int
2364 {
2365 Linework = 0,
2366 Structure = 1,
2367 };
2368 Q_ENUM( MakeValidMethod )
2369
2370
2378 {
2379 NoFlags = 0,
2380 NoGeometry = 1,
2381 SubsetOfAttributes = 2,
2382 ExactIntersect = 4,
2383 IgnoreStaticNodesDuringExpressionCompilation
2384 = 8,
2385 EmbeddedSymbols = 16,
2386 };
2387 Q_ENUM( FeatureRequestFlag )
2388
2389
2397 Q_FLAG( FeatureRequestFlags )
2398
2407 {
2408 NoFilter SIP_MONKEYPATCH_COMPAT_NAME( FilterNone ),
2410 Expression SIP_MONKEYPATCH_COMPAT_NAME( FilterExpression ),
2412 };
2413 Q_ENUM( FeatureRequestFilterType )
2414
2415
2423 {
2424 NoCheck SIP_MONKEYPATCH_COMPAT_NAME( GeometryNoCheck ) = 0,
2425 SkipInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometrySkipInvalid ) = 1,
2426 AbortOnInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometryAbortOnInvalid ) = 2,
2427 };
2428 Q_ENUM( InvalidGeometryCheck )
2429
2430
2435 enum class SpatialFilterType : int
2436 {
2437 NoFilter,
2438 BoundingBox,
2439 DistanceWithin,
2440 };
2441 Q_ENUM( SpatialFilterType )
2442
2443
2448 enum class FileOperationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2449 {
2450 IncludeMetadataFile = 1 << 0,
2451 IncludeStyleFile = 1 << 1,
2452 };
2453
2456 Q_FLAG( FileOperationFlags )
2457
2458
2463 enum class MapLayerProperty : int SIP_ENUM_BASETYPE( IntFlag )
2464 {
2465 UsersCannotToggleEditing
2466 = 1 << 0,
2467 IsBasemapLayer = 1 << 1,
2468 Is3DBasemapLayer = 1 << 2,
2469 };
2470
2473 Q_FLAG( MapLayerProperties )
2474
2475
2480 enum class AutoRefreshMode : int
2481 {
2482 Disabled = 0,
2483 ReloadData = 1,
2484 RedrawOnly = 2,
2485 };
2486 Q_ENUM( AutoRefreshMode )
2487
2488
2493 enum class DataProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
2494 {
2495 IsBasemapSource = 1 << 1,
2496 FastExtent2D = 1 << 2,
2497 FastExtent3D = 1 << 3,
2498 Is3DBasemapSource = 1 << 4,
2499 };
2500
2503 Q_FLAG( DataProviderFlags )
2504
2505
2512 enum class CrsType : int
2513 {
2514 Unknown,
2515 Geodetic,
2516 Geocentric,
2517 Geographic2d,
2518 Geographic3d,
2519 Vertical,
2520 Projected,
2521 Compound,
2522 Temporal,
2523 Engineering,
2524 Bound,
2525 Other,
2526 DerivedProjected,
2527 };
2528 Q_ENUM( CrsType )
2529
2530
2537 enum class CrsAxisDirection : int
2538 {
2539 North,
2540 NorthNorthEast,
2541 NorthEast,
2542 EastNorthEast,
2543 East,
2544 EastSouthEast,
2545 SouthEast,
2546 SouthSouthEast,
2547 South,
2548 SouthSouthWest,
2549 SouthWest,
2550 WestSouthWest,
2551 West,
2552 WestNorthWest,
2553 NorthWest,
2554 NorthNorthWest,
2555 GeocentricX,
2556 GeocentricY,
2557 GeocentricZ,
2560 Forward,
2561 Aft,
2562 Port,
2563 Starboard,
2564 Clockwise,
2565 CounterClockwise,
2566 ColumnPositive,
2567 ColumnNegative,
2568 RowPositive,
2569 RowNegative,
2570 DisplayRight,
2571 DisplayLeft,
2572 DisplayUp,
2573 DisplayDown,
2574 Future,
2575 Past,
2576 Towards,
2577 AwayFrom,
2578 Unspecified,
2579 };
2580 Q_ENUM( CrsAxisDirection )
2581
2582
2587 enum class CoordinateOrder : int
2588 {
2589 Default,
2590 XY,
2591 YX,
2592 };
2593 Q_ENUM( CoordinateOrder )
2594
2595
2603 {
2604 ShortString,
2605 MediumString,
2606 FullString,
2607 };
2608 Q_ENUM( CrsIdentifierType )
2609
2610
2618 {
2620 WKT1_GDAL
2621 ),
2622 Wkt1Esri SIP_MONKEYPATCH_COMPAT_NAME( WKT1_ESRI ),
2623 Wkt2_2015 SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2015 ),
2624 Wkt2_2015Simplified SIP_MONKEYPATCH_COMPAT_NAME(
2625 WKT2_2015_SIMPLIFIED
2626 ),
2628 WKT2_2019
2629 ),
2630 Wkt2_2019Simplified SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2019_SIMPLIFIED ),
2631 Preferred SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED ) = Wkt2_2019,
2632 PreferredSimplified SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_SIMPLIFIED )
2633 = Wkt2_2019Simplified,
2634 PreferredGdal SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_GDAL ) = Wkt2_2019,
2635 };
2636 Q_ENUM( CrsWktVariant )
2637
2638
2644 {
2645 NoAction = 0,
2646 PromptUserForCrs = 1,
2647 UseProjectCrs = 2,
2648 UseDefaultCrs = 3,
2649 };
2650 Q_ENUM( UnknownLayerCrsBehavior )
2651
2652
2657 enum class Axis : int
2658 {
2659 X,
2660 Y,
2662 };
2663 Q_ENUM( Axis )
2664
2665
2670 enum class AnnotationItemFlag : int SIP_ENUM_BASETYPE( IntFlag )
2671 {
2672 ScaleDependentBoundingBox = 1 << 0,
2673 SupportsReferenceScale = 1 << 1,
2674 SupportsCallouts = 1 << 2,
2675 };
2676
2679 Q_FLAG( AnnotationItemFlags )
2680
2681
2687 {
2688 SpatialBounds = 0,
2689 FixedSize,
2690 RelativeToMapFrame,
2691 };
2692 Q_ENUM( AnnotationPlacementMode )
2693
2694
2699 enum class AnnotationItemGuiFlag : int SIP_ENUM_BASETYPE( IntFlag )
2700 {
2701 FlagNoCreationTools = 1 << 0,
2702 };
2703
2706 Q_FLAG( AnnotationItemGuiFlags )
2707
2708
2713 enum class AnnotationItemNodeType : int
2714 {
2715 VertexHandle,
2716 CalloutHandle,
2717 };
2718 Q_ENUM( AnnotationItemNodeType )
2719
2720
2726 {
2728 Invalid,
2729 ItemCleared,
2730 };
2731 Q_ENUM( AnnotationItemEditOperationResult )
2732
2733
2741 {
2742 Disabled SIP_MONKEYPATCH_COMPAT_NAME( NavigationOff ),
2743 Animated,
2744 FixedRange,
2745 Movie,
2746 };
2747 Q_ENUM( TemporalNavigationMode )
2748
2749
2762 Q_ENUM( AnimationState )
2763
2764
2769 enum class PlaybackOperation : int
2770 {
2771 SkipToStart,
2772 PreviousFrame,
2773 PlayReverse,
2774 Pause,
2775 PlayForward,
2776 NextFrame,
2777 SkipToEnd,
2778 };
2779 Q_ENUM( PlaybackOperation )
2780
2781
2787 {
2788 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2789 FeatureDateTimeInstantFromField SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeInstantFromField ),
2790 FeatureDateTimeStartAndEndFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromFields ),
2791 FeatureDateTimeStartAndDurationFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndDurationFromFields ),
2792 FeatureDateTimeStartAndEndFromExpressions SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromExpressions ),
2794 ModeRedrawLayerOnly
2795 ),
2796 };
2797 Q_ENUM( VectorTemporalMode )
2798
2799
2805 {
2806 IncludeBeginExcludeEnd = 0,
2807 IncludeBeginIncludeEnd,
2808 };
2809 Q_ENUM( VectorTemporalLimitMode )
2810
2811
2817 {
2818 HasFixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ProviderHasFixedTemporalRange ) = 0,
2819 StoresFeatureDateTimeInstantInField SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeInstantInField ),
2820 StoresFeatureDateTimeStartAndEndInSeparateFields SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeStartAndEndInSeparateFields ),
2821 };
2822 Q_ENUM( VectorDataProviderTemporalMode )
2823
2824
2830 {
2831 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2832 TemporalRangeFromDataProvider SIP_MONKEYPATCH_COMPAT_NAME( ModeTemporalRangeFromDataProvider ) = 1,
2833 RedrawLayerOnly SIP_MONKEYPATCH_COMPAT_NAME( ModeRedrawLayerOnly )
2834 = 2,
2835 FixedRangePerBand = 3,
2836 RepresentsTemporalValues = 4,
2837 FixedDateTime = 5,
2838 };
2839 Q_ENUM( RasterTemporalMode )
2840
2841
2847 {
2848 MatchUsingWholeRange,
2849 MatchExactUsingStartOfRange,
2850 MatchExactUsingEndOfRange,
2851 FindClosestMatchToStartOfRange,
2852 FindClosestMatchToEndOfRange
2853 };
2854 Q_ENUM( TemporalIntervalMatchMethod )
2855
2856
2862 {
2863 RequestedTimesMustExactlyMatchAllAvailableTemporalRanges
2864 = 1 << 0,
2865 };
2866 Q_ENUM( RasterTemporalCapabilityFlag )
2867
2868
2875
2886 Q_ENUM( TransformDirection )
2887
2888
2894 {
2895 BallparkTransformsAreAppropriate
2896 = 1 << 0,
2897 IgnoreImpossibleTransformations
2898 = 1 << 1,
2899 };
2900 Q_ENUM( CoordinateTransformationFlag )
2901
2902
2909
2916 {
2917 Default,
2918 PreferVector,
2919 ForceVector,
2920 };
2921 Q_ENUM( RasterizedRenderingPolicy )
2922
2923
2929 {
2930 Antialiasing = 0x01,
2931 DrawEditingInfo = 0x02,
2932 ForceVectorOutput = 0x04,
2933 UseAdvancedEffects = 0x08,
2934 DrawLabeling = 0x10,
2935 UseRenderingOptimization = 0x20,
2936 DrawSelection = 0x40,
2937 DrawSymbolBounds = 0x80,
2938 RenderMapTile = 0x100,
2939 RenderPartialOutput = 0x200,
2940 RenderPreviewJob = 0x400,
2941 RenderBlocking = 0x800,
2942 LosslessImageRendering
2943 = 0x1000,
2944 Render3DMap = 0x2000,
2945 HighQualityImageTransforms = 0x4000,
2946 SkipSymbolRendering = 0x8000,
2947 ForceRasterMasks = 0x10000,
2948 RecordProfile = 0x20000,
2949 AlwaysUseGlobalMasks
2950 = 0x40000,
2951 DrawLabelSelection = 0x80000
2952 };
2953
2956 Q_FLAG( MapSettingsFlags )
2957
2958
2964 {
2965 DrawEditingInfo = 0x01,
2966 ForceVectorOutput = 0x02,
2967 UseAdvancedEffects = 0x04,
2968 UseRenderingOptimization = 0x08,
2969 DrawSelection = 0x10,
2970 DrawSymbolBounds = 0x20,
2971 RenderMapTile = 0x40,
2972 Antialiasing = 0x80,
2973 RenderPartialOutput = 0x100,
2974 RenderPreviewJob = 0x200,
2975 RenderBlocking = 0x400,
2976 RenderSymbolPreview = 0x800,
2977 LosslessImageRendering = 0x1000,
2978 ApplyScalingWorkaroundForTextRendering = 0x2000,
2979 Render3DMap = 0x4000,
2980 ApplyClipAfterReprojection = 0x8000,
2981 RenderingSubSymbol = 0x10000,
2982 HighQualityImageTransforms = 0x20000,
2983 SkipSymbolRendering = 0x40000,
2984 RecordProfile = 0x80000,
2985 AlwaysUseGlobalMasks = 0x100000,
2986 DisableSymbolClippingToExtent = 0x200000,
2987 RenderLayerTree = 0x400000,
2988 DrawLabelSelection = 0x800000
2989 };
2990
2993 Q_FLAG( RenderContextFlags )
2994
2995
3000 enum class MapLayerRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3001 {
3002 RenderPartialOutputs = 1 << 0,
3003 RenderPartialOutputOverPreviousCachedImage = 1 << 1,
3004 AffectsLabeling = 1 << 2,
3005 };
3006 Q_ENUM( MapLayerRendererFlag )
3007
3008
3014 Q_FLAG( MapLayerRendererFlags )
3015
3021 enum class PaintEffectFlag : int SIP_ENUM_BASETYPE( IntFlag )
3022 {
3023 RequiresRasterization = 1 << 0,
3024 };
3025 Q_ENUM( PaintEffectFlag )
3026
3027
3033 Q_FLAG( PaintEffectFlags )
3034
3035 // refs for below dox: https://github.com/qgis/QGIS/pull/1286#issuecomment-39806854
3036 // https://github.com/qgis/QGIS/pull/8573#issuecomment-445585826
3037
3043 {
3045 TextFormatAlwaysOutlines
3046 ),
3048 TextFormatAlwaysText
3049 ),
3050 PreferText,
3051 };
3052 Q_ENUM( TextRenderFormat )
3053
3054
3062 {
3063 UseAllLabels = 1 << 1,
3064 UsePartialCandidates = 1 << 2,
3065 // TODO QGIS 5.0: remove
3066 RenderOutlineLabels = 1 << 3,
3067 DrawLabelRectOnly = 1 << 4,
3068 DrawCandidates = 1 << 5,
3069 DrawUnplacedLabels = 1 << 6,
3070 CollectUnplacedLabels = 1 << 7,
3071 DrawLabelMetrics = 1 << 8,
3072 IgnoreObstacles = 1 << 9,
3073 SingleCandidateOnly = 1 << 10,
3074 IgnoreOverlaps = 1 << 11,
3075 DisableSearchTree = 1 << 12,
3076 };
3077 Q_ENUM( LabelingFlag )
3078
3079
3087 Q_FLAG( LabelingFlags )
3088
3097 {
3098 Version1 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion1 ),
3099 Version2 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion2 ),
3100 };
3101 Q_ENUM( LabelPlacementEngineVersion )
3102
3103
3111 {
3112 Horizontal SIP_MONKEYPATCH_COMPAT_NAME( HorizontalOrientation ),
3113 Vertical SIP_MONKEYPATCH_COMPAT_NAME( VerticalOrientation ),
3114 RotationBased SIP_MONKEYPATCH_COMPAT_NAME( RotationBasedOrientation ),
3115 };
3116 Q_ENUM( TextOrientation )
3117
3118
3126 {
3128 Point,
3130 RectangleCapHeightBased,
3131 RectangleAscentBased,
3132 };
3133 Q_ENUM( TextLayoutMode )
3134
3135
3143 {
3144 Text = 1 << 0,
3145 Buffer = 1 << 1,
3146 Background = 1 << 2,
3147 Shadow = 1 << 3,
3148 };
3149 Q_ENUM( TextComponent )
3150
3151
3156 Q_DECLARE_FLAGS( TextComponents, TextComponent )
3157 Q_FLAG( TextComponents )
3158
3173 Q_ENUM( TextHorizontalAlignment )
3174
3175
3186 {
3188 VerticalCenter SIP_MONKEYPATCH_COMPAT_NAME( AlignVCenter ),
3189 Bottom SIP_MONKEYPATCH_COMPAT_NAME( AlignBottom ),
3190 };
3191 Q_ENUM( TextVerticalAlignment )
3192
3193
3202 {
3203 Normal,
3204 SuperScript,
3205 SubScript,
3206 };
3207 Q_ENUM( TextCharacterVerticalAlignment )
3208
3209
3215 {
3216 TruncateStringWhenLineIsTooShort = 1 << 0,
3217 UseBaselinePlacement = 1 << 1,
3218 UprightCharactersOnly = 1 << 2,
3219 ExtendLineToFitText = 1 << 3,
3220 };
3221 Q_ENUM( CurvedTextFlag )
3222
3223
3229
3238 {
3239 Distance = 0,
3240 SnapToGrid = 1,
3241 Visvalingam = 2,
3242 SnappedToGridGlobal = 3,
3243 };
3244 Q_ENUM( VectorSimplificationAlgorithm )
3245
3246
3254 {
3255 NoSimplification = 0,
3256 GeometrySimplification = 1,
3257 AntialiasingSimplification = 2,
3258 FullSimplification = 3,
3259 };
3260 Q_ENUM( VectorRenderingSimplificationFlag )
3261
3262
3271
3278 {
3279 Generic,
3280 ShadowOffset,
3281 BlurSize,
3282 GlowSpread,
3283 };
3284 Q_ENUM( RenderSubcomponentProperty )
3285
3286
3292 {
3293 SymbolLayer,
3294 Label,
3295 };
3296 Q_ENUM( SelectiveMaskSourceType )
3297
3298
3303 {
3304 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentVertex ) = 1,
3305 Curve SIP_MONKEYPATCH_COMPAT_NAME( CurveVertex ) = 2,
3306 ControlPoint SIP_MONKEYPATCH_COMPAT_NAME( ControlPointVertex ) = 3,
3307 };
3308 Q_ENUM( VertexType )
3309
3310
3318 {
3319 Square,
3320 Diamond,
3321 Pentagon,
3322 Hexagon,
3323 Triangle,
3324 EquilateralTriangle,
3325 Star,
3326 Arrow,
3327 Circle,
3328 Cross,
3329 CrossFill,
3330 Cross2,
3331 Line,
3332 ArrowHead,
3333 ArrowHeadFilled,
3334 SemiCircle,
3335 ThirdCircle,
3336 QuarterCircle,
3337 QuarterSquare,
3338 HalfSquare,
3339 DiagonalHalfSquare,
3340 RightHalfTriangle,
3341 LeftHalfTriangle,
3342 Octagon,
3343 SquareWithCorners,
3344 AsteriskFill,
3345 HalfArc,
3346 ThirdArc,
3347 QuarterArc,
3348 ParallelogramRight,
3349 ParallelogramLeft,
3350 Trapezoid,
3351 Shield,
3352 DiamondStar,
3353 Heart,
3354 Decagon,
3355 RoundedSquare,
3356 };
3357 Q_ENUM( MarkerShape )
3358
3359
3367 {
3368 Interval = 1 << 0,
3369 Vertex = 1 << 1,
3370 LastVertex = 1 << 2,
3371 FirstVertex = 1 << 3,
3372 CentralPoint = 1 << 4,
3373 CurvePoint = 1 << 5,
3374 SegmentCenter = 1 << 6,
3375 InnerVertices = 1 << 7,
3376 };
3377 Q_ENUM( MarkerLinePlacement )
3379 Q_FLAG( MarkerLinePlacements )
3380
3387 {
3388 IntervalCartesian2D = 1 << 0,
3389 IntervalZ = 1 << 1,
3390 IntervalM = 1 << 2,
3391 Vertex = 1 << 3,
3392 };
3393 Q_ENUM( LinearReferencingPlacement )
3394
3395
3401 {
3402 CartesianDistance2D,
3403 Z,
3404 M,
3405 };
3406 Q_ENUM( LinearReferencingLabelSource )
3407
3408
3416 {
3417 SimpleTwoColor,
3418 ColorRamp,
3419 };
3420 Q_ENUM( GradientColorSource )
3421
3422
3435 Q_ENUM( GradientType )
3436
3437
3445 {
3446 Feature,
3447 Viewport,
3448 };
3449 Q_ENUM( SymbolCoordinateReference )
3450
3451
3465 Q_ENUM( GradientSpread )
3466
3467
3475 {
3476 Absolute SIP_MONKEYPATCH_COMPAT_NAME( AbsoluteCount ),
3477 DensityBased SIP_MONKEYPATCH_COMPAT_NAME( DensityBasedCount ),
3478 };
3479 Q_ENUM( PointCountMethod )
3480
3481
3486 enum class MarkerClipMode : int
3487 {
3488 NoClipping,
3489 Shape,
3490 CentroidWithin,
3491 CompletelyWithin,
3492 };
3493 Q_ENUM( MarkerClipMode )
3494
3495
3500 enum class LineClipMode : int
3501 {
3502 ClipPainterOnly,
3503 ClipToIntersection,
3504 NoClipping,
3505 };
3506 Q_ENUM( LineClipMode )
3507
3508
3514 {
3515 NoRule,
3516 FullDash,
3517 HalfDash,
3518 FullGap,
3519 HalfGap,
3520 };
3521 Q_ENUM( DashPatternLineEndingRule )
3522
3523
3529 {
3530 ScaleBothDashAndGap,
3531 ScaleDashOnly,
3532 ScaleGapOnly,
3533 };
3534 Q_ENUM( DashPatternSizeAdjustment )
3535
3536
3548 Q_ENUM( GraduatedMethod )
3549
3550
3556 {
3557 NoLabels,
3558 EveryLabel,
3559 FirstLabel,
3560 LastLabel,
3561 FirstAndLastLabels,
3562 };
3563 Q_ENUM( PlotAxisSuffixPlacement )
3564
3565
3566
3571 enum class PlotAxisType
3572 {
3573 Interval,
3574 Categorical,
3575 };
3576 Q_ENUM( PlotAxisType )
3577
3578
3583 enum class PieChartLabelType : int
3584 {
3585 NoLabels,
3586 Categories,
3587 Values,
3588 };
3589 Q_ENUM( PieChartLabelType )
3590
3591
3595 enum class DpiMode
3596 {
3597 All = 7,
3598 Off = 0,
3599 QGIS = 1,
3600 UMN = 2,
3601 GeoServer = 4,
3602 };
3603 Q_ENUM( DpiMode )
3604
3605
3610 {
3611 Undefined = 0,
3612 StandardDpi = 1,
3613 HighDpi = 2,
3614 };
3615 Q_ENUM( TilePixelRatio )
3616
3617 // NOTE -- the hardcoded numbers here must match QFont::Capitalization!
3618
3619
3627 {
3628 MixedCase = 0,
3629 AllUppercase = 1,
3630 AllLowercase = 2,
3631 ForceFirstLetterToCapital = 4,
3632 SmallCaps = 5,
3633 TitleCase = 1004,
3634 UpperCamelCase = 1005,
3635 AllSmallCaps = 1006,
3636 };
3637 Q_ENUM( Capitalization )
3638
3639
3644 enum class TextRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3645 {
3646 WrapLines = 1 << 0,
3647 };
3648 Q_ENUM( TextRendererFlag )
3650 Q_FLAG( TextRendererFlags )
3651
3658 {
3659 MapBox,
3660 Esri,
3661 };
3663
3670 {
3671 Clockwise,
3672 CounterClockwise,
3673 NoOrientation,
3674 };
3675 Q_ENUM( AngularDirection )
3676
3677
3682 enum class RendererUsage : int
3683 {
3684 View,
3685 Export,
3686 Unknown,
3687 };
3688 Q_ENUM( RendererUsage )
3689
3690
3695 enum class MapCanvasFlag : int SIP_ENUM_BASETYPE( IntFlag )
3696 {
3697 ShowMainAnnotationLayer = 1 << 0,
3698 };
3699 Q_ENUM( MapCanvasFlag )
3700
3701
3706 Q_DECLARE_FLAGS( MapCanvasFlags, MapCanvasFlag )
3707 Q_FLAG( MapCanvasFlags )
3708
3714 enum class ViewSyncModeFlag : int SIP_ENUM_BASETYPE( IntFlag )
3715 {
3716 Sync3DTo2D = 1 << 0,
3717 Sync2DTo3D = 1 << 1,
3718 };
3719 Q_ENUM( ViewSyncModeFlag )
3721
3728 {
3729 Always,
3730 WhenOutsideVisibleExtent,
3731 Never,
3732 };
3733 Q_ENUM( MapRecenteringMode )
3734
3735
3740 enum class HistoryProviderBackend : int SIP_ENUM_BASETYPE( IntFlag )
3741 {
3742 LocalProfile = 1 << 0,
3743 // Project = 1 << 1, //!< QGIS Project (not yet implemented)
3744 };
3745 Q_ENUM( HistoryProviderBackend )
3747 Q_FLAG( HistoryProviderBackends )
3748
3754 enum class QueryStorageBackend : int
3755 {
3756 LocalProfile,
3757 CurrentProject,
3758 };
3759 Q_ENUM( QueryStorageBackend )
3760
3761
3769 {
3770 MapLayer SIP_MONKEYPATCH_COMPAT_NAME( TypeMapLayer ) = -2,
3771 VectorAnyGeometry SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorAnyGeometry ) = -1,
3772 VectorPoint SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPoint ) = 0,
3773 VectorLine SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorLine ) = 1,
3774 VectorPolygon SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPolygon ) = 2,
3775 Raster SIP_MONKEYPATCH_COMPAT_NAME( TypeRaster ) = 3,
3776 File SIP_MONKEYPATCH_COMPAT_NAME( TypeFile ) = 4,
3777 Vector SIP_MONKEYPATCH_COMPAT_NAME( TypeVector ) = 5,
3778 Mesh SIP_MONKEYPATCH_COMPAT_NAME( TypeMesh ) = 6,
3779 Plugin SIP_MONKEYPATCH_COMPAT_NAME( TypePlugin ) = 7,
3780 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( TypePointCloud ) = 8,
3781 Annotation SIP_MONKEYPATCH_COMPAT_NAME( TypeAnnotation ) = 9,
3782 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorTile ) = 10,
3783 TiledScene = 11
3784 };
3785 Q_ENUM( ProcessingSourceType )
3786
3787
3788
3796 {
3797 DeemphasiseSearchResults SIP_MONKEYPATCH_COMPAT_NAME( FlagDeemphasiseSearchResults )
3798 = 1 << 1,
3799 CompatibleWithVirtualRaster SIP_MONKEYPATCH_COMPAT_NAME( FlagCompatibleWithVirtualRaster ) = 1 << 2,
3800 };
3802
3811 Q_FLAG( ProcessingProviderFlags )
3812
3813
3821 {
3822 HideFromToolbox SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromToolbox ) = 1 << 1,
3823 HideFromModeler SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromModeler ) = 1 << 2,
3824 SupportsBatch SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsBatch ) = 1 << 3,
3825 CanCancel SIP_MONKEYPATCH_COMPAT_NAME( FlagCanCancel ) = 1 << 4,
3826 RequiresMatchingCrs SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresMatchingCrs ) = 1 << 5,
3827 NoThreading SIP_MONKEYPATCH_COMPAT_NAME( FlagNoThreading ) = 1 << 6,
3828 DisplayNameIsLiteral SIP_MONKEYPATCH_COMPAT_NAME( FlagDisplayNameIsLiteral ) = 1 << 7,
3829 SupportsInPlaceEdits SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsInPlaceEdits ) = 1 << 8,
3830 KnownIssues SIP_MONKEYPATCH_COMPAT_NAME( FlagKnownIssues ) = 1 << 9,
3831 CustomException SIP_MONKEYPATCH_COMPAT_NAME( FlagCustomException ) = 1 << 10,
3832 PruneModelBranchesBasedOnAlgorithmResults SIP_MONKEYPATCH_COMPAT_NAME( FlagPruneModelBranchesBasedOnAlgorithmResults ) = 1 << 11,
3833 SkipGenericModelLogging SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGenericModelLogging ) = 1 << 12,
3834 NotAvailableInStandaloneTool SIP_MONKEYPATCH_COMPAT_NAME( FlagNotAvailableInStandaloneTool ) = 1 << 13,
3835 RequiresProject SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresProject ) = 1 << 14,
3836 SecurityRisk = 1 << 15,
3837 Deprecated SIP_MONKEYPATCH_COMPAT_NAME( FlagDeprecated ) = HideFromToolbox | HideFromModeler,
3838 };
3840
3849 Q_FLAG( ProcessingAlgorithmFlags )
3850
3851
3857 {
3858 RegeneratesPrimaryKey = 1 << 0,
3859 RegeneratesPrimaryKeyInSomeScenarios = 1 << 1,
3860 RespectsEllipsoid = 1 << 2,
3861 };
3862 Q_ENUM( ProcessingAlgorithmDocumentationFlag )
3863
3864
3871
3881 {
3882 NotAvailable,
3883 Available,
3884 };
3885 Q_ENUM( ProcessingPropertyAvailability )
3886
3887
3895 {
3896 DefaultLevel = 0,
3897 Verbose,
3898 ModelDebug,
3899 };
3900 Q_ENUM( ProcessingLogLevel )
3901
3902
3910 {
3911 Standard,
3912 Batch,
3913 Modeler,
3914 };
3915 Q_ENUM( ProcessingMode )
3916
3917
3923 {
3924 VectorAnalysis,
3925 VectorResearch,
3926 VectorGeoprocessing,
3927 VectorGeometry,
3928 VectorDataManagement,
3929 VectorGeneral,
3930 RasterProjections,
3931 RasterConversion,
3932 RasterExtraction,
3933 RasterAnalysis,
3934 RasterMiscellaneous,
3935 RasterGeneral,
3936 };
3937 Q_ENUM( ProcessingMenu )
3938
3939
3947 {
3948 OverrideDefaultGeometryCheck SIP_MONKEYPATCH_COMPAT_NAME( FlagOverrideDefaultGeometryCheck )
3949 = 1 << 0,
3950 CreateIndividualOutputPerInputFeature SIP_MONKEYPATCH_COMPAT_NAME( FlagCreateIndividualOutputPerInputFeature )
3951 = 1 << 1,
3952 };
3953 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
3954
3955
3964
3973 {
3974 SkipGeometryValidityChecks SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGeometryValidityChecks ) = 1 << 1,
3975 };
3976 Q_ENUM( ProcessingFeatureSourceFlag )
3977
3978
3987
3999 {
4000 ExposeToModeler = 1
4001 };
4002 Q_ENUM( ProcessingParameterTypeFlag )
4003
4004
4016
4025 {
4026 Advanced SIP_MONKEYPATCH_COMPAT_NAME( FlagAdvanced ) = 1 << 1,
4027 Hidden SIP_MONKEYPATCH_COMPAT_NAME( FlagHidden ) = 1 << 2,
4028 Optional SIP_MONKEYPATCH_COMPAT_NAME( FlagOptional ) = 1 << 3,
4029 IsModelOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagIsModelOutput ) = 1 << 4,
4030 };
4031 Q_ENUM( ProcessingParameterFlag )
4032
4033
4041 Q_FLAG( ProcessingParameterFlags )
4042
4055 Q_ENUM( ProcessingFileParameterBehavior )
4056
4057
4069 Q_ENUM( ProcessingNumberParameterType )
4070
4071
4079 {
4080 Any = -1,
4081 Numeric = 0,
4082 String = 1,
4083 DateTime = 2,
4084 Binary = 3,
4085 Boolean = 4,
4086 };
4087 Q_ENUM( ProcessingFieldParameterDataType )
4088
4089
4102 Q_ENUM( ProcessingDateTimeParameterDataType )
4103
4104
4110 {
4111 ModelParameter,
4112 ChildOutput,
4113 StaticValue,
4114 Expression,
4115 ExpressionText,
4116 ModelOutput,
4117 };
4118 Q_ENUM( ProcessingModelChildParameterSource )
4119
4120
4126 {
4127 NotExecuted,
4129 Failed,
4130 };
4131 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
4132
4133
4141 {
4142 Vertices,
4143 StructureLines,
4144 BreakLines
4145 };
4146 Q_ENUM( ProcessingTinInputLayerType )
4147
4148
4158 Q_ENUM( CrsDefinitionFormat )
4159
4160
4168 enum class FieldDomainSplitPolicy : int
4169 {
4170 DefaultValue,
4171 Duplicate,
4172 GeometryRatio,
4173 UnsetField,
4174 };
4175 Q_ENUM( FieldDomainSplitPolicy )
4176
4177
4185 enum class FieldDomainMergePolicy : int
4186 {
4187 DefaultValue,
4188 Sum,
4189 GeometryWeighted,
4190 UnsetField,
4191 LargestGeometry,
4192 MinimumValue,
4193 MaximumValue,
4194 SetToNull,
4195 };
4196 Q_ENUM( FieldDomainMergePolicy )
4197
4198
4205 enum class FieldDuplicatePolicy : int
4206 {
4207 DefaultValue,
4208 Duplicate,
4209 UnsetField,
4210 };
4211 Q_ENUM( FieldDuplicatePolicy )
4212
4213
4218 enum class FieldDomainType : int
4219 {
4220 Coded,
4221 Range,
4222 Glob,
4223 };
4224 Q_ENUM( FieldDomainType )
4225
4226
4231 enum class TransactionMode : int
4232 {
4233 Disabled = 0,
4234 AutomaticGroups = 1,
4235 BufferedGroups = 2,
4236 };
4237 Q_ENUM( TransactionMode )
4238
4239
4244 enum class AltitudeClamping : int
4245 {
4246 Absolute,
4247 Relative,
4248 Terrain,
4249 };
4250 Q_ENUM( AltitudeClamping )
4251
4252
4257 enum class AltitudeBinding : int
4258 {
4259 Vertex,
4260 Centroid,
4261 };
4262 Q_ENUM( AltitudeBinding )
4263
4264
4269 enum class RangeLimits : int
4270 {
4271 IncludeBoth = 0,
4272 IncludeLowerExcludeUpper,
4273 ExcludeLowerIncludeUpper,
4274 ExcludeBoth,
4275 };
4276 Q_ENUM( RangeLimits )
4277
4278
4283 enum class RasterElevationMode : int
4284 {
4285 FixedElevationRange = 0,
4286 RepresentsElevationSurface = 1,
4287 FixedRangePerBand = 2,
4288 DynamicRangePerBand = 3,
4289 };
4290 Q_ENUM( RasterElevationMode )
4291
4292
4297 enum class MeshElevationMode : int
4298 {
4299 FixedElevationRange = 0,
4300 FromVertices = 1,
4301 FixedRangePerGroup = 2,
4302 };
4303 Q_ENUM( MeshElevationMode )
4304
4305
4311 {
4312 NoConstraint,
4313 Perpendicular,
4314 Parallel
4315 };
4316 Q_ENUM( BetweenLineConstraint )
4317
4318
4323 enum class LineExtensionSide : int
4324 {
4325 BeforeVertex,
4326 AfterVertex,
4327 NoVertex,
4328 };
4329 Q_ENUM( LineExtensionSide )
4330
4331
4332
4336 enum class CadConstraintType : int
4337 {
4338 Generic,
4339 Angle,
4340 Distance,
4341 XCoordinate,
4342 YCoordinate,
4343 ZValue,
4344 MValue,
4345 };
4346 Q_ENUM( CadConstraintType )
4347
4348
4353 {
4354 Hidden,
4355 Cartesian,
4356 Ellipsoidal,
4357 };
4358 Q_ENUM( CadMeasurementDisplayType )
4359
4360
4365 enum class ProjectFlag : int SIP_ENUM_BASETYPE( IntFlag )
4366 {
4367 EvaluateDefaultValuesOnProviderSide = 1 << 0,
4368 TrustStoredLayerStatistics
4369 = 1 << 1,
4370 RememberLayerEditStatusBetweenSessions = 1 << 2,
4371 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
4372 };
4373 Q_ENUM( ProjectFlag )
4374 Q_DECLARE_FLAGS( ProjectFlags, ProjectFlag )
4375 Q_FLAG( ProjectFlags )
4376
4382 enum class PlotToolFlag : int SIP_ENUM_BASETYPE( IntFlag )
4383 {
4384 ShowContextMenu = 1 << 0,
4385 };
4386 Q_ENUM( PlotToolFlag )
4387 Q_DECLARE_FLAGS( PlotToolFlags, PlotToolFlag )
4388 Q_FLAG( PlotToolFlags )
4389
4397 enum class Map3DDebugFlag : int SIP_ENUM_BASETYPE( IntFlag )
4398 {
4399 ShowTerrainBoundingBoxes = 1 << 0,
4400 ShowTerrainTileInfo = 1 << 1,
4401 ShowCameraViewCenter = 1 << 2,
4402 ShowCameraRotationCenter = 1 << 3,
4403 ShowLightSourceOrigins = 1 << 4,
4404 ShowFPS = 1 << 5,
4405 ShowDebugPanel = 1 << 6,
4406 };
4407 Q_ENUM( Map3DDebugFlag )
4409 Q_FLAG( Map3DDebugFlags )
4410
4416 enum class Map3DProjectionType : int
4417 {
4418 Orthographic = 0,
4419 Perspective = 1,
4420 };
4421 Q_ENUM( Map3DProjectionType )
4422
4423
4430 enum class Point3DShape : int
4431 {
4432 Cylinder,
4433 Sphere,
4434 Cone,
4435 Cube,
4436 Torus,
4437 Plane,
4438 ExtrudedText,
4439 Model,
4440 Billboard,
4441 };
4442 Q_ENUM( Point3DShape )
4443
4444
4453 {
4454 Triangles,
4455 Lines,
4456 InstancedPoints,
4457 Points,
4458 TrianglesWithFixedTexture,
4459 TrianglesFromModel,
4460 TrianglesDataDefined,
4461 Billboards,
4462 };
4463 Q_ENUM( MaterialRenderingTechnique )
4464
4465
4470 enum class MaterialWidgetMode : int
4471 {
4472 Compact,
4473 Full,
4474 };
4475 Q_ENUM( MaterialWidgetMode )
4476
4477
4482 enum class InstancedMaterialFlag : int SIP_ENUM_BASETYPE( IntFlag )
4483 {
4484 DataDefinedScale = 1 << 0,
4485 DataDefinedRotation = 1 << 1,
4486 };
4487 Q_ENUM( InstancedMaterialFlag )
4489 Q_FLAG( InstancedMaterialFlags )
4490
4496 enum class BillboardScaleMode : int
4497 {
4498 ViewIndependent,
4499 Perspective
4500 };
4501 Q_ENUM( BillboardScaleMode )
4502
4503
4508 enum class TextureFilterQuality : int
4509 {
4510 Trilinear,
4511 Anisotropic2x,
4512 Anisotropic4x,
4513 Anisotropic8x,
4514 Anisotropic16x,
4515 };
4516 Q_ENUM( TextureFilterQuality )
4517
4518
4523 enum class ShadowQuality : int
4524 {
4525 Low,
4526 Medium,
4527 High,
4528 VeryHigh,
4529 Extreme,
4530 };
4531 Q_ENUM( ShadowQuality )
4532
4533
4538 enum class LightSourceType : int
4539 {
4540 Point,
4541 Directional,
4542 Sun,
4543 };
4544 Q_ENUM( LightSourceType )
4545
4546
4550 enum class Map3DBackgroundType : int
4551 {
4552 NoBackground,
4553 FixedGradientBackground,
4554 DistinctTextureSkybox,
4555 };
4556 Q_ENUM( Map3DBackgroundType )
4557
4558
4563 enum class SkyboxCubeMapping : int
4564 {
4565 NativeZUp,
4566 OpenGLYUp,
4567 GodotYUp,
4568 UnrealEngineZUp,
4569 LeftHandedYUpMirrored,
4570 };
4571 Q_ENUM( SkyboxCubeMapping )
4572
4573
4578 enum class NavigationMode : int
4579 {
4580 TerrainBased,
4581 Walk,
4582 GlobeTerrainBased
4583 };
4584 Q_ENUM( NavigationMode )
4585
4586
4591 enum class SceneMode : int
4592 {
4593 Local,
4594 Globe
4595 };
4596 Q_ENUM( SceneMode )
4597
4598
4603 enum class VerticalAxisInversion : int SIP_ENUM_BASETYPE( IntFlag )
4604 {
4605 WhenRotatingDragging = 1 << 0,
4606 WhenRotatingCaptured = 1 << 1,
4607 WhenPivoting = 1 << 2,
4608
4609 // Legacy aliases for old flying-only enum:
4610
4611 Never = WhenRotatingDragging | WhenRotatingCaptured | WhenPivoting,
4612 WhenDragging = WhenRotatingCaptured | WhenPivoting,
4613 Always = WhenPivoting,
4614 };
4615 Q_ENUM( VerticalAxisInversion )
4618
4625 enum class ToneMappingMethod : int
4626 {
4627 Clamp,
4628 Aces,
4629 };
4630 Q_ENUM( ToneMappingMethod )
4631
4632
4637 enum class Export3DSceneFormat : int
4638 {
4639 Obj,
4640 StlAscii
4641 };
4642 Q_ENUM( Export3DSceneFormat )
4643
4644
4650 {
4651 Line,
4652 FillBelow,
4653 FillAbove,
4654 };
4656
4662 enum class VectorProfileType : int
4663 {
4664 IndividualFeatures,
4665 ContinuousSurface,
4666 };
4668
4674 enum class PointCloudProfileType : int
4675 {
4676 IndividualPoints,
4677 TriangulatedSurface,
4678 };
4680
4686 enum class ProfileGeneratorFlag : int SIP_ENUM_BASETYPE( IntFlag )
4687 {
4688 RespectsMaximumErrorMapUnit = 1 << 0,
4689 RespectsDistanceRange = 1 << 1,
4690 RespectsElevationRange = 1 << 2,
4691 };
4692 Q_ENUM( ProfileGeneratorFlag )
4694 Q_FLAG( ProfileGeneratorFlags )
4695
4701 enum class ProfileExportType : int
4702 {
4703 Features3D,
4704 Profile2D,
4705 DistanceVsElevationTable,
4706 };
4708
4715 {
4716 Square,
4717 Circle,
4718 };
4719 Q_ENUM( PointCloudSymbol )
4720
4721
4727 {
4728 Default,
4729 BottomToTop,
4730 TopToBottom,
4731 };
4732 Q_ENUM( PointCloudDrawOrder )
4733
4734
4742 {
4743 AllowIntersections,
4744 AvoidIntersectionsCurrentLayer,
4745 AvoidIntersectionsLayers,
4746 };
4747 Q_ENUM( AvoidIntersectionsMode )
4748
4749
4757 {
4758 Qgz,
4759 Qgs,
4760 };
4761 Q_ENUM( ProjectFileFormat )
4762
4763
4771 {
4772 DontResolveLayers SIP_MONKEYPATCH_COMPAT_NAME( FlagDontResolveLayers )
4773 = 1 << 0,
4774 DontLoadLayouts SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoadLayouts )
4775 = 1 << 1,
4776 TrustLayerMetadata SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustLayerMetadata )
4777 = 1 << 2,
4778 DontStoreOriginalStyles SIP_MONKEYPATCH_COMPAT_NAME( FlagDontStoreOriginalStyles ) = 1 << 3,
4779 DontLoad3DViews SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoad3DViews ) = 1 << 4,
4780 DontLoadProjectStyles = 1 << 5,
4781 ForceReadOnlyLayers = 1 << 6,
4782 DontUpgradeAnnotations = 1 << 7,
4783 };
4784 Q_ENUM( ProjectReadFlag )
4785
4786
4794 Q_FLAG( ProjectReadFlags )
4795
4804 enum class ProjectCapability : int SIP_ENUM_BASETYPE( IntFlag )
4805 {
4806 ProjectStyles = 1 << 0,
4807 };
4808 Q_ENUM( ProjectCapability )
4809
4810
4816 Q_FLAG( ProjectCapabilities )
4817
4824 {
4825 Vector,
4826 Raster,
4827 RasterDem,
4828 GeoJson,
4829 Image,
4830 Video,
4831 Unknown,
4832 };
4833 Q_ENUM( MapBoxGlStyleSourceType )
4834
4835
4843 {
4844 FeatureServer SIP_MONKEYPATCH_COMPAT_NAME( FeatureService ),
4845 MapServer SIP_MONKEYPATCH_COMPAT_NAME( MapService ),
4846 ImageServer SIP_MONKEYPATCH_COMPAT_NAME( ImageService ),
4847 GlobeServer,
4848 GPServer,
4849 GeocodeServer,
4850 Unknown,
4851 SceneServer,
4852 };
4853 Q_ENUM( ArcGisRestServiceType )
4854
4855
4864 {
4865 Map = 1 << 0,
4866 Query = 1 << 1,
4867 Update = 1 << 2,
4868 Delete = 1 << 3,
4869 Create = 1 << 4,
4870 Image = 1 << 5,
4871 TilesOnly = 1 << 6,
4872 };
4873 Q_ENUM( ArcGisRestServiceCapability )
4874
4875
4882
4891 {
4892 Normal,
4893 Generated,
4894 };
4895 Q_ENUM( RelationshipType )
4896
4897
4905 {
4906 Association,
4907 Composition,
4908 };
4909 Q_ENUM( RelationshipStrength )
4910
4911
4917 {
4918 OneToOne,
4919 OneToMany,
4920 ManyToOne,
4921 ManyToMany,
4922 };
4923 Q_ENUM( RelationshipCardinality )
4924
4925
4930 enum class RelationshipCapability : int SIP_ENUM_BASETYPE( IntFlag )
4931 {
4932 MultipleFieldKeys = 1 << 0,
4933 ForwardPathLabel = 1 << 1,
4934 BackwardPathLabel = 1 << 2,
4935 };
4936 Q_ENUM( RelationshipCapability )
4937
4938
4944 Q_FLAG( RelationshipCapabilities )
4945
4951 enum class CoordinateDisplayType : int
4952 {
4953 MapCrs,
4954 MapGeographic,
4955 CustomCrs,
4956 };
4957 Q_ENUM( CoordinateDisplayType )
4958
4959
4964 enum class SettingsOrigin : int
4965 {
4966 Any,
4967 Global,
4968 Local,
4969 };
4970 Q_ENUM( SettingsOrigin )
4971
4972
4977 enum class ScriptLanguage : int
4978 {
4979 Css,
4980 QgisExpression,
4981 Html,
4982 JavaScript,
4983 Json,
4984 Python,
4985 R,
4986 Sql,
4987 Batch,
4988 Bash,
4989 Unknown,
4990 };
4991 Q_ENUM( ScriptLanguage )
4992
4993
5001 {
5002 Reformat = 1 << 0,
5003 CheckSyntax = 1 << 1,
5004 ToggleComment = 1 << 2,
5005 };
5006 Q_ENUM( ScriptLanguageCapability )
5007
5008
5015
5022 {
5023 AboveInsertionPoint,
5024 TopOfTree,
5025 OptimalInInsertionGroup,
5026 };
5027 Q_ENUM( LayerTreeInsertionMethod )
5028
5029
5035 {
5036 LayerProperties = 0,
5037 AttributeTable = 1,
5038 LayerStyling = 2,
5039 };
5040 Q_ENUM( LegendLayerDoubleClickAction )
5041
5042
5047 enum class LayerTreeFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
5048 {
5049 SkipVisibilityCheck = 1 << 0,
5050 };
5051 Q_ENUM( LayerTreeFilterFlag )
5052
5053
5059 Q_FLAG( LayerTreeFilterFlags )
5060
5066 enum class MapLayerLegendFlag : int SIP_ENUM_BASETYPE( IntFlag )
5067 {
5068 ExcludeByDefault = 1 << 0,
5069 };
5070 Q_ENUM( MapLayerLegendFlag )
5071
5072
5078 Q_FLAG( MapLayerLegendFlags )
5079
5088 {
5089 Undefined,
5090 Hidden,
5091 Title,
5092 Group,
5093 Subgroup,
5094 Symbol,
5095 SymbolLabel,
5096 };
5097 // !!! WARNING: If adding new values to this enum, make sure you update QgsLegendSettings constructor accordingly!!
5098 Q_ENUM( LegendComponent )
5099
5100
5105 enum class LegendSyncMode : int
5106 {
5107 AllProjectLayers,
5108 VisibleLayers,
5109 Manual,
5110 };
5111 Q_ENUM( LegendSyncMode )
5112
5113
5120 enum class LegendJsonRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
5121 {
5122 ShowRuleDetails = 1 << 0,
5123 };
5124 Q_ENUM( LegendJsonRenderFlag )
5126 Q_FLAG( LegendJsonRenderFlags )
5127
5133 enum class GeoJsonProfile : int
5134 {
5135 Legacy,
5136 Rfc7946,
5137 JsonFg,
5138 JsonFgPlus,
5139 };
5140 Q_ENUM( GeoJsonProfile )
5141
5142
5149 enum class ActionType : int
5150 {
5151 Invalid,
5152 MapLayerAction,
5153 AttributeAction
5154 };
5155 Q_ENUM( ActionType )
5156
5157
5164 enum class MapLayerActionTarget : int SIP_ENUM_BASETYPE( IntFlag )
5165 {
5166 Layer = 1 << 0,
5167 SingleFeature = 1 << 1,
5168 MultipleFeatures = 1 << 2,
5169 AllActions = Layer | SingleFeature | MultipleFeatures
5170 };
5171 Q_ENUM( MapLayerActionTarget )
5172
5173
5181 Q_FLAG( MapLayerActionTargets )
5182
5190 enum class MapLayerActionFlag : int SIP_ENUM_BASETYPE( IntFlag )
5191 {
5192 EnabledOnlyWhenEditable = 1 << 1,
5193 EnableOnlyWhenHasGeometry = 1 << 2,
5194 };
5195 Q_ENUM( MapLayerActionFlag )
5196
5197
5205 Q_FLAG( MapLayerActionFlags )
5206
5215 {
5216 Generic,
5217 GenericPython,
5218 Mac,
5219 Windows,
5220 Unix,
5221 OpenUrl,
5222 SubmitUrlEncoded,
5223 SubmitUrlMultipart,
5224 };
5225 Q_ENUM( AttributeActionType )
5226
5227
5233 {
5234 Created,
5235 Published,
5236 Revised,
5237 Superseded,
5238 };
5239 Q_ENUM( MetadataDateType )
5240
5241
5245 enum class AcademicReferenceType : int
5246 {
5247 Unknown,
5248 Book,
5249 JournalArticle,
5250 Presentation,
5251 WebPage,
5252 Preprint
5253 };
5254 Q_ENUM( AcademicReferenceType )
5255
5256
5265
5267 {
5268 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedColorInterpretation ) = 0,
5269 GrayIndex = 1,
5270 PaletteIndex = 2,
5271 RedBand = 3,
5272 GreenBand = 4,
5273 BlueBand = 5,
5274 AlphaBand = 6,
5275 HueBand = 7,
5276 SaturationBand = 8,
5277 LightnessBand = 9,
5278 CyanBand = 10,
5279 MagentaBand = 11,
5280 YellowBand = 12,
5281 BlackBand = 13,
5282 YCbCr_YBand = 14,
5283 YCbCr_CbBand = 15,
5284 YCbCr_CrBand = 16,
5285 ContinuousPalette = 17,
5286
5287 // Note: values between PanBand and SAR_P_Band match additions done in
5288 // GDAL 3.10, except that the numeric values of the constant don't match GDAL ones
5289
5290 PanBand = 18,
5291 CoastalBand = 19,
5292 RedEdgeBand = 20,
5293 NIRBand = 21,
5294 SWIRBand = 22,
5295 MWIRBand = 23,
5296 LWIRBand = 24,
5297 TIRBand = 25,
5298 OtherIRBand = 26,
5299 SAR_Ka_Band = 27,
5300 SAR_K_Band = 28,
5301 SAR_Ku_Band = 30,
5302 SAR_X_Band = 31,
5303 SAR_C_Band = 32,
5304 SAR_S_Band = 33,
5305 SAR_L_Band = 34,
5306 SAR_P_Band = 35,
5307 };
5308 Q_ENUM( RasterColorInterpretation )
5309
5310
5318 {
5319 GrayOrUndefined,
5320 Palette,
5321 MultiBand SIP_MONKEYPATCH_COMPAT_NAME( Multiband ),
5322 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( ColorLayer ),
5323 };
5324 Q_ENUM( RasterLayerType )
5325
5326
5334 {
5335 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedDrawingStyle ),
5336 SingleBandGray,
5337 SingleBandPseudoColor,
5338 PalettedColor,
5339 PalettedSingleBandGray,
5340 PalettedSingleBandPseudoColor,
5341 PalettedMultiBandColor,
5342 MultiBandSingleBandGray,
5343 MultiBandSingleBandPseudoColor,
5344 MultiBandColor,
5345 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( SingleBandColorDataStyle ),
5346 };
5347 Q_ENUM( RasterDrawingStyle )
5348
5349
5356 enum class RasterPyramidFormat SIP_MONKEYPATCH_SCOPEENUM_UNNEST( QgsRaster, RasterPyramidsFormat ) : int
5357 {
5358 GeoTiff SIP_MONKEYPATCH_COMPAT_NAME( PyramidsGTiff ) = 0,
5359 Internal SIP_MONKEYPATCH_COMPAT_NAME( PyramidsInternal ) = 1,
5360 Erdas SIP_MONKEYPATCH_COMPAT_NAME( PyramidsErdas ) = 2
5361 };
5362 Q_ENUM( RasterPyramidFormat )
5363
5364
5372 {
5373 No SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagNo ) = 0,
5374 Yes SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagYes ) = 1,
5375 CopyExisting SIP_MONKEYPATCH_COMPAT_NAME( PyramidsCopyExisting ) = 2
5376 };
5377 Q_ENUM( RasterBuildPyramidOption )
5378
5379
5387 {
5388 Undefined SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatUndefined ) = 0,
5389 Value SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatValue ) = 1,
5390 Text SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatText ) = 1 << 1,
5391 Html SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatHtml ) = 1 << 2,
5392 Feature SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatFeature ) = 1 << 3,
5393 };
5394 Q_ENUM( RasterIdentifyFormat )
5395
5396 // TODO QGIS 5 -- remove NoCapabilities and rely on RasterInterfaceCapabilities() instead
5397 // remove deprecated members
5398 // Remove "Identify" member, and replace with combinations of IdentifyValue/IdentifyText/etc
5399
5400
5408 {
5409 NoCapabilities = 0,
5410 Size = 1 << 1,
5411 Create = 1 << 2,
5412 Remove = 1 << 3,
5413 BuildPyramids = 1 << 4,
5414 Identify = 1 << 5,
5415 IdentifyValue = 1 << 6,
5416 IdentifyText = 1 << 7,
5417 IdentifyHtml = 1 << 8,
5418 IdentifyFeature = 1 << 9,
5419 Prefetch = 1 << 10,
5420 };
5421 Q_ENUM( RasterInterfaceCapability )
5422
5423
5430
5431 // TODO QGIS 5 -- remove NoProviderCapabilities and rely on RasterProviderCapabilities() instead
5432
5441 {
5442 NoProviderCapabilities = 0,
5443 ReadLayerMetadata = 1 << 1,
5444 WriteLayerMetadata = 1 << 2,
5445 ProviderHintBenefitsFromResampling = 1 << 3,
5446 ProviderHintCanPerformProviderResampling = 1 << 4,
5447 ReloadData = 1 << 5,
5448 DpiDependentData = 1 << 6,
5449 NativeRasterAttributeTable = 1 << 7,
5450 BuildPyramids = 1 << 8,
5451 };
5452 Q_ENUM( RasterProviderCapability )
5453
5454
5463
5470 {
5471 HighestElevation,
5472 NewerElevation,
5473 };
5474 Q_ENUM( ElevationMapCombineMethod )
5475
5476
5485 {
5486 Normal SIP_MONKEYPATCH_COMPAT_NAME( BlendNormal ),
5487 Lighten SIP_MONKEYPATCH_COMPAT_NAME( BlendLighten ),
5488 Screen SIP_MONKEYPATCH_COMPAT_NAME( BlendScreen ),
5489 Dodge SIP_MONKEYPATCH_COMPAT_NAME( BlendDodge ),
5490 Addition SIP_MONKEYPATCH_COMPAT_NAME( BlendAddition ),
5491 Darken SIP_MONKEYPATCH_COMPAT_NAME( BlendDarken ),
5492 Multiply SIP_MONKEYPATCH_COMPAT_NAME( BlendMultiply ),
5494 Overlay SIP_MONKEYPATCH_COMPAT_NAME( BlendOverlay ),
5495 SoftLight SIP_MONKEYPATCH_COMPAT_NAME( BlendSoftLight ),
5496 HardLight SIP_MONKEYPATCH_COMPAT_NAME( BlendHardLight ),
5497 Difference SIP_MONKEYPATCH_COMPAT_NAME( BlendDifference ),
5498 Subtract SIP_MONKEYPATCH_COMPAT_NAME( BlendSubtract ),
5499 Source SIP_MONKEYPATCH_COMPAT_NAME( BlendSource ),
5500 DestinationOver SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOver ),
5501 Clear SIP_MONKEYPATCH_COMPAT_NAME( BlendClear ),
5502 Destination SIP_MONKEYPATCH_COMPAT_NAME( BlendDestination ),
5503 SourceIn SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceIn ),
5504 DestinationIn SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationIn ),
5505 SourceOut SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceOut ),
5506 DestinationOut SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOut ),
5507 SourceAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceAtop ),
5508 DestinationAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationAtop ),
5510 };
5511 Q_ENUM( BlendMode )
5512
5513
5521 {
5522 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownSystem ) = 0,
5523 Metric SIP_MONKEYPATCH_COMPAT_NAME( MetricSystem ),
5524 Imperial SIP_MONKEYPATCH_COMPAT_NAME( ImperialSystem ),
5525 USCS SIP_MONKEYPATCH_COMPAT_NAME( USCSSystem ),
5526 };
5527 Q_ENUM( SystemOfMeasurement )
5528
5529
5536 {
5537 Layer SIP_MONKEYPATCH_COMPAT_NAME( LayerUnits ),
5538 Pixels,
5539 Project SIP_MONKEYPATCH_COMPAT_NAME( ProjectUnits )
5540 };
5541 Q_ENUM( MapToolUnit )
5542
5543
5551 {
5552 Distance SIP_MONKEYPATCH_COMPAT_NAME( TypeDistance ) = 0,
5554 Volume SIP_MONKEYPATCH_COMPAT_NAME( TypeVolume ),
5555 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TypeUnknown ),
5556 Temporal SIP_MONKEYPATCH_COMPAT_NAME( TypeTemporal ),
5557 };
5558 Q_ENUM( UnitType )
5559
5560
5568 {
5569 Meters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMeters ),
5570 Kilometers SIP_MONKEYPATCH_COMPAT_NAME( DistanceKilometers ),
5571 Feet SIP_MONKEYPATCH_COMPAT_NAME( DistanceFeet ),
5572 NauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( DistanceNauticalMiles ),
5573 Yards SIP_MONKEYPATCH_COMPAT_NAME( DistanceYards ),
5574 Miles SIP_MONKEYPATCH_COMPAT_NAME( DistanceMiles ),
5575 Degrees SIP_MONKEYPATCH_COMPAT_NAME( DistanceDegrees ),
5576 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceCentimeters ),
5577 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMillimeters ),
5578 Inches,
5579 ChainsInternational,
5580 ChainsBritishBenoit1895A,
5581 ChainsBritishBenoit1895B,
5582 ChainsBritishSears1922Truncated,
5583 ChainsBritishSears1922,
5584 ChainsClarkes,
5585 ChainsUSSurvey,
5586 FeetBritish1865,
5587 FeetBritish1936,
5588 FeetBritishBenoit1895A,
5589 FeetBritishBenoit1895B,
5590 FeetBritishSears1922Truncated,
5591 FeetBritishSears1922,
5592 FeetClarkes,
5593 FeetGoldCoast,
5594 FeetIndian,
5595 FeetIndian1937,
5596 FeetIndian1962,
5597 FeetIndian1975,
5598 FeetUSSurvey,
5599 LinksInternational,
5600 LinksBritishBenoit1895A,
5601 LinksBritishBenoit1895B,
5602 LinksBritishSears1922Truncated,
5603 LinksBritishSears1922,
5604 LinksClarkes,
5605 LinksUSSurvey,
5606 YardsBritishBenoit1895A,
5607 YardsBritishBenoit1895B,
5608 YardsBritishSears1922Truncated,
5609 YardsBritishSears1922,
5610 YardsClarkes,
5611 YardsIndian,
5612 YardsIndian1937,
5613 YardsIndian1962,
5614 YardsIndian1975,
5615 MilesUSSurvey,
5616 Fathoms,
5617 MetersGermanLegal,
5618 Unknown SIP_MONKEYPATCH_COMPAT_NAME( DistanceUnknownUnit ),
5619 };
5620 Q_ENUM( DistanceUnit )
5621
5622
5630 {
5631 Standard,
5632 Geographic,
5633 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownType ),
5634 };
5635 Q_ENUM( DistanceUnitType )
5636
5637
5645 {
5646 SquareMeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMeters ),
5647 SquareKilometers SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareKilometers ),
5648 SquareFeet SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareFeet ),
5649 SquareYards SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareYards ),
5650 SquareMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMiles ),
5651 Hectares SIP_MONKEYPATCH_COMPAT_NAME( AreaHectares ),
5652 Acres SIP_MONKEYPATCH_COMPAT_NAME( AreaAcres ),
5653 SquareNauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareNauticalMiles ),
5654 SquareDegrees SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareDegrees ),
5655 SquareCentimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareCentimeters ),
5656 SquareMillimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMillimeters ),
5657 SquareInches,
5658 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AreaUnknownUnit ),
5659 };
5660 Q_ENUM( AreaUnit )
5661
5662
5670 {
5671 CubicMeters SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicMeters ),
5672 CubicFeet SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicFeet ),
5673 CubicYards SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicYards ),
5674 Barrel SIP_MONKEYPATCH_COMPAT_NAME( VolumeBarrel ),
5675 CubicDecimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDecimeter ),
5676 Liters SIP_MONKEYPATCH_COMPAT_NAME( VolumeLiters ),
5677 GallonUS SIP_MONKEYPATCH_COMPAT_NAME( VolumeGallonUS ),
5678 CubicInch SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicInch ),
5679 CubicCentimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicCentimeter ),
5680 CubicDegrees SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDegrees ),
5681 Unknown SIP_MONKEYPATCH_COMPAT_NAME( VolumeUnknownUnit ),
5682 };
5683 Q_ENUM( VolumeUnit )
5684
5685
5693 {
5694 Degrees SIP_MONKEYPATCH_COMPAT_NAME( AngleDegrees ),
5695 Radians SIP_MONKEYPATCH_COMPAT_NAME( AngleRadians ),
5697 MinutesOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleMinutesOfArc ),
5698 SecondsOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleSecondsOfArc ),
5700 MilliradiansSI SIP_MONKEYPATCH_COMPAT_NAME( AngleMilliradiansSI ),
5701 MilNATO SIP_MONKEYPATCH_COMPAT_NAME( AngleMilNATO ),
5702 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AngleUnknownUnit ),
5703 };
5704 Q_ENUM( AngleUnit )
5705
5706
5716 {
5717 MetersPerSecond = 0,
5718 KilometersPerHour,
5719 Knots,
5720 MilesPerHour,
5721 FeetPerSecond,
5722 OtherUnit
5723 };
5724 Q_ENUM( WindSpeedUnit )
5725
5726
5734 {
5735 Milliseconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalMilliseconds ),
5736 Seconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalSeconds ),
5737 Minutes SIP_MONKEYPATCH_COMPAT_NAME( TemporalMinutes ),
5738 Hours SIP_MONKEYPATCH_COMPAT_NAME( TemporalHours ),
5739 Days SIP_MONKEYPATCH_COMPAT_NAME( TemporalDays ),
5740 Weeks SIP_MONKEYPATCH_COMPAT_NAME( TemporalWeeks ),
5741 Months SIP_MONKEYPATCH_COMPAT_NAME( TemporalMonths ),
5742 Years SIP_MONKEYPATCH_COMPAT_NAME( TemporalYears ),
5743 Decades SIP_MONKEYPATCH_COMPAT_NAME( TemporalDecades ),
5744 Centuries SIP_MONKEYPATCH_COMPAT_NAME( TemporalCenturies ),
5745 IrregularStep SIP_MONKEYPATCH_COMPAT_NAME( TemporalIrregularStep ),
5746 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TemporalUnknownUnit )
5747 };
5748 Q_ENUM( TemporalUnit )
5749
5750
5758 {
5759 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( RenderMillimeters ),
5760 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMapUnits ),
5761 Pixels SIP_MONKEYPATCH_COMPAT_NAME( RenderPixels ),
5762 Percentage SIP_MONKEYPATCH_COMPAT_NAME( RenderPercentage ),
5763 Points SIP_MONKEYPATCH_COMPAT_NAME( RenderPoints ),
5764 Inches SIP_MONKEYPATCH_COMPAT_NAME( RenderInches ),
5765 Unknown SIP_MONKEYPATCH_COMPAT_NAME( RenderUnknownUnit ),
5766 MetersInMapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMetersInMapUnits ),
5767 };
5768 Q_ENUM( RenderUnit )
5769
5770
5778 {
5779 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMillimeters ),
5780 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutCentimeters ),
5781 Meters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMeters ),
5782 Inches SIP_MONKEYPATCH_COMPAT_NAME( LayoutInches ),
5783 Feet SIP_MONKEYPATCH_COMPAT_NAME( LayoutFeet ),
5784 Points SIP_MONKEYPATCH_COMPAT_NAME( LayoutPoints ),
5785 Picas SIP_MONKEYPATCH_COMPAT_NAME( LayoutPicas ),
5786 Pixels SIP_MONKEYPATCH_COMPAT_NAME( LayoutPixels )
5787 };
5788 Q_ENUM( LayoutUnit )
5789
5790
5798 {
5799 PaperUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutPaperUnits ),
5800 ScreenUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutScreenUnits )
5801 };
5802 Q_ENUM( LayoutUnitType )
5803
5804
5812 {
5813 Debug SIP_MONKEYPATCH_COMPAT_NAME( FlagDebug ) = 1 << 1,
5814 OutlineOnly SIP_MONKEYPATCH_COMPAT_NAME( FlagOutlineOnly ) = 1 << 2,
5815 Antialiasing SIP_MONKEYPATCH_COMPAT_NAME( FlagAntialiasing ) = 1 << 3,
5816 UseAdvancedEffects SIP_MONKEYPATCH_COMPAT_NAME( FlagUseAdvancedEffects ) = 1 << 4,
5817 ForceVectorOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagForceVectorOutput )
5818 = 1 << 5,
5819 HideCoverageLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagHideCoverageLayer ) = 1 << 6,
5820 DrawSelection SIP_MONKEYPATCH_COMPAT_NAME( FlagDrawSelection ) = 1 << 7,
5821 DisableTiledRasterLayerRenders SIP_MONKEYPATCH_COMPAT_NAME( FlagDisableTiledRasterLayerRenders )
5822 = 1 << 8,
5823 RenderLabelsByMapLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagRenderLabelsByMapLayer )
5824 = 1 << 9,
5825 LosslessImageRendering SIP_MONKEYPATCH_COMPAT_NAME( FlagLosslessImageRendering )
5826 = 1 << 10,
5827 SynchronousLegendGraphics SIP_MONKEYPATCH_COMPAT_NAME( FlagSynchronousLegendGraphics ) = 1 << 11,
5828 AlwaysUseGlobalMasks SIP_MONKEYPATCH_COMPAT_NAME( FlagAlwaysUseGlobalMasks )
5829 = 1 << 12,
5830 LimitCoverageLayerRenderToCurrentFeature = 1 << 13,
5831 };
5832 Q_ENUM( LayoutRenderFlag )
5833
5834
5842 Q_FLAG( LayoutRenderFlags )
5843
5852 {
5853 SVG SIP_MONKEYPATCH_COMPAT_NAME( FormatSVG ) = 0,
5854 Raster SIP_MONKEYPATCH_COMPAT_NAME( FormatRaster ),
5855 Unknown SIP_MONKEYPATCH_COMPAT_NAME( FormatUnknown ),
5856 };
5857 Q_ENUM( PictureFormat )
5858
5859
5864 enum class ScaleCalculationMethod : int
5865 {
5866 HorizontalTop = 0,
5867 HorizontalMiddle,
5868 HorizontalBottom,
5869 HorizontalAverage,
5870 AtEquator,
5871 };
5872 Q_ENUM( ScaleCalculationMethod )
5873
5874
5887 Q_ENUM( ScaleBarAlignment )
5888
5889
5897 {
5898 Fixed SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFixed ) = 0,
5899 FitWidth SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFitWidth ) = 1
5900 };
5901 Q_ENUM( ScaleBarSegmentSizeMode )
5902
5903
5911 {
5912 AboveSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelAboveSegment ) = 0,
5913 BelowSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelBelowSegment ),
5914 };
5915 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
5916
5917
5925 {
5926 CenteredEdge SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredEdge ) = 0,
5927 CenteredSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredSegment ),
5928 };
5929 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
5930
5931
5939 {
5940 BeforeBar = 1 << 1,
5941 AfterBar = 1 << 2,
5942 LeftAbove = 1 << 3,
5943 CenteredAbove = 1 << 4,
5944 RightAbove = 1 << 5,
5945 LeftBelow = 1 << 6,
5946 CenteredBelow = 1 << 7,
5947 RightBelow = 1 << 8,
5948 BeforeFirstDistanceLabel = 1 << 9,
5949 AfterLastDistanceLabel = 1 << 10,
5950 OnBarAfterFirstDivision = 1 << 11,
5951 BeforeEveryDistanceLabel = 1 << 12,
5952 AfterEveryDistanceLabel = 1 << 13,
5953 };
5954 Q_ENUM( ScaleBarUnitLabelPlacement )
5955
5956
5965
5974 {
5975 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( MapUnit ),
5978 DynamicPageSizeBased,
5979 };
5980 Q_ENUM( MapGridUnit )
5981
5982
5990 {
5991 Lines SIP_MONKEYPATCH_COMPAT_NAME( Solid ) = 0,
5992 LineCrosses SIP_MONKEYPATCH_COMPAT_NAME( Cross ),
5993 Markers,
5994 FrameAndAnnotationsOnly SIP_MONKEYPATCH_COMPAT_NAME( FrameAnnotationsOnly )
5995 };
5996 Q_ENUM( MapGridStyle )
5997
5998
6006 {
6007 ShowAll = 0,
6008 LatitudeOnly,
6009 LongitudeOnly,
6010 HideAll
6011 };
6012 Q_ENUM( MapGridComponentVisibility )
6013
6014
6022 {
6023 InsideMapFrame = 0,
6024 OutsideMapFrame,
6025 };
6026 Q_ENUM( MapGridAnnotationPosition )
6027
6028
6036 {
6037 Horizontal = 0,
6038 Vertical,
6039 VerticalDescending,
6040 BoundaryDirection,
6041 AboveTick,
6042 OnTick,
6043 UnderTick,
6044 };
6045 Q_ENUM( MapGridAnnotationDirection )
6046
6047
6055 {
6056 Decimal = 0,
6057 DegreeMinute,
6058 DegreeMinuteSecond,
6059 DecimalWithSuffix,
6060 DegreeMinuteNoSuffix,
6061 DegreeMinutePadded,
6062 DegreeMinuteSecondNoSuffix,
6063 DegreeMinuteSecondPadded,
6064 CustomFormat
6065 };
6066 Q_ENUM( MapGridAnnotationFormat )
6067
6068
6082 Q_ENUM( MapGridBorderSide )
6083
6084
6092 {
6093 NoFrame = 0,
6094 Zebra,
6095 InteriorTicks,
6096 ExteriorTicks,
6097 InteriorExteriorTicks,
6098 LineBorder,
6099 LineBorderNautical,
6100 ZebraNautical,
6101 };
6102 Q_ENUM( MapGridFrameStyle )
6103
6104
6112 {
6113 OrthogonalTicks = 0,
6114 NormalizedTicks,
6115 };
6116 Q_ENUM( MapGridTickLengthMode )
6117
6118
6119
6127 {
6128 Left SIP_MONKEYPATCH_COMPAT_NAME( FrameLeft ) = 0x01,
6129 Right SIP_MONKEYPATCH_COMPAT_NAME( FrameRight ) = 0x02,
6130 Top SIP_MONKEYPATCH_COMPAT_NAME( FrameTop ) = 0x04,
6131 Bottom SIP_MONKEYPATCH_COMPAT_NAME( FrameBottom ) = 0x08
6132 };
6133 Q_ENUM( MapGridFrameSideFlag )
6134
6135
6143 Q_FLAG( MapGridFrameSideFlags )
6144
6153 {
6154 Longitude = 0,
6155 Latitude
6156 };
6157 Q_ENUM( MapGridAnnotationType )
6158
6159
6165 {
6166 ManualRange = 0,
6167 FixedScale
6168 };
6169 Q_ENUM( ElevationProfileRangeMethod )
6170
6171
6176 enum class InputControllerType : int
6177 {
6178 Map2D,
6179 Map3D
6180 };
6182
6189 {
6190 NotSet,
6191 Unknown,
6192 OrdinaryTable,
6193 Index,
6194 Sequence,
6195 View,
6196 MaterializedView,
6197 CompositeType,
6198 ToastTable,
6199 ForeignTable,
6200 PartitionedTable,
6201 };
6202 Q_ENUM( PostgresRelKind )
6203
6204
6210 {
6211 SetFieldComment = 1 << 0,
6212 SetFieldAlias = 1 << 1,
6213 SetTableComment = 1 << 2,
6214 EditFieldDomain = 1 << 3,
6215 DeleteFieldDomain = 1 << 4,
6216 };
6217 Q_ENUM( DatabaseProviderConnectionCapability2 )
6220
6227 {
6228 SetGeometryColumnName = 1 << 0,
6229 SetPrimaryKeyName = 1 << 1,
6230 };
6231 Q_ENUM( DatabaseProviderTableImportCapability )
6234
6241 {
6242 SaveToDatabase = 1 << 1,
6243 LoadFromDatabase = 1 << 2,
6244 DeleteFromDatabase = 1 << 3
6245 };
6249
6250
6256 {
6257 LastProfile,
6258 DefaultProfile,
6259 AskUser,
6260 };
6261 Q_ENUM( UserProfileSelectionPolicy )
6262
6263
6271 {
6272 Container SIP_MONKEYPATCH_COMPAT_NAME( AeTypeContainer ),
6273 Field SIP_MONKEYPATCH_COMPAT_NAME( AeTypeField ),
6274 Relation SIP_MONKEYPATCH_COMPAT_NAME( AeTypeRelation ),
6275 QmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeQmlElement ),
6276 HtmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeHtmlElement ),
6277 Action SIP_MONKEYPATCH_COMPAT_NAME( AeTypeAction ),
6278 TextElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeTextElement ),
6279 SpacerElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeSpacerElement ),
6280 Invalid SIP_MONKEYPATCH_COMPAT_NAME( AeTypeInvalid ),
6281 };
6282 Q_ENUM( AttributeEditorType )
6283
6284
6290 {
6291 GroupBox,
6292 Tab,
6293 Row,
6294 };
6295 Q_ENUM( AttributeEditorContainerType )
6296
6297
6305 {
6306 AutoGenerated SIP_MONKEYPATCH_COMPAT_NAME( GeneratedLayout ) = 0,
6307 DragAndDrop SIP_MONKEYPATCH_COMPAT_NAME( TabLayout ) = 1,
6308 UiFile SIP_MONKEYPATCH_COMPAT_NAME( UiFileLayout ) = 2
6309 };
6310 Q_ENUM( AttributeFormLayout )
6311
6312
6320 {
6321 Default SIP_MONKEYPATCH_COMPAT_NAME( SuppressDefault ) = 0,
6322 On SIP_MONKEYPATCH_COMPAT_NAME( SuppressOn ) = 1,
6323 Off SIP_MONKEYPATCH_COMPAT_NAME( SuppressOff ) = 2
6324 };
6325 Q_ENUM( AttributeFormSuppression )
6326
6327
6335 {
6336 NoSource SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceNone ) = 0,
6337 File SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceFile ) = 1,
6338 Dialog SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceDialog ) = 2,
6339 Environment SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceEnvironment ) = 3
6340 };
6341 Q_ENUM( AttributeFormPythonInitCodeSource )
6342
6343
6349 {
6350 NotAllowed = 0,
6351 AllowedDefaultOn = 1,
6352 AllowedDefaultOff = 2,
6353 };
6354 Q_ENUM( AttributeFormReuseLastValuePolicy )
6355
6356
6362 {
6364 PointCloud,
6365 RasterCalculator,
6366 };
6367 Q_ENUM( ExpressionType )
6368
6369
6377 {
6378 NoSymbology = 0,
6379 PerFeature SIP_MONKEYPATCH_COMPAT_NAME( FeatureSymbology ),
6380 PerSymbolLayer SIP_MONKEYPATCH_COMPAT_NAME( SymbolLayerSymbology )
6381 };
6382 Q_ENUM( FeatureSymbologyExport )
6383
6384
6389 enum class VectorTileProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
6390 {
6391 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
6392 };
6393 Q_ENUM( VectorTileProviderFlag )
6394
6395
6401 Q_FLAG( VectorTileProviderFlags )
6402
6408 {
6409 ReadLayerMetadata = 1 << 1,
6410 };
6411 Q_ENUM( VectorTileProviderCapability )
6412
6413
6420
6427 {
6428 Available,
6429 NotAvailable,
6430 AvailableNoChildren,
6431 UseLowerZoomLevelTile,
6432 };
6433 Q_ENUM( TileAvailability )
6434
6435
6441 {
6442 ReadLayerMetadata = 1 << 1,
6443 };
6444 Q_ENUM( TiledSceneProviderCapability )
6445
6446
6453
6460 {
6461 Region,
6462 OrientedBox,
6463 Sphere,
6464 };
6465 Q_ENUM( TiledSceneBoundingVolumeType )
6466
6467
6476 {
6477 Replacement,
6478 Additive,
6479 };
6480 Q_ENUM( TileRefinementProcess )
6481
6482
6488 {
6489 NoChildren,
6490 Available,
6491 NeedFetching,
6492 };
6493 Q_ENUM( TileChildrenAvailability )
6494
6495
6500 enum class TiledSceneRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
6501 {
6502 NoHierarchyFetch = 1 << 0,
6503 };
6504 Q_ENUM( TiledSceneRequestFlag )
6505
6506
6512 Q_FLAG( TiledSceneRequestFlags )
6513
6519 enum class TiledSceneRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
6520 {
6521 RequiresTextures = 1 << 0,
6522 ForceRasterRender = 1 << 1,
6523 RendersTriangles = 1 << 2,
6524 RendersLines = 1 << 3,
6525 };
6526 Q_ENUM( TiledSceneRendererFlag )
6527
6528
6534 Q_FLAG( TiledSceneRendererFlags )
6535
6541 enum class GdalResampleAlgorithm : int
6542 {
6543 RA_NearestNeighbour = 0,
6544 RA_Bilinear = 1,
6545 RA_Cubic = 2,
6546 RA_CubicSpline = 3,
6547 RA_Lanczos = 4,
6548 RA_Average = 5,
6549 RA_Mode = 6,
6550 RA_Max = 8,
6551 RA_Min = 9,
6552 RA_Median = 10,
6553 RA_Q1 = 11,
6554 RA_Q3 = 12,
6555 };
6556 Q_ENUM( GdalResampleAlgorithm )
6557
6558
6563 enum class VsiHandlerType : int
6564 {
6565 Invalid,
6566 Archive,
6567 Network,
6568 Cloud,
6569 Memory,
6570 Other,
6571 };
6572 Q_ENUM( VsiHandlerType )
6573
6574 // TODO QGIS 5: make All include all values (we can't do this before 4.0, as we need to keep
6575 // compatibility with code which expects all these statistics to give numeric results)
6576
6577
6582 enum class ZonalStatistic : int SIP_ENUM_BASETYPE( IntFlag )
6583 {
6584 Count = 1 << 0,
6585 Sum = 1 << 1,
6586 Mean = 1 << 2,
6587 Median = 1 << 3,
6588 StDev = 1 << 4,
6589 Min = 1 << 5,
6590 Max = 1 << 6,
6591 Range = 1 << 7,
6592 Minority = 1 << 8,
6593 Majority = 1 << 9,
6594 Variety = 1 << 10,
6595 Variance = 1 << 11,
6596 MinimumPoint = 1 << 12,
6597 MaximumPoint = 1 << 13,
6598 // clang-format off
6599 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6600 // clang-format on
6601 AllNumeric = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6602 Default = Count | Sum | Mean,
6603 };
6604 Q_ENUM( ZonalStatistic )
6605
6606
6612 Q_FLAG( ZonalStatistics )
6613
6619 enum class ZonalStatisticResult : int
6620 {
6622 LayerTypeWrong = 1,
6623 LayerInvalid,
6624 RasterInvalid,
6625 RasterBandInvalid,
6626 FailedToCreateField = 8,
6627 Canceled = 9
6628 };
6629 Q_ENUM( ZonalStatisticResult )
6630
6631
6638 {
6639 Count,
6640 CountDistinct,
6641 CountMissing,
6642 Min,
6643 Max,
6644 Sum,
6645 Mean,
6646 Median,
6647 StDev,
6648 StDevSample,
6649 Range,
6650 Minority,
6651 Majority,
6652 FirstQuartile,
6653 ThirdQuartile,
6654 InterQuartileRange,
6655 StringMinimumLength,
6656 StringMaximumLength,
6657 StringConcatenate,
6658 GeometryCollect,
6659 ArrayAggregate,
6660 StringConcatenateUnique
6661 };
6662 Q_ENUM( Aggregate )
6663
6664
6670 {
6671 Count = 1 << 0,
6672 CountMissing = 1 << 15,
6673 Sum = 1 << 1,
6674 Mean = 1 << 2,
6675 Median = 1 << 3,
6676 StDev = 1 << 4,
6677 StDevSample = 1 << 5,
6678 Min = 1 << 6,
6679 Max = 1 << 7,
6680 Range = 1 << 8,
6681 Minority = 1 << 9,
6682 Majority = 1 << 10,
6683 Variety = 1 << 11,
6684 FirstQuartile = 1 << 12,
6685 ThirdQuartile = 1 << 13,
6686 InterQuartileRange = 1 << 14,
6687 First = 1 << 16,
6688 Last = 1 << 17,
6689 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
6690 };
6691 Q_ENUM( Statistic )
6692
6693
6699 Q_FLAG( Statistics )
6700
6707 {
6708 Count = 1,
6709 CountDistinct = 2,
6710 CountMissing = 4,
6711 Min = 8,
6712 Max = 16,
6713 Range = 32,
6714 All = Count | CountDistinct | CountMissing | Min | Max | Range,
6715 };
6716 Q_ENUM( DateTimeStatistic )
6717
6718
6724 Q_FLAG( DateTimeStatistics )
6725
6732 {
6733 Count = 1,
6734 CountDistinct = 2,
6735 CountMissing = 4,
6736 Min = 8,
6737 Max = 16,
6738 MinimumLength = 32,
6739 MaximumLength = 64,
6740 MeanLength = 128,
6741 Minority = 256,
6742 Majority = 512,
6743 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
6744 };
6745 Q_ENUM( StringStatistic )
6746
6747
6753 Q_FLAG( StringStatistics )
6754
6761 {
6762 NoStatistic = 0,
6763 Min = 1,
6764 Max = 1 << 1,
6765 Range = 1 << 2,
6766 Sum = 1 << 3,
6767 Mean = 1 << 4,
6768 StdDev = 1 << 5,
6769 SumOfSquares = 1 << 6,
6770 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
6771 };
6772 Q_ENUM( RasterBandStatistic )
6773
6774
6780 Q_FLAG( RasterBandStatistics )
6781
6788 {
6789 Points,
6790 StructureLines,
6791 BreakLines,
6792 };
6793 Q_ENUM( InterpolationSourceType )
6794
6795
6801 {
6802 Attribute,
6803 Z,
6804 M,
6805 };
6806 Q_ENUM( InterpolationValueSource )
6807
6808
6813 enum class SensorThingsVersion : int
6814 {
6815 Version1_1,
6816 Version2_0,
6817 };
6819
6825 enum class SensorThingsExtension : int SIP_ENUM_BASETYPE( IntFlag )
6826 {
6827 MultiDatastream = 1 << 0,
6828 SensingExtensionObservationsMeasurements = 1 << 1,
6829 SensingExtensionSampling = 1 << 2,
6830 SensingExtensionRelations = 1 << 3,
6831 };
6833
6840 Q_FLAG( SensorThingsExtensions )
6841
6842
6847 enum class SensorThingsEntity : int
6848 {
6849 Invalid,
6850 Thing,
6851 Location,
6852 HistoricalLocation,
6853 Datastream,
6854 Sensor,
6855 ObservedProperty,
6856 Observation,
6857 FeatureOfInterest,
6858 MultiDatastream,
6859 // version 2.0
6860 Feature,
6861 FeatureType,
6862 Deployment,
6863 ObservingProcedure,
6864 Sampling,
6865 SamplingProcedure,
6866 Sampler,
6867 PreparationStep,
6868 PreparationProcedure,
6869 ThingRelation,
6870 RelationRole,
6871 FeatureRelation,
6872 DatastreamRelation,
6873 ObservationRelation,
6874 };
6875 Q_ENUM( SensorThingsEntity )
6876
6877
6882 enum class ColorModel : int
6883 {
6884 Rgb,
6885 Cmyk,
6886 };
6887 Q_ENUM( ColorModel )
6888
6889
6894 enum class DocumentationApi : int
6895 {
6896 PyQgis,
6897 PyQgisSearch,
6898 CppQgis,
6899 Qt,
6900 };
6901 Q_ENUM( DocumentationApi )
6902
6903
6908 enum class DocumentationBrowser : int
6909 {
6910 DeveloperToolsPanel,
6911 SystemWebBrowser,
6912 };
6913 Q_ENUM( DocumentationBrowser )
6914
6915
6920 enum class MouseHandlesAction : int
6921 {
6922 MoveItem,
6923 ResizeUp,
6924 ResizeDown,
6925 ResizeLeft,
6926 ResizeRight,
6927 ResizeLeftUp,
6928 ResizeRightUp,
6929 ResizeLeftDown,
6930 ResizeRightDown,
6931 RotateTopLeft,
6932 RotateTopRight,
6933 RotateBottomLeft,
6934 RotateBottomRight,
6935 SelectItem,
6936 NoAction
6937 };
6938 Q_ENUM( MouseHandlesAction )
6939
6940
6944 enum class MeshRangeLimit : int
6945 {
6946 NotSet,
6947 MinimumMaximum,
6948 };
6949 Q_ENUM( MeshRangeLimit )
6950
6951
6956 enum class MeshRangeExtent : int
6957 {
6958 WholeMesh,
6959 FixedCanvas,
6960 UpdatedCanvas,
6961 };
6962 Q_ENUM( MeshRangeExtent )
6963
6964
6970 enum class PointCloudAccessType : int
6971 {
6972 Local,
6973 Remote
6974 };
6975 Q_ENUM( PointCloudAccessType )
6976
6977
6982 {
6983 RenderExtents,
6984 RenderOverview,
6985 RenderOverviewAndExtents
6986 };
6987 Q_ENUM( PointCloudZoomOutRenderBehavior )
6988
6989
6994 {
6995 Standard = 0,
6996 Adaptive,
6997 AreaError,
6998 ConstantDensity
6999 };
7000 Q_ENUM( SegmentCalculationMethod )
7001
7002
7006 enum class StacObjectType : int
7007 {
7008 Unknown,
7009 Catalog,
7010 Collection,
7011 Item,
7012 };
7013 Q_ENUM( StacObjectType )
7014
7015
7020 {
7021 WmsScale = 1 << 0,
7022 WmsDpi = 1 << 1,
7023 };
7024 Q_ENUM( RasterProcessingParameterCapability )
7025
7026
7032
7038 {
7039 Status = Qt::UserRole + 1,
7040 Id,
7041 ElapsedTime,
7042 MaximumTime,
7043 Sort,
7044 };
7045 Q_ENUM( DevToolsNodeRole )
7046
7047
7052 enum class ExtrusionFace : int SIP_ENUM_BASETYPE( IntFlag )
7053 {
7054 NoFace = 0,
7055 Walls = 1 << 0,
7056 Roof = 1 << 1,
7057 Floor = 1 << 2
7058 };
7059 Q_ENUM( ExtrusionFace )
7060
7061
7065 Q_DECLARE_FLAGS( ExtrusionFaces, ExtrusionFace )
7066 Q_FLAG( ExtrusionFaces )
7067
7072 enum class TriangulationAlgorithm : int SIP_ENUM_BASETYPE( IntFlag )
7073 {
7074 ConstrainedDelaunay = 0,
7075 Earcut = 1 << 0
7076 };
7077 Q_ENUM( TriangulationAlgorithm )
7078
7079
7090 enum class WmsGroupRequestMode : int
7091 {
7092 Normal,
7093 Opaque,
7094 };
7095 Q_ENUM( WmsGroupRequestMode )
7096
7097
7103 {
7104 RestorePreviousState,
7105 ForceDocked,
7106 ForceDialog,
7107 };
7108 Q_ENUM( DockableWidgetInitialState )
7109
7110
7116 {
7117 LongestBorder = 0,
7118 MaximumArea = 1,
7119 MinimumArea = 2,
7120 MinimumIndex = 3,
7121 };
7122 Q_ENUM( CoverageCleanOverlapMergeStrategy )
7123
7124
7129 enum class PdfRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
7130 {
7131 RenderTextAsText = 1 << 0,
7132 };
7133 Q_ENUM( PdfRenderFlag )
7134
7135
7140 Q_DECLARE_FLAGS( PdfRenderFlags, PdfRenderFlag )
7141 Q_FLAG( PdfRenderFlags )
7142
7143
7152 {
7153 AllValues = 0,
7154 MinValue = 1,
7155 MaxValue = 2,
7156 ReferenceValue = 3,
7157 };
7158 Q_ENUM( WmsDimensionDefaultDisplay )
7159
7160
7165 enum class RubberBandIconType : int
7166 {
7167 NoIcon,
7168 CrossPlus,
7169 CrossX,
7170 Box,
7171 Circle,
7172 BoxFilled,
7173 Diamond,
7174 DiamondFilled,
7175 SVG
7176 };
7177 Q_ENUM( RubberBandIconType )
7178
7179
7184 enum class RubberBandComponent : int SIP_ENUM_BASETYPE( IntFlag )
7185 {
7186 Symbol = 1 << 0,
7187 PreviewItems = 1 << 1,
7188 };
7189 Q_ENUM( RubberBandComponent )
7190
7191
7197 Q_FLAG( RubberBandComponents )
7198
7204 enum class UserInterfaceIconType : int
7205 {
7206 MainWindowToolbar,
7207 DockedToolbar,
7208 };
7209 Q_ENUM( UserInterfaceIconType )
7210
7211
7219 {
7220 MinMax = 0,
7221 Scaled,
7222 Fixed
7223 };
7224 Q_ENUM( VectorFieldArrowScalingMethod )
7225
7226
7234 {
7235 Arrows = 0,
7236 Streamlines,
7237 Traces,
7238 WindBarbs
7239 };
7240 Q_ENUM( VectorFieldSymbology )
7241
7242
7250 {
7251 Gridded SIP_MONKEYPATCH_COMPAT_NAME( MeshGridded ) = 0,
7252 Random
7253 };
7254 Q_ENUM( VectorFieldSeedingMethod )
7255
7256
7261 enum class LinearMatrixMethod : int
7262 {
7263 Lu = 0,
7264 Svd = 1,
7265 LuWithSvdFallback = 2
7266 };
7267 Q_ENUM( LinearMatrixMethod )
7268
7269
7272 static const double DEFAULT_SEARCH_RADIUS_MM;
7273
7276
7282 static const QColor DEFAULT_HIGHLIGHT_COLOR;
7283
7287 static const double DEFAULT_HIGHLIGHT_BUFFER_MM;
7288
7293
7301 Q_DECL_DEPRECATED static const double SCALE_PRECISION;
7302
7307 static const double DEFAULT_Z_COORDINATE;
7308
7314 static const double DEFAULT_M_COORDINATE;
7315
7320 static const double UI_SCALE_FACTOR;
7321
7325 static const double DEFAULT_SNAP_TOLERANCE;
7326
7331
7335 static const int USER_CRS_START_ID;
7336
7338 static const double DEFAULT_POINT_SIZE;
7339
7341 static const double DEFAULT_LINE_WIDTH;
7342
7344 static const double DEFAULT_SEGMENT_EPSILON;
7345
7348
7351
7357 static QString defaultProjectScales();
7358
7364 static int geosVersionInt();
7365
7371 static int geosVersionMajor();
7372
7378 static int geosVersionMinor();
7379
7385 static int geosVersionPatch();
7386
7392 static QString geosVersion();
7393
7399 static bool hasSfcgal();
7400
7407 static int sfcgalVersionInt();
7408
7414 static bool hasGeographicLib();
7415
7422 static int geographicLibVersion();
7423
7429 Q_DECL_DEPRECATED static bool hasQtWebkit();
7430
7436 static QString geoNone() { return u"NONE"_s; }
7437
7443 static QString geographicCrsAuthId() { return u"EPSG:4326"_s; }
7444
7449 Q_DECL_DEPRECATED static QString geoWkt()
7450 {
7451 return QStringLiteral(
7452 R"""(GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] )"""
7453 );
7454 }
7455
7460 Q_DECL_DEPRECATED static QString geoProj4() { return u"+proj=longlat +datum=WGS84 +no_defs"_s; }
7461};
7462
7465
7567Q_DECLARE_METATYPE( QTimeZone )
7568
7569// hack to workaround warnings when casting void pointers
7570// retrieved from QLibrary::resolve to function pointers.
7571// It's assumed that this works on all systems supporting
7572// QLibrary
7573#define cast_to_fptr( f ) f
7574
7575
7583// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7584template<class Object> class QgsSignalBlocker SIP_SKIP SIP_SKIP // clazy:exclude=rule-of-three
7585{
7586 public:
7591 explicit QgsSignalBlocker( Object *object )
7592 : mObject( object )
7593 , mPreviousState( object->blockSignals( true ) )
7594 {}
7595
7596 ~QgsSignalBlocker() { mObject->blockSignals( mPreviousState ); }
7597
7599 Object *operator->() { return mObject; }
7600
7601 private:
7602 Object *mObject = nullptr;
7603 bool mPreviousState;
7604};
7605
7618// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7619template<class Object> inline QgsSignalBlocker<Object> whileBlocking( Object *object ) SIP_SKIP SIP_SKIP
7620{
7621 return QgsSignalBlocker<Object>( object );
7622}
7623
7625CORE_EXPORT size_t qHash( const QVariant &variant );
7626
7632inline QString qgsDoubleToString( double a, int precision = 17 )
7633{
7634 QString str;
7635 if ( precision )
7636 {
7637 if ( precision < 0 )
7638 {
7639 const double roundFactor = std::pow( 10, -precision );
7640 str = QString::number( static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
7641 }
7642 else
7643 {
7644 str = QString::number( a, 'f', precision );
7645 if ( str.contains( '.'_L1 ) )
7646 {
7647 // remove ending 0s
7648 int idx = str.length() - 1;
7649 while ( str.at( idx ) == '0' && idx > 1 )
7650 {
7651 idx--;
7652 }
7653 if ( idx < str.length() - 1 )
7654 str.truncate( str.at( idx ) == '.' ? idx : idx + 1 );
7655 }
7656 }
7657 }
7658 else
7659 {
7660 str = QString::number( a, 'f', precision );
7661 }
7662 // avoid printing -0
7663 // see https://bugreports.qt.io/browse/QTBUG-71439
7664 if ( str == "-0"_L1 )
7665 {
7666 return "0"_L1;
7667 }
7668 return str;
7669}
7670
7677inline bool qgsNanCompatibleEquals( double a, double b )
7678{
7679 if ( a == b )
7680 return true;
7681
7682 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7683 return true;
7684
7685 return false;
7686}
7687
7688#ifndef SIP_RUN
7689
7697template<typename T> inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
7698{
7699 static_assert( std::is_floating_point<T>::value, "qgsNumberNear requires floating-point types" );
7700
7701 if ( a == b )
7702 return true;
7703
7704 // if either 'a' or 'b' is NaN, 'diff' becomes NaN.
7705 // comparisons (>= or <=) against NaN evaluate to false, which will fallback
7706 // to the nan related logic at the end of this function
7707 const T diff = a - b;
7708 if ( diff >= -epsilon && diff <= epsilon )
7709 return true;
7710
7711 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7712 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7713 return true;
7714
7715 return false;
7716}
7717#endif
7718
7725inline bool qgsDoubleNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7726{
7727 return qgsNumberNear<double>( a, b, epsilon );
7728}
7729
7738inline bool qgsDoubleLessThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7739{
7740 // fast check first
7741 if ( a <= b )
7742 return true;
7743
7744 // => a > b
7745 // => a - b > 0
7746 // we only need to check the upper epsilon bound for the fuzzy equality
7747 if ( a - b <= epsilon )
7748 return true;
7749
7750 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7751 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7752 return true;
7753
7754 return false;
7755}
7756
7765inline bool qgsDoubleGreaterThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7766{
7767 // fast check first
7768 if ( a >= b )
7769 return true;
7770
7771 // => a < b
7772 // => b - a > 0
7773 // we only need to check the upper epsilon bound for the fuzzy equality
7774 if ( b - a <= epsilon )
7775 return true;
7776
7777 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7778 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7779 return true;
7780
7781 return false;
7782}
7783
7790inline bool qgsFloatNear( float a, float b, float epsilon = 4 * FLT_EPSILON )
7791{
7792 return qgsNumberNear<float>( a, b, epsilon );
7793}
7794
7796inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
7797{
7798 const bool aIsNan = std::isnan( a );
7799 const bool bIsNan = std::isnan( b );
7800 if ( aIsNan || bIsNan )
7801 return aIsNan && bIsNan;
7802
7803 // The most simple would be to print numbers as %.xe and compare as strings
7804 // but that is probably too costly
7805 // Then the fastest would be to set some bits directly, but little/big endian
7806 // has to be considered (maybe TODO)
7807 // Is there a better way?
7808 int aexp, bexp;
7809 const double ar = std::frexp( a, &aexp );
7810 const double br = std::frexp( b, &bexp );
7811
7812 return aexp == bexp && std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
7813}
7814
7819inline double qgsRound( double number, int places )
7820{
7821 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
7822 const double scaleFactor = std::pow( 10.0, places );
7823 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
7824}
7825
7826#ifndef SIP_RUN
7827
7834template<class Key, class Value> QString qgsMapJoinKeys( const QMap<Key, Value> &map, const QString &separator )
7835{
7836 QString result;
7837 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7838 result += QString( "%1%2" ).arg( it.key() ).arg( separator );
7839
7840 result.chop( separator.size() );
7841 return result;
7842}
7843
7850template<class Key, class Value> QString qgsMapJoinValues( const QMap<Key, Value> &map, const QString &separator )
7851{
7852 QString result;
7853 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7854 result += QString( "%1%2" ).arg( it.value() ).arg( separator );
7855
7856 result.chop( separator.size() );
7857 return result;
7858}
7859
7866template<class T> QString qgsSetJoin( const QSet<T> &set, const QString &separator )
7867{
7868 QString result;
7869 for ( auto it = set.constBegin(); it != set.constEnd(); it++ )
7870 result += QString( "%1%2" ).arg( *it ).arg( separator );
7871
7872 result.chop( separator.size() );
7873 return result;
7874}
7875
7877
7887namespace qgis
7888{
7889
7902 template<typename To, typename From> inline To down_cast( From *f )
7903 {
7904 static_assert( ( std::is_base_of<From, typename std::remove_pointer<To>::type>::value ), "target type not derived from source type" );
7905 Q_ASSERT( f == nullptr || dynamic_cast<To>( f ) != nullptr );
7906 return static_cast<To>( f );
7907 }
7908
7909 template<class T> QSet<T> listToSet( const QList<T> &list )
7910 {
7911 return QSet<T>( list.begin(), list.end() );
7912 }
7913
7914 template<class T> QList<T> setToList( const QSet<T> &set )
7915 {
7916 return QList<T>( set.begin(), set.end() );
7917 }
7918
7927 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_static_cast( std::unique_ptr<From> f )
7928 {
7929 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
7930 Q_ASSERT( !f || dynamic_cast<To *>( f.get() ) != nullptr );
7931 return std::unique_ptr<To>( static_cast<To *>( f.release() ) );
7932 }
7933
7941 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_dynamic_cast( std::unique_ptr<From> &&f )
7942 {
7943 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
7944 if ( To *casted = dynamic_cast<To *>( f.get() ) )
7945 {
7946 return std::unique_ptr< To >( dynamic_cast<To *>( f.release() ) );
7947 }
7948 else
7949 {
7950 //could not cast
7951 return nullptr;
7952 }
7953 }
7954
7955
7956} //namespace qgis
7957
7959#endif
7960
7965template<class T> const QList<T> qgsEnumList() SIP_SKIP
7966{
7967 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7968 Q_ASSERT( metaEnum.isValid() );
7969 QList<T> enumList;
7970 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
7971 {
7972 enumList.append( static_cast<T>( metaEnum.value( idx ) ) );
7973 }
7974 return enumList;
7975}
7976
7982template<class T> const QMap<T, QString> qgsEnumMap() SIP_SKIP
7983{
7984 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7985 Q_ASSERT( metaEnum.isValid() );
7986 QMap<T, QString> enumMap;
7987 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
7988 {
7989 enumMap.insert( static_cast<T>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
7990 }
7991 return enumMap;
7992}
7993
7999template<class T> QString qgsEnumValueToKey( const T &value, bool *returnOk = nullptr ) SIP_SKIP
8000{
8001 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8002 Q_ASSERT( metaEnum.isValid() );
8003 const char *key = metaEnum.valueToKey( static_cast<int>( value ) );
8004 if ( returnOk )
8005 {
8006 *returnOk = key ? true : false;
8007 }
8008 return QString::fromUtf8( key );
8009}
8010
8018template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
8019{
8020 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8021 Q_ASSERT( metaEnum.isValid() );
8022 bool ok = false;
8023 T v = static_cast<T>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
8024 if ( returnOk )
8025 {
8026 *returnOk = ok;
8027 }
8028 if ( ok )
8029 {
8030 return v;
8031 }
8032 else
8033 {
8034 // if conversion has failed, try with conversion from int value
8035 if ( tryValueAsKey )
8036 {
8037 bool canConvert = false;
8038 const int intValue = key.toInt( &canConvert );
8039 if ( canConvert && metaEnum.valueToKey( intValue ) )
8040 {
8041 if ( returnOk )
8042 {
8043 *returnOk = true;
8044 }
8045 return static_cast<T>( intValue );
8046 }
8047 }
8048 }
8049 return defaultValue;
8050}
8051
8057template<class T> QString qgsFlagValueToKeys( const T &value, bool *returnOk = nullptr ) SIP_SKIP
8058{
8059 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8060 Q_ASSERT( metaEnum.isValid() );
8061 int intValue = static_cast<int>( value );
8062 if ( intValue == 0 )
8063 {
8064 if ( returnOk )
8065 *returnOk = true;
8066 return u"0"_s;
8067 }
8068
8069 const QByteArray ba = metaEnum.valueToKeys( intValue );
8070 // check that the int value does correspond to a flag
8071 // see https://stackoverflow.com/a/68495949/1548052
8072 const int intValueCheck = metaEnum.keysToValue( ba );
8073 bool ok = intValue == intValueCheck;
8074 if ( returnOk )
8075 *returnOk = ok;
8076 return ok ? QString::fromUtf8( ba ) : QString();
8077}
8078
8086template<class T> T qgsFlagKeysToValue( const QString &keys, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
8087{
8088 if ( keys.isEmpty() )
8089 {
8090 if ( returnOk )
8091 {
8092 *returnOk = false;
8093 }
8094 return defaultValue;
8095 }
8096 else if ( keys == "0"_L1 )
8097 {
8098 if ( returnOk )
8099 {
8100 *returnOk = true;
8101 }
8102 return T();
8103 }
8104 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8105 Q_ASSERT( metaEnum.isValid() );
8106 bool ok = false;
8107 T v = static_cast<T>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
8108 if ( returnOk )
8109 {
8110 *returnOk = ok;
8111 }
8112 if ( ok )
8113 {
8114 return v;
8115 }
8116 else
8117 {
8118 // if conversion has failed, try with conversion from int value
8119 if ( tryValueAsKey )
8120 {
8121 bool canConvert = false;
8122 const int intValue = keys.toInt( &canConvert );
8123 if ( canConvert )
8124 {
8125 const QByteArray keyArray = metaEnum.valueToKeys( intValue );
8126 const int intValueCheck = metaEnum.keysToValue( keyArray );
8127 if ( !keyArray.isEmpty() && intValue == intValueCheck )
8128 {
8129 if ( returnOk )
8130 {
8131 *returnOk = true;
8132 }
8133 return T( intValue );
8134 }
8135 }
8136 }
8137 }
8138 return defaultValue;
8139}
8140
8141
8150CORE_EXPORT double qgsPermissiveToDouble( QString string, bool &ok );
8151
8160CORE_EXPORT int qgsPermissiveToInt( QString string, bool &ok );
8161
8171CORE_EXPORT qlonglong qgsPermissiveToLongLong( QString string, bool &ok );
8172
8192CORE_EXPORT int qgsVariantCompare( const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck = false );
8193
8204CORE_EXPORT bool qgsVariantLessThan( const QVariant &lhs, const QVariant &rhs );
8205
8214CORE_EXPORT bool qgsVariantEqual( const QVariant &lhs, const QVariant &rhs );
8215
8224CORE_EXPORT bool qgsVariantGreaterThan( const QVariant &lhs, const QVariant &rhs );
8225
8237inline bool operator>( const QVariant &v1, const QVariant &v2 )
8238{
8239 return qgsVariantCompare( v1, v2, true ) > 0;
8240}
8241
8253inline bool operator<( const QVariant &v1, const QVariant &v2 )
8254{
8255 return qgsVariantCompare( v1, v2, true ) < 0;
8256}
8257
8264Q_DECL_DEPRECATED CORE_EXPORT QString qgsVsiPrefix( const QString &path ) SIP_DEPRECATED;
8265
8271void CORE_EXPORT *qgsMalloc( size_t size ) SIP_SKIP;
8272
8277void CORE_EXPORT qgsFree( void *ptr ) SIP_SKIP;
8278
8279#ifndef SIP_RUN
8280
8282class ScopedIntIncrementor
8283{
8284 public:
8285 ScopedIntIncrementor( int *variable )
8286 : mVariable( variable )
8287 {
8288 ( *mVariable )++;
8289 }
8290
8291 ScopedIntIncrementor( const ScopedIntIncrementor &other ) = delete;
8292 ScopedIntIncrementor &operator=( const ScopedIntIncrementor &other ) = delete;
8293
8294 void release()
8295 {
8296 if ( mVariable )
8297 ( *mVariable )--;
8298
8299 mVariable = nullptr;
8300 }
8301
8302 ~ScopedIntIncrementor() { release(); }
8303
8304 private:
8305 int *mVariable = nullptr;
8306};
8308
8309#endif
8310
8316Q_DECL_DEPRECATED const long GEOSRID = 4326;
8317
8323Q_DECL_DEPRECATED const long GEOCRS_ID = 3452;
8324
8330Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID = 4326;
8331
8332typedef QMap<QString, QString> QgsStringMap SIP_SKIP;
8333
8342typedef unsigned long long qgssize;
8343
8344#ifndef SIP_RUN
8345#if ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) ) || defined( __clang__ )
8346
8347#define Q_NOWARN_DEPRECATED_PUSH _Pragma( "GCC diagnostic push" ) _Pragma( "GCC diagnostic ignored \"-Wdeprecated-declarations\"" );
8348#define Q_NOWARN_DEPRECATED_POP _Pragma( "GCC diagnostic pop" );
8349#define Q_NOWARN_UNREACHABLE_PUSH
8350#define Q_NOWARN_UNREACHABLE_POP
8351
8352#elif defined( _MSC_VER )
8353
8354#define Q_NOWARN_DEPRECATED_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4996 ) )
8355#define Q_NOWARN_DEPRECATED_POP __pragma( warning( pop ) )
8356#define Q_NOWARN_UNREACHABLE_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4702 ) )
8357#define Q_NOWARN_UNREACHABLE_POP __pragma( warning( pop ) )
8358#else
8359
8360#define Q_NOWARN_DEPRECATED_PUSH
8361#define Q_NOWARN_DEPRECATED_POP
8362#define Q_NOWARN_UNREACHABLE_PUSH
8363#define Q_NOWARN_UNREACHABLE_POP
8364
8365#endif
8366#endif
8367
8368#ifndef QGISEXTERN
8369#ifdef Q_OS_WIN
8370#define QGISEXTERN extern "C" __declspec( dllexport )
8371#else
8372#if defined( __GNUC__ ) || defined( __clang__ )
8373#define QGISEXTERN extern "C" __attribute__( ( visibility( "default" ) ) )
8374#else
8375#define QGISEXTERN extern "C"
8376#endif
8377#endif
8378#endif
8379#endif
8380
8381#ifndef SIP_RUN
8382#ifdef _MSC_VER
8383#define BUILTIN_UNREACHABLE __assume( false );
8384#elif defined( __GNUC__ ) && !defined( __clang__ )
8385// Workaround a GCC bug where a -Wreturn-type warning is emitted in constructs
8386// like:
8387// switch( mVariableThatCanOnlyBeXorY )
8388// {
8389// case X:
8390// return "foo";
8391// case Y:
8392// return "foo";
8393// }
8394// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951
8395#define BUILTIN_UNREACHABLE __builtin_unreachable();
8396#else
8397#define BUILTIN_UNREACHABLE
8398#endif
8399#endif // SIP_RUN
Provides global constants and enumerations for use throughout the application.
Definition qgis.h:62
MapGridTickLengthMode
Map grid tick length mode (useful for rotated grids).
Definition qgis.h:6112
DistanceUnitType
Types of distance units.
Definition qgis.h:5630
PieChartLabelType
Pie chart label types.
Definition qgis.h:3584
GnssConstellation
GNSS constellation.
Definition qgis.h:2074
SettingsOption
Settings options.
Definition qgis.h:785
EmbeddedScriptType
Type of Python Embedded in projects.
Definition qgis.h:483
ProfileGeneratorFlag
Flags that control the way the QgsAbstractProfileGenerator operate.
Definition qgis.h:4687
GeometryBackend
Geometry backend for QgsGeometry.
Definition qgis.h:2319
ProcessingSourceType
Processing data source types.
Definition qgis.h:3769
static const Qgis::MapToolUnit DEFAULT_SNAP_UNITS
Default snapping distance units.
Definition qgis.h:7330
GpsQualityIndicator
GPS signal quality indicator.
Definition qgis.h:2092
QFlags< MapGridFrameSideFlag > MapGridFrameSideFlags
Flags for controlling which side of the map a frame is drawn on.
Definition qgis.h:6142
DataItemProviderCapability
Capabilities for data item providers.
Definition qgis.h:1077
ProcessingFileParameterBehavior
Flags which dictate the behavior of QgsProcessingParameterFile.
Definition qgis.h:4051
RasterizedRenderingPolicy
Policies controlling when rasterisation of content during renders is permitted.
Definition qgis.h:2916
QFlags< MapLayerRendererFlag > MapLayerRendererFlags
Flags which control how map layer renderers behave.
Definition qgis.h:3013
ProjectReadFlag
Flags which control project read behavior.
Definition qgis.h:4771
QFlags< DatabaseProviderTableImportCapability > DatabaseProviderTableImportCapabilities
Definition qgis.h:6232
QFlags< BabelCommandFlag > BabelCommandFlags
Babel command flags.
Definition qgis.h:2187
CurvedLabelMode
Modes which determine how curved labels are generated and placed.
Definition qgis.h:1326
MapToolUnit
Type of unit of tolerance value from settings.
Definition qgis.h:5536
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
Definition qgis.h:3556
static const double DEFAULT_LINE_WIDTH
The default width (in millimeters) for line symbols.
Definition qgis.h:7341
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
Definition qgis.h:4126
QFlags< GpsInformationComponent > GpsInformationComponents
GPS information component.
Definition qgis.h:2154
ScaleBarDistanceLabelHorizontalPlacement
Scale bar distance label horizontal placement.
Definition qgis.h:5925
PointCloudSymbol
Rendering symbols for point cloud points.
Definition qgis.h:4715
SymbolRotationMode
Modes for handling how symbol and text entity rotation is handled when maps are rotated.
Definition qgis.h:868
static const double DEFAULT_HIGHLIGHT_MIN_WIDTH_MM
Default highlight line/stroke minimum width in mm.
Definition qgis.h:7292
QFlags< PdfRenderFlag > PdfRenderFlags
PDF rendering flags.
Definition qgis.h:7140
static QString version()
Version string.
Definition qgis.cpp:682
GeometryValidityFlag
Geometry validity check flags.
Definition qgis.h:2241
QFlags< RasterProviderCapability > RasterProviderCapabilities
Raster data provider capabilities.
Definition qgis.h:5461
ExpressionType
Expression types.
Definition qgis.h:6362
MapLayerActionFlag
Map layer action flags.
Definition qgis.h:5191
ScaleBarDistanceLabelVerticalPlacement
Scale bar distance label vertical placement.
Definition qgis.h:5911
MapLayerProperty
Generic map layer properties.
Definition qgis.h:2464
VectorProviderCapability
Vector data provider capabilities.
Definition qgis.h:545
RasterProcessingParameterCapability
Capabilities of a raster layer processing parameter.
Definition qgis.h:7020
BufferSide
Side of line to buffer.
Definition qgis.h:2268
RasterResamplingStage
Stage at which raster resampling occurs.
Definition qgis.h:1639
WmsGroupRequestMode
Request mode of groups in a WMS context.
Definition qgis.h:7091
VectorFieldSeedingMethod
Method used to define start points that are used to draw streamlines.
Definition qgis.h:7250
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
Definition qgis.h:5180
VectorTileProviderCapability
Enumeration with capabilities that vector tile data providers might implement.
Definition qgis.h:6408
ProjectTrustStatus
Project trust status.
Definition qgis.h:496
MultiPartLabelingBehavior
Behavior modifier for labeling features with multi-part geometries.
Definition qgis.h:1365
AltitudeClamping
Altitude clamping.
Definition qgis.h:4245
static const int PREVIEW_JOB_DELAY_MS
Delay between the scheduling of 2 preview jobs.
Definition qgis.h:7347
VectorTileProviderFlag
Flags for vector tile data providers.
Definition qgis.h:6390
VectorFieldSymbology
Defines the symbology of vector field rendering.
Definition qgis.h:7234
VectorTemporalMode
Vector layer temporal feature modes.
Definition qgis.h:2787
SublayerFlag
Flags which reflect the properties of sublayers in a dataset.
Definition qgis.h:1578
QFlags< ProjectCapability > ProjectCapabilities
Flags which control project capabilities.
Definition qgis.h:4815
LabelLinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1415
QFlags< UriCleaningFlag > UriCleaningFlags
Flags for cleaning layer URIs.
Definition qgis.h:1538
CoordinateDisplayType
Formats for displaying coordinates.
Definition qgis.h:4952
ProcessingParameterTypeFlag
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:3999
QFlags< VectorRenderingSimplificationFlag > VectorRenderingSimplificationFlags
Simplification flags for vector feature rendering.
Definition qgis.h:3269
DashPatternSizeAdjustment
Dash pattern size adjustment options.
Definition qgis.h:3529
InterpolationSourceType
Interpolation source types.
Definition qgis.h:6788
static const double DEFAULT_Z_COORDINATE
Default Z coordinate value.
Definition qgis.h:7307
CoverageCleanOverlapMergeStrategy
Merge strategies for coverage cleaning operations.
Definition qgis.h:7116
GpsFixStatus
GPS fix status.
Definition qgis.h:2059
AnnotationItemNodeType
Annotation item node types.
Definition qgis.h:2714
static const char * QGIS_DEV_VERSION
The development version.
Definition qgis.h:89
VectorFileWriterCapability
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1174
QFlags< MapSettingsFlag > MapSettingsFlags
Map settings flags.
Definition qgis.h:2954
InterpolationValueSource
Source for interpolated values from features.
Definition qgis.h:6801
CrsIdentifierType
Available identifier string types for representing coordinate reference systems.
Definition qgis.h:2603
QFlags< RasterRendererFlag > RasterRendererFlags
Flags which control behavior of raster renderers.
Definition qgis.h:1682
AngularDirection
Angular directions.
Definition qgis.h:3670
DriveType
Drive types.
Definition qgis.h:1227
UnitType
Unit types.
Definition qgis.h:5551
ContentStatus
Status for fetched or stored content.
Definition qgis.h:2015
UserInterfaceIconType
Icon types for icons shown in the user interface.
Definition qgis.h:7205
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
Definition qgis.h:1977
SnappingType
SnappingTypeFlag defines on what object the snapping is performed.
Definition qgis.h:810
Map3DBackgroundType
Background types for 3D map view.
Definition qgis.h:4551
LayoutUnit
Layout measurement units.
Definition qgis.h:5778
Q_ENUM(GpsFixStatus)
RelationshipStrength
Relationship strength.
Definition qgis.h:4905
Q_ENUM(GnssConstellation)
PaintEffectFlag
Flags which control how paint effects behave.
Definition qgis.h:3022
MarkerLinePlacement
Defines how/where the symbols should be placed on a line.
Definition qgis.h:3367
QFlags< ProjectReadFlag > ProjectReadFlags
Project load flags.
Definition qgis.h:4793
LegendComponent
Component of legends which can be styled.
Definition qgis.h:5088
Point3DShape
3D point shape types.
Definition qgis.h:4431
GeometryOperationResult
Success or failure of a geometry operation.
Definition qgis.h:2212
QFlags< StringStatistic > StringStatistics
Statistics to be calculated for string values.
Definition qgis.h:6752
BrowserItemState
Browser item states.
Definition qgis.h:1020
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:6290
QFlags< TiledSceneProviderCapability > TiledSceneProviderCapabilities
Tiled scene data provider capabilities.
Definition qgis.h:6451
QFlags< SensorThingsExtension > SensorThingsExtensions
OGC SensorThings extensions.
Definition qgis.h:6839
FeatureRequestFilterType
Types of feature request filters.
Definition qgis.h:2407
MarkerClipMode
Marker clipping modes.
Definition qgis.h:3487
GpsNavigationStatus
GPS navigation status.
Definition qgis.h:2112
AnnotationItemFlag
Flags for annotation items.
Definition qgis.h:2671
AttributeFormReuseLastValuePolicy
Attribute form policy for reusing last entered values.
Definition qgis.h:6349
RenderSubcomponentProperty
Rendering subcomponent properties.
Definition qgis.h:3278
ProcessingTinInputLayerType
Defines the type of input layer for a Processing TIN input.
Definition qgis.h:4141
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
Definition qgis.h:2501
TextureFilterQuality
Texture filtering qualities.
Definition qgis.h:4509
Statistic
Available generic statistics.
Definition qgis.h:6670
TriangulationAlgorithm
Triangulation algorithms.
Definition qgis.h:7073
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
Definition qgis.h:830
AngleUnit
Units of angles.
Definition qgis.h:5693
ToneMappingMethod
Defines the method used to map High Dynamic Range (HDR) scene colors to the Standard Dynamic Range (S...
Definition qgis.h:4626
MapGridAnnotationPosition
Position for map grid annotations.
Definition qgis.h:6022
CaptureTechnique
Capture technique.
Definition qgis.h:438
static QString geosVersion()
GEOS string version linked.
Definition qgis.cpp:704
SpatialIndexPresence
Enumeration of spatial index presence states.
Definition qgis.h:619
BrowserItemCapability
Browser item capabilities.
Definition qgis.h:1033
AttributeFormSuppression
Available form types for layout of the attribute form editor.
Definition qgis.h:6320
QFlags< AuthConfigurationStorageCapability > AuthConfigurationStorageCapabilities
Authentication configuration storage capabilities.
Definition qgis.h:152
QFlags< LayerTreeFilterFlag > LayerTreeFilterFlags
Layer tree filter flags.
Definition qgis.h:5058
LayerTreeInsertionMethod
Layer tree insertion methods.
Definition qgis.h:5022
RasterProviderCapability
Raster data provider capabilities.
Definition qgis.h:5441
DatabaseProviderTableImportCapability
Represents capabilities of a database provider connection when importing table data.
Definition qgis.h:6227
LineClipMode
Line clipping modes.
Definition qgis.h:3501
static const double DEFAULT_SNAP_TOLERANCE
Default snapping distance tolerance.
Definition qgis.h:7325
VectorRenderingSimplificationFlag
Simplification flags for vector feature rendering.
Definition qgis.h:3254
QFlags< GeometryValidityFlag > GeometryValidityFlags
Geometry validity flags.
Definition qgis.h:2246
BrowserDirectoryMonitoring
Browser directory item monitoring switches.
Definition qgis.h:1126
LayerItemCapability
Flags for layer item capabilities.
Definition qgis.h:253
VsiHandlerType
GDAL VSI handler types.
Definition qgis.h:6564
NetworkRequestFlag
Flags controlling behavior of network requests.
Definition qgis.h:187
static int geographicLibVersion()
Returns the version of the GeographicLib library if QGIS is built with GeographicLib support.
Definition qgis.cpp:736
SettingsTreeNodeType
Type of tree node.
Definition qgis.h:715
TilePixelRatio
DpiMode enum.
Definition qgis.h:3610
DatabaseProviderConnectionCapability2
The Capability enum represents the extended operations supported by the connection.
Definition qgis.h:6210
QFlags< PaintEffectFlag > PaintEffectFlags
Flags which control how paint effects behave.
Definition qgis.h:3032
LabelOffsetType
Behavior modifier for label offset and distance, only applies in some label placement modes.
Definition qgis.h:1381
QFlags< ProfileGeneratorFlag > ProfileGeneratorFlags
Definition qgis.h:4693
QFlags< MapLayerLegendFlag > MapLayerLegendFlags
Map layer legend flags.
Definition qgis.h:5077
MapGridUnit
Units for map grid values.
Definition qgis.h:5974
LabelPrioritization
Label prioritization.
Definition qgis.h:1293
GradientColorSource
Gradient color sources.
Definition qgis.h:3416
FileFilterType
Type of file filters.
Definition qgis.h:1510
LabelPlacement
Placement modes which determine how label candidates are generated for a feature.
Definition qgis.h:1307
RasterLayerType
Raster layer types.
Definition qgis.h:5318
static const double DEFAULT_M_COORDINATE
Default M coordinate value.
Definition qgis.h:7314
QFlags< VectorLayerTypeFlag > VectorLayerTypeFlags
Vector layer type flags.
Definition qgis.h:460
ScaleBarAlignment
Scalebar alignment.
Definition qgis.h:5882
LegendLayerDoubleClickAction
Action performed when double-clicking a layer in the legend.
Definition qgis.h:5035
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:5357
ProcessingMode
Types of modes which Processing widgets can be created for.
Definition qgis.h:3910
VectorExportResult
Vector layer export result codes.
Definition qgis.h:1153
ShadowQuality
Shadow texture quality.
Definition qgis.h:4524
PdfRenderFlag
PDF rendering flags.
Definition qgis.h:7130
DistanceUnit
Units of distance.
Definition qgis.h:5568
ScaleBarUnitLabelPlacement
Available placement options for a scale bar's unit label.
Definition qgis.h:5939
RasterTemporalCapabilityFlag
Flags for raster layer temporal capabilities.
Definition qgis.h:2862
SymbolLayerFlag
Flags controlling behavior of symbol layers.
Definition qgis.h:962
MeshRangeLimit
Describes the limits used to compute mesh ranges (min/max values).
Definition qgis.h:6945
GradientSpread
Gradient spread options, which control how gradients are rendered outside of their start and end poin...
Definition qgis.h:3460
LegendSyncMode
Legend synchronization mode.
Definition qgis.h:5106
QFlags< AnnotationItemGuiFlag > AnnotationItemGuiFlags
Annotation item GUI flags.
Definition qgis.h:2704
LabelPolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1440
RasterRangeLimit
Describes the limits used to compute raster ranges (min/max values).
Definition qgis.h:1714
ScaleMethod
Scale methods.
Definition qgis.h:685
QFlags< RasterProcessingParameterCapability > RasterProcessingParameterCapabilities
Raster layer processing parameter capabilities.
Definition qgis.h:7030
SldExportOption
SLD export options.
Definition qgis.h:757
VectorSimplificationAlgorithm
Simplification algorithms for vector features.
Definition qgis.h:3238
FilePathType
File path types.
Definition qgis.h:1846
CadConstraintType
Advanced digitizing constraint type.
Definition qgis.h:4337
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:6335
PointCountMethod
Methods which define the number of points randomly filling a polygon.
Definition qgis.h:3475
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition qgis.h:772
static const double DEFAULT_HIGHLIGHT_BUFFER_MM
Default highlight buffer in mm.
Definition qgis.h:7287
MapCanvasFlag
Flags controlling behavior of map canvases.
Definition qgis.h:3696
LayerTreeFilterFlag
Layer tree filter flags.
Definition qgis.h:5048
TextAnchorPoint
Anchor point of label text.
Definition qgis.h:1495
ExtrusionFace
Extrusion face types for the QgsTessellator.
Definition qgis.h:7053
AttributeFormLayout
Available form types for layout of the attribute form editor.
Definition qgis.h:6305
FeatureRequestFlag
Flags for controlling feature requests.
Definition qgis.h:2378
Map3DDebugFlag
Flags that control debug options for 3D maps.
Definition qgis.h:4398
VertexType
Types of vertex.
Definition qgis.h:3303
ShaderInterpolationMethod
Color ramp shader interpolation methods.
Definition qgis.h:1594
JoinStyle3D
Join styles for 3D buffers.
Definition qgis.h:2306
DataProviderFlag
Generic data provider flags.
Definition qgis.h:2494
Q_ENUM(GpsNavigationStatus)
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
Definition qgis.h:6542
RasterResamplingMethod
Resampling method for raster provider-level resampling.
Definition qgis.h:1653
GeometryValidationEngine
Available engines for validating geometries.
Definition qgis.h:2255
static int geosVersionPatch()
GEOS Patch version number linked.
Definition qgis.cpp:766
TransactionMode
Transaction mode.
Definition qgis.h:4232
Q_ENUM(ScaleToTileZoomLevelMethod)
QFlags< FeatureRendererFlag > FeatureRendererFlags
Flags controlling behavior of vector feature renderers.
Definition qgis.h:920
static const QColor DEFAULT_HIGHLIGHT_COLOR
Default highlight color.
Definition qgis.h:7282
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
Definition qgis.h:5470
static Q_DECL_DEPRECATED const double SCALE_PRECISION
Fudge factor used to compare two scales.
Definition qgis.h:7301
RasterDrawingStyle
Raster drawing styles.
Definition qgis.h:5334
GeosCreationFlag
Flags which control geos geometry creation behavior.
Definition qgis.h:2331
Q_ENUM(SensorThingsExtension)
static const int MAXIMUM_LAYER_PREVIEW_TIME_MS
Maximum rendering time for a layer of a preview job.
Definition qgis.h:7350
QFlags< RubberBandComponent > RubberBandComponents
Rubber band components.
Definition qgis.h:7196
MeshRangeExtent
Describes the extent used to compute mesh ranges (min/max values).
Definition qgis.h:6957
GpsInformationComponent
GPS information component.
Definition qgis.h:2126
Q_ENUM(PointCloudProfileType)
ViewSyncModeFlag
Synchronization of 2D map canvas and 3D view.
Definition qgis.h:3715
ProcessingProviderFlag
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3796
FileOperationFlag
File operation flags.
Definition qgis.h:2449
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
Definition qgis.h:1093
ProjectCapability
Flags which control project capabilities.
Definition qgis.h:4805
QFlags< BabelFormatCapability > BabelFormatCapabilities
Babel GPS format capabilities.
Definition qgis.h:2172
QFlags< SymbolLayerFlag > SymbolLayerFlags
Symbol layer flags.
Definition qgis.h:969
QFlags< RasterInterfaceCapability > RasterInterfaceCapabilities
Raster interface capabilities.
Definition qgis.h:5428
Q_ENUM(VectorProfileType)
AttributeActionType
Attribute action types.
Definition qgis.h:5215
TemporalNavigationMode
Temporal navigation modes.
Definition qgis.h:2741
ProcessingFieldParameterDataType
Processing field parameter data types.
Definition qgis.h:4079
AreaUnit
Units of area.
Definition qgis.h:5645
StringStatistic
Available string statistics.
Definition qgis.h:6732
SelectiveMaskSourceType
Selective masking source types.
Definition qgis.h:3292
FieldDomainMergePolicy
Merge policy for field domains.
Definition qgis.h:4186
ZonalStatistic
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:6583
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition qgis.h:160
@ NoLevel
No level.
Definition qgis.h:165
@ Warning
Warning message.
Definition qgis.h:162
@ Critical
Critical/error message.
Definition qgis.h:163
@ Info
Information message.
Definition qgis.h:161
@ Success
Used for reporting a successful operation.
Definition qgis.h:164
MapGridBorderSide
Border sides for map grid annotations.
Definition qgis.h:6076
SqlKeywordCategory
SqlKeywordCategory enum represents the categories of the SQL keywords used by the SQL query editor.
Definition qgis.h:1209
QFlags< SnappingType > SnappingTypes
Snapping types.
Definition qgis.h:821
static Q_DECL_DEPRECATED QString geoWkt()
WKT string that represents a geographic coord system.
Definition qgis.h:7449
static Q_DECL_DEPRECATED bool hasQtWebkit()
Returns false.
Definition qgis.cpp:745
MapGridFrameSideFlag
Flags for controlling which side of the map a frame is drawn on.
Definition qgis.h:6127
GraduatedMethod
Methods for modifying symbols by range in a graduated symbol renderer.
Definition qgis.h:3544
QFlags< LabelLinePlacementFlag > LabelLinePlacementFlags
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1430
TiledSceneBoundingVolumeType
Tiled scene bounding volume types.
Definition qgis.h:6460
TextLayoutMode
Text layout modes.
Definition qgis.h:3126
PropertyType
Property types.
Definition qgis.h:743
QFlags< RenderContextFlag > RenderContextFlags
Render context flags.
Definition qgis.h:2991
LayerFilter
Filter for layers.
Definition qgis.h:225
Q_ENUM(ProviderStyleStorageCapability)
QFlags< SublayerFlag > SublayerFlags
Sublayer flags.
Definition qgis.h:1582
RasterRendererFlag
Flags which control behavior of raster renderers.
Definition qgis.h:1671
QFlags< ExtrusionFace > ExtrusionFaces
Tessellator extrusion face types.
Definition qgis.h:7065
static QString devVersion()
The development version.
Definition qgis.cpp:699
CrsType
Coordinate reference system types.
Definition qgis.h:2513
QFlags< GeosCreationFlag > GeosCreationFlags
Geos geometry creation behavior flags.
Definition qgis.h:2342
MapGridComponentVisibility
Visibility display settings for map grid annotations and frames.
Definition qgis.h:6006
SensorThingsEntity
OGC SensorThings API entity types.
Definition qgis.h:6848
MeshEditingErrorType
Type of error that can occur during mesh frame editing.
Definition qgis.h:1829
FieldDomainSplitPolicy
Split policy for field domains.
Definition qgis.h:4169
ArcGisRestServiceType
Available ArcGIS REST service types.
Definition qgis.h:4843
UriCleaningFlag
Flags for cleaning layer URIs.
Definition qgis.h:1527
RasterFileWriterResult
Raster file export results.
Definition qgis.h:1812
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
Definition qgis.h:2726
ProcessingPropertyAvailability
Property availability, used for QgsProcessingAlgorithm::VectorProperties in order to determine if pro...
Definition qgis.h:3881
GeoJsonProfile
GeoJson export Profile according to OGC Features and Geometries JSON - Part 1: Core https://docs....
Definition qgis.h:5134
MapRecenteringMode
Modes for recentering map canvases.
Definition qgis.h:3728
RasterRangeAccuracy
Describes the accuracy used to compute raster ranges (min/max values).
Definition qgis.h:1745
ActionType
Action types.
Definition qgis.h:5150
ActionStart
Enum to determine when an operation would begin.
Definition qgis.h:1244
PlaybackOperation
Media playback operations.
Definition qgis.h:2770
QFlags< SymbolLayerUserFlag > SymbolLayerUserFlags
Symbol layer user flags.
Definition qgis.h:992
QFlags< TextRendererFlag > TextRendererFlags
Definition qgis.h:3649
SensorThingsExtension
OGC SensorThings extensions.
Definition qgis.h:6826
QueryStorageBackend
Stored query storage backends.
Definition qgis.h:3755
ProviderStyleStorageCapability
The StorageCapability enum represents the style storage operations supported by the provider.
Definition qgis.h:6241
AvoidIntersectionsMode
Flags which control how intersections of pre-existing feature are handled when digitizing new feature...
Definition qgis.h:4742
MarkerShape
Marker shapes.
Definition qgis.h:3318
StacObjectType
Available types of stac objects.
Definition qgis.h:7007
LegendJsonRenderFlag
Legend JSON export flags.
Definition qgis.h:5121
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Definition qgis.h:5485
RasterElevationMode
Raster layer elevation modes.
Definition qgis.h:4284
Capitalization
String capitalization options.
Definition qgis.h:3627
TemporalIntervalMatchMethod
Method to use when resolving a temporal range to a data provider layer or band.
Definition qgis.h:2847
PictureFormat
Picture formats.
Definition qgis.h:5852
QFlags< LabelPolygonPlacementFlag > LabelPolygonPlacementFlags
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1452
static QString releaseName()
Release name.
Definition qgis.cpp:694
LabelQuadrantPosition
Label quadrant positions.
Definition qgis.h:1395
QFlags< PlotToolFlag > PlotToolFlags
Definition qgis.h:4387
ScaleToTileZoomLevelMethod
Available methods for converting map scales to tile zoom levels.
Definition qgis.h:3658
SublayerQueryFlag
Flags which control how data providers will scan for sublayers in a dataset.
Definition qgis.h:1560
QFlags< VectorFileWriterCapability > VectorFileWriterCapabilities
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1184
TextOrientation
Text orientations.
Definition qgis.h:3111
TemporalUnit
Temporal units.
Definition qgis.h:5734
QFlags< RasterRendererCapability > RasterRendererCapabilities
Raster renderer capabilities.
Definition qgis.h:1703
QFlags< SymbolPreviewFlag > SymbolPreviewFlags
Symbol preview flags.
Definition qgis.h:949
UnplacedLabelVisibility
Unplaced label visibility.
Definition qgis.h:1256
CrsDefinitionFormat
CRS definition formats.
Definition qgis.h:4154
SpatialFilterType
Feature request spatial filter types.
Definition qgis.h:2436
VerticalAnchorPoint
Marker symbol vertical anchor points.
Definition qgis.h:896
QFlags< LayoutRenderFlag > LayoutRenderFlags
Flags for controlling how a layout is rendered.
Definition qgis.h:5841
static QString defaultProjectScales()
A string with default project scales.
Definition qgis.cpp:674
QFlags< ProcessingParameterTypeFlag > ProcessingParameterTypeFlags
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:4014
TileAvailability
Possible availability states for a tile within a tile matrix.
Definition qgis.h:6427
ProjectFlag
Flags which control the behavior of QgsProjects.
Definition qgis.h:4366
MapGridStyle
Map grid drawing styles.
Definition qgis.h:5990
SensorThingsVersion
OGC SensorThings API versions.
Definition qgis.h:6814
FeatureRendererFlag
Flags controlling behavior of vector feature renderers.
Definition qgis.h:910
static Q_DECL_DEPRECATED QString geoProj4()
PROJ4 string that represents a geographic coord system.
Definition qgis.h:7460
AcademicReferenceType
Type of academic reference.
Definition qgis.h:5246
BrowserItemType
Browser item types.
Definition qgis.h:1001
QFlags< FeatureRequestFlag > FeatureRequestFlags
Flags for controlling feature requests.
Definition qgis.h:2396
static bool hasGeographicLib()
Returns true if the QGIS build contains GeographicLib.
Definition qgis.cpp:727
SettingsType
Types of settings entries.
Definition qgis.h:696
QFlags< SettingsOption > SettingsOptions
Definition qgis.h:790
RasterTemporalMode
Raster layer temporal modes.
Definition qgis.h:2830
RasterAttributeTableType
The RasterAttributeTableType enum represents the type of RAT.
Definition qgis.h:1786
RubberBandIconType
Rubber band icon type.
Definition qgis.h:7166
LabelingFlag
Various flags that affect drawing and placement of labels.
Definition qgis.h:3062
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:399
RelationshipType
Relationship types.
Definition qgis.h:4891
ScriptLanguageCapability
Script language capabilities.
Definition qgis.h:5001
RasterInterfaceCapability
Raster interface capabilities.
Definition qgis.h:5408
JoinStyle
Join styles for buffers.
Definition qgis.h:2293
PointCloudDrawOrder
Pointcloud rendering order for 2d views.
Definition qgis.h:4727
QFlags< RasterBandStatistic > RasterBandStatistics
Statistics to be calculated for raster bands.
Definition qgis.h:6779
CadMeasurementDisplayType
Advanced digitizing measurement display types.
Definition qgis.h:4353
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3857
ProcessingMenu
Standard menu groups for Processing tools.
Definition qgis.h:3923
TextCharacterVerticalAlignment
Text vertical alignment for characters.
Definition qgis.h:3202
FieldDuplicatePolicy
Duplicate policy for fields.
Definition qgis.h:4206
UserProfileSelectionPolicy
User profile selection policy.
Definition qgis.h:6256
static const float DEFAULT_MAPTOPIXEL_THRESHOLD
Default threshold between map coordinates and device coordinates for map2pixel simplification.
Definition qgis.h:7275
QFlags< FileOperationFlag > FileOperationFlags
File operation flags.
Definition qgis.h:2454
DpiMode
DpiMode enum.
Definition qgis.h:3596
Q_ENUM(ProfileExportType)
BrowserLayerType
Browser item layer types.
Definition qgis.h:1102
QFlags< ProcessingAlgorithmFlag > ProcessingAlgorithmFlags
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3848
AltitudeBinding
Altitude binding.
Definition qgis.h:4258
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
Definition qgis.h:532
StringFormat
Format of log message.
Definition qgis.h:175
Q_ENUM(ProcessingProviderFlag)
TiledSceneRendererFlag
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:6520
MaterialWidgetMode
Modes for material settings widgets.
Definition qgis.h:4471
MapLayerActionTarget
Map layer action targets.
Definition qgis.h:5165
ShaderClassificationMethod
Color ramp shader classification methods.
Definition qgis.h:1609
QFlags< ScaleBarUnitLabelPlacement > ScaleBarUnitLabelPlacements
Available placement options for a scale bar's unit label.
Definition qgis.h:5963
MapLayerLegendFlag
Map layer legend flags.
Definition qgis.h:5067
ZonalStatisticResult
Zonal statistics result codes.
Definition qgis.h:6620
ScriptLanguage
Scripting languages.
Definition qgis.h:4978
QFlags< BrowserItemCapability > BrowserItemCapabilities
Browser item capabilities.
Definition qgis.h:1047
QFlags< NetworkRequestFlag > NetworkRequestFlags
Flags controlling behavior of network requests.
Definition qgis.h:197
Export3DSceneFormat
The file format used when exporting a 3D scene.
Definition qgis.h:4638
FeatureAvailability
Possible return value for QgsFeatureSource::hasFeatures() to determine if a source is empty.
Definition qgis.h:638
PlotAxisType
Plots axis types.
Definition qgis.h:3572
TiledSceneProviderCapability
Tiled scene data provider capabilities.
Definition qgis.h:6441
LabelMultiLineAlignment
Text alignment for multi-line labels.
Definition qgis.h:1478
PointCloudProfileType
Types of elevation profiles to generate for point cloud sources.
Definition qgis.h:4675
RasterBandStatistic
Available raster band statistics.
Definition qgis.h:6761
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
Definition qgis.h:6418
Q_ENUM(SensorThingsVersion)
AuthConfigurationStorageCapability
Authentication configuration storage capabilities.
Definition qgis.h:107
QFlags< ZonalStatistic > ZonalStatistics
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:6611
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
Definition qgis.h:2817
TextRenderFormat
Options for rendering text.
Definition qgis.h:3043
DocumentationBrowser
Documentation API browser.
Definition qgis.h:6909
DataType
Raster data types.
Definition qgis.h:413
Q_ENUM(ProfileSurfaceSymbology)
QFlags< ViewSyncModeFlag > ViewSyncModeFlags
Definition qgis.h:3720
QFlags< SublayerQueryFlag > SublayerQueryFlags
Sublayer query flags.
Definition qgis.h:1568
SystemOfMeasurement
Systems of unit measurement.
Definition qgis.h:5521
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
Definition qgis.h:1757
VerticalAxisInversion
Vertical axis inversion options for 3D views.
Definition qgis.h:4604
QFlags< CoordinateTransformationFlag > CoordinateTransformationFlags
Coordinate transformation flags.
Definition qgis.h:2907
RelationshipCapability
Relationship capabilities.
Definition qgis.h:4931
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
Definition qgis.h:4564
RasterBuildPyramidOption
Raster pyramid building options.
Definition qgis.h:5372
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
Definition qgis.h:584
NavigationMode
The navigation mode used by 3D cameras.
Definition qgis.h:4579
static int geosVersionMajor()
GEOS Major version number linked.
Definition qgis.cpp:756
LinearReferencingPlacement
Defines how/where the labels should be placed in a linear referencing symbol layer.
Definition qgis.h:3387
TileChildrenAvailability
Possible availability states for a tile's children.
Definition qgis.h:6488
WindSpeedUnit
Wind speed units.
Definition qgis.h:5716
PointCloudZoomOutRenderBehavior
Point cloud zoom out options.
Definition qgis.h:6982
QFlags< SymbolConverterCapability > SymbolConverterCapabilities
Symbol converter capabilities.
Definition qgis.h:859
LayerType
Types of layers that can be added to a map.
Definition qgis.h:206
QFlags< AnnotationItemFlag > AnnotationItemFlags
Annotation item flags.
Definition qgis.h:2677
FieldOrigin
Field origin.
Definition qgis.h:1874
BillboardScaleMode
3D billboard scaling modes.
Definition qgis.h:4497
LinearReferencingLabelSource
Defines what quantity to use for the labels shown in a linear referencing symbol layer.
Definition qgis.h:3401
QFlags< BrowserItemFilterFlag > BrowserItemFilterFlags
Browser item filter flags.
Definition qgis.h:1066
LabelWhitespaceCollisionHandling
Label whitespace collision handling.
Definition qgis.h:1281
RasterRangeExtent
Describes the extent used to compute raster ranges (min/max values).
Definition qgis.h:1730
QFlags< Statistic > Statistics
Statistics to be calculated for generic values.
Definition qgis.h:6698
PlotToolFlag
Flags that control the way the QgsPlotTools operate.
Definition qgis.h:4383
RenderUnit
Rendering size units.
Definition qgis.h:5758
QFlags< ArcGisRestServiceCapability > ArcGisRestServiceCapabilities
Available ArcGIS REST service capabilities.
Definition qgis.h:4880
static QString geographicCrsAuthId()
Geographic coordinate system auth:id string for a default geographic CRS (EPSG:4326).
Definition qgis.h:7443
CoordinateOrder
Order of coordinates.
Definition qgis.h:2588
SelectionFlag
Flags which control feature selection behavior.
Definition qgis.h:1967
QFlags< SettingsTreeNodeOption > SettingsTreeNodeOptions
Definition qgis.h:732
EndCapStyle
End cap styles for buffers.
Definition qgis.h:2280
ScaleCalculationMethod
Scale calculation logic.
Definition qgis.h:5865
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:6511
static bool hasSfcgal()
Returns true if the QGIS build contains SFCGAL.
Definition qgis.cpp:709
QFlags< MapLayerActionFlag > MapLayerActionFlags
Map layer action flags.
Definition qgis.h:5204
QFlags< MapLayerProperty > MapLayerProperties
Map layer properties.
Definition qgis.h:2471
QFlags< LoadStyleFlag > LoadStyleFlags
Flags for loading layer styles.
Definition qgis.h:283
BabelCommandFlag
Babel command flags, which control how commands and arguments are generated for executing GPSBabel pr...
Definition qgis.h:2183
QFlags< LabelingFlag > LabelingFlags
Flags that affect drawing and placement of labels.
Definition qgis.h:3086
QFlags< VerticalAxisInversion > VerticalAxisInversionFlags
Definition qgis.h:4616
FieldDomainType
Types of field domain.
Definition qgis.h:4219
MapLayerRendererFlag
Flags which control how map layer renderers behave.
Definition qgis.h:3001
RenderContextFlag
Flags which affect rendering operations.
Definition qgis.h:2964
RasterPipeInterfaceRole
Raster pipe interface roles.
Definition qgis.h:1622
CoverageValidityResult
Coverage validity results.
Definition qgis.h:2351
DataProviderReadFlag
Flags which control data provider construction.
Definition qgis.h:511
ScaleBarSegmentSizeMode
Modes for setting size for scale bar segments.
Definition qgis.h:5897
Aggregate
Available aggregates to calculate.
Definition qgis.h:6638
static int sfcgalVersionInt()
Returns the version of the SFCGAL library if QGIS is built with SFCGAL.
Definition qgis.cpp:718
UnknownLayerCrsBehavior
Behavior to use when encountering a layer with an unknown (invalid) CRS.
Definition qgis.h:2644
BrowserItemFilterFlag
Browser item filter flags.
Definition qgis.h:1056
QFlags< LayerItemCapability > LayerItemCapabilities
Flags for layer item capabilities.
Definition qgis.h:263
SymbolPreviewFlag
Flags for controlling how symbol preview images are generated.
Definition qgis.h:944
static const double DEFAULT_SEARCH_RADIUS_MM
Identify search radius in mm.
Definition qgis.h:7272
AnnotationItemGuiFlag
Flags for controlling how an annotation item behaves in the GUI.
Definition qgis.h:2700
MapBoxGlStyleSourceType
Available MapBox GL style source types.
Definition qgis.h:4824
LayoutUnitType
Types of layout units.
Definition qgis.h:5798
VectorDataProviderAttributeEditCapability
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:651
DashPatternLineEndingRule
Dash pattern line ending rules.
Definition qgis.h:3514
FieldMetadataProperty
Standard field metadata values.
Definition qgis.h:1915
MapGridAnnotationType
Annotation coordinate type.
Definition qgis.h:6153
TiledSceneRequestFlag
Flags which control how tiled scene requests behave.
Definition qgis.h:6501
RasterRendererCapability
Raster renderer capabilities.
Definition qgis.h:1693
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
Definition qgis.h:2003
HistoryProviderBackend
History provider backends.
Definition qgis.h:3741
static const double DEFAULT_SEGMENT_EPSILON
Default snapping tolerance for segments.
Definition qgis.h:7344
RasterExportType
Raster file export types.
Definition qgis.h:1799
SublayerPromptMode
Specifies how to handle layer sources with multiple sublayers.
Definition qgis.h:1858
TextVerticalAlignment
Text vertical alignment.
Definition qgis.h:3186
RelationshipCardinality
Relationship cardinality.
Definition qgis.h:4917
GradientType
Gradient types.
Definition qgis.h:3430
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
Definition qgis.h:5013
VectorProfileType
Types of elevation profiles to generate for vector sources.
Definition qgis.h:4663
GpsFeatureType
GPS feature types.
Definition qgis.h:2197
SourceHierarchyLevel
Defines the structural levels within a data source hierarchy.
Definition qgis.h:1547
VectorLayerTypeFlag
Vector layer type flags.
Definition qgis.h:455
MakeValidMethod
Algorithms to use when repairing invalid geometries.
Definition qgis.h:2364
QFlags< Map3DDebugFlag > Map3DDebugFlags
Definition qgis.h:4408
RangeLimits
Describes how the limits of a range are handled.
Definition qgis.h:4270
QFlags< ProjectFlag > ProjectFlags
Definition qgis.h:4374
VectorTemporalLimitMode
Mode for the handling of the limits of the filtering timeframe for vector features.
Definition qgis.h:2805
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4040
SqlLayerDefinitionCapability
SqlLayerDefinitionCapability enum lists the arguments supported by the provider when creating SQL que...
Definition qgis.h:1192
static int versionInt()
Version number used for comparing versions using the "Check QGIS Version" function.
Definition qgis.cpp:687
VectorEditResult
Specifies the result of a vector layer edit operation.
Definition qgis.h:1988
QFlags< VectorDataProviderAttributeEditCapability > VectorDataProviderAttributeEditCapabilities
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:663
Map3DProjectionType
3D map projection type
Definition qgis.h:4417
Axis
Cartesian axes.
Definition qgis.h:2658
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3869
QFlags< RelationshipCapability > RelationshipCapabilities
Relationship capabilities.
Definition qgis.h:4943
ArcGisRestServiceCapability
Available ArcGIS REST service capabilities.
Definition qgis.h:4864
QFlags< SymbolRenderHint > SymbolRenderHints
Symbol render hints.
Definition qgis.h:838
VolumeUnit
Units of volume.
Definition qgis.h:5670
CurvedTextFlag
Flags controlling behavior of curved text generation.
Definition qgis.h:3215
AttributeEditorType
Attribute editor types.
Definition qgis.h:6271
QFlags< LegendJsonRenderFlag > LegendJsonRenderFlags
Definition qgis.h:5125
QFlags< ProviderStyleStorageCapability > ProviderStyleStorageCapabilities
Definition qgis.h:6247
RubberBandComponent
Rubber band components.
Definition qgis.h:7185
EmbeddedScriptMode
Authorisation to run script embedded in projects.
Definition qgis.h:468
SymbolLayerUserFlag
User-specified flags controlling behavior of symbol layers.
Definition qgis.h:982
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
Definition qgis.h:2423
QFlags< SymbolFlag > SymbolFlags
Symbol flags.
Definition qgis.h:935
QFlags< ProcessingFeatureSourceDefinitionFlag > ProcessingFeatureSourceDefinitionFlags
Flags which control behavior for a Processing feature source.
Definition qgis.h:3962
MapGridFrameStyle
Style for map grid frames.
Definition qgis.h:6092
PointCloudAccessType
The access type of the data, local is for local files and remote for remote files (over HTTP).
Definition qgis.h:6971
ProfileExportType
Types of export for elevation profiles.
Definition qgis.h:4702
MeshElevationMode
Mesh layer elevation modes.
Definition qgis.h:4298
ProjectFileFormat
Flags which control project read behavior.
Definition qgis.h:4757
SnappingMode
SnappingMode defines on which layer the snapping is performed.
Definition qgis.h:798
SymbolType
Symbol types.
Definition qgis.h:671
RasterColorInterpretation
Raster color interpretation.
Definition qgis.h:5267
static const int USER_CRS_START_ID
Minimum ID number for a user-defined projection.
Definition qgis.h:7335
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
Definition qgis.h:4650
LabelPlacementEngineVersion
Labeling placement engine version.
Definition qgis.h:3097
Q_ENUM(ProcessingAlgorithmFlag)
static int geosVersionMinor()
GEOS Minor version number linked.
Definition qgis.cpp:761
MaterialRenderingTechnique
Material rendering techniques.
Definition qgis.h:4453
ColorModel
Color model types.
Definition qgis.h:6883
RendererUsage
Usage of the renderer.
Definition qgis.h:3683
SettingsTreeNodeOption
Options for named list nodes.
Definition qgis.h:727
BabelFormatCapability
Babel GPS format capabilities.
Definition qgis.h:2164
PostgresRelKind
Postgres database relkind options.
Definition qgis.h:6189
SegmentCalculationMethod
brief Method used to calculate the number of segments for circle approximation
Definition qgis.h:6994
WmsDimensionDefaultDisplay
QGIS Server WMS Dimension default display types.
Definition qgis.h:7152
GpsConnectionType
GPS connection types.
Definition qgis.h:2030
Q_ENUM(InputControllerType)
ElevationProfileRangeMethod
Elevation profile range calculation methods.
Definition qgis.h:6165
QFlags< DatabaseProviderConnectionCapability2 > DatabaseProviderConnectionCapabilities2
Definition qgis.h:6218
MouseHandlesAction
Action to be performed by the mouse handles.
Definition qgis.h:6921
ProcessingFeatureSourceDefinitionFlag
Flags which control behavior for a Processing feature source.
Definition qgis.h:3947
QFlags< TextComponent > TextComponents
Text components.
Definition qgis.h:3156
static QString geoNone()
Constant that holds the string representation for "No ellipse/No CRS".
Definition qgis.h:7436
DevToolsNodeRole
Dev tools node custom data roles.
Definition qgis.h:7038
LoadStyleFlag
Flags for loading layer styles.
Definition qgis.h:272
BetweenLineConstraint
Between line constraints which can be enabled.
Definition qgis.h:4311
QFlags< VectorTileProviderFlag > VectorTileProviderFlags
Vector tile data provider flags.
Definition qgis.h:6400
SymbolConverterCapability
Symbol converter capabilities.
Definition qgis.h:847
MetadataDateType
Date types for metadata.
Definition qgis.h:5233
QFlags< RasterTemporalCapabilityFlag > RasterTemporalCapabilityFlags
Flags for raster layer temporal capabilities.
Definition qgis.h:2873
ProcessingFeatureSourceFlag
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3973
RasterIdentifyFormat
Raster identify formats.
Definition qgis.h:5387
MapGridAnnotationDirection
Direction of grid annotations.
Definition qgis.h:6036
TextHorizontalAlignment
Text horizontal alignment.
Definition qgis.h:3167
SymbolFlag
Flags controlling behavior of symbols.
Definition qgis.h:929
LineExtensionSide
Designates whether the line extension constraint is currently soft locked with the previous or next v...
Definition qgis.h:4324
HttpMethod
Different methods of HTTP requests.
Definition qgis.h:1138
WkbType
The WKB type describes the number of dimensions a geometry has.
Definition qgis.h:314
QFlags< SldExportOption > SldExportOptions
Definition qgis.h:763
SymbolCoordinateReference
Symbol coordinate reference modes.
Definition qgis.h:3445
QFlags< ProcessingProviderFlag > ProcessingProviderFlags
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3810
TileRefinementProcess
Tiled scene tile refinement processes.
Definition qgis.h:6476
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
Definition qgis.h:6723
SelectionRenderingMode
Specifies how a selection should be rendered.
Definition qgis.h:1928
InputControllerType
Input controller types.
Definition qgis.h:6177
TextRendererFlag
Flags which control the behavior of rendering text.
Definition qgis.h:3645
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
Definition qgis.h:1955
CrsAxisDirection
Coordinate reference system axis directions.
Definition qgis.h:2538
ProcessingModelChildParameterSource
Processing model child parameter sources.
Definition qgis.h:4110
static int geosVersionInt()
GEOS version number linked.
Definition qgis.cpp:750
QFlags< MarkerLinePlacement > MarkerLinePlacements
Definition qgis.h:3378
QFlags< MapCanvasFlag > MapCanvasFlags
Flags controlling behavior of map canvases.
Definition qgis.h:3706
CrsWktVariant
Coordinate reference system WKT formatting variants.
Definition qgis.h:2618
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:6533
MapGridAnnotationFormat
Format for displaying map grid annotations.
Definition qgis.h:6055
DocumentationApi
Documentation API.
Definition qgis.h:6895
AutoRefreshMode
Map layer automatic refresh modes.
Definition qgis.h:2481
AnnotationPlacementMode
Annotation item placement modes.
Definition qgis.h:2687
ProcessingAlgorithmFlag
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3821
QFlags< InstancedMaterialFlag > InstancedMaterialFlags
Definition qgis.h:4488
SceneMode
The 3D scene mode used in 3D map views.
Definition qgis.h:4592
InstancedMaterialFlag
Optional per-instance properties of instanced materials.
Definition qgis.h:4483
FieldConfigurationFlag
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1891
SettingsOrigin
The setting origin describes where a setting is stored.
Definition qgis.h:4965
HorizontalAnchorPoint
Marker symbol horizontal anchor points.
Definition qgis.h:882
VectorFieldArrowScalingMethod
Algorithm to transform vector magnitude to length of arrow on the device in pixels.
Definition qgis.h:7219
QFlags< CurvedTextFlag > CurvedTextFlags
Flags controlling behavior of curved text generation.
Definition qgis.h:3228
ProcessingParameterFlag
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4025
LabelOverlapHandling
Label overlap handling.
Definition qgis.h:1268
static const double UI_SCALE_FACTOR
UI scaling factor.
Definition qgis.h:7320
FeatureSymbologyExport
Options for exporting features considering their symbology.
Definition qgis.h:6377
QFlags< LayerFilter > LayerFilters
Definition qgis.h:243
ProcessingDateTimeParameterDataType
Processing date time parameter data types.
Definition qgis.h:4097
DockableWidgetInitialState
Dockable widget initial states.
Definition qgis.h:7103
CoordinateTransformationFlag
Flags which adjust the coordinate transformations behave.
Definition qgis.h:2894
TextComponent
Text components.
Definition qgis.h:3143
DateTimeStatistic
Available date/time statistics.
Definition qgis.h:6707
AnimationState
Animation states.
Definition qgis.h:2757
TransformDirection
Indicates the direction (forward or inverse) of a transform.
Definition qgis.h:2882
LightSourceType
Light source types for 3D scenes.
Definition qgis.h:4539
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3985
QFlags< HistoryProviderBackend > HistoryProviderBackends
Definition qgis.h:3746
LabelPredefinedPointPosition
Positions for labels when using the Qgis::LabelPlacement::OrderedPositionsAroundPoint placement mode.
Definition qgis.h:1342
QFlags< FieldConfigurationFlag > FieldConfigurationFlags
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1906
UpsideDownLabelHandling
Handling techniques for upside down labels.
Definition qgis.h:1463
LinearMatrixMethod
Mathematical methods to use for solving linear matrix equations.
Definition qgis.h:7262
static const double DEFAULT_POINT_SIZE
The default size (in millimeters) for point marker symbols.
Definition qgis.h:7338
DeviceConnectionStatus
GPS connection status.
Definition qgis.h:2044
ProcessingNumberParameterType
Processing numeric parameter data types.
Definition qgis.h:4065
MapSettingsFlag
Flags which adjust the way maps are rendered.
Definition qgis.h:2929
QFlags< SqlLayerDefinitionCapability > SqlLayerDefinitionCapabilities
SQL layer definition capabilities.
Definition qgis.h:1200
ProcessingLogLevel
Logging level for algorithms to use when pushing feedback messages.
Definition qgis.h:3895
SelectBehavior
Specifies how a selection should be applied.
Definition qgis.h:1941
LayoutRenderFlag
Flags for controlling how a layout is rendered.
Definition qgis.h:5812
Utility class that encapsulates an action based on vector attributes.
Definition qgsaction.h:38
Utility class for calculating aggregates for a field (or expression) over the features from a vector ...
Utility functions for working with ArcGIS REST services.
An abstract base class for any elements of a drag and drop form.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
Represents a coordinate reference system (CRS).
Handles coordinate transforms between two coordinate systems.
Abstract base class for curved geometry type.
Definition qgscurve.h:36
Base class for all items in the model.
Definition qgsdataitem.h:50
Abstract base class for spatial data provider implementations.
Calculator for summary statistics and aggregates for a list of datetimes.
Contains configuration settings for an editor form.
Wraps a request for features to a vector layer (or directly its vector data provider).
An interface for objects which provide features via a getFeatures method.
Container of fields for a vector layer.
Definition qgsfields.h:45
A geometry is the spatial representation of a feature.
Encapsulates information relating to a GPS position fix.
A fill symbol layer which draws a smooth color gradient over a polygon.
A vector feature renderer which uses numeric attributes to classify features into different ranges.
Contains settings related to how the label engine places and formats labels for line features (or pol...
Stores global configuration for labeling engine.
Contains constants and enums relating to labeling.
Definition qgslabeling.h:33
A browser item that represents a layer that can be opened with one of the providers.
An individual grid which is drawn above the map content in a QgsLayoutItemMap.
A layout item subclass that displays SVG files or raster format images (jpg, png, ....
Stores information relating to the current rendering settings for a layout.
Contains detailed styling information relating to how a layout legend should be rendered.
A proxy model which provides an easy to use model to display the list of layers in widgets.
Base class for all map layer types.
Definition qgsmaplayer.h:83
Contains configuration for rendering maps.
Abstract base class for marker symbol layers.
Represents a mesh renderer settings for vector datasets displayed with arrows.
Represents a renderer settings for vector datasets.
Represents a streamline renderer settings for vector datasets displayed by streamlines.
Represents a mesh renderer settings for vector datasets displayed with wind barbs.
Interface for showing messages from QGIS in GUI independent way.
Registry for temporary fetched files.
Contains miscellaneous painting utility functions.
Definition qgspainting.h:32
Contains settings for how a map layer will be labeled.
Abstract base class for 2d point cloud renderers.
Abstract base class for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
Encapsulates settings relating to a feature source input to a processing algorithm.
QgsFeatureSource subclass which proxies methods to an underlying QgsFeatureSource,...
A datetime (or pure date or time) parameter for processing algorithms.
Base class for the definition of processing parameters.
A vector layer or feature source field parameter for processing algorithms.
An input file or folder parameter for processing algorithms.
A numeric parameter for processing algorithms.
A parameter for processing algorithms that need a list of input vector layers to construct a TIN.
Makes metadata of processing parameters available.
Abstract base class for processing providers.
Contains enumerations and other constants for use in processing algorithms and parameters.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:114
A store for object properties.
Holds data provider key, description, and associated shared library file or function pointer informat...
A fill symbol layer which places markers at random locations within polygons.
The RasterBandStats struct is a container for statistics about a single raster band.
Implementation of data provider temporal properties for QgsRasterDataProviders.
Base class for raster data providers.
The raster file writer which allows you to save a raster to a new file.
Base class for processing filters like renderers, reprojector, resampler etc.
Implementation of map layer temporal properties for raster layers.
Represents a raster layer.
Describes the origin of minimum and maximum values in a raster.
Contains a pipeline of raster interfaces for sequential raster processing.
Raster namespace.
Definition qgsraster.h:32
Represents a relationship between two vector layers.
Definition qgsrelation.h:42
Contains information about the context of a rendering operation.
Stores the appearance and layout settings for scalebar drawing with QgsScaleBarRenderer.
Represents a settings entry and provides methods for reading and writing settings values.
RAII signal blocking class.
Definition qgis.h:7585
Object * operator->()
Returns pointer to blocked QObject.
Definition qgis.h:7599
QgsSignalBlocker(Object *object)
Constructor for QgsSignalBlocker.
Definition qgis.h:7591
Abstract base class for simple marker symbol layers.
Stores configuration of snapping settings for the project.
Calculator for summary statistics for a list of doubles.
Calculator for summary statistics and aggregates for a list of strings.
Utility functions for working with strings.
Contains utility functions for working with symbols and symbol layers.
Abstract base class for all rendered symbols.
Definition qgssymbol.h:227
Base class for templated line symbols, e.g.
Implements a temporal controller based on a frame by frame navigation and animation.
Container for all settings relating to text rendering.
Utility functions for text rendering.
Handles rendering text using rich formatting options, including drop shadows, buffers and background ...
Provides calculations for tolerance values in map units.
Helper functions for various unit types.
Implementation of data provider temporal properties for QgsVectorDataProviders.
Base class for vector data providers.
A convenience class for writing vector layers to disk based formats (e.g.
A convenience class for exporting vector layers to a destination data provider.
Implementation of map layer temporal properties for vector layers.
Represents a vector layer which manages a vector based dataset.
Contains settings for simplifying geometries fetched from a vector layer.
Handles storage of information regarding WKB types and their properties.
Definition qgswkbtypes.h:42
FeatureCountState
Enumeration of feature count states.
Definition qgis.h:606
CreateLayerActionOnExisting
Actions to take when attempting to create a layer on an existing datasource.
Definition qgis.h:593
As part of the API refactoring and improvements which landed in QGIS
Q_DECL_DEPRECATED const long GEOCRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system in QGIS internal srs database.
Definition qgis.h:8323
Q_DECL_DEPRECATED CORE_EXPORT QString qgsVsiPrefix(const QString &path)
Returns a the vsi prefix which corresponds to a file path, or an empty string if the path is not asso...
Definition qgis.cpp:606
bool operator>(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is greater than the second.
Definition qgis.h:8237
CORE_EXPORT bool qgsVariantEqual(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether they are equal, two NULL values are always treated a...
Definition qgis.cpp:657
Q_DECL_DEPRECATED const long GEOSRID
Numeric ID for the EPSG:4326 geographic coordinate system.
Definition qgis.h:8316
T qgsEnumKeyToValue(const QString &key, const T &defaultValue, bool tryValueAsKey=true, bool *returnOk=nullptr)
Returns the value corresponding to the given key of an enum.
Definition qgis.h:8018
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
Definition qgis.h:7632
QString qgsMapJoinValues(const QMap< Key, Value > &map, const QString &separator)
Joins all the map values into a single string with each element separated by the given separator.
Definition qgis.h:7850
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
Definition qgis.h:7999
QString qgsFlagValueToKeys(const T &value, bool *returnOk=nullptr)
Returns the value for the given keys of a flag.
Definition qgis.h:8057
CORE_EXPORT size_t qHash(const QVariant &variant)
Hash for QVariant.
Definition qgis.cpp:611
QString qgsMapJoinKeys(const QMap< Key, Value > &map, const QString &separator)
Joins all the map keys into a single string with each element separated by the given separator.
Definition qgis.h:7834
T qgsFlagKeysToValue(const QString &keys, const T &defaultValue, bool tryValueAsKey=true, bool *returnOk=nullptr)
Returns the value corresponding to the given keys of a flag.
Definition qgis.h:8086
CORE_EXPORT bool qgsVariantGreaterThan(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether the first is greater than the second.
Definition qgis.cpp:601
unsigned long long qgssize
Qgssize is used instead of size_t, because size_t is stdlib type, unknown by SIP, and it would be har...
Definition qgis.h:8342
const QMap< T, QString > qgsEnumMap()
Returns a map of all enum entries.
Definition qgis.h:7982
bool qgsFloatNear(float a, float b, float epsilon=4 *FLT_EPSILON)
Compare two floats (but allow some difference).
Definition qgis.h:7790
CORE_EXPORT int qgsVariantCompare(const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck=false)
Compares two QVariant values.
Definition qgis.cpp:139
QString qgsSetJoin(const QSet< T > &set, const QString &separator)
Joins all the set values into a single string with each element separated by the given separator.
Definition qgis.h:7866
CORE_EXPORT double qgsPermissiveToDouble(QString string, bool &ok)
Converts a string to a double in a permissive way, e.g., allowing for incorrect numbers of digits bet...
Definition qgis.cpp:91
const QList< T > qgsEnumList()
Returns a list all enum entries.
Definition qgis.h:7965
double qgsRound(double number, int places)
Returns a double number, rounded (as close as possible) to the specified number of places.
Definition qgis.h:7819
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference).
Definition qgis.h:7725
bool qgsNanCompatibleEquals(double a, double b)
Compare two doubles, treating nan values as equal.
Definition qgis.h:7677
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Definition qgis.h:7619
void CORE_EXPORT * qgsMalloc(size_t size)
Allocates size bytes and returns a pointer to the allocated memory.
Definition qgis.cpp:112
QMap< QString, QString > QgsStringMap
Definition qgis.h:8332
Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system.
Definition qgis.h:8330
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
Compare two doubles using specified number of significant digits.
Definition qgis.h:7796
void CORE_EXPORT qgsFree(void *ptr)
Frees the memory space pointed to by ptr.
Definition qgis.cpp:134
bool qgsNumberNear(T a, T b, T epsilon=std::numeric_limits< T >::epsilon() *4)
Compare two numbers of type T (but allow some difference).
Definition qgis.h:7697
CORE_EXPORT qlonglong qgsPermissiveToLongLong(QString string, bool &ok)
Converts a string to an qlonglong in a permissive way, e.g., allowing for incorrect numbers of digits...
Definition qgis.cpp:105
CORE_EXPORT int qgsPermissiveToInt(QString string, bool &ok)
Converts a string to an integer in a permissive way, e.g., allowing for incorrect numbers of digits b...
Definition qgis.cpp:98
CORE_EXPORT bool qgsVariantLessThan(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether the first is less than the second.
Definition qgis.cpp:596
bool qgsDoubleGreaterThanOrNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles to see if one is greater than the other or very near to the other.
Definition qgis.h:7765
#define QHASH_FOR_CLASS_ENUM(T)
Definition qgis.h:50
bool qgsDoubleLessThanOrNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles to see if one is less than the other or very near to the other.
Definition qgis.h:7738
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.
Definition qgis.h:8253
#define SIP_DEPRECATED
Definition qgis_sip.h:113
#define SIP_ENUM_BASETYPE(type)
Definition qgis_sip.h:277
#define SIP_SKIP
Definition qgis_sip.h:138
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:270
#define SIP_MONKEYPATCH_FLAGS_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:271
#define SIP_MONKEYPATCH_SCOPEENUM
Definition qgis_sip.h:269
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)
Definition qgis_sip.h:272
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsProjectionSelectionWidget::CrsOptions)
Utility class for identifying a unique vertex within a geometry.
Definition qgsvertexid.h:35