QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
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 <QMetaEnum>
23#include <cfloat>
24#include <memory>
25#include <cmath>
26
27#include "qgis_core.h"
28#include "qgis_sip.h"
29
30#ifdef SIP_RUN
31% ModuleHeaderCode
32#include <qgis.h>
33% End
34
35% ModuleCode
36int QgisEvent = QEvent::User + 1;
37% End
38#endif
39
40#ifndef SIP_RUN
41// qHash implementation for scoped enum type
42// https://gitlab.com/frostasm/programming-knowledge-base/-/snippets/20120
43#define QHASH_FOR_CLASS_ENUM(T) \
44 inline uint qHash(const T &t, uint seed) { \
45 return ::qHash(static_cast<typename std::underlying_type<T>::type>(t), seed); \
46 }
47#endif
48
53class CORE_EXPORT Qgis
54{
55 Q_GADGET
56 Q_CLASSINFO( "RegisterEnumClassesUnscoped", "false" )
57
58 public:
59
65 static QString version();
66
72 static int versionInt();
73
79 static QString releaseName();
80
82 static const char *QGIS_DEV_VERSION;
83
89 static QString devVersion();
90
91 // Enumerations
92 //
93
100 {
101 ClearStorage = 1 << 0,
102
103 ReadConfiguration = 1 << 1,
104 UpdateConfiguration = 1 << 2,
105 DeleteConfiguration = 1 << 3,
106 CreateConfiguration = 1 << 4,
107
108 ReadCertificateIdentity = 1 << 5,
109 UpdateCertificateIdentity = 1 << 6,
110 DeleteCertificateIdentity = 1 << 7,
111 CreateCertificateIdentity = 1 << 8,
112
113 ReadSslCertificateCustomConfig = 1 << 9,
114 UpdateSslCertificateCustomConfig = 1 << 10,
115 DeleteSslCertificateCustomConfig = 1 << 11,
116 CreateSslCertificateCustomConfig = 1 << 12,
117
118 ReadCertificateAuthority = 1 << 13,
119 UpdateCertificateAuthority = 1 << 14,
120 DeleteCertificateAuthority = 1 << 15,
121 CreateCertificateAuthority = 1 << 16,
122
123 ReadCertificateTrustPolicy = 1 << 17,
124 UpdateCertificateTrustPolicy = 1 << 18,
125 DeleteCertificateTrustPolicy = 1 << 19,
126 CreateCertificateTrustPolicy = 1 << 20,
127
128 ReadMasterPassword = 1 << 21,
129 UpdateMasterPassword = 1 << 22,
130 DeleteMasterPassword = 1 << 23,
131 CreateMasterPassword = 1 << 24,
132
133 ReadSetting = 1 << 25,
134 UpdateSetting = 1 << 26,
135 DeleteSetting = 1 << 27,
136 CreateSetting = 1 << 28,
137
138 };
139 Q_ENUM( AuthConfigurationStorageCapability )
140
141
147
148
154 {
155 Info = 0,
156 Warning = 1,
157 Critical = 2,
158 Success = 3,
159 NoLevel = 4,
160 };
161 Q_ENUM( MessageLevel )
162
163
169 {
170 Vector SIP_MONKEYPATCH_COMPAT_NAME( VectorLayer ),
171 Raster SIP_MONKEYPATCH_COMPAT_NAME( RasterLayer ),
172 Plugin SIP_MONKEYPATCH_COMPAT_NAME( PluginLayer ),
173 Mesh SIP_MONKEYPATCH_COMPAT_NAME( MeshLayer ),
174 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( VectorTileLayer ),
175 Annotation SIP_MONKEYPATCH_COMPAT_NAME( AnnotationLayer ),
176 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( PointCloudLayer ),
177 Group SIP_MONKEYPATCH_COMPAT_NAME( GroupLayer ),
178 TiledScene,
179 };
180 Q_ENUM( LayerType )
181
182
188 {
189 RasterLayer = 1,
190 NoGeometry = 2,
191 PointLayer = 4,
192 LineLayer = 8,
193 PolygonLayer = 16,
194 HasGeometry = PointLayer | LineLayer | PolygonLayer,
195 VectorLayer = NoGeometry | HasGeometry,
196 PluginLayer = 32,
197 WritableLayer = 64,
198 MeshLayer = 128,
199 VectorTileLayer = 256,
200 PointCloudLayer = 512,
201 AnnotationLayer = 1024,
202 TiledSceneLayer = 2048,
203 All = RasterLayer | VectorLayer | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer,
204 SpatialLayer = RasterLayer | HasGeometry | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer
205 };
206 Q_DECLARE_FLAGS( LayerFilters, LayerFilter )
207 Q_FLAG( LayerFilters )
208
209
214 enum class LoadStyleFlag : int SIP_ENUM_BASETYPE( IntFlag )
215 {
216 IgnoreMissingStyleErrors = 1 << 0,
217 };
218 Q_ENUM( LoadStyleFlag )
219
220
225 Q_DECLARE_FLAGS( LoadStyleFlags, LoadStyleFlag )
226 Q_FLAG( LoadStyleFlags )
227
256 {
257 Unknown = 0,
258 Point = 1,
259 LineString = 2,
260 Polygon = 3,
261 Triangle = 17,
262 MultiPoint = 4,
263 MultiLineString = 5,
264 MultiPolygon = 6,
265 GeometryCollection = 7,
266 CircularString = 8,
267 CompoundCurve = 9,
268 CurvePolygon = 10,
269 MultiCurve = 11,
270 MultiSurface = 12,
271 PolyhedralSurface = 15,
272 TIN = 16,
273 NoGeometry = 100,
274 PointZ = 1001,
275 LineStringZ = 1002,
276 PolygonZ = 1003,
277 TriangleZ = 1017,
278 MultiPointZ = 1004,
279 MultiLineStringZ = 1005,
280 MultiPolygonZ = 1006,
281 GeometryCollectionZ = 1007,
282 CircularStringZ = 1008,
283 CompoundCurveZ = 1009,
284 CurvePolygonZ = 1010,
285 MultiCurveZ = 1011,
286 MultiSurfaceZ = 1012,
287 PolyhedralSurfaceZ = 1015,
288 TINZ = 1016,
289 PointM = 2001,
290 LineStringM = 2002,
291 PolygonM = 2003,
292 TriangleM = 2017,
293 MultiPointM = 2004,
294 MultiLineStringM = 2005,
295 MultiPolygonM = 2006,
296 GeometryCollectionM = 2007,
297 CircularStringM = 2008,
298 CompoundCurveM = 2009,
299 CurvePolygonM = 2010,
300 MultiCurveM = 2011,
301 MultiSurfaceM = 2012,
302 PolyhedralSurfaceM = 2015,
303 TINM = 2016,
304 PointZM = 3001,
305 LineStringZM = 3002,
306 PolygonZM = 3003,
307 MultiPointZM = 3004,
308 MultiLineStringZM = 3005,
309 MultiPolygonZM = 3006,
310 GeometryCollectionZM = 3007,
311 CircularStringZM = 3008,
312 CompoundCurveZM = 3009,
313 CurvePolygonZM = 3010,
314 MultiCurveZM = 3011,
315 MultiSurfaceZM = 3012,
316 PolyhedralSurfaceZM = 3015,
317 TINZM = 3016,
318 TriangleZM = 3017,
319 Point25D = 0x80000001,
320 LineString25D,
321 Polygon25D,
322 MultiPoint25D,
323 MultiLineString25D,
324 MultiPolygon25D
325 };
326 Q_ENUM( WkbType )
327
328
337 {
338 Point SIP_MONKEYPATCH_COMPAT_NAME( PointGeometry ),
339 Line SIP_MONKEYPATCH_COMPAT_NAME( LineGeometry ),
340 Polygon SIP_MONKEYPATCH_COMPAT_NAME( PolygonGeometry ),
341 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownGeometry ),
342 Null SIP_MONKEYPATCH_COMPAT_NAME( NullGeometry ),
343 };
344 Q_ENUM( GeometryType )
345
346
351 {
352 UnknownDataType = 0,
353 Byte = 1,
354 Int8 = 14,
355 UInt16 = 2,
356 Int16 = 3,
357 UInt32 = 4,
358 Int32 = 5,
359 Float32 = 6,
360 Float64 = 7,
361 CInt16 = 8,
362 CInt32 = 9,
363 CFloat32 = 10,
364 CFloat64 = 11,
365 ARGB32 = 12,
366 ARGB32_Premultiplied = 13
367 };
368 Q_ENUM( DataType )
369
370
375 enum class CaptureTechnique : int
376 {
377 StraightSegments,
378 CircularString,
379 Streaming,
380 Shape,
381 };
382 Q_ENUM( CaptureTechnique )
383
384
389 enum class VectorLayerTypeFlag : int SIP_ENUM_BASETYPE( IntFlag )
390 {
391 SqlQuery = 1 << 0
392 };
393 Q_ENUM( VectorLayerTypeFlag )
396 Q_FLAG( VectorLayerTypeFlags )
397
402 enum class PythonEmbeddedMode SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, PythonMacroMode ) : int
403 {
404 Never = 0,
405 Ask = 1,
406 SessionOnly = 2,
407 Always = 3,
408 NotForThisSession,
409 };
410 Q_ENUM( PythonEmbeddedMode )
411
412
416 enum class PythonEmbeddedType : int
417 {
418 Macro = 0,
419 ExpressionFunction = 1,
420 };
421 Q_ENUM( PythonEmbeddedType )
422
423
431 {
432 TrustDataSource SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustDataSource ) = 1 << 0,
433 SkipFeatureCount = 1 << 1,
434 LoadDefaultStyle SIP_MONKEYPATCH_COMPAT_NAME( FlagLoadDefaultStyle ) = 1 << 2,
435 SkipGetExtent = 1 << 3,
436 SkipFullScan = 1 << 4,
437 ForceReadOnly = 1 << 5,
438 SkipCredentialsRequest = 1 << 6,
439 ParallelThreadLoading = 1 << 7,
440 };
441 Q_ENUM( DataProviderReadFlag )
442
443
451 Q_FLAG( DataProviderReadFlags )
452
453 // TODO QGIS 4 -- remove NoCapabilities and rely on VectorProviderCapabilities() instead
454
463 {
464 NoCapabilities = 0,
465 AddFeatures = 1,
466 DeleteFeatures = 1 << 1,
467 ChangeAttributeValues = 1 << 2,
468 AddAttributes = 1 << 3,
469 DeleteAttributes = 1 << 4,
470 CreateSpatialIndex = 1 << 6,
471 SelectAtId = 1 << 7,
472 ChangeGeometries = 1 << 8,
473 SelectEncoding = 1 << 13,
474 CreateAttributeIndex = 1 << 12,
475 SimplifyGeometries = 1 << 14,
476 SimplifyGeometriesWithTopologicalValidation = 1 << 15,
477 TransactionSupport = 1 << 16,
478 CircularGeometries = 1 << 17,
479 ChangeFeatures = 1 << 18,
480 RenameAttributes = 1 << 19,
481 FastTruncate = 1 << 20,
482 ReadLayerMetadata = 1 << 21,
483 WriteLayerMetadata = 1 << 22,
484 CancelSupport = 1 << 23,
485 CreateRenderer = 1 << 24,
486 CreateLabeling = 1 << 25,
487 ReloadData = 1 << 26,
488 FeatureSymbology = 1 << 27,
489 EditingCapabilities = AddFeatures | DeleteFeatures | ChangeAttributeValues | ChangeGeometries | AddAttributes | DeleteAttributes | RenameAttributes,
490 };
491 Q_ENUM( VectorProviderCapability )
492
493
502
509 {
510 Uncounted = -2,
511 UnknownCount = -1,
512 };
513 Q_ENUM( FeatureCountState )
514
515
522 {
523 Unknown SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexUnknown ) = 0,
524 NotPresent SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexNotPresent ) = 1,
525 Present SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexPresent ) = 2,
526 };
527 Q_ENUM( SpatialIndexPresence )
528
529
541 {
542 NoFeaturesAvailable = 0,
543 FeaturesAvailable,
544 FeaturesMaybeAvailable
545 };
546 Q_ENUM( FeatureAvailability )
547
548
554 {
555 EditAlias = 1 << 0,
556 EditComment = 1 << 1,
557 };
558
559 Q_ENUM( VectorDataProviderAttributeEditCapability )
560
561
568
574 {
575 Marker,
576 Line,
577 Fill,
578 Hybrid
579 };
580 Q_ENUM( SymbolType )
581
582
588 {
589 ScaleArea,
590 ScaleDiameter
591 };
592 Q_ENUM( ScaleMethod )
593
594
599 {
600 Custom,
601 Variant,
602 String,
603 StringList,
604 VariantMap,
605 Bool,
606 Integer,
607 Double,
608 EnumFlag,
609 Color
610 };
611 Q_ENUM( SettingsType )
612
613
618 {
619 Root,
620 Standard,
621 NamedList,
622 };
623 Q_ENUM( SettingsTreeNodeType )
624
625
629 enum class SettingsTreeNodeOption : int SIP_ENUM_BASETYPE( IntFlag )
630 {
631 NamedListSelectedItemSetting = 1 << 0,
632 };
633
634 Q_ENUM( SettingsTreeNodeOption )
637
646 {
647 Invalid SIP_MONKEYPATCH_COMPAT_NAME( InvalidProperty ),
648 Static SIP_MONKEYPATCH_COMPAT_NAME( StaticProperty ),
649 Field SIP_MONKEYPATCH_COMPAT_NAME( FieldBasedProperty ),
650 Expression SIP_MONKEYPATCH_COMPAT_NAME( ExpressionBasedProperty ),
651 };
652 Q_ENUM( PropertyType )
653
654
659 enum class SldExportOption : int SIP_ENUM_BASETYPE( IntFlag )
660 {
661 NoOptions = 0,
662 Svg = 1 << 0,
663 Png = 1 << 1,
664 };
665 Q_ENUM( SldExportOption )
667 Q_FLAG( SldExportOptions )
668
674 enum class SldExportVendorExtension : int SIP_ENUM_BASETYPE( IntFlag )
675 {
676 NoVendorExtension = 0,
677 GeoServerVendorExtension = 1 << 1,
678 DeegreeVendorExtension = 1 << 2,
679 };
680 Q_ENUM( SldExportVendorExtension )
681
682
683
687 enum class SettingsOption : int SIP_ENUM_BASETYPE( IntFlag )
688 {
689 SaveFormerValue = 1 << 1,
690 SaveEnumFlagAsInt = 1 << 2,
691 };
692 Q_ENUM( SettingsOption )
693 Q_DECLARE_FLAGS( SettingsOptions, SettingsOption )
694 Q_FLAG( SettingsOptions )
695
701 {
702 ActiveLayer = 1,
703 AllLayers = 2,
704 AdvancedConfiguration = 3,
705 };
706 Q_ENUM( SnappingMode )
707
708
713 {
714 NoSnap SIP_MONKEYPATCH_COMPAT_NAME( NoSnapFlag ) = 0,
715 Vertex SIP_MONKEYPATCH_COMPAT_NAME( VertexFlag ) = 1 << 0,
716 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentFlag ) = 1 << 1,
717 Area SIP_MONKEYPATCH_COMPAT_NAME( AreaFlag ) = 1 << 2,
718 Centroid SIP_MONKEYPATCH_COMPAT_NAME( CentroidFlag ) = 1 << 3,
719 MiddleOfSegment SIP_MONKEYPATCH_COMPAT_NAME( MiddleOfSegmentFlag ) = 1 << 4,
720 LineEndpoint SIP_MONKEYPATCH_COMPAT_NAME( LineEndpointFlag ) = 1 << 5,
721 };
722 Q_ENUM( SnappingType )
725 Q_FLAG( SnappingTypes )
726
733 {
734 DynamicRotation = 1 << 1,
735 IsSymbolLayerSubSymbol = 1 << 2,
736 ForceVectorRendering = 1 << 3,
737 ExcludeSymbolBuffers = 1 << 4,
738 };
739 Q_ENUM( SymbolRenderHint )
742 Q_FLAG( SymbolRenderHints )
743
749 enum class SymbolRotationMode : int
750 {
751 RespectMapRotation,
752 IgnoreMapRotation,
753 };
754 Q_ENUM( SymbolRotationMode )
755
756
761 enum class FeatureRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
762 {
763 AffectsLabeling = 1 << 0,
764 };
765 Q_ENUM( FeatureRendererFlag )
766
767
773 Q_FLAG( FeatureRendererFlags )
774
780 enum class SymbolFlag : int SIP_ENUM_BASETYPE( IntFlag )
781 {
782 RendererShouldUseSymbolLevels = 1 << 0,
783 AffectsLabeling = 1 << 1,
784 };
785 Q_ENUM( SymbolFlag )
787 Q_DECLARE_FLAGS( SymbolFlags, SymbolFlag )
788 Q_FLAG( SymbolFlags )
789
796 {
797 FlagIncludeCrosshairsForMarkerSymbols = 1 << 0,
798 };
799 Q_ENUM( SymbolPreviewFlag )
802 Q_FLAG( SymbolPreviewFlags )
803
813 enum class SymbolLayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
814 {
815 DisableFeatureClipping = 1 << 0,
816 CanCalculateMaskGeometryPerFeature = 1 << 1,
817 AffectsLabeling = 1 << 2,
818 };
819 Q_ENUM( SymbolLayerFlag )
822 Q_FLAG( SymbolLayerFlags )
823
833 enum class SymbolLayerUserFlag : int SIP_ENUM_BASETYPE( IntFlag )
834 {
835 DisableSelectionRecoloring = 1 << 0,
836 };
837 Q_ENUM( SymbolLayerUserFlag )
838
839
845 Q_FLAG( SymbolLayerUserFlags )
846
853 {
854 Collection,
855 Directory,
856 Layer,
857 Error,
858 Favorites,
859 Project,
860 Custom,
861 Fields,
862 Field,
863 };
864 Q_ENUM( BrowserItemType )
865
866
872 {
873 NotPopulated,
874 Populating,
875 Populated,
876 };
877 Q_ENUM( BrowserItemState )
878
879
885 {
886 NoCapabilities = 0,
887 SetCrs = 1 << 0,
888 Fertile = 1 << 1,
889 Fast = 1 << 2,
890 Collapse = 1 << 3,
891 Rename = 1 << 4,
892 Delete = 1 << 5,
893 ItemRepresentsFile = 1 << 6,
894 RefreshChildrenWhenItemIsRefreshed = 1 << 7,
895 ReadOnly = 1 << 8,
896 };
897 Q_ENUM( BrowserItemCapability )
901
910 {
911 NoCapabilities SIP_MONKEYPATCH_COMPAT_NAME( NoDataCapabilities ) = 0,
912 Files SIP_MONKEYPATCH_COMPAT_NAME( File ) = 1,
913 Directories SIP_MONKEYPATCH_COMPAT_NAME( Dir ) = 1 << 1,
914 Databases SIP_MONKEYPATCH_COMPAT_NAME( Database ) = 1 << 2,
915 NetworkSources SIP_MONKEYPATCH_COMPAT_NAME( Net ) = 1 << 3,
916 };
917 Q_ENUM( DataItemProviderCapability )
918
919
928
935 {
936 NoType,
937 Vector,
938 Raster,
939 Point,
940 Line,
941 Polygon,
942 TableLayer,
943 Database,
944 Table,
945 Plugin,
946 Mesh,
947 VectorTile,
948 PointCloud,
949 TiledScene,
950 };
951 Q_ENUM( BrowserLayerType )
952
953
959 {
960 Default,
961 NeverMonitor,
962 AlwaysMonitor,
963 };
964 Q_ENUM( BrowserDirectoryMonitoring )
965
966
970 enum class HttpMethod : int
971 {
972 Get = 0,
973 Post = 1
974 };
975 Q_ENUM( HttpMethod )
976
977
983 {
984 Success SIP_MONKEYPATCH_COMPAT_NAME( NoError ) = 0,
985 ErrorCreatingDataSource SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateDataSource ),
986 ErrorCreatingLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateLayer ),
987 ErrorAttributeTypeUnsupported SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeTypeUnsupported ),
988 ErrorAttributeCreationFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeCreationFailed ),
989 ErrorProjectingFeatures SIP_MONKEYPATCH_COMPAT_NAME( ErrProjection ),
990 ErrorFeatureWriteFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrFeatureWriteFailed ),
991 ErrorInvalidLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidLayer ),
992 ErrorInvalidProvider SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidProvider ),
993 ErrorProviderUnsupportedFeature SIP_MONKEYPATCH_COMPAT_NAME( ErrProviderUnsupportedFeature ),
994 ErrorConnectionFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrConnectionFailed ),
995 UserCanceled SIP_MONKEYPATCH_COMPAT_NAME( ErrUserCanceled ),
996 };
997 Q_ENUM( VectorExportResult )
998
999
1004 {
1005 FieldAliases = 1 << 0,
1006 FieldComments = 1 << 2,
1007 };
1008 Q_ENUM( VectorFileWriterCapability )
1009
1010
1016
1022 {
1023 SubsetStringFilter = 1 << 1,
1024 GeometryColumn = 1 << 2,
1025 PrimaryKeys = 1 << 3,
1026 UnstableFeatureIds = 1 << 4
1027 };
1028 Q_ENUM( SqlLayerDefinitionCapability )
1032
1038 enum class SqlKeywordCategory : int
1039 {
1040 Keyword,
1041 Constant,
1042 Function,
1043 Geospatial,
1044 Operator,
1045 Math,
1046 Aggregate,
1047 String,
1048 Identifier
1049 };
1050 Q_ENUM( SqlKeywordCategory )
1051
1052
1056 enum class DriveType : int
1057 {
1058 Unknown,
1059 Invalid,
1060 Removable,
1061 Fixed,
1062 Remote,
1063 CdRom,
1064 RamDisk,
1065 Cloud,
1066 };
1067 Q_ENUM( DriveType )
1068
1069
1074 {
1075 Deferred SIP_MONKEYPATCH_COMPAT_NAME( DownloadLater ),
1076 Immediate SIP_MONKEYPATCH_COMPAT_NAME( DownloadImmediately ),
1077 };
1078 Q_ENUM( ActionStart )
1079
1080
1086 {
1087 FollowEngineSetting,
1088 NeverShow,
1089 };
1090 Q_ENUM( UnplacedLabelVisibility )
1091
1092
1097 enum class LabelOverlapHandling : int
1098 {
1099 PreventOverlap,
1100 AllowOverlapIfRequired,
1101 AllowOverlapAtNoCost,
1102 };
1103 Q_ENUM( LabelOverlapHandling )
1104
1105
1110 enum class LabelPrioritization : int
1111 {
1112 PreferCloser,
1113 PreferPositionOrdering,
1114 };
1115 Q_ENUM( LabelPrioritization )
1116
1117
1125 {
1126 AroundPoint,
1127 OverPoint,
1128 Line,
1129 Curved,
1130 Horizontal,
1131 Free,
1132 OrderedPositionsAroundPoint,
1133 PerimeterCurved,
1134 OutsidePolygons,
1135 };
1136 Q_ENUM( LabelPlacement )
1137
1138
1146 {
1147 TopLeft,
1148 TopSlightlyLeft,
1149 TopMiddle,
1150 TopSlightlyRight,
1151 TopRight,
1152 MiddleLeft,
1153 MiddleRight,
1154 BottomLeft,
1155 BottomSlightlyLeft,
1156 BottomMiddle,
1157 BottomSlightlyRight,
1158 BottomRight,
1159 OverPoint,
1160 };
1161 Q_ENUM( LabelPredefinedPointPosition )
1162
1163
1172 {
1173 FromPoint,
1174 FromSymbolBounds,
1175 };
1176 Q_ENUM( LabelOffsetType )
1177
1178
1186 {
1187 AboveLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveLeft ),
1188 Above SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAbove ),
1189 AboveRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveRight ),
1190 Left SIP_MONKEYPATCH_COMPAT_NAME( QuadrantLeft ),
1191 Over SIP_MONKEYPATCH_COMPAT_NAME( QuadrantOver ),
1192 Right SIP_MONKEYPATCH_COMPAT_NAME( QuadrantRight ),
1193 BelowLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowLeft ),
1194 Below SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelow ),
1195 BelowRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowRight ),
1196 };
1197 Q_ENUM( LabelQuadrantPosition )
1198
1199
1206 {
1207 OnLine = 1,
1208 AboveLine = 2,
1209 BelowLine = 4,
1210 MapOrientation = 8,
1211 };
1212 Q_ENUM( LabelLinePlacementFlag )
1213
1214
1222 Q_FLAG( LabelLinePlacementFlags )
1223
1231 {
1232 AllowPlacementOutsideOfPolygon = 1 << 0,
1233 AllowPlacementInsideOfPolygon = 1 << 1,
1234 };
1235 Q_ENUM( LabelPolygonPlacementFlag )
1236
1237
1245
1254 {
1255 FlipUpsideDownLabels SIP_MONKEYPATCH_COMPAT_NAME( Upright ),
1256 AllowUpsideDownWhenRotationIsDefined SIP_MONKEYPATCH_COMPAT_NAME( ShowDefined ),
1257 AlwaysAllowUpsideDown SIP_MONKEYPATCH_COMPAT_NAME( ShowAll )
1258 };
1259 Q_ENUM( UpsideDownLabelHandling )
1260
1261
1269 {
1270 Left SIP_MONKEYPATCH_COMPAT_NAME( MultiLeft ) = 0,
1271 Center SIP_MONKEYPATCH_COMPAT_NAME( MultiCenter ),
1272 Right SIP_MONKEYPATCH_COMPAT_NAME( MultiRight ),
1273 FollowPlacement SIP_MONKEYPATCH_COMPAT_NAME( MultiFollowPlacement ),
1274 Justify SIP_MONKEYPATCH_COMPAT_NAME( MultiJustify ),
1275 };
1276 Q_ENUM( LabelMultiLineAlignment )
1277
1278
1285 {
1286 Vector SIP_MONKEYPATCH_COMPAT_NAME( FilterVector ) = 1,
1287 Raster SIP_MONKEYPATCH_COMPAT_NAME( FilterRaster ),
1288 Mesh SIP_MONKEYPATCH_COMPAT_NAME( FilterMesh ),
1289 MeshDataset SIP_MONKEYPATCH_COMPAT_NAME( FilterMeshDataset ),
1290 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( FilterPointCloud ),
1291 VectorTile,
1292 TiledScene,
1293 };
1294 Q_ENUM( FileFilterType )
1295
1296
1301 enum class SublayerQueryFlag : int SIP_ENUM_BASETYPE( IntFlag )
1302 {
1303 FastScan = 1 << 0,
1304 ResolveGeometryType = 1 << 1,
1305 CountFeatures = 1 << 2,
1306 IncludeSystemTables = 1 << 3,
1307 };
1310 Q_ENUM( SublayerQueryFlag )
1311 Q_FLAG( SublayerQueryFlags )
1312
1313
1318 enum class SublayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
1319 {
1320 SystemTable = 1 << 0,
1321 };
1323 Q_DECLARE_FLAGS( SublayerFlags, SublayerFlag )
1324 Q_ENUM( SublayerFlag )
1325 Q_FLAG( SublayerFlags )
1326
1327
1335 {
1336 Linear SIP_MONKEYPATCH_COMPAT_NAME( Interpolated ) = 0,
1337 Discrete = 1,
1338 Exact = 2,
1339 };
1340 Q_ENUM( ShaderInterpolationMethod )
1341
1342
1350 {
1351 Continuous = 1,
1352 EqualInterval = 2,
1353 Quantile = 3,
1354 };
1355 Q_ENUM( ShaderClassificationMethod )
1356
1357
1363 {
1364 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownRole ) = 0,
1365 Provider SIP_MONKEYPATCH_COMPAT_NAME( ProviderRole ) = 1,
1366 Renderer SIP_MONKEYPATCH_COMPAT_NAME( RendererRole ) = 2,
1367 Brightness SIP_MONKEYPATCH_COMPAT_NAME( BrightnessRole ) = 3,
1368 Resampler SIP_MONKEYPATCH_COMPAT_NAME( ResamplerRole ) = 4,
1369 Projector SIP_MONKEYPATCH_COMPAT_NAME( ProjectorRole ) = 5,
1370 Nuller SIP_MONKEYPATCH_COMPAT_NAME( NullerRole ) = 6,
1371 HueSaturation SIP_MONKEYPATCH_COMPAT_NAME( HueSaturationRole ) = 7,
1372 };
1373 Q_ENUM( RasterPipeInterfaceRole )
1374
1375
1380 {
1382 ResampleFilter,
1384 Provider
1385 };
1386 Q_ENUM( RasterResamplingStage )
1387
1388
1393 enum class RasterRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
1394 {
1395 InternalLayerOpacityHandling = 1 << 0,
1396 UseNoDataForOutOfRangePixels = 1 << 1,
1397 };
1398
1405
1406 Q_ENUM( RasterRendererFlag )
1407 Q_FLAG( RasterRendererFlags )
1408
1409
1415 {
1416 UsesMultipleBands = 1 << 0,
1417 };
1418 Q_ENUM( RasterRendererCapability )
1419
1420
1427
1434 {
1435 Generic = 0,
1436 PixelCount = 1,
1437 Name = 2,
1438 Min = 3,
1439 Max = 4,
1440 MinMax = 5,
1441 Red = 6,
1442 Green = 7,
1443 Blue = 8,
1444 Alpha = 9,
1445 RedMin = 10,
1446 GreenMin = 11,
1447 BlueMin = 12,
1448 AlphaMin = 13,
1449 RedMax = 14,
1450 GreenMax = 15,
1451 BlueMax = 16,
1452 AlphaMax = 17,
1453 MaxCount
1454 };
1455 Q_ENUM( RasterAttributeTableFieldUsage )
1456
1457
1463 {
1464 Thematic = 0,
1465 Athematic = 1
1466 };
1467 Q_ENUM( RasterAttributeTableType )
1468
1469
1476 {
1477 Raw = 0,
1478 RenderedImage SIP_MONKEYPATCH_COMPAT_NAME( Image ) = 1
1479 };
1480 Q_ENUM( RasterExportType )
1481
1482
1489 {
1490 Success SIP_MONKEYPATCH_COMPAT_NAME( NoError ) = 0,
1491 SourceProviderError = 1,
1492 DestinationProviderError SIP_MONKEYPATCH_COMPAT_NAME( DestProviderError ) = 2,
1493 CreateDatasourceError = 3,
1494 WriteError = 4,
1495 NoDataConflict = 5,
1496 Canceled SIP_MONKEYPATCH_COMPAT_NAME( WriteCanceled ) = 6,
1497 };
1498 Q_ENUM( RasterFileWriterResult )
1499
1500
1505 enum class MeshEditingErrorType : int
1506 {
1507 NoError,
1508 InvalidFace,
1509 TooManyVerticesInFace,
1510 FlatFace,
1511 UniqueSharedVertex,
1512 InvalidVertex,
1513 ManifoldFace,
1514 };
1515 Q_ENUM( MeshEditingErrorType )
1516
1517
1522 enum class FilePathType : int
1523 {
1524 Absolute,
1525 Relative,
1526 };
1527 Q_ENUM( FilePathType )
1528
1529
1534 enum class SublayerPromptMode : int
1535 {
1536 AlwaysAsk,
1537 AskExcludingRasterBands,
1538 NeverAskSkip,
1539 NeverAskLoadAll,
1540 };
1541 Q_ENUM( SublayerPromptMode )
1542
1543
1551 {
1552 Unknown SIP_MONKEYPATCH_COMPAT_NAME( OriginUnknown ),
1553 Provider SIP_MONKEYPATCH_COMPAT_NAME( OriginProvider ),
1554 Join SIP_MONKEYPATCH_COMPAT_NAME( OriginJoin ),
1555 Edit SIP_MONKEYPATCH_COMPAT_NAME( OriginEdit ),
1556 Expression SIP_MONKEYPATCH_COMPAT_NAME( OriginExpression )
1557 };
1558 Q_ENUM( FieldOrigin )
1559
1560
1567 enum class FieldConfigurationFlag : int SIP_ENUM_BASETYPE( IntFlag )
1568 {
1569 NoFlag = 0,
1570 NotSearchable = 1 << 1,
1571 HideFromWms = 1 << 2,
1572 HideFromWfs = 1 << 3,
1573 };
1574 Q_ENUM( FieldConfigurationFlag )
1575
1576
1584 Q_FLAG( FieldConfigurationFlags )
1585
1591 enum class FieldMetadataProperty : int
1592 {
1593 GeometryCrs = 0x1000,
1594 GeometryWkbType = 0x1001,
1595 CustomProperty = 0x100000,
1596 };
1597 Q_ENUM( FieldMetadataProperty )
1598
1599
1604 enum class SelectionRenderingMode : int
1605 {
1606 Default,
1607 CustomColor,
1608 CustomSymbol,
1609 };
1610 Q_ENUM( SelectionRenderingMode )
1611
1612
1618 {
1619 SetSelection,
1620 AddToSelection,
1621 IntersectSelection,
1622 RemoveFromSelection,
1623 };
1624 Q_ENUM( SelectBehavior )
1625
1626
1632 {
1633 Intersect,
1634 Within,
1635 };
1636 Q_ENUM( SelectGeometryRelationship )
1637
1638
1643 enum class SelectionFlag : int SIP_ENUM_BASETYPE( IntFlag )
1644 {
1645 SingleFeatureSelection = 1 << 0,
1646 ToggleSelection = 1 << 1,
1647 };
1648
1654 Q_DECLARE_FLAGS( SelectionFlags, SelectionFlag )
1655
1656 Q_ENUM( SelectionFlag )
1657 Q_FLAG( SelectionFlags )
1658
1659
1665 {
1666 Success = 0,
1667 EmptyGeometry = 1,
1668 EditFailed = 2,
1669 FetchFeatureFailed = 3,
1670 InvalidLayer = 4,
1671 };
1672 Q_ENUM( VectorEditResult )
1673
1674
1680 {
1681 SemiTransparentCircle,
1682 Cross,
1683 NoMarker,
1684 };
1685 Q_ENUM( VertexMarkerType )
1686
1687
1691 enum class ContentStatus : int
1692 {
1693 NotStarted,
1694 Running,
1695 Finished,
1696 Failed,
1697 Canceled,
1698 };
1699 Q_ENUM( ContentStatus )
1700
1701
1706 enum class GpsConnectionType : int
1707 {
1708 Automatic,
1709 Internal,
1710 Serial,
1711 Gpsd,
1712 };
1713 Q_ENUM( GpsConnectionType )
1714
1715
1720 enum class DeviceConnectionStatus SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, GpsConnectionStatus ) : int
1721 {
1722 Disconnected,
1723 Connecting,
1724 Connected,
1725 };
1726 Q_ENUM( DeviceConnectionStatus )
1727
1728
1736 {
1737 NoData,
1738 NoFix,
1739 Fix2D,
1740 Fix3D
1741 };
1743
1744
1751 {
1752 Unknown,
1753 Gps,
1754 Glonass,
1755 Galileo,
1756 BeiDou,
1757 Qzss,
1758 Navic,
1759 Sbas,
1760 };
1762
1769 {
1770 Unknown = -1,
1771 Invalid,
1772 GPS,
1773 DGPS,
1774 PPS,
1775 RTK,
1776 FloatRTK,
1777 Estimated,
1778 Manual,
1779 Simulation,
1780 };
1781 Q_ENUM( GpsQualityIndicator )
1782
1783
1788 enum class GpsNavigationStatus : int
1789 {
1790 NotValid,
1791 Safe,
1792 Caution,
1793 Unsafe,
1794 };
1796
1802 enum class GpsInformationComponent : int SIP_ENUM_BASETYPE( IntFlag )
1803 {
1804 Location = 1 << 0,
1805 Altitude = 1 << 1,
1806 GroundSpeed = 1 << 2,
1807 Bearing = 1 << 3,
1808 TotalTrackLength = 1 << 4,
1809 TrackDistanceFromStart = 1 << 5,
1810 Pdop = 1 << 6,
1811 Hdop = 1 << 7,
1812 Vdop = 1 << 8,
1813 HorizontalAccuracy = 1 << 9,
1814 VerticalAccuracy = 1 << 10,
1815 HvAccuracy = 1 << 11,
1816 SatellitesUsed = 1 << 12,
1817 Timestamp = 1 << 13,
1818 TrackStartTime = 1 << 14,
1819 TrackEndTime = 1 << 15,
1820 TrackDistanceSinceLastPoint = 1 << 16,
1821 TrackTimeSinceLastPoint = 1 << 17,
1822 GeoidalSeparation = 1 << 18,
1823 EllipsoidAltitude = 1 << 19,
1824 };
1825
1832 Q_ENUM( GpsInformationComponent )
1833 Q_FLAG( GpsInformationComponents )
1834
1835
1840 enum class BabelFormatCapability : int SIP_ENUM_BASETYPE( IntFlag )
1841 {
1842 Import = 1 << 0,
1843 Export = 1 << 1,
1844 Waypoints = 1 << 2,
1845 Routes = 1 << 3,
1846 Tracks = 1 << 4,
1847 };
1850 Q_ENUM( BabelFormatCapability )
1851 Q_FLAG( BabelFormatCapabilities )
1852
1853
1859 enum class BabelCommandFlag : int SIP_ENUM_BASETYPE( IntFlag )
1860 {
1861 QuoteFilePaths = 1 << 0,
1862 };
1865 Q_ENUM( BabelCommandFlag )
1866 Q_FLAG( BabelCommandFlags )
1867
1868
1873 enum class GpsFeatureType : int
1874 {
1875 Waypoint,
1876 Route,
1877 Track,
1878 };
1879 Q_ENUM( GpsFeatureType )
1880
1881
1889 {
1890 Success = 0,
1891 NothingHappened = 1000,
1892 InvalidBaseGeometry,
1893 InvalidInputGeometryType,
1894 SelectionIsEmpty,
1895 SelectionIsGreaterThanOne,
1896 GeometryEngineError,
1897 LayerNotEditable,
1898 // Add part issues
1899 AddPartSelectedGeometryNotFound,
1900 AddPartNotMultiGeometry,
1901 // Add ring issues
1902 AddRingNotClosed,
1903 AddRingNotValid,
1904 AddRingCrossesExistingRings,
1905 AddRingNotInExistingFeature,
1906 // Split features
1907 SplitCannotSplitPoint,
1908 GeometryTypeHasChanged,
1909 };
1910 Q_ENUM( GeometryOperationResult )
1911
1912
1918 {
1919 AllowSelfTouchingHoles SIP_MONKEYPATCH_COMPAT_NAME( FlagAllowSelfTouchingHoles ) = 1 << 0,
1920 };
1923 Q_ENUM( GeometryValidityFlag )
1924 Q_FLAG( GeometryValidityFlags )
1925
1926
1931 {
1932 QgisInternal SIP_MONKEYPATCH_COMPAT_NAME( ValidatorQgisInternal ),
1933 Geos SIP_MONKEYPATCH_COMPAT_NAME( ValidatorGeos ),
1934 };
1935 Q_ENUM( GeometryValidationEngine )
1936
1937
1947 Q_ENUM( BufferSide )
1948
1949
1955 {
1956 Round SIP_MONKEYPATCH_COMPAT_NAME( CapRound ) = 1,
1957 Flat SIP_MONKEYPATCH_COMPAT_NAME( CapFlat ),
1958 Square SIP_MONKEYPATCH_COMPAT_NAME( CapSquare ),
1959 };
1960 Q_ENUM( EndCapStyle )
1961
1962
1968 {
1969 Round SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleRound ) = 1,
1970 Miter SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleMiter ),
1971 Bevel SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleBevel ),
1972 };
1973 Q_ENUM( JoinStyle )
1974
1975
1980 enum class GeosCreationFlag : int SIP_ENUM_BASETYPE( IntFlag )
1981 {
1982 RejectOnInvalidSubGeometry = 1 << 0,
1983 SkipEmptyInteriorRings = 1 << 1,
1984 };
1985 Q_ENUM( GeosCreationFlag )
1986
1987
1993 Q_FLAG( GeosCreationFlags )
1994
2000 enum class CoverageValidityResult : int
2001 {
2002 Invalid = 0,
2003 Valid = 1,
2004 Error = 2,
2005 };
2006 Q_ENUM( CoverageValidityResult )
2007
2008
2013 enum class MakeValidMethod : int
2014 {
2015 Linework = 0,
2016 Structure = 1,
2017 };
2018 Q_ENUM( MakeValidMethod )
2019
2020
2028 {
2029 NoFlags = 0,
2030 NoGeometry = 1,
2031 SubsetOfAttributes = 2,
2032 ExactIntersect = 4,
2033 IgnoreStaticNodesDuringExpressionCompilation = 8,
2034 EmbeddedSymbols = 16,
2035 };
2036 Q_ENUM( FeatureRequestFlag )
2037
2038
2046 Q_FLAG( FeatureRequestFlags )
2047
2056 {
2057 NoFilter SIP_MONKEYPATCH_COMPAT_NAME( FilterNone ),
2058 Fid SIP_MONKEYPATCH_COMPAT_NAME( FilterFid ),
2059 Expression SIP_MONKEYPATCH_COMPAT_NAME( FilterExpression ),
2060 Fids SIP_MONKEYPATCH_COMPAT_NAME( FilterFids )
2061 };
2062 Q_ENUM( FeatureRequestFilterType )
2063
2064
2072 {
2073 NoCheck SIP_MONKEYPATCH_COMPAT_NAME( GeometryNoCheck ) = 0,
2074 SkipInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometrySkipInvalid ) = 1,
2075 AbortOnInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometryAbortOnInvalid ) = 2,
2076 };
2077 Q_ENUM( InvalidGeometryCheck )
2078
2079
2084 enum class SpatialFilterType : int
2085 {
2086 NoFilter,
2087 BoundingBox,
2088 DistanceWithin,
2089 };
2090 Q_ENUM( SpatialFilterType )
2091
2092
2097 enum class FileOperationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2098 {
2099 IncludeMetadataFile = 1 << 0,
2100 IncludeStyleFile = 1 << 1,
2101 };
2104 Q_ENUM( FileOperationFlag )
2105 Q_FLAG( FileOperationFlags )
2106
2107
2112 enum class MapLayerProperty : int SIP_ENUM_BASETYPE( IntFlag )
2113 {
2114 UsersCannotToggleEditing = 1 << 0,
2115 IsBasemapLayer = 1 << 1,
2116 };
2119 Q_ENUM( MapLayerProperty )
2120 Q_FLAG( MapLayerProperties )
2121
2122
2127 enum class AutoRefreshMode : int
2128 {
2129 Disabled = 0,
2130 ReloadData = 1,
2131 RedrawOnly = 2,
2132 };
2133 Q_ENUM( AutoRefreshMode )
2134
2135
2140 enum class DataProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
2141 {
2142 IsBasemapSource = 1 << 1,
2143 FastExtent2D = 1 << 2,
2144 FastExtent3D = 1 << 3,
2145 };
2148 Q_ENUM( DataProviderFlag )
2149 Q_FLAG( DataProviderFlags )
2150
2151
2158 enum class CrsType : int
2159 {
2160 Unknown,
2161 Geodetic,
2162 Geocentric,
2163 Geographic2d,
2164 Geographic3d,
2165 Vertical,
2166 Projected,
2167 Compound,
2168 Temporal,
2169 Engineering,
2170 Bound,
2171 Other,
2172 DerivedProjected,
2173 };
2174 Q_ENUM( CrsType )
2175
2176
2183 enum class CrsAxisDirection : int
2184 {
2185 North,
2186 NorthNorthEast,
2187 NorthEast,
2188 EastNorthEast,
2189 East,
2190 EastSouthEast,
2191 SouthEast,
2192 SouthSouthEast,
2193 South,
2194 SouthSouthWest,
2195 SouthWest,
2196 WestSouthWest,
2197 West,
2198 WestNorthWest,
2199 NorthWest,
2200 NorthNorthWest,
2201 GeocentricX,
2202 GeocentricY,
2203 GeocentricZ,
2204 Up,
2205 Down,
2206 Forward,
2207 Aft,
2208 Port,
2209 Starboard,
2210 Clockwise,
2211 CounterClockwise,
2212 ColumnPositive,
2213 ColumnNegative,
2214 RowPositive,
2215 RowNegative,
2216 DisplayRight,
2217 DisplayLeft,
2218 DisplayUp,
2219 DisplayDown,
2220 Future,
2221 Past,
2222 Towards,
2223 AwayFrom,
2224 Unspecified,
2225 };
2226 Q_ENUM( CrsAxisDirection )
2227
2228
2233 enum class CoordinateOrder : int
2234 {
2235 Default,
2236 XY,
2237 YX,
2238 };
2239 Q_ENUM( CoordinateOrder )
2240
2241
2249 {
2250 ShortString,
2251 MediumString,
2252 FullString,
2253 };
2254 Q_ENUM( CrsIdentifierType )
2255
2256
2264 {
2265 Wkt1Gdal SIP_MONKEYPATCH_COMPAT_NAME( WKT1_GDAL ),
2266 Wkt1Esri SIP_MONKEYPATCH_COMPAT_NAME( WKT1_ESRI ),
2267 Wkt2_2015 SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2015 ),
2268 Wkt2_2015Simplified SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2015_SIMPLIFIED ),
2269 Wkt2_2019 SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2019 ),
2270 Wkt2_2019Simplified SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2019_SIMPLIFIED ),
2271 Preferred SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED ) = Wkt2_2019,
2272 PreferredSimplified SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_SIMPLIFIED ) = Wkt2_2019Simplified,
2273 PreferredGdal SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_GDAL ) = Wkt2_2019,
2274 };
2275 Q_ENUM( CrsWktVariant )
2276
2277
2282 enum class Axis : int
2283 {
2284 X,
2285 Y,
2286 Z
2287 };
2288 Q_ENUM( Axis )
2289
2290
2295 enum class AnnotationItemFlag : int SIP_ENUM_BASETYPE( IntFlag )
2296 {
2297 ScaleDependentBoundingBox = 1 << 0,
2298 SupportsReferenceScale = 1 << 1,
2299 SupportsCallouts = 1 << 2,
2300 };
2303 Q_ENUM( AnnotationItemFlag )
2304 Q_FLAG( AnnotationItemFlags )
2305
2306
2312 {
2313 SpatialBounds = 0,
2314 FixedSize,
2315 RelativeToMapFrame,
2316 };
2317 Q_ENUM( AnnotationPlacementMode )
2318
2319
2324 enum class AnnotationItemGuiFlag : int SIP_ENUM_BASETYPE( IntFlag )
2325 {
2326 FlagNoCreationTools = 1 << 0,
2327 };
2330 Q_ENUM( AnnotationItemGuiFlag )
2331 Q_FLAG( AnnotationItemGuiFlags )
2332
2333
2338 enum class AnnotationItemNodeType : int
2339 {
2340 VertexHandle,
2341 CalloutHandle,
2342 };
2343 Q_ENUM( AnnotationItemNodeType )
2344
2345
2351 {
2352 Success,
2353 Invalid,
2354 ItemCleared,
2355 };
2356 Q_ENUM( AnnotationItemEditOperationResult )
2357
2358
2366 {
2367 Disabled SIP_MONKEYPATCH_COMPAT_NAME( NavigationOff ),
2368 Animated,
2369 FixedRange,
2370 Movie,
2371 };
2372 Q_ENUM( TemporalNavigationMode )
2373
2374
2382 {
2383 Forward,
2384 Reverse,
2385 Idle,
2386 };
2387 Q_ENUM( AnimationState )
2388
2389
2394 enum class PlaybackOperation : int
2395 {
2396 SkipToStart,
2397 PreviousFrame,
2398 PlayReverse,
2399 Pause,
2400 PlayForward,
2401 NextFrame,
2402 SkipToEnd,
2403 };
2404 Q_ENUM( PlaybackOperation )
2405
2406
2412 {
2413 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2414 FeatureDateTimeInstantFromField SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeInstantFromField ),
2415 FeatureDateTimeStartAndEndFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromFields ),
2416 FeatureDateTimeStartAndDurationFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndDurationFromFields ),
2417 FeatureDateTimeStartAndEndFromExpressions SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromExpressions ),
2418 RedrawLayerOnly SIP_MONKEYPATCH_COMPAT_NAME( ModeRedrawLayerOnly ),
2419 };
2420 Q_ENUM( VectorTemporalMode )
2421
2422
2428 {
2429 IncludeBeginExcludeEnd = 0,
2430 IncludeBeginIncludeEnd,
2431 };
2432 Q_ENUM( VectorTemporalLimitMode )
2433
2434
2440 {
2441 HasFixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ProviderHasFixedTemporalRange ) = 0,
2442 StoresFeatureDateTimeInstantInField SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeInstantInField ),
2443 StoresFeatureDateTimeStartAndEndInSeparateFields SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeStartAndEndInSeparateFields ),
2444 };
2445 Q_ENUM( VectorDataProviderTemporalMode )
2446
2447
2453 {
2454 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2455 TemporalRangeFromDataProvider SIP_MONKEYPATCH_COMPAT_NAME( ModeTemporalRangeFromDataProvider ) = 1,
2456 RedrawLayerOnly SIP_MONKEYPATCH_COMPAT_NAME( ModeRedrawLayerOnly ) = 2,
2457 FixedRangePerBand = 3,
2458 RepresentsTemporalValues = 4,
2459 };
2460 Q_ENUM( RasterTemporalMode )
2461
2462
2468 {
2469 MatchUsingWholeRange,
2470 MatchExactUsingStartOfRange,
2471 MatchExactUsingEndOfRange,
2472 FindClosestMatchToStartOfRange,
2473 FindClosestMatchToEndOfRange
2474 };
2475 Q_ENUM( TemporalIntervalMatchMethod )
2476
2477
2483 {
2484 RequestedTimesMustExactlyMatchAllAvailableTemporalRanges = 1 << 0,
2485 };
2486 Q_ENUM( RasterTemporalCapabilityFlag )
2487
2488
2495
2502 {
2503 Forward SIP_MONKEYPATCH_COMPAT_NAME( ForwardTransform ),
2504 Reverse SIP_MONKEYPATCH_COMPAT_NAME( ReverseTransform )
2505 };
2506 Q_ENUM( TransformDirection )
2507
2508
2514 {
2515 BallparkTransformsAreAppropriate = 1 << 0,
2516 IgnoreImpossibleTransformations = 1 << 1,
2517 };
2518 Q_ENUM( CoordinateTransformationFlag )
2519
2520
2527
2534 {
2535 Antialiasing = 0x01,
2536 DrawEditingInfo = 0x02,
2537 ForceVectorOutput = 0x04,
2538 UseAdvancedEffects = 0x08,
2539 DrawLabeling = 0x10,
2540 UseRenderingOptimization = 0x20,
2541 DrawSelection = 0x40,
2542 DrawSymbolBounds = 0x80,
2543 RenderMapTile = 0x100,
2544 RenderPartialOutput = 0x200,
2545 RenderPreviewJob = 0x400,
2546 RenderBlocking = 0x800,
2547 LosslessImageRendering = 0x1000,
2548 Render3DMap = 0x2000,
2549 HighQualityImageTransforms = 0x4000,
2550 SkipSymbolRendering = 0x8000,
2551 ForceRasterMasks = 0x10000,
2552 RecordProfile = 0x20000,
2553 AlwaysUseGlobalMasks = 0x40000,
2554 };
2557 Q_ENUM( MapSettingsFlag )
2558 Q_FLAG( MapSettingsFlags )
2559
2560
2566 {
2567 DrawEditingInfo = 0x01,
2568 ForceVectorOutput = 0x02,
2569 UseAdvancedEffects = 0x04,
2570 UseRenderingOptimization = 0x08,
2571 DrawSelection = 0x10,
2572 DrawSymbolBounds = 0x20,
2573 RenderMapTile = 0x40,
2574 Antialiasing = 0x80,
2575 RenderPartialOutput = 0x100,
2576 RenderPreviewJob = 0x200,
2577 RenderBlocking = 0x400,
2578 RenderSymbolPreview = 0x800,
2579 LosslessImageRendering = 0x1000,
2580 ApplyScalingWorkaroundForTextRendering = 0x2000,
2581 Render3DMap = 0x4000,
2582 ApplyClipAfterReprojection = 0x8000,
2583 RenderingSubSymbol = 0x10000,
2584 HighQualityImageTransforms = 0x20000,
2585 SkipSymbolRendering = 0x40000,
2586 RecordProfile = 0x80000,
2587 AlwaysUseGlobalMasks = 0x100000,
2588 DisableSymbolClippingToExtent = 0x200000,
2589 };
2592 Q_ENUM( RenderContextFlag )
2593 Q_FLAG( RenderContextFlags )
2594
2595
2600 enum class MapLayerRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
2601 {
2602 RenderPartialOutputs = 1 << 0,
2603 RenderPartialOutputOverPreviousCachedImage = 1 << 1,
2604 AffectsLabeling = 1 << 2,
2605 };
2606 Q_ENUM( MapLayerRendererFlag )
2607
2608
2614 Q_FLAG( MapLayerRendererFlags )
2615
2616 // refs for below dox: https://github.com/qgis/QGIS/pull/1286#issuecomment-39806854
2617 // https://github.com/qgis/QGIS/pull/8573#issuecomment-445585826
2618
2624 {
2625 AlwaysOutlines SIP_MONKEYPATCH_COMPAT_NAME( TextFormatAlwaysOutlines ),
2626 AlwaysText SIP_MONKEYPATCH_COMPAT_NAME( TextFormatAlwaysText ),
2627 PreferText,
2628 };
2629 Q_ENUM( TextRenderFormat )
2630
2631
2639 {
2640 UseAllLabels = 1 << 1,
2641 UsePartialCandidates = 1 << 2,
2642 // TODO QGIS 4.0: remove
2643 RenderOutlineLabels = 1 << 3,
2644 DrawLabelRectOnly = 1 << 4,
2645 DrawCandidates = 1 << 5,
2646 DrawUnplacedLabels = 1 << 6,
2647 CollectUnplacedLabels = 1 << 7,
2648 DrawLabelMetrics = 1 << 8,
2649 };
2650 Q_ENUM( LabelingFlag )
2651
2652
2660 Q_FLAG( LabelingFlags )
2661
2670 {
2671 Version1 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion1 ),
2672 Version2 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion2 ),
2673 };
2674 Q_ENUM( LabelPlacementEngineVersion )
2675
2676
2684 {
2685 Horizontal SIP_MONKEYPATCH_COMPAT_NAME( HorizontalOrientation ),
2686 Vertical SIP_MONKEYPATCH_COMPAT_NAME( VerticalOrientation ),
2687 RotationBased SIP_MONKEYPATCH_COMPAT_NAME( RotationBasedOrientation ),
2688 };
2689 Q_ENUM( TextOrientation )
2690
2691
2699 {
2700 Rectangle SIP_MONKEYPATCH_COMPAT_NAME( Rect ),
2701 Point,
2702 Labeling SIP_MONKEYPATCH_COMPAT_NAME( Label ),
2703 RectangleCapHeightBased,
2704 RectangleAscentBased,
2705 };
2706 Q_ENUM( TextLayoutMode )
2707
2708
2716 {
2717 Text,
2718 Buffer,
2719 Background,
2720 Shadow,
2721 };
2722 Q_ENUM( TextComponent )
2723
2724
2732 {
2733 Left SIP_MONKEYPATCH_COMPAT_NAME( AlignLeft ),
2734 Center SIP_MONKEYPATCH_COMPAT_NAME( AlignCenter ),
2735 Right SIP_MONKEYPATCH_COMPAT_NAME( AlignRight ),
2736 Justify SIP_MONKEYPATCH_COMPAT_NAME( AlignJustify ),
2737 };
2738 Q_ENUM( TextHorizontalAlignment )
2739
2740
2751 {
2752 Top SIP_MONKEYPATCH_COMPAT_NAME( AlignTop ),
2753 VerticalCenter SIP_MONKEYPATCH_COMPAT_NAME( AlignVCenter ),
2754 Bottom SIP_MONKEYPATCH_COMPAT_NAME( AlignBottom ),
2755 };
2756 Q_ENUM( TextVerticalAlignment )
2757
2758
2767 {
2768 Normal,
2769 SuperScript,
2770 SubScript,
2771 };
2772 Q_ENUM( TextCharacterVerticalAlignment )
2773
2774
2782 {
2783 Distance = 0,
2784 SnapToGrid = 1,
2785 Visvalingam = 2,
2786 SnappedToGridGlobal = 3,
2787 };
2788 Q_ENUM( VectorSimplificationAlgorithm )
2789
2790
2798 {
2799 NoSimplification = 0,
2800 GeometrySimplification = 1,
2801 AntialiasingSimplification = 2,
2802 FullSimplification = 3,
2803 };
2804 Q_ENUM( VectorRenderingSimplificationFlag )
2805
2806
2815
2822 {
2823 Generic,
2824 ShadowOffset,
2825 BlurSize,
2826 GlowSpread,
2827 };
2828 Q_ENUM( RenderSubcomponentProperty )
2829
2830
2835 {
2836 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentVertex ) = 1,
2837 Curve SIP_MONKEYPATCH_COMPAT_NAME( CurveVertex ) = 2,
2838 };
2839 Q_ENUM( VertexType )
2840
2841
2849 {
2850 Square,
2851 Diamond,
2852 Pentagon,
2853 Hexagon,
2854 Triangle,
2855 EquilateralTriangle,
2856 Star,
2857 Arrow,
2858 Circle,
2859 Cross,
2860 CrossFill,
2861 Cross2,
2862 Line,
2863 ArrowHead,
2864 ArrowHeadFilled,
2865 SemiCircle,
2866 ThirdCircle,
2867 QuarterCircle,
2868 QuarterSquare,
2869 HalfSquare,
2870 DiagonalHalfSquare,
2871 RightHalfTriangle,
2872 LeftHalfTriangle,
2873 Octagon,
2874 SquareWithCorners,
2875 AsteriskFill,
2876 HalfArc,
2877 ThirdArc,
2878 QuarterArc,
2879 ParallelogramRight,
2880 ParallelogramLeft,
2881 Trapezoid,
2882 Shield,
2883 DiamondStar,
2884 Heart,
2885 Decagon,
2886 RoundedSquare,
2887 };
2888 Q_ENUM( MarkerShape )
2889
2890
2898 {
2899 Interval = 1 << 0,
2900 Vertex = 1 << 1,
2901 LastVertex = 1 << 2,
2902 FirstVertex = 1 << 3,
2903 CentralPoint = 1 << 4,
2904 CurvePoint = 1 << 5,
2905 SegmentCenter = 1 << 6,
2906 InnerVertices = 1 << 7,
2907 };
2908 Q_ENUM( MarkerLinePlacement )
2910 Q_FLAG( MarkerLinePlacements )
2911
2918 {
2919 IntervalCartesian2D = 1 << 0,
2920 IntervalZ = 1 << 1,
2921 IntervalM = 1 << 2,
2922 Vertex = 1 << 3,
2923 };
2924 Q_ENUM( LinearReferencingPlacement )
2925
2926
2932 {
2933 CartesianDistance2D,
2934 Z,
2935 M,
2936 };
2937 Q_ENUM( LinearReferencingLabelSource )
2938
2939
2947 {
2948 SimpleTwoColor,
2949 ColorRamp,
2950 };
2951 Q_ENUM( GradientColorSource )
2952
2953
2961 {
2962 Linear,
2963 Radial,
2964 Conical,
2965 };
2966 Q_ENUM( GradientType )
2967
2968
2976 {
2977 Feature,
2978 Viewport,
2979 };
2980 Q_ENUM( SymbolCoordinateReference )
2981
2982
2991 {
2992 Pad,
2993 Reflect,
2994 Repeat,
2995 };
2996 Q_ENUM( GradientSpread )
2997
2998
3006 {
3007 Absolute SIP_MONKEYPATCH_COMPAT_NAME( AbsoluteCount ),
3008 DensityBased SIP_MONKEYPATCH_COMPAT_NAME( DensityBasedCount ),
3009 };
3010 Q_ENUM( PointCountMethod )
3011
3012
3017 enum class MarkerClipMode : int
3018 {
3019 NoClipping,
3020 Shape,
3021 CentroidWithin,
3022 CompletelyWithin,
3023 };
3024 Q_ENUM( MarkerClipMode )
3025
3026
3031 enum class LineClipMode : int
3032 {
3033 ClipPainterOnly,
3034 ClipToIntersection,
3035 NoClipping,
3036 };
3037 Q_ENUM( LineClipMode )
3038
3039
3045 {
3046 NoRule,
3047 FullDash,
3048 HalfDash,
3049 FullGap,
3050 HalfGap,
3051 };
3052 Q_ENUM( DashPatternLineEndingRule )
3053
3054
3060 {
3061 ScaleBothDashAndGap,
3062 ScaleDashOnly,
3063 ScaleGapOnly,
3064 };
3065 Q_ENUM( DashPatternSizeAdjustment )
3066
3067
3075 {
3076 Color SIP_MONKEYPATCH_COMPAT_NAME( GraduatedColor ),
3077 Size SIP_MONKEYPATCH_COMPAT_NAME( GraduatedSize ),
3078 };
3079 Q_ENUM( GraduatedMethod )
3080
3081
3087 {
3088 NoLabels,
3089 EveryLabel,
3090 FirstLabel,
3091 LastLabel,
3092 FirstAndLastLabels,
3093 };
3094 Q_ENUM( PlotAxisSuffixPlacement )
3095
3096
3100 enum class DpiMode
3101 {
3102 All = 7,
3103 Off = 0,
3104 QGIS = 1,
3105 UMN = 2,
3106 GeoServer = 4,
3107 };
3108 Q_ENUM( DpiMode )
3109
3110
3115 {
3116 Undefined = 0,
3117 StandardDpi = 1,
3118 HighDpi = 2,
3119 };
3120 Q_ENUM( TilePixelRatio )
3121
3122 // NOTE -- the hardcoded numbers here must match QFont::Capitalization!
3123
3124
3132 {
3133 MixedCase = 0,
3134 AllUppercase = 1,
3135 AllLowercase = 2,
3136 ForceFirstLetterToCapital = 4,
3137 SmallCaps = 5,
3138 TitleCase = 1004,
3139 UpperCamelCase = 1005,
3140 AllSmallCaps = 1006,
3141 };
3142 Q_ENUM( Capitalization )
3143
3144
3149 enum class TextRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3150 {
3151 WrapLines = 1 << 0,
3152 };
3153 Q_ENUM( TextRendererFlag )
3155 Q_FLAG( TextRendererFlags )
3156
3163 {
3164 MapBox,
3165 Esri,
3166 };
3168
3175 {
3176 Clockwise,
3177 CounterClockwise,
3178 NoOrientation,
3179 };
3180 Q_ENUM( AngularDirection )
3181
3182
3187 enum class RendererUsage : int
3188 {
3189 View,
3190 Export,
3191 Unknown,
3192 };
3193 Q_ENUM( RendererUsage )
3194
3195
3200 enum class MapCanvasFlag : int SIP_ENUM_BASETYPE( IntFlag )
3201 {
3202 ShowMainAnnotationLayer = 1 << 0,
3203 };
3204 Q_ENUM( MapCanvasFlag )
3205
3206
3211 Q_DECLARE_FLAGS( MapCanvasFlags, MapCanvasFlag )
3212 Q_FLAG( MapCanvasFlags )
3213
3219 enum class ViewSyncModeFlag : int SIP_ENUM_BASETYPE( IntFlag )
3220 {
3221 Sync3DTo2D = 1 << 0,
3222 Sync2DTo3D = 1 << 1,
3223 };
3224 Q_ENUM( ViewSyncModeFlag )
3226
3233 {
3234 Always,
3235 WhenOutsideVisibleExtent,
3236 Never,
3237 };
3238 Q_ENUM( MapRecenteringMode )
3239
3240
3245 enum class HistoryProviderBackend : int SIP_ENUM_BASETYPE( IntFlag )
3246 {
3247 LocalProfile = 1 << 0,
3248// Project = 1 << 1, //!< QGIS Project (not yet implemented)
3249 };
3250 Q_ENUM( HistoryProviderBackend )
3252 Q_FLAG( HistoryProviderBackends )
3253
3262 {
3263 MapLayer SIP_MONKEYPATCH_COMPAT_NAME( TypeMapLayer ) = -2,
3264 VectorAnyGeometry SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorAnyGeometry ) = -1,
3265 VectorPoint SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPoint ) = 0,
3266 VectorLine SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorLine ) = 1,
3267 VectorPolygon SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPolygon ) = 2,
3268 Raster SIP_MONKEYPATCH_COMPAT_NAME( TypeRaster ) = 3,
3269 File SIP_MONKEYPATCH_COMPAT_NAME( TypeFile ) = 4,
3270 Vector SIP_MONKEYPATCH_COMPAT_NAME( TypeVector ) = 5,
3271 Mesh SIP_MONKEYPATCH_COMPAT_NAME( TypeMesh ) = 6,
3272 Plugin SIP_MONKEYPATCH_COMPAT_NAME( TypePlugin ) = 7,
3273 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( TypePointCloud ) = 8,
3274 Annotation SIP_MONKEYPATCH_COMPAT_NAME( TypeAnnotation ) = 9,
3275 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorTile ) = 10
3276 };
3277 Q_ENUM( ProcessingSourceType )
3278
3279
3280
3288 {
3289 DeemphasiseSearchResults SIP_MONKEYPATCH_COMPAT_NAME( FlagDeemphasiseSearchResults ) = 1 << 1,
3290 CompatibleWithVirtualRaster SIP_MONKEYPATCH_COMPAT_NAME( FlagCompatibleWithVirtualRaster ) = 1 << 2,
3291 };
3293
3302 Q_FLAG( ProcessingProviderFlags )
3303
3304
3312 {
3313 HideFromToolbox SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromToolbox ) = 1 << 1,
3314 HideFromModeler SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromModeler ) = 1 << 2,
3315 SupportsBatch SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsBatch ) = 1 << 3,
3316 CanCancel SIP_MONKEYPATCH_COMPAT_NAME( FlagCanCancel ) = 1 << 4,
3317 RequiresMatchingCrs SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresMatchingCrs ) = 1 << 5,
3318 NoThreading SIP_MONKEYPATCH_COMPAT_NAME( FlagNoThreading ) = 1 << 6,
3319 DisplayNameIsLiteral SIP_MONKEYPATCH_COMPAT_NAME( FlagDisplayNameIsLiteral ) = 1 << 7,
3320 SupportsInPlaceEdits SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsInPlaceEdits ) = 1 << 8,
3321 KnownIssues SIP_MONKEYPATCH_COMPAT_NAME( FlagKnownIssues ) = 1 << 9,
3322 CustomException SIP_MONKEYPATCH_COMPAT_NAME( FlagCustomException ) = 1 << 10,
3323 PruneModelBranchesBasedOnAlgorithmResults SIP_MONKEYPATCH_COMPAT_NAME( FlagPruneModelBranchesBasedOnAlgorithmResults ) = 1 << 11,
3324 SkipGenericModelLogging SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGenericModelLogging ) = 1 << 12,
3325 NotAvailableInStandaloneTool SIP_MONKEYPATCH_COMPAT_NAME( FlagNotAvailableInStandaloneTool ) = 1 << 13,
3326 RequiresProject SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresProject ) = 1 << 14,
3327 SecurityRisk = 1 << 15,
3328 Deprecated SIP_MONKEYPATCH_COMPAT_NAME( FlagDeprecated ) = HideFromToolbox | HideFromModeler,
3329 };
3331
3340 Q_FLAG( ProcessingAlgorithmFlags )
3341
3342
3348 {
3349 RegeneratesPrimaryKey = 1 << 0,
3350 RegeneratesPrimaryKeyInSomeScenarios = 1 << 1,
3351 };
3352 Q_ENUM( ProcessingAlgorithmDocumentationFlag )
3353
3354
3361
3371 {
3372 NotAvailable,
3373 Available,
3374 };
3375 Q_ENUM( ProcessingPropertyAvailability )
3376
3377
3385 {
3386 DefaultLevel = 0,
3387 Verbose,
3388 ModelDebug,
3389 };
3390 Q_ENUM( ProcessingLogLevel )
3391
3392
3400 {
3401 OverrideDefaultGeometryCheck SIP_MONKEYPATCH_COMPAT_NAME( FlagOverrideDefaultGeometryCheck ) = 1 << 0,
3402 CreateIndividualOutputPerInputFeature SIP_MONKEYPATCH_COMPAT_NAME( FlagCreateIndividualOutputPerInputFeature ) = 1 << 1,
3403 };
3404 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
3405
3406
3415
3424 {
3425 SkipGeometryValidityChecks SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGeometryValidityChecks ) = 1 << 1,
3426 };
3427 Q_ENUM( ProcessingFeatureSourceFlag )
3428
3429
3438
3450 {
3451 ExposeToModeler = 1
3452 };
3453 Q_ENUM( ProcessingParameterTypeFlag )
3454
3455
3467
3476 {
3477 Advanced SIP_MONKEYPATCH_COMPAT_NAME( FlagAdvanced ) = 1 << 1,
3478 Hidden SIP_MONKEYPATCH_COMPAT_NAME( FlagHidden ) = 1 << 2,
3479 Optional SIP_MONKEYPATCH_COMPAT_NAME( FlagOptional ) = 1 << 3,
3480 IsModelOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagIsModelOutput ) = 1 << 4,
3481 };
3482 Q_ENUM( ProcessingParameterFlag )
3483
3484
3492 Q_FLAG( ProcessingParameterFlags )
3493
3502 {
3503 File = 0,
3504 Folder,
3505 };
3506 Q_ENUM( ProcessingFileParameterBehavior )
3507
3508
3516 {
3517 Integer,
3518 Double,
3519 };
3520 Q_ENUM( ProcessingNumberParameterType )
3521
3522
3530 {
3531 Any = -1,
3532 Numeric = 0,
3533 String = 1,
3534 DateTime = 2,
3535 Binary = 3,
3536 Boolean = 4,
3537 };
3538 Q_ENUM( ProcessingFieldParameterDataType )
3539
3540
3548 {
3549 DateTime,
3550 Date,
3551 Time,
3552 };
3553 Q_ENUM( ProcessingDateTimeParameterDataType )
3554
3555
3561 {
3562 ModelParameter,
3563 ChildOutput,
3564 StaticValue,
3565 Expression,
3566 ExpressionText,
3567 ModelOutput,
3568 };
3569 Q_ENUM( ProcessingModelChildParameterSource )
3570
3571
3577 {
3578 NotExecuted,
3579 Success,
3580 Failed,
3581 };
3582 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
3583
3584
3592 {
3593 Vertices,
3594 StructureLines,
3595 BreakLines
3596 };
3597 Q_ENUM( ProcessingTinInputLayerType )
3598
3599
3605 {
3606 Wkt SIP_MONKEYPATCH_COMPAT_NAME( FormatWkt ),
3607 Proj SIP_MONKEYPATCH_COMPAT_NAME( FormatProj ),
3608 };
3609 Q_ENUM( CrsDefinitionFormat )
3610
3611
3619 enum class FieldDomainSplitPolicy : int
3620 {
3621 DefaultValue,
3622 Duplicate,
3623 GeometryRatio,
3624 UnsetField,
3625 };
3626 Q_ENUM( FieldDomainSplitPolicy )
3627
3628
3636 enum class FieldDomainMergePolicy : int
3637 {
3638 DefaultValue,
3639 Sum,
3640 GeometryWeighted,
3641 };
3642 Q_ENUM( FieldDomainMergePolicy )
3643
3644
3651 enum class FieldDuplicatePolicy : int
3652 {
3653 DefaultValue,
3654 Duplicate,
3655 UnsetField,
3656 };
3657 Q_ENUM( FieldDuplicatePolicy )
3658
3659
3664 enum class FieldDomainType : int
3665 {
3666 Coded,
3667 Range,
3668 Glob,
3669 };
3670 Q_ENUM( FieldDomainType )
3671
3672
3677 enum class TransactionMode : int
3678 {
3679 Disabled = 0,
3680 AutomaticGroups = 1,
3681 BufferedGroups = 2,
3682 };
3683 Q_ENUM( TransactionMode )
3684
3685
3690 enum class AltitudeClamping : int
3691 {
3692 Absolute,
3693 Relative,
3694 Terrain,
3695 };
3696 Q_ENUM( AltitudeClamping )
3697
3698
3703 enum class AltitudeBinding : int
3704 {
3705 Vertex,
3706 Centroid,
3707 };
3708 Q_ENUM( AltitudeBinding )
3709
3710
3715 enum class RangeLimits : int
3716 {
3717 IncludeBoth = 0,
3718 IncludeLowerExcludeUpper,
3719 ExcludeLowerIncludeUpper,
3720 ExcludeBoth,
3721 };
3722 Q_ENUM( RangeLimits )
3723
3724
3729 enum class RasterElevationMode : int
3730 {
3731 FixedElevationRange = 0,
3732 RepresentsElevationSurface = 1,
3733 FixedRangePerBand = 2,
3734 DynamicRangePerBand = 3,
3735 };
3736 Q_ENUM( RasterElevationMode )
3737
3738
3743 enum class MeshElevationMode : int
3744 {
3745 FixedElevationRange = 0,
3746 FromVertices = 1,
3747 FixedRangePerGroup = 2,
3748 };
3749 Q_ENUM( MeshElevationMode )
3750
3751
3757 {
3758 NoConstraint,
3759 Perpendicular,
3760 Parallel
3761 };
3762 Q_ENUM( BetweenLineConstraint )
3763
3764
3769 enum class LineExtensionSide : int
3770 {
3771 BeforeVertex,
3772 AfterVertex,
3773 NoVertex,
3774 };
3775 Q_ENUM( LineExtensionSide )
3776
3777
3778
3782 enum class CadConstraintType : int
3783 {
3784 Generic,
3785 Angle,
3786 Distance,
3787 XCoordinate,
3788 YCoordinate,
3789 ZValue,
3790 MValue,
3791 };
3792 Q_ENUM( CadConstraintType )
3793
3794
3795
3800 enum class ProjectFlag : int SIP_ENUM_BASETYPE( IntFlag )
3801 {
3802 EvaluateDefaultValuesOnProviderSide = 1 << 0,
3803 TrustStoredLayerStatistics = 1 << 1,
3804 RememberLayerEditStatusBetweenSessions = 1 << 2,
3805 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
3806 };
3807 Q_ENUM( ProjectFlag )
3808 Q_DECLARE_FLAGS( ProjectFlags, ProjectFlag )
3809 Q_FLAG( ProjectFlags )
3810
3816 enum class PlotToolFlag : int SIP_ENUM_BASETYPE( IntFlag )
3817 {
3818 ShowContextMenu = 1 << 0,
3819 };
3820 Q_ENUM( PlotToolFlag )
3821 Q_DECLARE_FLAGS( PlotToolFlags, PlotToolFlag )
3822 Q_FLAG( PlotToolFlags )
3823
3824
3832 enum class Point3DShape : int
3833 {
3834 Cylinder,
3835 Sphere,
3836 Cone,
3837 Cube,
3838 Torus,
3839 Plane,
3840 ExtrudedText,
3841 Model,
3842 Billboard,
3843 };
3844 Q_ENUM( Point3DShape )
3845
3846
3851 enum class LightSourceType : int
3852 {
3853 Point,
3854 Directional,
3855 };
3856 Q_ENUM( LightSourceType )
3857
3858
3863 enum class NavigationMode : int
3864 {
3865 TerrainBased,
3866 Walk
3867 };
3868 Q_ENUM( NavigationMode )
3869
3870
3875 enum class VerticalAxisInversion : int
3876 {
3877 Never,
3878 WhenDragging,
3879 Always,
3880 };
3881 Q_ENUM( VerticalAxisInversion )
3882
3883
3889 {
3890 Line,
3891 FillBelow,
3892 FillAbove,
3893 };
3895
3901 enum class VectorProfileType : int
3902 {
3903 IndividualFeatures,
3904 ContinuousSurface,
3905 };
3907
3913 enum class ProfileGeneratorFlag : int SIP_ENUM_BASETYPE( IntFlag )
3914 {
3915 RespectsMaximumErrorMapUnit = 1 << 0,
3916 RespectsDistanceRange = 1 << 1,
3917 RespectsElevationRange = 1 << 2,
3918 };
3919 Q_ENUM( ProfileGeneratorFlag )
3921 Q_FLAG( ProfileGeneratorFlags )
3922
3928 enum class ProfileExportType : int
3929 {
3930 Features3D,
3931 Profile2D,
3932 DistanceVsElevationTable,
3933 };
3935
3942 {
3943 Square,
3944 Circle,
3945 };
3946 Q_ENUM( PointCloudSymbol )
3947
3948
3954 {
3955 Default,
3956 BottomToTop,
3957 TopToBottom,
3958 };
3959 Q_ENUM( PointCloudDrawOrder )
3960
3961
3969 {
3970 AllowIntersections,
3971 AvoidIntersectionsCurrentLayer,
3972 AvoidIntersectionsLayers,
3973 };
3974 Q_ENUM( AvoidIntersectionsMode )
3975
3976
3984 {
3985 Qgz,
3986 Qgs,
3987 };
3988 Q_ENUM( ProjectFileFormat )
3989
3990
3998 {
3999 DontResolveLayers SIP_MONKEYPATCH_COMPAT_NAME( FlagDontResolveLayers ) = 1 << 0,
4000 DontLoadLayouts SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoadLayouts ) = 1 << 1,
4001 TrustLayerMetadata SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustLayerMetadata ) = 1 << 2,
4002 DontStoreOriginalStyles SIP_MONKEYPATCH_COMPAT_NAME( FlagDontStoreOriginalStyles ) = 1 << 3,
4003 DontLoad3DViews SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoad3DViews ) = 1 << 4,
4004 DontLoadProjectStyles = 1 << 5,
4005 ForceReadOnlyLayers = 1 << 6,
4006 DontUpgradeAnnotations = 1 << 7,
4007 };
4008 Q_ENUM( ProjectReadFlag )
4009
4010
4018 Q_FLAG( ProjectReadFlags )
4019
4028 enum class ProjectCapability : int SIP_ENUM_BASETYPE( IntFlag )
4029 {
4030 ProjectStyles = 1 << 0,
4031 };
4032 Q_ENUM( ProjectCapability )
4033
4034
4040 Q_FLAG( ProjectCapabilities )
4041
4048 {
4049 Vector,
4050 Raster,
4051 RasterDem,
4052 GeoJson,
4053 Image,
4054 Video,
4055 Unknown,
4056 };
4057 Q_ENUM( MapBoxGlStyleSourceType )
4058
4059
4067 {
4068 FeatureServer SIP_MONKEYPATCH_COMPAT_NAME( FeatureService ),
4069 MapServer SIP_MONKEYPATCH_COMPAT_NAME( MapService ),
4070 ImageServer SIP_MONKEYPATCH_COMPAT_NAME( ImageService ),
4071 GlobeServer,
4072 GPServer,
4073 GeocodeServer,
4074 Unknown,
4075 };
4076 Q_ENUM( ArcGisRestServiceType )
4077
4078
4086 {
4087 Normal,
4088 Generated,
4089 };
4090 Q_ENUM( RelationshipType )
4091
4092
4100 {
4101 Association,
4102 Composition,
4103 };
4104 Q_ENUM( RelationshipStrength )
4105
4106
4112 {
4113 OneToOne,
4114 OneToMany,
4115 ManyToOne,
4116 ManyToMany,
4117 };
4118 Q_ENUM( RelationshipCardinality )
4119
4120
4125 enum class RelationshipCapability : int SIP_ENUM_BASETYPE( IntFlag )
4126 {
4127 MultipleFieldKeys = 1 << 0,
4128 ForwardPathLabel = 1 << 1,
4129 BackwardPathLabel = 1 << 2,
4130 };
4131 Q_ENUM( RelationshipCapability )
4132
4133
4139 Q_FLAG( RelationshipCapabilities )
4140
4146 enum class CoordinateDisplayType : int
4147 {
4148 MapCrs,
4149 MapGeographic,
4150 CustomCrs,
4151 };
4152 Q_ENUM( CoordinateDisplayType )
4153
4154
4159 enum class SettingsOrigin : int
4160 {
4161 Any,
4162 Global,
4163 Local,
4164 };
4165 Q_ENUM( SettingsOrigin )
4166
4167
4172 enum class ScriptLanguage : int
4173 {
4174 Css,
4175 QgisExpression,
4176 Html,
4177 JavaScript,
4178 Json,
4179 Python,
4180 R,
4181 Sql,
4182 Batch,
4183 Bash,
4184 Unknown,
4185 };
4186 Q_ENUM( ScriptLanguage )
4187
4188
4196 {
4197 Reformat = 1 << 0,
4198 CheckSyntax = 1 << 1,
4199 ToggleComment = 1 << 2,
4200 };
4201 Q_ENUM( ScriptLanguageCapability )
4202
4203
4210
4217 {
4218 AboveInsertionPoint,
4219 TopOfTree,
4220 OptimalInInsertionGroup,
4221 };
4222 Q_ENUM( LayerTreeInsertionMethod )
4223
4224
4229 enum class LayerTreeFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
4230 {
4231 SkipVisibilityCheck = 1 << 0,
4232 };
4233 Q_ENUM( LayerTreeFilterFlag )
4234
4235
4241 Q_FLAG( LayerTreeFilterFlags )
4242
4243
4251 enum class LegendJsonRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
4252 {
4253 ShowRuleDetails = 1 << 0,
4254 };
4255 Q_ENUM( LegendJsonRenderFlag )
4257 Q_FLAG( LegendJsonRenderFlags )
4258
4266 enum class ActionType : int
4267 {
4268 Invalid,
4269 MapLayerAction,
4270 AttributeAction
4271 };
4272 Q_ENUM( ActionType )
4273
4274
4281 enum class MapLayerActionTarget : int SIP_ENUM_BASETYPE( IntFlag )
4282 {
4283 Layer = 1 << 0,
4284 SingleFeature = 1 << 1,
4285 MultipleFeatures = 1 << 2,
4286 AllActions = Layer | SingleFeature | MultipleFeatures
4287 };
4288 Q_ENUM( MapLayerActionTarget )
4289
4290
4298 Q_FLAG( MapLayerActionTargets )
4299
4307 enum class MapLayerActionFlag : int SIP_ENUM_BASETYPE( IntFlag )
4308 {
4309 EnabledOnlyWhenEditable = 1 << 1,
4310 };
4311 Q_ENUM( MapLayerActionFlag )
4312
4313
4321 Q_FLAG( MapLayerActionFlags )
4322
4331 {
4332 Generic,
4333 GenericPython,
4334 Mac,
4335 Windows,
4336 Unix,
4337 OpenUrl,
4338 SubmitUrlEncoded,
4339 SubmitUrlMultipart,
4340 };
4341 Q_ENUM( AttributeActionType )
4342
4343
4349 {
4350 Created,
4351 Published,
4352 Revised,
4353 Superseded,
4354 };
4355 Q_ENUM( MetadataDateType )
4356
4357
4368 {
4369 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedColorInterpretation ) = 0,
4370 GrayIndex = 1,
4371 PaletteIndex = 2,
4372 RedBand = 3,
4373 GreenBand = 4,
4374 BlueBand = 5,
4375 AlphaBand = 6,
4376 HueBand = 7,
4377 SaturationBand = 8,
4378 LightnessBand = 9,
4379 CyanBand = 10,
4380 MagentaBand = 11,
4381 YellowBand = 12,
4382 BlackBand = 13,
4383 YCbCr_YBand = 14,
4384 YCbCr_CbBand = 15,
4385 YCbCr_CrBand = 16,
4386 ContinuousPalette = 17,
4387
4388 // Note: values between PanBand and SAR_P_Band match additions done in
4389 // GDAL 3.10, except that the numeric values of the constant don't match GDAL ones
4390
4391 PanBand = 18,
4392 CoastalBand = 19,
4393 RedEdgeBand = 20,
4394 NIRBand = 21,
4395 SWIRBand = 22,
4396 MWIRBand = 23,
4397 LWIRBand = 24,
4398 TIRBand = 25,
4399 OtherIRBand = 26,
4400 SAR_Ka_Band = 27,
4401 SAR_K_Band = 28,
4402 SAR_Ku_Band = 30,
4403 SAR_X_Band = 31,
4404 SAR_C_Band = 32,
4405 SAR_S_Band = 33,
4406 SAR_L_Band = 34,
4407 SAR_P_Band = 35,
4408 };
4409 Q_ENUM( RasterColorInterpretation )
4410
4411
4419 {
4420 GrayOrUndefined,
4421 Palette,
4422 MultiBand SIP_MONKEYPATCH_COMPAT_NAME( Multiband ),
4423 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( ColorLayer ),
4424 };
4425 Q_ENUM( RasterLayerType )
4426
4427
4435 {
4436 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedDrawingStyle ),
4437 SingleBandGray,
4438 SingleBandPseudoColor,
4439 PalettedColor,
4440 PalettedSingleBandGray,
4441 PalettedSingleBandPseudoColor,
4442 PalettedMultiBandColor,
4443 MultiBandSingleBandGray,
4444 MultiBandSingleBandPseudoColor,
4445 MultiBandColor,
4446 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( SingleBandColorDataStyle ),
4447 };
4448 Q_ENUM( RasterDrawingStyle )
4449
4450
4457 enum class RasterPyramidFormat SIP_MONKEYPATCH_SCOPEENUM_UNNEST( QgsRaster, RasterPyramidsFormat ) : int
4458 {
4459 GeoTiff SIP_MONKEYPATCH_COMPAT_NAME( PyramidsGTiff ) = 0,
4460 Internal SIP_MONKEYPATCH_COMPAT_NAME( PyramidsInternal ) = 1,
4461 Erdas SIP_MONKEYPATCH_COMPAT_NAME( PyramidsErdas ) = 2
4462 };
4463 Q_ENUM( RasterPyramidFormat )
4464
4465
4473 {
4474 No SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagNo ) = 0,
4475 Yes SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagYes ) = 1,
4476 CopyExisting SIP_MONKEYPATCH_COMPAT_NAME( PyramidsCopyExisting ) = 2
4477 };
4478 Q_ENUM( RasterBuildPyramidOption )
4479
4480
4488 {
4489 Undefined SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatUndefined ) = 0,
4490 Value SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatValue ) = 1,
4491 Text SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatText ) = 1 << 1,
4492 Html SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatHtml ) = 1 << 2,
4493 Feature SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatFeature ) = 1 << 3,
4494 };
4495 Q_ENUM( RasterIdentifyFormat )
4496
4497 // TODO QGIS 4 -- remove NoCapabilities and rely on RasterInterfaceCapabilities() instead
4498 // remove deprecated members
4499 // Remove "Identify" member, and replace with combinations of IdentifyValue/IdentifyText/etc
4500
4501
4509 {
4510 NoCapabilities = 0,
4511 Size = 1 << 1,
4512 Create = 1 << 2,
4513 Remove = 1 << 3,
4514 BuildPyramids = 1 << 4,
4515 Identify = 1 << 5,
4516 IdentifyValue = 1 << 6,
4517 IdentifyText = 1 << 7,
4518 IdentifyHtml = 1 << 8,
4519 IdentifyFeature = 1 << 9,
4520 Prefetch = 1 << 10,
4521 };
4522 Q_ENUM( RasterInterfaceCapability )
4523
4524
4531
4532 // TODO QGIS 4 -- remove NoProviderCapabilities and rely on RasterProviderCapabilities() instead
4533
4542 {
4543 NoProviderCapabilities = 0,
4544 ReadLayerMetadata = 1 << 1,
4545 WriteLayerMetadata = 1 << 2,
4546 ProviderHintBenefitsFromResampling = 1 << 3,
4547 ProviderHintCanPerformProviderResampling = 1 << 4,
4548 ReloadData = 1 << 5,
4549 DpiDependentData = 1 << 6,
4550 NativeRasterAttributeTable = 1 << 7,
4551 BuildPyramids = 1 << 8,
4552 };
4553 Q_ENUM( RasterProviderCapability )
4554
4555
4564
4571 {
4572 HighestElevation,
4573 NewerElevation,
4574 };
4575 Q_ENUM( ElevationMapCombineMethod )
4576
4577
4586 {
4587 Normal SIP_MONKEYPATCH_COMPAT_NAME( BlendNormal ),
4588 Lighten SIP_MONKEYPATCH_COMPAT_NAME( BlendLighten ),
4589 Screen SIP_MONKEYPATCH_COMPAT_NAME( BlendScreen ),
4590 Dodge SIP_MONKEYPATCH_COMPAT_NAME( BlendDodge ),
4591 Addition SIP_MONKEYPATCH_COMPAT_NAME( BlendAddition ),
4592 Darken SIP_MONKEYPATCH_COMPAT_NAME( BlendDarken ),
4593 Multiply SIP_MONKEYPATCH_COMPAT_NAME( BlendMultiply ),
4594 Burn SIP_MONKEYPATCH_COMPAT_NAME( BlendBurn ),
4595 Overlay SIP_MONKEYPATCH_COMPAT_NAME( BlendOverlay ),
4596 SoftLight SIP_MONKEYPATCH_COMPAT_NAME( BlendSoftLight ),
4597 HardLight SIP_MONKEYPATCH_COMPAT_NAME( BlendHardLight ),
4598 Difference SIP_MONKEYPATCH_COMPAT_NAME( BlendDifference ),
4599 Subtract SIP_MONKEYPATCH_COMPAT_NAME( BlendSubtract ),
4600 Source SIP_MONKEYPATCH_COMPAT_NAME( BlendSource ),
4601 DestinationOver SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOver ),
4602 Clear SIP_MONKEYPATCH_COMPAT_NAME( BlendClear ),
4603 Destination SIP_MONKEYPATCH_COMPAT_NAME( BlendDestination ),
4604 SourceIn SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceIn ),
4605 DestinationIn SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationIn ),
4606 SourceOut SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceOut ),
4607 DestinationOut SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOut ),
4608 SourceAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceAtop ),
4609 DestinationAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationAtop ),
4610 Xor SIP_MONKEYPATCH_COMPAT_NAME( BlendXor ),
4611 };
4612 Q_ENUM( BlendMode )
4613
4614
4622 {
4623 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownSystem ) = 0,
4624 Metric SIP_MONKEYPATCH_COMPAT_NAME( MetricSystem ),
4625 Imperial SIP_MONKEYPATCH_COMPAT_NAME( ImperialSystem ),
4626 USCS SIP_MONKEYPATCH_COMPAT_NAME( USCSSystem ),
4627 };
4628 Q_ENUM( SystemOfMeasurement )
4629
4630
4637 {
4638 Layer SIP_MONKEYPATCH_COMPAT_NAME( LayerUnits ),
4639 Pixels,
4640 Project SIP_MONKEYPATCH_COMPAT_NAME( ProjectUnits )
4641 };
4642 Q_ENUM( MapToolUnit )
4643
4644
4652 {
4653 Distance SIP_MONKEYPATCH_COMPAT_NAME( TypeDistance ) = 0,
4654 Area SIP_MONKEYPATCH_COMPAT_NAME( TypeArea ),
4655 Volume SIP_MONKEYPATCH_COMPAT_NAME( TypeVolume ),
4656 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TypeUnknown ),
4657 Temporal SIP_MONKEYPATCH_COMPAT_NAME( TypeTemporal ),
4658 };
4659 Q_ENUM( UnitType )
4660
4661
4669 {
4670 Meters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMeters ),
4671 Kilometers SIP_MONKEYPATCH_COMPAT_NAME( DistanceKilometers ),
4672 Feet SIP_MONKEYPATCH_COMPAT_NAME( DistanceFeet ),
4673 NauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( DistanceNauticalMiles ),
4674 Yards SIP_MONKEYPATCH_COMPAT_NAME( DistanceYards ),
4675 Miles SIP_MONKEYPATCH_COMPAT_NAME( DistanceMiles ),
4676 Degrees SIP_MONKEYPATCH_COMPAT_NAME( DistanceDegrees ),
4677 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceCentimeters ),
4678 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMillimeters ),
4679 Inches,
4680 ChainsInternational,
4681 ChainsBritishBenoit1895A,
4682 ChainsBritishBenoit1895B,
4683 ChainsBritishSears1922Truncated,
4684 ChainsBritishSears1922,
4685 ChainsClarkes,
4686 ChainsUSSurvey,
4687 FeetBritish1865,
4688 FeetBritish1936,
4689 FeetBritishBenoit1895A,
4690 FeetBritishBenoit1895B,
4691 FeetBritishSears1922Truncated,
4692 FeetBritishSears1922,
4693 FeetClarkes,
4694 FeetGoldCoast,
4695 FeetIndian,
4696 FeetIndian1937,
4697 FeetIndian1962,
4698 FeetIndian1975,
4699 FeetUSSurvey,
4700 LinksInternational,
4701 LinksBritishBenoit1895A,
4702 LinksBritishBenoit1895B,
4703 LinksBritishSears1922Truncated,
4704 LinksBritishSears1922,
4705 LinksClarkes,
4706 LinksUSSurvey,
4707 YardsBritishBenoit1895A,
4708 YardsBritishBenoit1895B,
4709 YardsBritishSears1922Truncated,
4710 YardsBritishSears1922,
4711 YardsClarkes,
4712 YardsIndian,
4713 YardsIndian1937,
4714 YardsIndian1962,
4715 YardsIndian1975,
4716 MilesUSSurvey,
4717 Fathoms,
4718 MetersGermanLegal,
4719 Unknown SIP_MONKEYPATCH_COMPAT_NAME( DistanceUnknownUnit ),
4720 };
4721 Q_ENUM( DistanceUnit )
4722
4723
4731 {
4732 Standard,
4733 Geographic,
4734 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownType ),
4735 };
4736 Q_ENUM( DistanceUnitType )
4737
4738
4746 {
4747 SquareMeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMeters ),
4748 SquareKilometers SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareKilometers ),
4749 SquareFeet SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareFeet ),
4750 SquareYards SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareYards ),
4751 SquareMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMiles ),
4752 Hectares SIP_MONKEYPATCH_COMPAT_NAME( AreaHectares ),
4753 Acres SIP_MONKEYPATCH_COMPAT_NAME( AreaAcres ),
4754 SquareNauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareNauticalMiles ),
4755 SquareDegrees SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareDegrees ),
4756 SquareCentimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareCentimeters ),
4757 SquareMillimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMillimeters ),
4758 SquareInches,
4759 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AreaUnknownUnit ),
4760 };
4761 Q_ENUM( AreaUnit )
4762
4763
4771 {
4772 CubicMeters SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicMeters ),
4773 CubicFeet SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicFeet ),
4774 CubicYards SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicYards ),
4775 Barrel SIP_MONKEYPATCH_COMPAT_NAME( VolumeBarrel ),
4776 CubicDecimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDecimeter ),
4777 Liters SIP_MONKEYPATCH_COMPAT_NAME( VolumeLiters ),
4778 GallonUS SIP_MONKEYPATCH_COMPAT_NAME( VolumeGallonUS ),
4779 CubicInch SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicInch ),
4780 CubicCentimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicCentimeter ),
4781 CubicDegrees SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDegrees ),
4782 Unknown SIP_MONKEYPATCH_COMPAT_NAME( VolumeUnknownUnit ),
4783 };
4784 Q_ENUM( VolumeUnit )
4785
4786
4794 {
4795 Degrees SIP_MONKEYPATCH_COMPAT_NAME( AngleDegrees ),
4796 Radians SIP_MONKEYPATCH_COMPAT_NAME( AngleRadians ),
4797 Gon SIP_MONKEYPATCH_COMPAT_NAME( AngleGon ),
4798 MinutesOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleMinutesOfArc ),
4799 SecondsOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleSecondsOfArc ),
4800 Turn SIP_MONKEYPATCH_COMPAT_NAME( AngleTurn ),
4801 MilliradiansSI SIP_MONKEYPATCH_COMPAT_NAME( AngleMilliradiansSI ),
4802 MilNATO SIP_MONKEYPATCH_COMPAT_NAME( AngleMilNATO ),
4803 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AngleUnknownUnit ),
4804 };
4805 Q_ENUM( AngleUnit )
4806
4807
4815 {
4816 Milliseconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalMilliseconds ),
4817 Seconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalSeconds ),
4818 Minutes SIP_MONKEYPATCH_COMPAT_NAME( TemporalMinutes ),
4819 Hours SIP_MONKEYPATCH_COMPAT_NAME( TemporalHours ),
4820 Days SIP_MONKEYPATCH_COMPAT_NAME( TemporalDays ),
4821 Weeks SIP_MONKEYPATCH_COMPAT_NAME( TemporalWeeks ),
4822 Months SIP_MONKEYPATCH_COMPAT_NAME( TemporalMonths ),
4823 Years SIP_MONKEYPATCH_COMPAT_NAME( TemporalYears ),
4824 Decades SIP_MONKEYPATCH_COMPAT_NAME( TemporalDecades ),
4825 Centuries SIP_MONKEYPATCH_COMPAT_NAME( TemporalCenturies ),
4826 IrregularStep SIP_MONKEYPATCH_COMPAT_NAME( TemporalIrregularStep ),
4827 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TemporalUnknownUnit )
4828 };
4829 Q_ENUM( TemporalUnit )
4830
4831
4839 {
4840 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( RenderMillimeters ),
4841 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMapUnits ),
4842 Pixels SIP_MONKEYPATCH_COMPAT_NAME( RenderPixels ),
4843 Percentage SIP_MONKEYPATCH_COMPAT_NAME( RenderPercentage ),
4844 Points SIP_MONKEYPATCH_COMPAT_NAME( RenderPoints ),
4845 Inches SIP_MONKEYPATCH_COMPAT_NAME( RenderInches ),
4846 Unknown SIP_MONKEYPATCH_COMPAT_NAME( RenderUnknownUnit ),
4847 MetersInMapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMetersInMapUnits ),
4848 };
4849 Q_ENUM( RenderUnit )
4850
4851
4859 {
4860 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMillimeters ),
4861 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutCentimeters ),
4862 Meters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMeters ),
4863 Inches SIP_MONKEYPATCH_COMPAT_NAME( LayoutInches ),
4864 Feet SIP_MONKEYPATCH_COMPAT_NAME( LayoutFeet ),
4865 Points SIP_MONKEYPATCH_COMPAT_NAME( LayoutPoints ),
4866 Picas SIP_MONKEYPATCH_COMPAT_NAME( LayoutPicas ),
4867 Pixels SIP_MONKEYPATCH_COMPAT_NAME( LayoutPixels )
4868 };
4869 Q_ENUM( LayoutUnit )
4870
4871
4879 {
4880 PaperUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutPaperUnits ),
4881 ScreenUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutScreenUnits )
4882 };
4883 Q_ENUM( LayoutUnitType )
4884
4885
4893 {
4894 SVG SIP_MONKEYPATCH_COMPAT_NAME( FormatSVG ) = 0,
4895 Raster SIP_MONKEYPATCH_COMPAT_NAME( FormatRaster ),
4896 Unknown SIP_MONKEYPATCH_COMPAT_NAME( FormatUnknown ),
4897 };
4898 Q_ENUM( PictureFormat )
4899
4900
4905 enum class ScaleCalculationMethod : int
4906 {
4907 HorizontalTop = 0,
4908 HorizontalMiddle,
4909 HorizontalBottom,
4910 HorizontalAverage,
4911 };
4912 Q_ENUM( ScaleCalculationMethod )
4913
4914
4922 {
4923 Left SIP_MONKEYPATCH_COMPAT_NAME( AlignLeft ) = 0,
4924 Middle SIP_MONKEYPATCH_COMPAT_NAME( AlignMiddle ),
4925 Right SIP_MONKEYPATCH_COMPAT_NAME( AlignRight ),
4926 };
4927 Q_ENUM( ScaleBarAlignment )
4928
4929
4937 {
4938 Fixed SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFixed ) = 0,
4939 FitWidth SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFitWidth ) = 1
4940 };
4941 Q_ENUM( ScaleBarSegmentSizeMode )
4942
4943
4951 {
4952 AboveSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelAboveSegment ) = 0,
4953 BelowSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelBelowSegment ),
4954 };
4955 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
4956
4957
4965 {
4966 CenteredEdge SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredEdge ) = 0,
4967 CenteredSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredSegment ),
4968 };
4969 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
4970
4971
4976 enum class InputControllerType : int
4977 {
4978 Map2D,
4979 Map3D
4980 };
4982
4989 {
4990 NotSet,
4991 Unknown,
4992 OrdinaryTable,
4993 Index,
4994 Sequence,
4995 View,
4996 MaterializedView,
4997 CompositeType,
4998 ToastTable,
4999 ForeignTable,
5000 PartitionedTable,
5001 };
5002 Q_ENUM( PostgresRelKind )
5003
5004
5010 {
5011 SetFieldComment = 1 << 0,
5012 SetFieldAlias = 1 << 1,
5013 };
5014 Q_ENUM( DatabaseProviderConnectionCapability2 )
5017
5024 {
5025 SaveToDatabase = 1 << 1,
5026 LoadFromDatabase = 1 << 2,
5027 DeleteFromDatabase = 1 << 3
5028 };
5032
5033
5039 {
5040 LastProfile,
5041 DefaultProfile,
5042 AskUser,
5043 };
5044 Q_ENUM( UserProfileSelectionPolicy )
5045
5046
5054 {
5055 Container SIP_MONKEYPATCH_COMPAT_NAME( AeTypeContainer ),
5056 Field SIP_MONKEYPATCH_COMPAT_NAME( AeTypeField ),
5057 Relation SIP_MONKEYPATCH_COMPAT_NAME( AeTypeRelation ),
5058 QmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeQmlElement ),
5059 HtmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeHtmlElement ),
5060 Action SIP_MONKEYPATCH_COMPAT_NAME( AeTypeAction ),
5061 TextElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeTextElement ),
5062 SpacerElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeSpacerElement ),
5063 Invalid SIP_MONKEYPATCH_COMPAT_NAME( AeTypeInvalid ),
5064 };
5065 Q_ENUM( AttributeEditorType )
5066
5067
5073 {
5074 GroupBox,
5075 Tab,
5076 Row,
5077 };
5078 Q_ENUM( AttributeEditorContainerType )
5079
5080
5088 {
5089 AutoGenerated SIP_MONKEYPATCH_COMPAT_NAME( GeneratedLayout ) = 0,
5090 DragAndDrop SIP_MONKEYPATCH_COMPAT_NAME( TabLayout ) = 1,
5091 UiFile SIP_MONKEYPATCH_COMPAT_NAME( UiFileLayout ) = 2
5092 };
5093 Q_ENUM( AttributeFormLayout )
5094
5095
5103 {
5104 Default SIP_MONKEYPATCH_COMPAT_NAME( SuppressDefault ) = 0,
5105 On SIP_MONKEYPATCH_COMPAT_NAME( SuppressOn ) = 1,
5106 Off SIP_MONKEYPATCH_COMPAT_NAME( SuppressOff ) = 2
5107 };
5108 Q_ENUM( AttributeFormSuppression )
5109
5110
5118 {
5119 NoSource SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceNone ) = 0,
5120 File SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceFile ) = 1,
5121 Dialog SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceDialog ) = 2,
5122 Environment SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceEnvironment ) = 3
5123 };
5124 Q_ENUM( AttributeFormPythonInitCodeSource )
5125
5126
5132 {
5133 Qgis,
5134 PointCloud,
5135 RasterCalculator,
5136 };
5137 Q_ENUM( ExpressionType )
5138
5139
5147 {
5148 NoSymbology = 0,
5149 PerFeature SIP_MONKEYPATCH_COMPAT_NAME( FeatureSymbology ),
5150 PerSymbolLayer SIP_MONKEYPATCH_COMPAT_NAME( SymbolLayerSymbology )
5151 };
5152 Q_ENUM( FeatureSymbologyExport )
5153
5154
5159 enum class VectorTileProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
5160 {
5161 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
5162 };
5163 Q_ENUM( VectorTileProviderFlag )
5164
5165
5171 Q_FLAG( VectorTileProviderFlags )
5172
5178 {
5179 ReadLayerMetadata = 1 << 1,
5180 };
5181 Q_ENUM( VectorTileProviderCapability )
5182
5183
5190
5197 {
5198 Available,
5199 NotAvailable,
5200 AvailableNoChildren,
5201 UseLowerZoomLevelTile,
5202 };
5203 Q_ENUM( TileAvailability )
5204
5205
5211 {
5212 ReadLayerMetadata = 1 << 1,
5213 };
5214 Q_ENUM( TiledSceneProviderCapability )
5215
5216
5223
5230 {
5231 Region,
5232 OrientedBox,
5233 Sphere,
5234 };
5235 Q_ENUM( TiledSceneBoundingVolumeType )
5236
5237
5246 {
5247 Replacement,
5248 Additive,
5249 };
5250 Q_ENUM( TileRefinementProcess )
5251
5252
5258 {
5259 NoChildren,
5260 Available,
5261 NeedFetching,
5262 };
5263 Q_ENUM( TileChildrenAvailability )
5264
5265
5270 enum class TiledSceneRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
5271 {
5272 NoHierarchyFetch = 1 << 0,
5273 };
5274 Q_ENUM( TiledSceneRequestFlag )
5275
5276
5282 Q_FLAG( TiledSceneRequestFlags )
5283
5289 enum class TiledSceneRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
5290 {
5291 RequiresTextures = 1 << 0,
5292 ForceRasterRender = 1 << 1,
5293 RendersTriangles = 1 << 2,
5294 RendersLines = 1 << 3,
5295 };
5296 Q_ENUM( TiledSceneRendererFlag )
5297
5298
5304 Q_FLAG( TiledSceneRendererFlags )
5305
5311 enum class GdalResampleAlgorithm : int
5312 {
5313 RA_NearestNeighbour = 0,
5314 RA_Bilinear = 1,
5315 RA_Cubic = 2,
5316 RA_CubicSpline = 3,
5317 RA_Lanczos = 4,
5318 RA_Average = 5,
5319 RA_Mode = 6,
5320 RA_Max = 8,
5321 RA_Min = 9,
5322 RA_Median = 10,
5323 RA_Q1 = 11,
5324 RA_Q3 = 12,
5325 };
5326 Q_ENUM( GdalResampleAlgorithm )
5327
5328
5333 enum class VsiHandlerType : int
5334 {
5335 Invalid,
5336 Archive,
5337 Network,
5338 Cloud,
5339 Memory,
5340 Other,
5341 };
5342 Q_ENUM( VsiHandlerType )
5343
5344
5349 enum class ZonalStatistic : int SIP_ENUM_BASETYPE( IntFlag )
5350 {
5351 Count = 1,
5352 Sum = 2,
5353 Mean = 4,
5354 Median = 8,
5355 StDev = 16,
5356 Min = 32,
5357 Max = 64,
5358 Range = 128,
5359 Minority = 256,
5360 Majority = 512,
5361 Variety = 1024,
5362 Variance = 2048,
5363 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
5364 Default = Count | Sum | Mean,
5365 };
5366 Q_ENUM( ZonalStatistic )
5367
5368
5374 Q_FLAG( ZonalStatistics )
5375
5381 enum class ZonalStatisticResult : int
5382 {
5383 Success = 0,
5384 LayerTypeWrong = 1,
5385 LayerInvalid,
5386 RasterInvalid,
5387 RasterBandInvalid,
5388 FailedToCreateField = 8,
5389 Canceled = 9
5390 };
5391 Q_ENUM( ZonalStatisticResult )
5392
5393
5400 {
5401 Count,
5402 CountDistinct,
5403 CountMissing,
5404 Min,
5405 Max,
5406 Sum,
5407 Mean,
5408 Median,
5409 StDev,
5410 StDevSample,
5411 Range,
5412 Minority,
5413 Majority,
5414 FirstQuartile,
5415 ThirdQuartile,
5416 InterQuartileRange,
5417 StringMinimumLength,
5418 StringMaximumLength,
5419 StringConcatenate,
5420 GeometryCollect,
5421 ArrayAggregate,
5422 StringConcatenateUnique
5423 };
5424 Q_ENUM( Aggregate )
5425
5426
5432 {
5433 Count = 1 << 0,
5434 CountMissing = 1 << 15,
5435 Sum = 1 << 1,
5436 Mean = 1 << 2,
5437 Median = 1 << 3,
5438 StDev = 1 << 4,
5439 StDevSample = 1 << 5,
5440 Min = 1 << 6,
5441 Max = 1 << 7,
5442 Range = 1 << 8,
5443 Minority = 1 << 9,
5444 Majority = 1 << 10,
5445 Variety = 1 << 11,
5446 FirstQuartile = 1 << 12,
5447 ThirdQuartile = 1 << 13,
5448 InterQuartileRange = 1 << 14,
5449 First = 1 << 16,
5450 Last = 1 << 17,
5451 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
5452 };
5453 Q_ENUM( Statistic )
5454
5455
5461 Q_FLAG( Statistics )
5462
5469 {
5470 Count = 1,
5471 CountDistinct = 2,
5472 CountMissing = 4,
5473 Min = 8,
5474 Max = 16,
5475 Range = 32,
5476 All = Count | CountDistinct | CountMissing | Min | Max | Range,
5477 };
5478 Q_ENUM( DateTimeStatistic )
5479
5480
5486 Q_FLAG( DateTimeStatistics )
5487
5494 {
5495 Count = 1,
5496 CountDistinct = 2,
5497 CountMissing = 4,
5498 Min = 8,
5499 Max = 16,
5500 MinimumLength = 32,
5501 MaximumLength = 64,
5502 MeanLength = 128,
5503 Minority = 256,
5504 Majority = 512,
5505 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
5506 };
5507 Q_ENUM( StringStatistic )
5508
5509
5515 Q_FLAG( StringStatistics )
5516
5523 {
5524 NoStatistic = 0,
5525 Min = 1,
5526 Max = 1 << 1,
5527 Range = 1 << 2,
5528 Sum = 1 << 3,
5529 Mean = 1 << 4,
5530 StdDev = 1 << 5,
5531 SumOfSquares = 1 << 6,
5532 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
5533 };
5534 Q_ENUM( RasterBandStatistic )
5535
5536
5542 Q_FLAG( RasterBandStatistics )
5543
5549 enum class SensorThingsEntity : int
5550 {
5551 Invalid,
5552 Thing,
5553 Location,
5554 HistoricalLocation,
5555 Datastream,
5556 Sensor,
5557 ObservedProperty,
5558 Observation,
5559 FeatureOfInterest,
5560 MultiDatastream,
5561 };
5562 Q_ENUM( SensorThingsEntity )
5563
5564
5569 enum class ColorModel : int
5570 {
5571 Rgb,
5572 Cmyk,
5573 };
5574 Q_ENUM( ColorModel )
5575
5576
5579 static const double DEFAULT_SEARCH_RADIUS_MM;
5580
5582 static const float DEFAULT_MAPTOPIXEL_THRESHOLD;
5583
5589 static const QColor DEFAULT_HIGHLIGHT_COLOR;
5590
5594 static const double DEFAULT_HIGHLIGHT_BUFFER_MM;
5595
5599 static const double DEFAULT_HIGHLIGHT_MIN_WIDTH_MM;
5600
5608 Q_DECL_DEPRECATED static const double SCALE_PRECISION;
5609
5614 static const double DEFAULT_Z_COORDINATE;
5615
5621 static const double DEFAULT_M_COORDINATE;
5622
5627 static const double UI_SCALE_FACTOR;
5628
5632 static const double DEFAULT_SNAP_TOLERANCE;
5633
5637 static const Qgis::MapToolUnit DEFAULT_SNAP_UNITS;
5638
5644 static QString defaultProjectScales();
5645
5651 static int geosVersionInt();
5652
5658 static int geosVersionMajor();
5659
5665 static int geosVersionMinor();
5666
5672 static int geosVersionPatch();
5673
5679 static QString geosVersion();
5680};
5681
5684
5764
5765// hack to workaround warnings when casting void pointers
5766// retrieved from QLibrary::resolve to function pointers.
5767// It's assumed that this works on all systems supporting
5768// QLibrary
5769#define cast_to_fptr(f) f
5770
5771
5779// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
5780template<class Object> class QgsSignalBlocker SIP_SKIP SIP_SKIP // clazy:exclude=rule-of-three
5781{
5782 public:
5783
5788 explicit QgsSignalBlocker( Object *object )
5789 : mObject( object )
5790 , mPreviousState( object->blockSignals( true ) )
5791 {}
5792
5794 {
5795 mObject->blockSignals( mPreviousState );
5796 }
5797
5799 Object *operator->() { return mObject; }
5800
5801 private:
5802
5803 Object *mObject = nullptr;
5804 bool mPreviousState;
5805
5806};
5807
5820// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
5821template<class Object> inline QgsSignalBlocker<Object> whileBlocking( Object *object ) SIP_SKIP SIP_SKIP
5822{
5823 return QgsSignalBlocker<Object>( object );
5824}
5825
5827CORE_EXPORT uint qHash( const QVariant &variant );
5828
5834inline QString qgsDoubleToString( double a, int precision = 17 )
5835{
5836 QString str;
5837 if ( precision )
5838 {
5839 if ( precision < 0 )
5840 {
5841 const double roundFactor = std::pow( 10, -precision );
5842 str = QString::number( static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
5843 }
5844 else
5845 {
5846 str = QString::number( a, 'f', precision );
5847 if ( str.contains( QLatin1Char( '.' ) ) )
5848 {
5849 // remove ending 0s
5850 int idx = str.length() - 1;
5851 while ( str.at( idx ) == '0' && idx > 1 )
5852 {
5853 idx--;
5854 }
5855 if ( idx < str.length() - 1 )
5856 str.truncate( str.at( idx ) == '.' ? idx : idx + 1 );
5857 }
5858 }
5859 }
5860 else
5861 {
5862 str = QString::number( a, 'f', precision );
5863 }
5864 // avoid printing -0
5865 // see https://bugreports.qt.io/browse/QTBUG-71439
5866 if ( str == QLatin1String( "-0" ) )
5867 {
5868 return QLatin1String( "0" );
5869 }
5870 return str;
5871}
5872
5879inline bool qgsNanCompatibleEquals( double a, double b )
5880{
5881 const bool aIsNan = std::isnan( a );
5882 const bool bIsNan = std::isnan( b );
5883 if ( aIsNan || bIsNan )
5884 return aIsNan && bIsNan;
5885
5886 return a == b;
5887}
5888
5889#ifndef SIP_RUN
5890
5898template<typename T>
5899inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
5900{
5901 const bool aIsNan = std::isnan( a );
5902 const bool bIsNan = std::isnan( b );
5903 if ( aIsNan || bIsNan )
5904 return aIsNan && bIsNan;
5905
5906 const T diff = a - b;
5907 return diff >= -epsilon && diff <= epsilon;
5908}
5909#endif
5910
5917inline bool qgsDoubleNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
5918{
5919 return qgsNumberNear<double>( a, b, epsilon );
5920}
5921
5928inline bool qgsFloatNear( float a, float b, float epsilon = 4 * FLT_EPSILON )
5929{
5930 return qgsNumberNear<float>( a, b, epsilon );
5931}
5932
5934inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
5935{
5936 const bool aIsNan = std::isnan( a );
5937 const bool bIsNan = std::isnan( b );
5938 if ( aIsNan || bIsNan )
5939 return aIsNan && bIsNan;
5940
5941 // The most simple would be to print numbers as %.xe and compare as strings
5942 // but that is probably too costly
5943 // Then the fastest would be to set some bits directly, but little/big endian
5944 // has to be considered (maybe TODO)
5945 // Is there a better way?
5946 int aexp, bexp;
5947 const double ar = std::frexp( a, &aexp );
5948 const double br = std::frexp( b, &bexp );
5949
5950 return aexp == bexp &&
5951 std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
5952}
5953
5958inline double qgsRound( double number, int places )
5959{
5960 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
5961 const double scaleFactor = std::pow( 10.0, places );
5962 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
5963}
5964
5965#ifndef SIP_RUN
5966
5973template<class Key, class Value>
5974QString qgsMapJoinKeys( const QMap<Key, Value> &map, const QString &separator )
5975{
5976 QString result;
5977 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
5978 result += QString( "%1%2" ).arg( it.key() ).arg( separator );
5979
5980 result.chop( separator.size() );
5981 return result;
5982}
5983
5990template<class Key, class Value>
5991QString qgsMapJoinValues( const QMap<Key, Value> &map, const QString &separator )
5992{
5993 QString result;
5994 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
5995 result += QString( "%1%2" ).arg( it.value() ).arg( separator );
5996
5997 result.chop( separator.size() );
5998 return result;
5999}
6000
6007template<class T>
6008QString qgsSetJoin( const QSet<T> &set, const QString &separator )
6009{
6010 QString result;
6011 for ( auto it = set.constBegin(); it != set.constEnd(); it++ )
6012 result += QString( "%1%2" ).arg( *it ).arg( separator );
6013
6014 result.chop( separator.size() );
6015 return result;
6016}
6017
6019
6029namespace qgis
6030{
6031
6044 template<typename To, typename From> inline To down_cast( From *f )
6045 {
6046 static_assert(
6047 ( std::is_base_of<From,
6048 typename std::remove_pointer<To>::type>::value ),
6049 "target type not derived from source type" );
6050 Q_ASSERT( f == nullptr || dynamic_cast<To>( f ) != nullptr );
6051 return static_cast<To>( f );
6052 }
6053
6054 template<class T>
6055 QSet<T> listToSet( const QList<T> &list )
6056 {
6057 return QSet<T>( list.begin(), list.end() );
6058 }
6059
6060 template<class T>
6061 QList<T> setToList( const QSet<T> &set )
6062 {
6063 return QList<T>( set.begin(), set.end() );
6064 }
6065}
6066
6068#endif
6069
6074template<class T> const QList<T> qgsEnumList() SIP_SKIP
6075{
6076 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
6077 Q_ASSERT( metaEnum.isValid() );
6078 QList<T> enumList;
6079 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
6080 {
6081 enumList.append( static_cast<T>( metaEnum.value( idx ) ) );
6082 }
6083 return enumList;
6084}
6085
6091template<class T> const QMap<T, QString> qgsEnumMap() SIP_SKIP
6092{
6093 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
6094 Q_ASSERT( metaEnum.isValid() );
6095 QMap<T, QString> enumMap;
6096 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
6097 {
6098 enumMap.insert( static_cast<T>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
6099 }
6100 return enumMap;
6101}
6102
6108template<class T> QString qgsEnumValueToKey( const T &value, bool *returnOk = nullptr ) SIP_SKIP
6109{
6110 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
6111 Q_ASSERT( metaEnum.isValid() );
6112 const char *key = metaEnum.valueToKey( static_cast<int>( value ) );
6113 if ( returnOk )
6114 {
6115 *returnOk = key ? true : false;
6116 }
6117 return QString::fromUtf8( key );
6118}
6119
6127template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
6128{
6129 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
6130 Q_ASSERT( metaEnum.isValid() );
6131 bool ok = false;
6132 T v = static_cast<T>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
6133 if ( returnOk )
6134 {
6135 *returnOk = ok;
6136 }
6137 if ( ok )
6138 {
6139 return v;
6140 }
6141 else
6142 {
6143 // if conversion has failed, try with conversion from int value
6144 if ( tryValueAsKey )
6145 {
6146 bool canConvert = false;
6147 const int intValue = key.toInt( &canConvert );
6148 if ( canConvert && metaEnum.valueToKey( intValue ) )
6149 {
6150 if ( returnOk )
6151 {
6152 *returnOk = true;
6153 }
6154 return static_cast<T>( intValue );
6155 }
6156 }
6157 }
6158 return defaultValue;
6159}
6160
6166template<class T> QString qgsFlagValueToKeys( const T &value, bool *returnOk = nullptr ) SIP_SKIP
6167{
6168 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
6169 Q_ASSERT( metaEnum.isValid() );
6170 int intValue = static_cast<int>( value );
6171 const QByteArray ba = metaEnum.valueToKeys( intValue );
6172 // check that the int value does correspond to a flag
6173 // see https://stackoverflow.com/a/68495949/1548052
6174 const int intValueCheck = metaEnum.keysToValue( ba );
6175 bool ok = intValue == intValueCheck;
6176 if ( returnOk )
6177 *returnOk = ok;
6178 return ok ? QString::fromUtf8( ba ) : QString();
6179}
6180
6188template<class T> T qgsFlagKeysToValue( const QString &keys, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
6189{
6190 if ( keys.isEmpty() )
6191 {
6192 if ( returnOk )
6193 {
6194 *returnOk = false;
6195 }
6196 return defaultValue;
6197 }
6198 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
6199 Q_ASSERT( metaEnum.isValid() );
6200 bool ok = false;
6201 T v = static_cast<T>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
6202 if ( returnOk )
6203 {
6204 *returnOk = ok;
6205 }
6206 if ( ok )
6207 {
6208 return v;
6209 }
6210 else
6211 {
6212 // if conversion has failed, try with conversion from int value
6213 if ( tryValueAsKey )
6214 {
6215 bool canConvert = false;
6216 const int intValue = keys.toInt( &canConvert );
6217 if ( canConvert )
6218 {
6219 const QByteArray keys = metaEnum.valueToKeys( intValue );
6220 const int intValueCheck = metaEnum.keysToValue( keys );
6221 if ( intValue == intValueCheck )
6222 {
6223 if ( returnOk )
6224 {
6225 *returnOk = true;
6226 }
6227 return T( intValue );
6228 }
6229 }
6230 }
6231 }
6232 return defaultValue;
6233}
6234
6235
6244CORE_EXPORT double qgsPermissiveToDouble( QString string, bool &ok );
6245
6254CORE_EXPORT int qgsPermissiveToInt( QString string, bool &ok );
6255
6265CORE_EXPORT qlonglong qgsPermissiveToLongLong( QString string, bool &ok );
6266
6276CORE_EXPORT bool qgsVariantLessThan( const QVariant &lhs, const QVariant &rhs );
6277
6286CORE_EXPORT bool qgsVariantEqual( const QVariant &lhs, const QVariant &rhs );
6287
6294CORE_EXPORT bool qgsVariantGreaterThan( const QVariant &lhs, const QVariant &rhs );
6295
6296#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
6297
6304inline bool operator> ( const QVariant &v1, const QVariant &v2 )
6305{
6306 return qgsVariantGreaterThan( v1, v2 );
6307}
6308
6318inline bool operator< ( const QVariant &v1, const QVariant &v2 )
6319{
6320 return qgsVariantLessThan( v1, v2 );
6321}
6322#endif
6323
6324
6325#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
6326
6330template<> CORE_EXPORT bool qMapLessThanKey<QVariantList>( const QVariantList &key1, const QVariantList &key2 ) SIP_SKIP;
6331#endif
6332
6333CORE_EXPORT QString qgsVsiPrefix( const QString &path );
6334
6340void CORE_EXPORT *qgsMalloc( size_t size ) SIP_SKIP;
6341
6346void CORE_EXPORT qgsFree( void *ptr ) SIP_SKIP;
6347
6348#ifndef SIP_RUN
6349
6350#ifdef _MSC_VER
6351#define CONSTLATIN1STRING inline const QLatin1String
6352#else
6353#define CONSTLATIN1STRING constexpr QLatin1String
6354#endif
6355
6357class ScopedIntIncrementor
6358{
6359 public:
6360
6361 ScopedIntIncrementor( int *variable )
6362 : mVariable( variable )
6363 {
6364 ( *mVariable )++;
6365 }
6366
6367 ScopedIntIncrementor( const ScopedIntIncrementor &other ) = delete;
6368 ScopedIntIncrementor &operator=( const ScopedIntIncrementor &other ) = delete;
6369
6370 void release()
6371 {
6372 if ( mVariable )
6373 ( *mVariable )--;
6374
6375 mVariable = nullptr;
6376 }
6377
6378 ~ScopedIntIncrementor()
6379 {
6380 release();
6381 }
6382
6383 private:
6384 int *mVariable = nullptr;
6385};
6387
6393{
6394 return QLatin1String(
6395 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]] )"""
6396 );
6397}
6398
6401{
6402 return QLatin1String( "+proj=longlat +datum=WGS84 +no_defs" );
6403}
6404
6407{
6408 return QLatin1String( "EPSG:4326" );
6409}
6410
6413{
6414 return QLatin1String( "NONE" );
6415}
6416
6418
6420const int PREVIEW_JOB_DELAY_MS = 250;
6421
6423const int MAXIMUM_LAYER_PREVIEW_TIME_MS = 250;
6424
6426
6427#endif
6428
6430const long GEOSRID = 4326;
6431
6433const long GEOCRS_ID = 3452;
6434
6436const long GEO_EPSG_CRS_ID = 4326;
6437
6442const int USER_CRS_START_ID = 100000;
6443
6444//
6445// Constants for point symbols
6446//
6447
6449const double DEFAULT_POINT_SIZE = 2.0;
6450const double DEFAULT_LINE_WIDTH = 0.26;
6451
6453const double DEFAULT_SEGMENT_EPSILON = 1e-8;
6454
6455typedef QMap<QString, QString> QgsStringMap SIP_SKIP;
6456
6465typedef unsigned long long qgssize;
6466
6467#ifndef SIP_RUN
6468#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
6469
6470#define Q_NOWARN_DEPRECATED_PUSH \
6471 _Pragma("GCC diagnostic push") \
6472 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"");
6473#define Q_NOWARN_DEPRECATED_POP \
6474 _Pragma("GCC diagnostic pop");
6475#define Q_NOWARN_UNREACHABLE_PUSH
6476#define Q_NOWARN_UNREACHABLE_POP
6477
6478#elif defined(_MSC_VER)
6479
6480#define Q_NOWARN_DEPRECATED_PUSH \
6481 __pragma(warning(push)) \
6482 __pragma(warning(disable:4996))
6483#define Q_NOWARN_DEPRECATED_POP \
6484 __pragma(warning(pop))
6485#define Q_NOWARN_UNREACHABLE_PUSH \
6486 __pragma(warning(push)) \
6487 __pragma(warning(disable:4702))
6488#define Q_NOWARN_UNREACHABLE_POP \
6489 __pragma(warning(pop))
6490
6491#else
6492
6493#define Q_NOWARN_DEPRECATED_PUSH
6494#define Q_NOWARN_DEPRECATED_POP
6495#define Q_NOWARN_UNREACHABLE_PUSH
6496#define Q_NOWARN_UNREACHABLE_POP
6497
6498#endif
6499#endif
6500
6501#ifndef QGISEXTERN
6502#ifdef Q_OS_WIN
6503# define QGISEXTERN extern "C" __declspec( dllexport )
6504#else
6505# if defined(__GNUC__) || defined(__clang__)
6506# define QGISEXTERN extern "C" __attribute__ ((visibility ("default")))
6507# else
6508# define QGISEXTERN extern "C"
6509# endif
6510#endif
6511#endif
6512#endif
6513
6514// see https://infektor.net/posts/2017-01-19-using-cpp17-attributes-today.html#using-the-nodiscard-attribute
6515#if __cplusplus >= 201703L
6516#define NODISCARD [[nodiscard]]
6517#elif defined(__clang__)
6518#define NODISCARD [[nodiscard]]
6519#elif defined(_MSC_VER)
6520#define NODISCARD // no support
6521#elif defined(__has_cpp_attribute)
6522#if __has_cpp_attribute(nodiscard)
6523#define NODISCARD [[nodiscard]]
6524#elif __has_cpp_attribute(gnu::warn_unused_result)
6525#define NODISCARD [[gnu::warn_unused_result]]
6526#else
6527#define NODISCARD Q_REQUIRED_RESULT
6528#endif
6529#else
6530#define NODISCARD Q_REQUIRED_RESULT
6531#endif
6532
6533#if __cplusplus >= 201703L
6534#define MAYBE_UNUSED [[maybe_unused]]
6535#elif defined(__clang__)
6536#define MAYBE_UNUSED [[maybe_unused]]
6537#elif defined(_MSC_VER)
6538#define MAYBE_UNUSED // no support
6539#elif defined(__has_cpp_attribute)
6540#if __has_cpp_attribute(gnu::unused)
6541#define MAYBE_UNUSED [[gnu::unused]]
6542#else
6543#define MAYBE_UNUSED
6544#endif
6545#else
6546#define MAYBE_UNUSED
6547#endif
6548
6549#ifndef FINAL
6550#define FINAL final
6551#endif
6552
6553#ifndef SIP_RUN
6554#ifdef _MSC_VER
6555#define BUILTIN_UNREACHABLE \
6556 __assume(false);
6557#elif defined(__GNUC__) && !defined(__clang__)
6558// Workaround a GCC bug where a -Wreturn-type warning is emitted in constructs
6559// like:
6560// switch( mVariableThatCanOnlyBeXorY )
6561// {
6562// case X:
6563// return "foo";
6564// case Y:
6565// return "foo";
6566// }
6567// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951
6568#define BUILTIN_UNREACHABLE \
6569 __builtin_unreachable();
6570#else
6571#define BUILTIN_UNREACHABLE
6572#endif
6573#endif // SIP_RUN
6574
6575#ifdef SIP_RUN
6576
6581QString CORE_EXPORT geoWkt();
6582
6584QString CORE_EXPORT geoProj4();
6585
6587QString CORE_EXPORT geoEpsgCrsAuthId();
6588
6590QString CORE_EXPORT geoNone();
6591
6592#endif
The Qgis class provides global constants for use throughout the application.
Definition qgis.h:54
DistanceUnitType
Types of distance units.
Definition qgis.h:4731
GnssConstellation
GNSS constellation.
Definition qgis.h:1751
SettingsOption
Settings options.
Definition qgis.h:688
ProfileGeneratorFlag
Flags that control the way the QgsAbstractProfileGenerator operate.
Definition qgis.h:3914
ProcessingSourceType
Processing data source types.
Definition qgis.h:3262
GpsQualityIndicator
GPS signal quality indicator.
Definition qgis.h:1769
DataItemProviderCapability
Capabilities for data item providers.
Definition qgis.h:910
ProcessingFileParameterBehavior
Flags which dictate the behavior of QgsProcessingParameterFile.
Definition qgis.h:3502
QFlags< MapLayerRendererFlag > MapLayerRendererFlags
Flags which control how map layer renderers behave.
Definition qgis.h:2613
ProjectReadFlag
Flags which control project read behavior.
Definition qgis.h:3998
QFlags< BabelCommandFlag > BabelCommandFlags
Babel command flags.
Definition qgis.h:1864
MapToolUnit
Type of unit of tolerance value from settings.
Definition qgis.h:4637
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
Definition qgis.h:3087
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
Definition qgis.h:3577
QFlags< GpsInformationComponent > GpsInformationComponents
GPS information component.
Definition qgis.h:1831
ScaleBarDistanceLabelHorizontalPlacement
Scale bar distance label horizontal placement.
Definition qgis.h:4965
PointCloudSymbol
Rendering symbols for point cloud points.
Definition qgis.h:3942
SymbolRotationMode
Modes for handling how symbol and text entity rotation is handled when maps are rotated.
Definition qgis.h:750
GeometryValidityFlag
Geometry validity check flags.
Definition qgis.h:1918
QFlags< RasterProviderCapability > RasterProviderCapabilities
Raster data provider capabilities.
Definition qgis.h:4562
ExpressionType
Expression types.
Definition qgis.h:5132
MapLayerActionFlag
Map layer action flags.
Definition qgis.h:4308
ScaleBarDistanceLabelVerticalPlacement
Scale bar distance label vertical placement.
Definition qgis.h:4951
MapLayerProperty
Generic map layer properties.
Definition qgis.h:2113
VectorProviderCapability
Vector data provider capabilities.
Definition qgis.h:463
BufferSide
Side of line to buffer.
Definition qgis.h:1943
RasterResamplingStage
Stage at which raster resampling occurs.
Definition qgis.h:1380
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
Definition qgis.h:4297
VectorTileProviderCapability
Enumeration with capabilities that vector tile data providers might implement.
Definition qgis.h:5178
AltitudeClamping
Altitude clamping.
Definition qgis.h:3691
VectorTileProviderFlag
Flags for vector tile data providers.
Definition qgis.h:5160
VectorTemporalMode
Vector layer temporal feature modes.
Definition qgis.h:2412
SublayerFlag
Flags which reflect the properties of sublayers in a dataset.
Definition qgis.h:1319
QFlags< ProjectCapability > ProjectCapabilities
Flags which control project capabilities.
Definition qgis.h:4039
LabelLinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1206
CoordinateDisplayType
Formats for displaying coordinates.
Definition qgis.h:4147
ProcessingParameterTypeFlag
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:3450
QFlags< VectorRenderingSimplificationFlag > VectorRenderingSimplificationFlags
Simplification flags for vector feature rendering.
Definition qgis.h:2813
DashPatternSizeAdjustment
Dash pattern size adjustment options.
Definition qgis.h:3060
GpsFixStatus
GPS fix status.
Definition qgis.h:1736
AnnotationItemNodeType
Annotation item node types.
Definition qgis.h:2339
static const char * QGIS_DEV_VERSION
The development version.
Definition qgis.h:82
VectorFileWriterCapability
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1004
QFlags< MapSettingsFlag > MapSettingsFlags
Map settings flags.
Definition qgis.h:2556
CrsIdentifierType
Available identifier string types for representing coordinate reference systems.
Definition qgis.h:2249
QFlags< RasterRendererFlag > RasterRendererFlags
Flags which control behavior of raster renderers.
Definition qgis.h:1404
AngularDirection
Angular directions.
Definition qgis.h:3175
DriveType
Drive types.
Definition qgis.h:1057
UnitType
Unit types.
Definition qgis.h:4652
ContentStatus
Status for fetched or stored content.
Definition qgis.h:1692
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
Definition qgis.h:1654
SnappingType
SnappingTypeFlag defines on what object the snapping is performed.
Definition qgis.h:713
LayoutUnit
Layout measurement units.
Definition qgis.h:4859
Q_ENUM(GpsFixStatus)
RelationshipStrength
Relationship strength.
Definition qgis.h:4100
Q_ENUM(GnssConstellation)
MarkerLinePlacement
Defines how/where the symbols should be placed on a line.
Definition qgis.h:2898
QFlags< ProjectReadFlag > ProjectReadFlags
Project load flags.
Definition qgis.h:4017
Point3DShape
3D point shape types.
Definition qgis.h:3833
GeometryOperationResult
Success or failure of a geometry operation.
Definition qgis.h:1889
QFlags< StringStatistic > StringStatistics
Statistics to be calculated for string values.
Definition qgis.h:5514
BrowserItemState
Browser item states.
Definition qgis.h:872
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:5073
QFlags< TiledSceneProviderCapability > TiledSceneProviderCapabilities
Tiled scene data provider capabilities.
Definition qgis.h:5221
FeatureRequestFilterType
Types of feature request filters.
Definition qgis.h:2056
MarkerClipMode
Marker clipping modes.
Definition qgis.h:3018
GpsNavigationStatus
GPS navigation status.
Definition qgis.h:1789
AnnotationItemFlag
Flags for annotation items.
Definition qgis.h:2296
RenderSubcomponentProperty
Rendering subcomponent properties.
Definition qgis.h:2822
ProcessingTinInputLayerType
Defines the type of input layer for a Processing TIN input.
Definition qgis.h:3592
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
Definition qgis.h:2147
Statistic
Available generic statistics.
Definition qgis.h:5432
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
Definition qgis.h:733
AngleUnit
Units of angles.
Definition qgis.h:4794
CaptureTechnique
Capture technique.
Definition qgis.h:376
SpatialIndexPresence
Enumeration of spatial index presence states.
Definition qgis.h:522
BrowserItemCapability
Browser item capabilities.
Definition qgis.h:885
AttributeFormSuppression
Available form types for layout of the attribute form editor.
Definition qgis.h:5103
QFlags< AuthConfigurationStorageCapability > AuthConfigurationStorageCapabilities
Authentication configuration storage capabilities.
Definition qgis.h:145
QFlags< LayerTreeFilterFlag > LayerTreeFilterFlags
Layer tree filter flags.
Definition qgis.h:4240
LayerTreeInsertionMethod
Layer tree insertion methods.
Definition qgis.h:4217
RasterProviderCapability
Raster data provider capabilities.
Definition qgis.h:4542
LineClipMode
Line clipping modes.
Definition qgis.h:3032
VectorRenderingSimplificationFlag
Simplification flags for vector feature rendering.
Definition qgis.h:2798
QFlags< GeometryValidityFlag > GeometryValidityFlags
Geometry validity flags.
Definition qgis.h:1922
BrowserDirectoryMonitoring
Browser directory item monitoring switches.
Definition qgis.h:959
VsiHandlerType
GDAL VSI handler types.
Definition qgis.h:5334
SettingsTreeNodeType
Type of tree node.
Definition qgis.h:618
TilePixelRatio
DpiMode enum.
Definition qgis.h:3115
DatabaseProviderConnectionCapability2
The Capability enum represents the extended operations supported by the connection.
Definition qgis.h:5010
LabelOffsetType
Behavior modifier for label offset and distance, only applies in some label placement modes.
Definition qgis.h:1172
QFlags< ProfileGeneratorFlag > ProfileGeneratorFlags
Definition qgis.h:3920
LabelPrioritization
Label prioritization.
Definition qgis.h:1111
GradientColorSource
Gradient color sources.
Definition qgis.h:2947
FileFilterType
Type of file filters.
Definition qgis.h:1285
LabelPlacement
Placement modes which determine how label candidates are generated for a feature.
Definition qgis.h:1125
RasterLayerType
Raster layer types.
Definition qgis.h:4419
QFlags< VectorLayerTypeFlag > VectorLayerTypeFlags
Vector layer type flags.
Definition qgis.h:395
ScaleBarAlignment
Scalebar alignment.
Definition qgis.h:4922
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:4458
VectorExportResult
Vector layer export result codes.
Definition qgis.h:983
DistanceUnit
Units of distance.
Definition qgis.h:4669
RasterTemporalCapabilityFlag
Flags for raster layer temporal capabilities.
Definition qgis.h:2483
SymbolLayerFlag
Flags controlling behavior of symbol layers.
Definition qgis.h:814
GradientSpread
Gradient spread options, which control how gradients are rendered outside of their start and end poin...
Definition qgis.h:2991
QFlags< AnnotationItemGuiFlag > AnnotationItemGuiFlags
Annotation item GUI flags.
Definition qgis.h:2329
LabelPolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1231
ScaleMethod
Scale methods.
Definition qgis.h:588
SldExportOption
SLD export options.
Definition qgis.h:660
VectorSimplificationAlgorithm
Simplification algorithms for vector features.
Definition qgis.h:2782
FilePathType
File path types.
Definition qgis.h:1523
CadConstraintType
Advanced digitizing constraint type.
Definition qgis.h:3783
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:5118
PointCountMethod
Methods which define the number of points randomly filling a polygon.
Definition qgis.h:3006
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition qgis.h:675
MapCanvasFlag
Flags controlling behavior of map canvases.
Definition qgis.h:3201
LayerTreeFilterFlag
Layer tree filter flags.
Definition qgis.h:4230
AttributeFormLayout
Available form types for layout of the attribute form editor.
Definition qgis.h:5088
FeatureRequestFlag
Flags for controlling feature requests.
Definition qgis.h:2028
VertexType
Types of vertex.
Definition qgis.h:2835
ShaderInterpolationMethod
Color ramp shader interpolation methods.
Definition qgis.h:1335
DataProviderFlag
Generic data provider flags.
Definition qgis.h:2141
Q_ENUM(GpsNavigationStatus)
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg)
Definition qgis.h:5312
GeometryValidationEngine
Available engines for validating geometries.
Definition qgis.h:1931
TransactionMode
Transaction mode.
Definition qgis.h:3678
Q_ENUM(ScaleToTileZoomLevelMethod)
QFlags< FeatureRendererFlag > FeatureRendererFlags
Flags controlling behavior of vector feature renderers.
Definition qgis.h:772
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
Definition qgis.h:4571
RasterDrawingStyle
Raster drawing styles.
Definition qgis.h:4435
GeosCreationFlag
Flags which control geos geometry creation behavior.
Definition qgis.h:1981
GpsInformationComponent
GPS information component.
Definition qgis.h:1803
ViewSyncModeFlag
Synchronization of 2D map canvas and 3D view.
Definition qgis.h:3220
ProcessingProviderFlag
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3288
FileOperationFlag
File operation flags.
Definition qgis.h:2098
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
Definition qgis.h:926
ProjectCapability
Flags which control project capabilities.
Definition qgis.h:4029
QFlags< BabelFormatCapability > BabelFormatCapabilities
Babel GPS format capabilities.
Definition qgis.h:1849
QFlags< SymbolLayerFlag > SymbolLayerFlags
Symbol layer flags.
Definition qgis.h:821
QFlags< RasterInterfaceCapability > RasterInterfaceCapabilities
Raster interface capabilities.
Definition qgis.h:4529
Q_ENUM(VectorProfileType)
AttributeActionType
Attribute action types.
Definition qgis.h:4331
TemporalNavigationMode
Temporal navigation modes.
Definition qgis.h:2366
ProcessingFieldParameterDataType
Processing field parameter data types.
Definition qgis.h:3530
AreaUnit
Units of area.
Definition qgis.h:4746
StringStatistic
Available string statistics.
Definition qgis.h:5494
FieldDomainMergePolicy
Merge policy for field domains.
Definition qgis.h:3637
ZonalStatistic
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:5350
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition qgis.h:154
SqlKeywordCategory
SqlKeywordCategory enum represents the categories of the SQL keywords used by the SQL query editor.
Definition qgis.h:1039
QFlags< SnappingType > SnappingTypes
Snapping types.
Definition qgis.h:724
GraduatedMethod
Methods for modifying symbols by range in a graduated symbol renderer.
Definition qgis.h:3075
QFlags< LabelLinePlacementFlag > LabelLinePlacementFlags
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1221
TiledSceneBoundingVolumeType
Tiled scene bounding volume types.
Definition qgis.h:5230
TextLayoutMode
Text layout modes.
Definition qgis.h:2699
PropertyType
Property types.
Definition qgis.h:646
QFlags< RenderContextFlag > RenderContextFlags
Render context flags.
Definition qgis.h:2591
LayerFilter
Filter for layers.
Definition qgis.h:188
Q_ENUM(ProviderStyleStorageCapability)
QFlags< SublayerFlag > SublayerFlags
Sublayer flags.
Definition qgis.h:1323
RasterRendererFlag
Flags which control behavior of raster renderers.
Definition qgis.h:1394
PythonEmbeddedMode
Authorisation to run Python Embedded in projects.
Definition qgis.h:403
CrsType
Coordinate reference system types.
Definition qgis.h:2159
QFlags< GeosCreationFlag > GeosCreationFlags
Geos geometry creation behavior flags.
Definition qgis.h:1992
SensorThingsEntity
OGC SensorThings API entity types.
Definition qgis.h:5550
MeshEditingErrorType
Type of error that can occur during mesh frame editing.
Definition qgis.h:1506
FieldDomainSplitPolicy
Split policy for field domains.
Definition qgis.h:3620
ArcGisRestServiceType
Available ArcGIS REST service types.
Definition qgis.h:4067
RasterFileWriterResult
Raster file export results.
Definition qgis.h:1489
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
Definition qgis.h:2351
ProcessingPropertyAvailability
Property availability, used for QgsProcessingAlgorithm::VectorProperties in order to determine if pro...
Definition qgis.h:3371
MapRecenteringMode
Modes for recentering map canvases.
Definition qgis.h:3233
ActionType
Action types.
Definition qgis.h:4267
ActionStart
Enum to determine when an operation would begin.
Definition qgis.h:1074
PlaybackOperation
Media playback operations.
Definition qgis.h:2395
QFlags< SymbolLayerUserFlag > SymbolLayerUserFlags
Symbol layer user flags.
Definition qgis.h:844
QFlags< TextRendererFlag > TextRendererFlags
Definition qgis.h:3154
ProviderStyleStorageCapability
The StorageCapability enum represents the style storage operations supported by the provider.
Definition qgis.h:5024
AvoidIntersectionsMode
Flags which control how intersections of pre-existing feature are handled when digitizing new feature...
Definition qgis.h:3969
MarkerShape
Marker shapes.
Definition qgis.h:2849
LegendJsonRenderFlag
Legend JSON export flags.
Definition qgis.h:4252
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Definition qgis.h:4586
RasterElevationMode
Raster layer elevation modes.
Definition qgis.h:3730
Capitalization
String capitalization options.
Definition qgis.h:3132
TemporalIntervalMatchMethod
Method to use when resolving a temporal range to a data provider layer or band.
Definition qgis.h:2468
PictureFormat
Picture formats.
Definition qgis.h:4893
QFlags< LabelPolygonPlacementFlag > LabelPolygonPlacementFlags
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1243
LabelQuadrantPosition
Label quadrant positions.
Definition qgis.h:1186
QFlags< PlotToolFlag > PlotToolFlags
Definition qgis.h:3821
ScaleToTileZoomLevelMethod
Available methods for converting map scales to tile zoom levels.
Definition qgis.h:3163
SublayerQueryFlag
Flags which control how data providers will scan for sublayers in a dataset.
Definition qgis.h:1302
QFlags< VectorFileWriterCapability > VectorFileWriterCapabilities
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1014
TextOrientation
Text orientations.
Definition qgis.h:2684
TemporalUnit
Temporal units.
Definition qgis.h:4815
QFlags< RasterRendererCapability > RasterRendererCapabilities
Raster renderer capabilities.
Definition qgis.h:1425
QFlags< SymbolPreviewFlag > SymbolPreviewFlags
Symbol preview flags.
Definition qgis.h:801
UnplacedLabelVisibility
Unplaced label visibility.
Definition qgis.h:1086
CrsDefinitionFormat
CRS definition formats.
Definition qgis.h:3605
SpatialFilterType
Feature request spatial filter types.
Definition qgis.h:2085
QFlags< ProcessingParameterTypeFlag > ProcessingParameterTypeFlags
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:3465
TileAvailability
Possible availability states for a tile within a tile matrix.
Definition qgis.h:5197
ProjectFlag
Flags which control the behavior of QgsProjects.
Definition qgis.h:3801
FeatureRendererFlag
Flags controlling behavior of vector feature renderers.
Definition qgis.h:762
BrowserItemType
Browser item types.
Definition qgis.h:853
QFlags< FeatureRequestFlag > FeatureRequestFlags
Flags for controlling feature requests.
Definition qgis.h:2045
SettingsType
Types of settings entries.
Definition qgis.h:599
QFlags< SettingsOption > SettingsOptions
Definition qgis.h:693
RasterTemporalMode
Raster layer temporal modes.
Definition qgis.h:2453
RasterAttributeTableType
The RasterAttributeTableType enum represents the type of RAT.
Definition qgis.h:1463
LabelingFlag
Various flags that affect drawing and placement of labels.
Definition qgis.h:2639
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:337
RelationshipType
Relationship types.
Definition qgis.h:4086
ScriptLanguageCapability
Script language capabilities.
Definition qgis.h:4196
RasterInterfaceCapability
Raster interface capabilities.
Definition qgis.h:4509
JoinStyle
Join styles for buffers.
Definition qgis.h:1968
PointCloudDrawOrder
Pointcloud rendering order for 2d views.
Definition qgis.h:3954
QFlags< RasterBandStatistic > RasterBandStatistics
Statistics to be calculated for raster bands.
Definition qgis.h:5541
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3348
TextCharacterVerticalAlignment
Text vertical alignment for characters.
Definition qgis.h:2767
FieldDuplicatePolicy
Duplicate policy for fields.
Definition qgis.h:3652
UserProfileSelectionPolicy
User profile selection policy.
Definition qgis.h:5039
QFlags< FileOperationFlag > FileOperationFlags
File operation flags.
Definition qgis.h:2103
DpiMode
DpiMode enum.
Definition qgis.h:3101
Q_ENUM(ProfileExportType)
BrowserLayerType
Browser item layer types.
Definition qgis.h:935
QFlags< ProcessingAlgorithmFlag > ProcessingAlgorithmFlags
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3339
AltitudeBinding
Altitude binding.
Definition qgis.h:3704
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
Definition qgis.h:450
Q_ENUM(ProcessingProviderFlag)
TiledSceneRendererFlag
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:5290
MapLayerActionTarget
Map layer action targets.
Definition qgis.h:4282
ShaderClassificationMethod
Color ramp shader classification methods.
Definition qgis.h:1350
ZonalStatisticResult
Zonal statistics result codes.
Definition qgis.h:5382
ScriptLanguage
Scripting languages.
Definition qgis.h:4173
QFlags< BrowserItemCapability > BrowserItemCapabilities
Browser item capabilities.
Definition qgis.h:899
FeatureAvailability
Possible return value for QgsFeatureSource::hasFeatures() to determine if a source is empty.
Definition qgis.h:541
TiledSceneProviderCapability
Tiled scene data provider capabilities.
Definition qgis.h:5211
LabelMultiLineAlignment
Text alignment for multi-line labels.
Definition qgis.h:1269
RasterBandStatistic
Available raster band statistics.
Definition qgis.h:5523
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
Definition qgis.h:5188
AuthConfigurationStorageCapability
Authentication configuration storage capabilities.
Definition qgis.h:100
PythonEmbeddedType
Type of Python Embedded in projects.
Definition qgis.h:417
QFlags< ZonalStatistic > ZonalStatistics
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:5373
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
Definition qgis.h:2440
TextRenderFormat
Options for rendering text.
Definition qgis.h:2624
DataType
Raster data types.
Definition qgis.h:351
Q_ENUM(ProfileSurfaceSymbology)
QFlags< ViewSyncModeFlag > ViewSyncModeFlags
Definition qgis.h:3225
QFlags< SublayerQueryFlag > SublayerQueryFlags
Sublayer query flags.
Definition qgis.h:1309
SystemOfMeasurement
Systems of unit measurement.
Definition qgis.h:4622
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
Definition qgis.h:1434
VerticalAxisInversion
Vertical axis inversion options for 3D views.
Definition qgis.h:3876
QFlags< CoordinateTransformationFlag > CoordinateTransformationFlags
Coordinate transformation flags.
Definition qgis.h:2525
RelationshipCapability
Relationship capabilities.
Definition qgis.h:4126
RasterBuildPyramidOption
Raster pyramid building options.
Definition qgis.h:4473
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
Definition qgis.h:500
NavigationMode
The navigation mode used by 3D cameras.
Definition qgis.h:3864
LinearReferencingPlacement
Defines how/where the labels should be placed in a linear referencing symbol layer.
Definition qgis.h:2918
TileChildrenAvailability
Possible availability states for a tile's children.
Definition qgis.h:5258
LayerType
Types of layers that can be added to a map.
Definition qgis.h:169
QFlags< AnnotationItemFlag > AnnotationItemFlags
Annotation item flags.
Definition qgis.h:2302
FieldOrigin
Field origin.
Definition qgis.h:1551
LinearReferencingLabelSource
Defines what quantity to use for the labels shown in a linear referencing symbol layer.
Definition qgis.h:2932
QFlags< Statistic > Statistics
Statistics to be calculated for generic values.
Definition qgis.h:5460
PlotToolFlag
Flags that control the way the QgsPlotTools operate.
Definition qgis.h:3817
RenderUnit
Rendering size units.
Definition qgis.h:4839
CoordinateOrder
Order of coordinates.
Definition qgis.h:2234
SelectionFlag
Flags which control feature selection behavior.
Definition qgis.h:1644
QFlags< SettingsTreeNodeOption > SettingsTreeNodeOptions
Definition qgis.h:635
EndCapStyle
End cap styles for buffers.
Definition qgis.h:1955
ScaleCalculationMethod
Scale calculation logic.
Definition qgis.h:4906
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:5281
QFlags< MapLayerActionFlag > MapLayerActionFlags
Map layer action flags.
Definition qgis.h:4320
QFlags< MapLayerProperty > MapLayerProperties
Map layer properties.
Definition qgis.h:2118
QFlags< LoadStyleFlag > LoadStyleFlags
Flags for loading layer styles.
Definition qgis.h:225
BabelCommandFlag
Babel command flags, which control how commands and arguments are generated for executing GPSBabel pr...
Definition qgis.h:1860
QFlags< LabelingFlag > LabelingFlags
Flags that affect drawing and placement of labels.
Definition qgis.h:2659
FieldDomainType
Types of field domain.
Definition qgis.h:3665
MapLayerRendererFlag
Flags which control how map layer renderers behave.
Definition qgis.h:2601
RenderContextFlag
Flags which affect rendering operations.
Definition qgis.h:2566
RasterPipeInterfaceRole
Raster pipe interface roles.
Definition qgis.h:1363
CoverageValidityResult
Coverage validity results.
Definition qgis.h:2001
DataProviderReadFlag
Flags which control data provider construction.
Definition qgis.h:431
ScaleBarSegmentSizeMode
Modes for setting size for scale bar segments.
Definition qgis.h:4937
Aggregate
Available aggregates to calculate.
Definition qgis.h:5400
SymbolPreviewFlag
Flags for controlling how symbol preview images are generated.
Definition qgis.h:796
AnnotationItemGuiFlag
Flags for controlling how an annotation item behaves in the GUI.
Definition qgis.h:2325
MapBoxGlStyleSourceType
Available MapBox GL style source types.
Definition qgis.h:4048
LayoutUnitType
Types of layout units.
Definition qgis.h:4879
VectorDataProviderAttributeEditCapability
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:554
DashPatternLineEndingRule
Dash pattern line ending rules.
Definition qgis.h:3045
FieldMetadataProperty
Standard field metadata values.
Definition qgis.h:1592
TiledSceneRequestFlag
Flags which control how tiled scene requests behave.
Definition qgis.h:5271
RasterRendererCapability
Raster renderer capabilities.
Definition qgis.h:1415
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
Definition qgis.h:1680
HistoryProviderBackend
History provider backends.
Definition qgis.h:3246
RasterExportType
Raster file export types.
Definition qgis.h:1476
SublayerPromptMode
Specifies how to handle layer sources with multiple sublayers.
Definition qgis.h:1535
TextVerticalAlignment
Text vertical alignment.
Definition qgis.h:2751
RelationshipCardinality
Relationship cardinality.
Definition qgis.h:4112
GradientType
Gradient types.
Definition qgis.h:2961
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
Definition qgis.h:4208
VectorProfileType
Types of elevation profiles to generate for vector sources.
Definition qgis.h:3902
GpsFeatureType
GPS feature types.
Definition qgis.h:1874
VectorLayerTypeFlag
Vector layer type flags.
Definition qgis.h:390
MakeValidMethod
Algorithms to use when repairing invalid geometries.
Definition qgis.h:2014
RangeLimits
Describes how the limits of a range are handled.
Definition qgis.h:3716
QFlags< ProjectFlag > ProjectFlags
Definition qgis.h:3808
VectorTemporalLimitMode
Mode for the handling of the limits of the filtering timeframe for vector features.
Definition qgis.h:2428
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:3491
SqlLayerDefinitionCapability
SqlLayerDefinitionCapability enum lists the arguments supported by the provider when creating SQL que...
Definition qgis.h:1022
VectorEditResult
Specifies the result of a vector layer edit operation.
Definition qgis.h:1665
QFlags< VectorDataProviderAttributeEditCapability > VectorDataProviderAttributeEditCapabilities
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:566
Axis
Cartesian axes.
Definition qgis.h:2283
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3359
QFlags< RelationshipCapability > RelationshipCapabilities
Relationship capabilities.
Definition qgis.h:4138
QFlags< SymbolRenderHint > SymbolRenderHints
Symbol render hints.
Definition qgis.h:741
VolumeUnit
Units of volume.
Definition qgis.h:4771
AttributeEditorType
Attribute editor types.
Definition qgis.h:5054
QFlags< LegendJsonRenderFlag > LegendJsonRenderFlags
Definition qgis.h:4256
QFlags< ProviderStyleStorageCapability > ProviderStyleStorageCapabilities
Definition qgis.h:5030
SymbolLayerUserFlag
User-specified flags controlling behavior of symbol layers.
Definition qgis.h:834
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
Definition qgis.h:2072
QFlags< SymbolFlag > SymbolFlags
Symbol flags.
Definition qgis.h:787
QFlags< ProcessingFeatureSourceDefinitionFlag > ProcessingFeatureSourceDefinitionFlags
Flags which control behavior for a Processing feature source.
Definition qgis.h:3413
ProfileExportType
Types of export for elevation profiles.
Definition qgis.h:3929
MeshElevationMode
Mesh layer elevation modes.
Definition qgis.h:3744
ProjectFileFormat
Flags which control project read behavior.
Definition qgis.h:3984
SnappingMode
SnappingMode defines on which layer the snapping is performed.
Definition qgis.h:701
SymbolType
Symbol types.
Definition qgis.h:574
RasterColorInterpretation
Raster color interpretation.
Definition qgis.h:4368
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
Definition qgis.h:3889
LabelPlacementEngineVersion
Labeling placement engine version.
Definition qgis.h:2670
Q_ENUM(ProcessingAlgorithmFlag)
ColorModel
Color model types.
Definition qgis.h:5570
RendererUsage
Usage of the renderer.
Definition qgis.h:3188
SettingsTreeNodeOption
Options for named list nodes.
Definition qgis.h:630
BabelFormatCapability
Babel GPS format capabilities.
Definition qgis.h:1841
PostgresRelKind
Postgres database relkind options.
Definition qgis.h:4989
GpsConnectionType
GPS connection types.
Definition qgis.h:1707
Q_ENUM(InputControllerType)
QFlags< DatabaseProviderConnectionCapability2 > DatabaseProviderConnectionCapabilities2
Definition qgis.h:5015
ProcessingFeatureSourceDefinitionFlag
Flags which control behavior for a Processing feature source.
Definition qgis.h:3400
LoadStyleFlag
Flags for loading layer styles.
Definition qgis.h:215
BetweenLineConstraint
Between line constraints which can be enabled.
Definition qgis.h:3757
QFlags< VectorTileProviderFlag > VectorTileProviderFlags
Vector tile data provider flags.
Definition qgis.h:5170
MetadataDateType
Date types for metadata.
Definition qgis.h:4349
QFlags< RasterTemporalCapabilityFlag > RasterTemporalCapabilityFlags
Flags for raster layer temporal capabilities.
Definition qgis.h:2493
ProcessingFeatureSourceFlag
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3424
RasterIdentifyFormat
Raster identify formats.
Definition qgis.h:4488
TextHorizontalAlignment
Text horizontal alignment.
Definition qgis.h:2732
SymbolFlag
Flags controlling behavior of symbols.
Definition qgis.h:781
LineExtensionSide
Designates whether the line extension constraint is currently soft locked with the previous or next v...
Definition qgis.h:3770
HttpMethod
Different methods of HTTP requests.
Definition qgis.h:971
WkbType
The WKB type describes the number of dimensions a geometry has.
Definition qgis.h:256
QFlags< SldExportOption > SldExportOptions
Definition qgis.h:666
SymbolCoordinateReference
Symbol coordinate reference modes.
Definition qgis.h:2976
QFlags< ProcessingProviderFlag > ProcessingProviderFlags
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3301
TileRefinementProcess
Tiled scene tile refinement processes.
Definition qgis.h:5246
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
Definition qgis.h:5485
SelectionRenderingMode
Specifies how a selection should be rendered.
Definition qgis.h:1605
InputControllerType
Input controller types.
Definition qgis.h:4977
TextRendererFlag
Flags which control the behavior of rendering text.
Definition qgis.h:3150
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
Definition qgis.h:1632
CrsAxisDirection
Coordinate reference system axis directions.
Definition qgis.h:2184
ProcessingModelChildParameterSource
Processing model child parameter sources.
Definition qgis.h:3561
QFlags< MarkerLinePlacement > MarkerLinePlacements
Definition qgis.h:2909
QFlags< MapCanvasFlag > MapCanvasFlags
Flags controlling behavior of map canvases.
Definition qgis.h:3211
CrsWktVariant
Coordinate reference system WKT formatting variants.
Definition qgis.h:2264
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:5303
AutoRefreshMode
Map layer automatic refresh modes.
Definition qgis.h:2128
AnnotationPlacementMode
Annotation item placement modes.
Definition qgis.h:2312
ProcessingAlgorithmFlag
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3312
FieldConfigurationFlag
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1568
SettingsOrigin
The setting origin describes where a setting is stored.
Definition qgis.h:4160
ProcessingParameterFlag
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:3476
LabelOverlapHandling
Label overlap handling.
Definition qgis.h:1098
FeatureSymbologyExport
Options for exporting features considering their symbology.
Definition qgis.h:5147
QFlags< LayerFilter > LayerFilters
Definition qgis.h:206
ProcessingDateTimeParameterDataType
Processing date time parameter data types.
Definition qgis.h:3548
CoordinateTransformationFlag
Flags which adjust the coordinate transformations behave.
Definition qgis.h:2514
TextComponent
Text components.
Definition qgis.h:2716
DateTimeStatistic
Available date/time statistics.
Definition qgis.h:5469
AnimationState
Animation states.
Definition qgis.h:2382
TransformDirection
Indicates the direction (forward or inverse) of a transform.
Definition qgis.h:2502
LightSourceType
Light source types for 3D scenes.
Definition qgis.h:3852
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3436
QFlags< HistoryProviderBackend > HistoryProviderBackends
Definition qgis.h:3251
LabelPredefinedPointPosition
Positions for labels when using the Qgis::LabelPlacement::OrderedPositionsAroundPoint placement mode.
Definition qgis.h:1146
QFlags< FieldConfigurationFlag > FieldConfigurationFlags
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1583
UpsideDownLabelHandling
Handling techniques for upside down labels.
Definition qgis.h:1254
DeviceConnectionStatus
GPS connection status.
Definition qgis.h:1721
ProcessingNumberParameterType
Processing numeric parameter data types.
Definition qgis.h:3516
MapSettingsFlag
Flags which adjust the way maps are rendered.
Definition qgis.h:2534
QFlags< SqlLayerDefinitionCapability > SqlLayerDefinitionCapabilities
SQL layer definition capabilities.
Definition qgis.h:1030
ProcessingLogLevel
Logging level for algorithms to use when pushing feedback messages.
Definition qgis.h:3385
SelectBehavior
Specifies how a selection should be applied.
Definition qgis.h:1618
Utility class that encapsulates an action based on vector attributes.
Definition qgsaction.h:37
Utility class for calculating aggregates for a field (or expression) over the features from a vector ...
Utility functions for working with ArcGIS REST services.
This is 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.
This class represents a coordinate reference system (CRS).
Class for doing transforms between two map coordinate systems.
Abstract base class for curved geometry type.
Definition qgscurve.h:35
Base class for all items in the model.
Definition qgsdataitem.h:46
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.
This class 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:46
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.
Stores global configuration for labeling engine.
Contains constants and enums relating to labeling.
Definition qgslabeling.h:32
Item that represents a layer that can be opened with one of the providers.
A layout item subclass that displays SVG files or raster format images (jpg, png, ....
The QgsMapLayerProxyModel class provides an easy to use model to display the list of layers in widget...
Base class for all map layer types.
Definition qgsmaplayer.h:76
The QgsMapSettings class contains configuration for rendering of the map.
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:107
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.
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:44
Contains information about the context of a rendering operation.
The QgsScaleBarSettings class stores the appearance and layout settings for scalebar drawing with Qgs...
Represent settings entry and provides methods for reading and writing settings values.
RAII signal blocking class.
Definition qgis.h:5781
Object * operator->()
Returns pointer to blocked QObject.
Definition qgis.h:5799
QgsSignalBlocker(Object *object)
Constructor for QgsSignalBlocker.
Definition qgis.h:5788
Abstract base class for simple marker symbol layers.
This is a container for configuration of the snapping of 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:231
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.
Handles rendering text using rich formatting options, including drop shadows, buffers and background ...
This is the class is providing tolerance value in map unit values.
Helper functions for various unit types.
Implementation of data provider temporal properties for QgsVectorDataProviders.
This is the 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 data sets.
This class contains information how to simplify 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:509
@ Points
Point based rendering, requires point data.
As part of the API refactoring and improvements which landed in QGIS
void * qgsMalloc(size_t size)
Allocates size bytes and returns a pointer to the allocated memory.
Definition qgis.cpp:94
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:87
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:248
uint qHash(const QVariant &variant)
Hash for QVariant.
Definition qgis.cpp:199
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:73
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:80
void qgsFree(void *ptr)
Frees the memory space pointed to by ptr.
Definition qgis.cpp:116
#define str(x)
Definition qgis.cpp:39
QString qgsVsiPrefix(const QString &path)
Definition qgis.cpp:194
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:121
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:189
CONSTLATIN1STRING geoNone()
Constant that holds the string representation for "No ellips/No CRS".
Definition qgis.h:6412
const double DEFAULT_LINE_WIDTH
Definition qgis.h:6450
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:6304
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:6127
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
Definition qgis.h:5834
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:5991
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
Definition qgis.h:6108
QString qgsFlagValueToKeys(const T &value, bool *returnOk=nullptr)
Returns the value for the given keys of a flag.
Definition qgis.h:6166
const long GEO_EPSG_CRS_ID
Magic number for a geographic coord sys in EpsgCrsId ID format.
Definition qgis.h:6436
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:5974
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:6188
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:6465
const QMap< T, QString > qgsEnumMap()
Returns a map of all enum entries.
Definition qgis.h:6091
bool qgsFloatNear(float a, float b, float epsilon=4 *FLT_EPSILON)
Compare two floats (but allow some difference)
Definition qgis.h:5928
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:6008
const QList< T > qgsEnumList()
Returns a list all enum entries.
Definition qgis.h:6074
double qgsRound(double number, int places)
Returns a double number, rounded (as close as possible) to the specified number of places.
Definition qgis.h:5958
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference)
Definition qgis.h:5917
CONSTLATIN1STRING geoProj4()
PROJ4 string that represents a geographic coord sys.
Definition qgis.h:6400
bool qgsNanCompatibleEquals(double a, double b)
Compare two doubles, treating nan values as equal.
Definition qgis.h:5879
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Definition qgis.h:5821
const double DEFAULT_SEGMENT_EPSILON
Default snapping tolerance for segments.
Definition qgis.h:6453
QMap< QString, QString > QgsStringMap
Definition qgis.h:6455
#define CONSTLATIN1STRING
Definition qgis.h:6353
CONSTLATIN1STRING geoWkt()
Wkt string that represents a geographic coord sys.
Definition qgis.h:6392
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
Compare two doubles using specified number of significant digits.
Definition qgis.h:5934
const int USER_CRS_START_ID
Magick number that determines whether a projection crsid is a system (srs.db) or user (~/....
Definition qgis.h:6442
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:5899
const long GEOSRID
Magic number for a geographic coord sys in POSTGIS SRID.
Definition qgis.h:6430
#define QHASH_FOR_CLASS_ENUM(T)
Definition qgis.h:43
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:6318
CONSTLATIN1STRING geoEpsgCrsAuthId()
Geographic coord sys from EPSG authority.
Definition qgis.h:6406
const long GEOCRS_ID
Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id.
Definition qgis.h:6433
const double DEFAULT_POINT_SIZE
Magic number that determines the default point size for point symbols.
Definition qgis.h:6449
#define SIP_ENUM_BASETYPE(type)
Definition qgis_sip.h:278
#define SIP_SKIP
Definition qgis_sip.h:126
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:271
#define SIP_MONKEYPATCH_FLAGS_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:272
#define SIP_MONKEYPATCH_SCOPEENUM
Definition qgis_sip.h:270
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)
Definition qgis_sip.h:273
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)
int precision
Utility class for identifying a unique vertex within a geometry.
Definition qgsvertexid.h:30