QGIS API Documentation 4.3.0-Master (91d4a333d5d)
Loading...
Searching...
No Matches
qgis.h
Go to the documentation of this file.
1/***************************************************************************
2 qgis.h - QGIS namespace
3 -------------------
4 begin : Sat Jun 30 2002
5 copyright : (C) 2002 by Gary E.Sherman
6 email : sherman at mrcc.com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGIS_H
19#define QGIS_H
20
21
22#include <cfloat>
23#include <cmath>
24#include <memory>
25
26#include "qgis_core.h"
27#include "qgis_sip.h"
28
29#include <QMetaEnum>
30#include <QString>
31#include <QTimeZone>
32
33using namespace Qt::StringLiterals;
34
35#ifdef SIP_RUN
36// clang-format off
37% ModuleHeaderCode
38#include <qgis.h>
39% End
40
41% ModuleCode
42int QgisEvent = QEvent::User + 1;
43% End
44// clang-format on
45#endif
46
47#ifndef SIP_RUN
48// qHash implementation for scoped enum type
49// https://gitlab.com/frostasm/programming-knowledge-base/-/snippets/20120
50#define QHASH_FOR_CLASS_ENUM( T ) \
51 inline size_t qHash( const T &t, size_t seed ) \
52 { \
53 return ::qHash( static_cast<typename std::underlying_type<T>::type>( t ), seed ); \
54 }
55#endif
56
61 class CORE_EXPORT Qgis
62{
63 Q_GADGET
64 Q_CLASSINFO( "RegisterEnumClassesUnscoped", "false" )
65
66 public:
72 static QString version();
73
79 static int versionInt();
80
86 static QString releaseName();
87
89 static const char *QGIS_DEV_VERSION;
90
96 static QString devVersion();
97
98 // Enumerations
99 //
100
107 {
108 ClearStorage = 1 << 0,
109
110 ReadConfiguration = 1 << 1,
111 UpdateConfiguration = 1 << 2,
112 DeleteConfiguration = 1 << 3,
113 CreateConfiguration = 1 << 4,
114
115 ReadCertificateIdentity = 1 << 5,
116 UpdateCertificateIdentity = 1 << 6,
117 DeleteCertificateIdentity = 1 << 7,
118 CreateCertificateIdentity = 1 << 8,
119
120 ReadSslCertificateCustomConfig = 1 << 9,
121 UpdateSslCertificateCustomConfig = 1 << 10,
122 DeleteSslCertificateCustomConfig = 1 << 11,
123 CreateSslCertificateCustomConfig = 1 << 12,
124
125 ReadCertificateAuthority = 1 << 13,
126 UpdateCertificateAuthority = 1 << 14,
127 DeleteCertificateAuthority = 1 << 15,
128 CreateCertificateAuthority = 1 << 16,
129
130 ReadCertificateTrustPolicy = 1 << 17,
131 UpdateCertificateTrustPolicy = 1 << 18,
132 DeleteCertificateTrustPolicy = 1 << 19,
133 CreateCertificateTrustPolicy = 1 << 20,
134
135 ReadMasterPassword = 1 << 21,
136 UpdateMasterPassword = 1 << 22,
137 DeleteMasterPassword = 1 << 23,
138 CreateMasterPassword = 1 << 24,
139
140 ReadSetting = 1 << 25,
141 UpdateSetting = 1 << 26,
142 DeleteSetting = 1 << 27,
143 CreateSetting = 1 << 28,
144
145 };
146 Q_ENUM( AuthConfigurationStorageCapability )
147
148
154
160 {
161 Info = 0,
166 };
167 Q_ENUM( MessageLevel )
168
169
175 {
176 PlainText SIP_MONKEYPATCH_COMPAT_NAME( MessageText ),
177 Html SIP_MONKEYPATCH_COMPAT_NAME( MessageHtml ),
178 };
179 Q_ENUM( StringFormat )
180
181
186 enum class NetworkRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
187 {
188 DisableMessageLogging = 1 << 0,
189 };
190 Q_ENUM( NetworkRequestFlag )
191
192
198 Q_FLAG( NetworkRequestFlags )
199
206 {
207 Vector SIP_MONKEYPATCH_COMPAT_NAME( VectorLayer ),
208 Raster SIP_MONKEYPATCH_COMPAT_NAME( RasterLayer ),
209 Plugin SIP_MONKEYPATCH_COMPAT_NAME( PluginLayer ),
210 Mesh SIP_MONKEYPATCH_COMPAT_NAME( MeshLayer ),
211 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( VectorTileLayer ),
212 Annotation SIP_MONKEYPATCH_COMPAT_NAME( AnnotationLayer ),
213 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( PointCloudLayer ),
214 Group SIP_MONKEYPATCH_COMPAT_NAME( GroupLayer ),
215 TiledScene,
216 };
217 Q_ENUM( LayerType )
218
219
225 {
226 RasterLayer = 1,
227 NoGeometry = 2,
228 PointLayer = 4,
229 LineLayer = 8,
230 PolygonLayer = 16,
231 HasGeometry = PointLayer | LineLayer | PolygonLayer,
232 VectorLayer = NoGeometry | HasGeometry,
233 PluginLayer = 32,
234 WritableLayer = 64,
235 MeshLayer = 128,
236 VectorTileLayer = 256,
237 PointCloudLayer = 512,
238 AnnotationLayer = 1024,
239 TiledSceneLayer = 2048,
240 All = RasterLayer | VectorLayer | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer,
241 SpatialLayer = RasterLayer | HasGeometry | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer
242 };
243 Q_DECLARE_FLAGS( LayerFilters, LayerFilter )
244 Q_FLAG( LayerFilters )
245
246
247
252 enum class LayerItemCapability : int SIP_ENUM_BASETYPE( IntFlag )
253 {
254 AddComments = 1 << 0,
255 };
256 Q_ENUM( LayerItemCapability )
257
258
264 Q_FLAG( LayerItemCapabilities )
265
271 enum class LoadStyleFlag : int SIP_ENUM_BASETYPE( IntFlag )
272 {
273 IgnoreMissingStyleErrors
274 = 1 << 0,
275 };
276 Q_ENUM( LoadStyleFlag )
277
278
283 Q_DECLARE_FLAGS( LoadStyleFlags, LoadStyleFlag )
284 Q_FLAG( LoadStyleFlags )
285
314 {
315 Unknown = 0,
316 Point = 1,
317 LineString = 2,
318 Polygon = 3,
319 Triangle = 17,
320 MultiPoint = 4,
321 MultiLineString = 5,
322 MultiPolygon = 6,
323 GeometryCollection = 7,
324 CircularString = 8,
325 CompoundCurve = 9,
326 CurvePolygon = 10,
327 MultiCurve = 11,
328 MultiSurface = 12,
329 PolyhedralSurface = 15,
330 TIN = 16,
331 NurbsCurve = 21,
332 NoGeometry = 100,
333 PointZ = 1001,
334 LineStringZ = 1002,
335 PolygonZ = 1003,
336 TriangleZ = 1017,
337 MultiPointZ = 1004,
338 MultiLineStringZ = 1005,
339 MultiPolygonZ = 1006,
340 GeometryCollectionZ = 1007,
341 CircularStringZ = 1008,
342 CompoundCurveZ = 1009,
343 CurvePolygonZ = 1010,
344 MultiCurveZ = 1011,
345 MultiSurfaceZ = 1012,
346 PolyhedralSurfaceZ = 1015,
347 TINZ = 1016,
348 NurbsCurveZ = 1021,
349 PointM = 2001,
350 LineStringM = 2002,
351 PolygonM = 2003,
352 TriangleM = 2017,
353 MultiPointM = 2004,
354 MultiLineStringM = 2005,
355 MultiPolygonM = 2006,
356 GeometryCollectionM = 2007,
357 CircularStringM = 2008,
358 CompoundCurveM = 2009,
359 CurvePolygonM = 2010,
360 MultiCurveM = 2011,
361 MultiSurfaceM = 2012,
362 PolyhedralSurfaceM = 2015,
363 TINM = 2016,
364 NurbsCurveM = 2021,
365 PointZM = 3001,
366 LineStringZM = 3002,
367 PolygonZM = 3003,
368 MultiPointZM = 3004,
369 MultiLineStringZM = 3005,
370 MultiPolygonZM = 3006,
371 GeometryCollectionZM = 3007,
372 CircularStringZM = 3008,
373 CompoundCurveZM = 3009,
374 CurvePolygonZM = 3010,
375 MultiCurveZM = 3011,
376 MultiSurfaceZM = 3012,
377 PolyhedralSurfaceZM = 3015,
378 TINZM = 3016,
379 TriangleZM = 3017,
380 NurbsCurveZM = 3021,
381 Point25D = 0x80000001,
382 LineString25D,
383 Polygon25D,
384 MultiPoint25D,
385 MultiLineString25D,
386 MultiPolygon25D
387 };
388 Q_ENUM( WkbType )
389
390
399 {
400 Point SIP_MONKEYPATCH_COMPAT_NAME( PointGeometry ),
401 Line SIP_MONKEYPATCH_COMPAT_NAME( LineGeometry ),
402 Polygon SIP_MONKEYPATCH_COMPAT_NAME( PolygonGeometry ),
403 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownGeometry ),
404 Null SIP_MONKEYPATCH_COMPAT_NAME( NullGeometry ),
405 };
406 Q_ENUM( GeometryType )
407
408
413 {
414 UnknownDataType = 0,
415 Byte = 1,
416 Int8 = 14,
417 UInt16 = 2,
418 Int16 = 3,
419 UInt32 = 4,
420 Int32 = 5,
421 Float32 = 6,
422 Float64 = 7,
423 CInt16 = 8,
424 CInt32 = 9,
425 CFloat32 = 10,
426 CFloat64 = 11,
427 ARGB32 = 12,
428 ARGB32_Premultiplied = 13
429 };
430 Q_ENUM( DataType )
431
432
437 enum class CaptureTechnique : int
438 {
439 StraightSegments,
440 CircularString,
441 Streaming,
442 Shape,
443 PolyBezier,
444 NurbsCurve,
445 };
446 Q_ENUM( CaptureTechnique )
447
448
449
454 enum class VectorLayerTypeFlag : int SIP_ENUM_BASETYPE( IntFlag )
455 {
456 SqlQuery = 1 << 0
457 };
458 Q_ENUM( VectorLayerTypeFlag )
461 Q_FLAG( VectorLayerTypeFlags )
462
467 enum class EmbeddedScriptMode SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, PythonMacroMode ) : int
468 {
469 Never = 0,
470 Ask = 1,
471 SessionOnly = 2,
472 Always = 3,
473 NotForThisSession = 4,
474 NeverAsk = 5,
475 };
476 Q_ENUM( EmbeddedScriptMode )
477
478
482 enum class EmbeddedScriptType : int
483 {
484 Macro = 0,
485 ExpressionFunction = 1,
486 Action = 2,
487 FormInitCode = 3,
488 };
489 Q_ENUM( EmbeddedScriptType )
490
491
495 enum class ProjectTrustStatus : int
496 {
497 Undetermined = 0,
498 Trusted = 1,
499 Untrusted = 2,
500 };
501 Q_ENUM( ProjectTrustStatus )
502
503
511 {
512 TrustDataSource SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustDataSource )
513 = 1 << 0,
514 SkipFeatureCount = 1 << 1,
515 LoadDefaultStyle SIP_MONKEYPATCH_COMPAT_NAME( FlagLoadDefaultStyle ) = 1 << 2,
516 SkipGetExtent = 1 << 3,
517 SkipFullScan = 1 << 4,
518 ForceReadOnly = 1 << 5,
519 SkipCredentialsRequest
520 = 1 << 6,
521 ParallelThreadLoading = 1 << 7,
522 };
523 Q_ENUM( DataProviderReadFlag )
524
525
533 Q_FLAG( DataProviderReadFlags )
534
535 // TODO QGIS 5 -- remove NoCapabilities and rely on VectorProviderCapabilities() instead
536
545 {
546 NoCapabilities = 0,
547 AddFeatures = 1,
548 DeleteFeatures = 1 << 1,
549 ChangeAttributeValues = 1 << 2,
550 AddAttributes = 1 << 3,
551 DeleteAttributes = 1 << 4,
552 CreateSpatialIndex = 1 << 6,
553 SelectAtId = 1 << 7,
554 ChangeGeometries = 1 << 8,
555 SelectEncoding = 1 << 13,
556 CreateAttributeIndex = 1 << 12,
557 SimplifyGeometries = 1 << 14,
558 SimplifyGeometriesWithTopologicalValidation = 1 << 15,
559 TransactionSupport = 1 << 16,
560 CircularGeometries = 1 << 17,
561 ChangeFeatures = 1 << 18,
562 RenameAttributes = 1 << 19,
563 FastTruncate = 1 << 20,
564 ReadLayerMetadata = 1 << 21,
565 WriteLayerMetadata = 1 << 22,
566 CancelSupport = 1 << 23,
567 CreateRenderer = 1 << 24,
568 CreateLabeling = 1 << 25,
569 ReloadData = 1 << 26,
570 FeatureSymbology = 1 << 27,
571 CacheData = 1 << 28,
572 ReadFieldDomains = 1 << 29,
573 EditingCapabilities = AddFeatures | DeleteFeatures | ChangeAttributeValues | ChangeGeometries | AddAttributes | DeleteAttributes | RenameAttributes,
574 };
575 Q_ENUM( VectorProviderCapability )
576
577
586
593 {
594 Abort,
595 CreateOrOverwriteFile,
596 CreateOrOverwriteLayer,
597 };
598 Q_ENUM( CreateLayerActionOnExisting )
599
600
606 {
607 Uncounted = -2,
608 UnknownCount = -1,
609 };
610 Q_ENUM( FeatureCountState )
611
612
619 {
620 Unknown SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexUnknown ) = 0,
621 NotPresent SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexNotPresent ) = 1,
622 Present SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexPresent ) = 2,
623 };
624 Q_ENUM( SpatialIndexPresence )
625
626
638 {
639 NoFeaturesAvailable = 0,
640 FeaturesAvailable,
641 FeaturesMaybeAvailable
642 };
643 Q_ENUM( FeatureAvailability )
644
645
651 {
652 EditAlias = 1 << 0,
653 EditComment = 1 << 1,
654 };
655
656 Q_ENUM( VectorDataProviderAttributeEditCapability )
657
658
665
671 {
672 Marker,
673 Line,
674 Fill,
675 Hybrid
676 };
677 Q_ENUM( SymbolType )
678
679
685 {
686 ScaleArea,
687 ScaleDiameter
688 };
689 Q_ENUM( ScaleMethod )
690
691
696 {
697 Custom,
698 Variant,
699 String,
700 StringList,
701 VariantMap,
702 Bool,
703 Integer,
704 Double,
705 EnumFlag,
706 Color
707 };
708 Q_ENUM( SettingsType )
709
710
715 {
716 Root,
717 Standard,
718 NamedList,
719 };
720 Q_ENUM( SettingsTreeNodeType )
721
722
726 enum class SettingsTreeNodeOption : int SIP_ENUM_BASETYPE( IntFlag )
727 {
728 NamedListSelectedItemSetting = 1 << 0,
729 };
730
731 Q_ENUM( SettingsTreeNodeOption )
734
743 {
744 Invalid SIP_MONKEYPATCH_COMPAT_NAME( InvalidProperty ),
745 Static SIP_MONKEYPATCH_COMPAT_NAME( StaticProperty ),
746 Field SIP_MONKEYPATCH_COMPAT_NAME( FieldBasedProperty ),
747 Expression SIP_MONKEYPATCH_COMPAT_NAME( ExpressionBasedProperty ),
748 };
749 Q_ENUM( PropertyType )
750
751
756 enum class SldExportOption : int SIP_ENUM_BASETYPE( IntFlag )
757 {
758 NoOptions = 0,
759 Svg = 1 << 0,
760 Png = 1 << 1,
761 };
762 Q_ENUM( SldExportOption )
764 Q_FLAG( SldExportOptions )
765
771 enum class SldExportVendorExtension : int SIP_ENUM_BASETYPE( IntFlag )
772 {
773 NoVendorExtension = 0,
774 GeoServerVendorExtension = 1 << 1,
775 DeegreeVendorExtension = 1 << 2,
776 };
777 Q_ENUM( SldExportVendorExtension )
778
779
780
784 enum class SettingsOption : int SIP_ENUM_BASETYPE( IntFlag )
785 {
786 SaveFormerValue = 1 << 1,
787 SaveEnumFlagAsInt = 1 << 2,
788 };
789 Q_ENUM( SettingsOption )
790 Q_DECLARE_FLAGS( SettingsOptions, SettingsOption )
791 Q_FLAG( SettingsOptions )
792
798 {
799 ActiveLayer = 1,
800 AllLayers = 2,
801 AdvancedConfiguration = 3,
802 };
803 Q_ENUM( SnappingMode )
804
805
810 {
811 NoSnap SIP_MONKEYPATCH_COMPAT_NAME( NoSnapFlag ) = 0,
812 Vertex SIP_MONKEYPATCH_COMPAT_NAME( VertexFlag ) = 1 << 0,
813 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentFlag ) = 1 << 1,
814 Area SIP_MONKEYPATCH_COMPAT_NAME( AreaFlag ) = 1 << 2,
815 Centroid SIP_MONKEYPATCH_COMPAT_NAME( CentroidFlag ) = 1 << 3,
816 MiddleOfSegment SIP_MONKEYPATCH_COMPAT_NAME( MiddleOfSegmentFlag ) = 1 << 4,
817 LineEndpoint SIP_MONKEYPATCH_COMPAT_NAME( LineEndpointFlag ) = 1 << 5,
818 };
819 Q_ENUM( SnappingType )
822 Q_FLAG( SnappingTypes )
823
830 {
831 DynamicRotation = 1 << 1,
832 IsSymbolLayerSubSymbol = 1 << 2,
833 ForceVectorRendering = 1 << 3,
834 ExcludeSymbolBuffers = 1 << 4,
835 };
836 Q_ENUM( SymbolRenderHint )
839 Q_FLAG( SymbolRenderHints )
840
847 {
848 ReadSymbol = 1 << 0,
849 WriteSymbol = 1 << 1,
850 };
851
852 Q_ENUM( SymbolConverterCapability )
853
854
861
867 enum class SymbolRotationMode : int
868 {
869 RespectMapRotation,
870 IgnoreMapRotation,
871 };
872 Q_ENUM( SymbolRotationMode )
873
874
875
887 Q_ENUM( HorizontalAnchorPoint )
888
889
902 Q_ENUM( VerticalAnchorPoint )
903
904
909 enum class FeatureRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
910 {
911 AffectsLabeling = 1 << 0,
912 };
913 Q_ENUM( FeatureRendererFlag )
914
915
921 Q_FLAG( FeatureRendererFlags )
922
928 enum class SymbolFlag : int SIP_ENUM_BASETYPE( IntFlag )
929 {
930 RendererShouldUseSymbolLevels = 1 << 0,
931 AffectsLabeling = 1 << 1,
932 };
933 Q_ENUM( SymbolFlag )
935 Q_DECLARE_FLAGS( SymbolFlags, SymbolFlag )
936 Q_FLAG( SymbolFlags )
937
944 {
945 FlagIncludeCrosshairsForMarkerSymbols = 1 << 0,
946 };
947 Q_ENUM( SymbolPreviewFlag )
950 Q_FLAG( SymbolPreviewFlags )
951
961 enum class SymbolLayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
962 {
963 DisableFeatureClipping = 1 << 0,
964 CanCalculateMaskGeometryPerFeature = 1 << 1,
965 AffectsLabeling = 1 << 2,
966 };
967 Q_ENUM( SymbolLayerFlag )
970 Q_FLAG( SymbolLayerFlags )
971
981 enum class SymbolLayerUserFlag : int SIP_ENUM_BASETYPE( IntFlag )
982 {
983 DisableSelectionRecoloring = 1 << 0,
984 };
985 Q_ENUM( SymbolLayerUserFlag )
986
987
993 Q_FLAG( SymbolLayerUserFlags )
994
1001 {
1002 Collection,
1003 Directory,
1004 Layer,
1005 Error,
1006 Favorites,
1007 Project,
1008 Custom,
1009 Fields,
1010 Field,
1011 };
1012 Q_ENUM( BrowserItemType )
1013
1014
1020 {
1021 NotPopulated,
1022 Populating,
1023 Populated,
1024 };
1025 Q_ENUM( BrowserItemState )
1026
1027
1033 {
1034 NoCapabilities = 0,
1035 SetCrs = 1 << 0,
1036 Fertile = 1 << 1,
1037 Fast = 1 << 2,
1038 Collapse = 1 << 3,
1039 Rename = 1 << 4,
1040 Delete = 1 << 5,
1041 ItemRepresentsFile = 1 << 6,
1042 RefreshChildrenWhenItemIsRefreshed = 1 << 7,
1043 ReadOnly = 1 << 8,
1044 };
1045 Q_ENUM( BrowserItemCapability )
1048 Q_FLAG( BrowserItemCapabilities )
1049
1055 enum class BrowserItemFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
1056 {
1057 HideWhenNotFilteringByLayerType = 1 << 0,
1058 };
1059 Q_ENUM( BrowserItemFilterFlag )
1060
1061
1067 Q_FLAG( BrowserItemFilterFlags )
1068
1077 {
1078 NoCapabilities SIP_MONKEYPATCH_COMPAT_NAME( NoDataCapabilities ) = 0,
1080 Directories SIP_MONKEYPATCH_COMPAT_NAME( Dir ) = 1 << 1,
1081 Databases SIP_MONKEYPATCH_COMPAT_NAME( Database ) = 1 << 2,
1082 NetworkSources SIP_MONKEYPATCH_COMPAT_NAME( Net ) = 1 << 3,
1083 };
1084 Q_ENUM( DataItemProviderCapability )
1085
1086
1095
1102 {
1103 NoType,
1104 Vector,
1105 Raster,
1106 Point,
1107 Line,
1108 Polygon,
1109 TableLayer,
1110 Database,
1111 Table,
1112 Plugin,
1113 Mesh,
1114 VectorTile,
1115 PointCloud,
1116 TiledScene,
1117 };
1118 Q_ENUM( BrowserLayerType )
1119
1120
1126 {
1127 Default,
1128 NeverMonitor,
1129 AlwaysMonitor,
1130 };
1131 Q_ENUM( BrowserDirectoryMonitoring )
1132
1133
1137 enum class HttpMethod : int
1138 {
1139 Get = 0,
1140 Post = 1,
1141 Head,
1142 Put,
1143 Delete,
1144 };
1145 Q_ENUM( HttpMethod )
1146
1147
1153 {
1155 ErrorCreatingDataSource SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateDataSource ),
1156 ErrorCreatingLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateLayer ),
1157 ErrorAttributeTypeUnsupported SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeTypeUnsupported ),
1158 ErrorAttributeCreationFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeCreationFailed ),
1159 ErrorProjectingFeatures SIP_MONKEYPATCH_COMPAT_NAME( ErrProjection ),
1160 ErrorFeatureWriteFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrFeatureWriteFailed ),
1161 ErrorInvalidLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidLayer ),
1162 ErrorInvalidProvider SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidProvider ),
1163 ErrorProviderUnsupportedFeature SIP_MONKEYPATCH_COMPAT_NAME( ErrProviderUnsupportedFeature ),
1164 ErrorConnectionFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrConnectionFailed ),
1165 UserCanceled SIP_MONKEYPATCH_COMPAT_NAME( ErrUserCanceled ),
1166 };
1167 Q_ENUM( VectorExportResult )
1168
1169
1174 {
1175 FieldAliases = 1 << 0,
1176 FieldComments = 1 << 2,
1177 };
1178 Q_ENUM( VectorFileWriterCapability )
1179
1180
1186
1192 {
1193 SubsetStringFilter = 1 << 1,
1194 GeometryColumn = 1 << 2,
1195 PrimaryKeys = 1 << 3,
1196 UnstableFeatureIds = 1 << 4
1197 };
1198 Q_ENUM( SqlLayerDefinitionCapability )
1202
1208 enum class SqlKeywordCategory : int
1209 {
1210 Keyword,
1211 Constant,
1212 Function,
1213 Geospatial,
1214 Operator,
1215 Math,
1217 String,
1218 Identifier
1219 };
1220 Q_ENUM( SqlKeywordCategory )
1221
1222
1226 enum class DriveType : int
1227 {
1228 Unknown,
1229 Invalid,
1230 Removable,
1231 Fixed,
1232 Remote,
1233 CdRom,
1234 RamDisk,
1235 Cloud,
1236 };
1237 Q_ENUM( DriveType )
1238
1239
1244 {
1245 Deferred SIP_MONKEYPATCH_COMPAT_NAME( DownloadLater ),
1246 Immediate SIP_MONKEYPATCH_COMPAT_NAME( DownloadImmediately ),
1247 };
1248 Q_ENUM( ActionStart )
1249
1250
1256 {
1257 FollowEngineSetting,
1258 NeverShow,
1259 };
1260 Q_ENUM( UnplacedLabelVisibility )
1261
1262
1267 enum class LabelOverlapHandling : int
1268 {
1269 PreventOverlap,
1270 AllowOverlapIfRequired,
1271 AllowOverlapAtNoCost,
1272 };
1273 Q_ENUM( LabelOverlapHandling )
1274
1275
1281 {
1282 TreatWhitespaceAsCollision,
1283 IgnoreWhitespaceCollisions,
1284 };
1285 Q_ENUM( LabelWhitespaceCollisionHandling )
1286
1287
1292 enum class LabelPrioritization : int
1293 {
1294 PreferCloser,
1295 PreferPositionOrdering,
1296 };
1297 Q_ENUM( LabelPrioritization )
1298
1299
1307 {
1308 AroundPoint,
1309 OverPoint,
1310 Line,
1311 Curved,
1312 Horizontal,
1313 Free,
1314 OrderedPositionsAroundPoint,
1315 PerimeterCurved,
1316 OutsidePolygons,
1317 };
1318 Q_ENUM( LabelPlacement )
1319
1320
1325 enum class CurvedLabelMode : int
1326 {
1327 Default,
1328 PlaceCharactersAtVertices,
1329 StretchCharacterSpacingToFitLine,
1330 StretchWordSpacingToFitLine,
1331 };
1332 Q_ENUM( CurvedLabelMode )
1333
1334
1342 {
1343 TopLeft,
1344 TopSlightlyLeft,
1345 TopMiddle,
1346 TopSlightlyRight,
1347 TopRight,
1348 MiddleLeft,
1349 MiddleRight,
1350 BottomLeft,
1351 BottomSlightlyLeft,
1352 BottomMiddle,
1353 BottomSlightlyRight,
1354 BottomRight,
1355 OverPoint,
1356 };
1357 Q_ENUM( LabelPredefinedPointPosition )
1358
1359
1365 {
1366 LabelLargestPartOnly,
1367 LabelEveryPartWithEntireLabel,
1368 SplitLabelTextLinesOverParts,
1369 };
1370 Q_ENUM( MultiPartLabelingBehavior )
1371
1372
1381 {
1382 FromPoint,
1383 FromSymbolBounds,
1384 };
1385 Q_ENUM( LabelOffsetType )
1386
1387
1395 {
1396 AboveLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveLeft ),
1397 Above SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAbove ),
1398 AboveRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveRight ),
1400 Over SIP_MONKEYPATCH_COMPAT_NAME( QuadrantOver ),
1402 BelowLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowLeft ),
1403 Below SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelow ),
1404 BelowRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowRight ),
1405 };
1406 Q_ENUM( LabelQuadrantPosition )
1407
1408
1415 {
1416 OnLine = 1,
1417 AboveLine = 2,
1418 BelowLine = 4,
1419 MapOrientation = 8,
1420 };
1421 Q_ENUM( LabelLinePlacementFlag )
1422
1423
1431 Q_FLAG( LabelLinePlacementFlags )
1432
1440 {
1441 AllowPlacementOutsideOfPolygon = 1 << 0,
1442 AllowPlacementInsideOfPolygon = 1 << 1,
1443 };
1444 Q_ENUM( LabelPolygonPlacementFlag )
1445
1446
1454
1463 {
1464 FlipUpsideDownLabels SIP_MONKEYPATCH_COMPAT_NAME( Upright ),
1465 AllowUpsideDownWhenRotationIsDefined SIP_MONKEYPATCH_COMPAT_NAME( ShowDefined ),
1466 AlwaysAllowUpsideDown SIP_MONKEYPATCH_COMPAT_NAME( ShowAll )
1467 };
1468 Q_ENUM( UpsideDownLabelHandling )
1469
1470
1478 {
1480 Center SIP_MONKEYPATCH_COMPAT_NAME( MultiCenter ),
1482 FollowPlacement SIP_MONKEYPATCH_COMPAT_NAME( MultiFollowPlacement ),
1483 Justify SIP_MONKEYPATCH_COMPAT_NAME( MultiJustify ),
1484 };
1485 Q_ENUM( LabelMultiLineAlignment )
1486
1487
1495 {
1496 StartOfText,
1497 CenterOfText,
1498 EndOfText,
1499 FollowPlacement,
1500 };
1501 Q_ENUM( TextAnchorPoint )
1502
1503
1510 {
1511 Vector SIP_MONKEYPATCH_COMPAT_NAME( FilterVector ) = 1,
1512 Raster SIP_MONKEYPATCH_COMPAT_NAME( FilterRaster ),
1513 Mesh SIP_MONKEYPATCH_COMPAT_NAME( FilterMesh ),
1514 MeshDataset SIP_MONKEYPATCH_COMPAT_NAME( FilterMeshDataset ),
1515 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( FilterPointCloud ),
1516 VectorTile,
1517 TiledScene,
1518 };
1519 Q_ENUM( FileFilterType )
1520
1521
1526 enum class UriCleaningFlag : int SIP_ENUM_BASETYPE( IntFlag )
1527 {
1528 RemoveCredentials = 1 << 0,
1529 RedactCredentials = 1 << 1,
1530 };
1531 Q_ENUM( UriCleaningFlag )
1532
1533
1539 Q_FLAG( UriCleaningFlags )
1540
1546 enum class SourceHierarchyLevel : int
1547 {
1548 Connection,
1549 Group,
1550 Object,
1551 };
1552 Q_ENUM( SourceHierarchyLevel )
1553
1554
1559 enum class SublayerQueryFlag : int SIP_ENUM_BASETYPE( IntFlag )
1560 {
1561 FastScan = 1 << 0,
1562 ResolveGeometryType = 1 << 1,
1563 CountFeatures = 1 << 2,
1564 IncludeSystemTables = 1 << 3,
1565 OpenLayersToResolveDescriptions = 1 << 4,
1566 };
1567
1570 Q_FLAG( SublayerQueryFlags )
1571
1572
1577 enum class SublayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
1578 {
1579 SystemTable = 1 << 0,
1580 };
1581
1582 Q_DECLARE_FLAGS( SublayerFlags, SublayerFlag )
1584 Q_FLAG( SublayerFlags )
1585
1586
1594 {
1595 Linear SIP_MONKEYPATCH_COMPAT_NAME( Interpolated ) = 0,
1596 Discrete = 1,
1597 Exact = 2,
1598 };
1599 Q_ENUM( ShaderInterpolationMethod )
1600
1601
1609 {
1610 Continuous = 1,
1611 EqualInterval = 2,
1612 Quantile = 3,
1613 };
1614 Q_ENUM( ShaderClassificationMethod )
1615
1616
1622 {
1623 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownRole ) = 0,
1624 Provider SIP_MONKEYPATCH_COMPAT_NAME( ProviderRole ) = 1,
1625 Renderer SIP_MONKEYPATCH_COMPAT_NAME( RendererRole ) = 2,
1626 Brightness SIP_MONKEYPATCH_COMPAT_NAME( BrightnessRole ) = 3,
1627 Resampler SIP_MONKEYPATCH_COMPAT_NAME( ResamplerRole ) = 4,
1628 Projector SIP_MONKEYPATCH_COMPAT_NAME( ProjectorRole ) = 5,
1629 Nuller SIP_MONKEYPATCH_COMPAT_NAME( NullerRole ) = 6,
1630 HueSaturation SIP_MONKEYPATCH_COMPAT_NAME( HueSaturationRole ) = 7,
1631 };
1632 Q_ENUM( RasterPipeInterfaceRole )
1633
1634
1639 {
1640 ResampleFilter,
1641 Provider,
1642 };
1643 Q_ENUM( RasterResamplingStage )
1644
1645
1653 {
1654 Nearest,
1655 Bilinear,
1656 Cubic,
1657 CubicSpline,
1658 Lanczos,
1659 Average,
1660 Mode,
1661 Gauss
1662 };
1663 Q_ENUM( RasterResamplingMethod )
1664
1665
1670 enum class RasterRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
1671 {
1672 InternalLayerOpacityHandling = 1 << 0,
1673 UseNoDataForOutOfRangePixels
1674 = 1 << 1,
1675 };
1676
1683
1685 Q_FLAG( RasterRendererFlags )
1686
1687
1693 {
1694 UsesMultipleBands = 1 << 0,
1695 };
1696 Q_ENUM( RasterRendererCapability )
1697
1698
1705
1714 {
1716 MinimumMaximum SIP_MONKEYPATCH_COMPAT_NAME( MinMax ),
1717 StdDev,
1718 CumulativeCut
1719 };
1720 Q_ENUM( RasterRangeLimit )
1721
1722
1730 {
1731 WholeRaster SIP_MONKEYPATCH_COMPAT_NAME( None_ ),
1732 FixedCanvas SIP_MONKEYPATCH_COMPAT_NAME( CurrentCanvas ),
1733 UpdatedCanvas,
1734 };
1735 Q_ENUM( RasterRangeExtent )
1736
1737
1745 {
1746 Exact,
1747 Estimated,
1748 };
1749 Q_ENUM( RasterRangeAccuracy )
1750
1751
1757 {
1758 Generic = 0,
1759 PixelCount = 1,
1760 Name = 2,
1761 Min = 3,
1762 Max = 4,
1763 MinMax = 5,
1764 Red = 6,
1765 Green = 7,
1766 Blue = 8,
1767 Alpha = 9,
1768 RedMin = 10,
1769 GreenMin = 11,
1770 BlueMin = 12,
1771 AlphaMin = 13,
1772 RedMax = 14,
1773 GreenMax = 15,
1774 BlueMax = 16,
1775 AlphaMax = 17,
1776 MaxCount
1777 };
1778 Q_ENUM( RasterAttributeTableFieldUsage )
1779
1780
1786 {
1787 Thematic = 0,
1788 Athematic = 1
1789 };
1790 Q_ENUM( RasterAttributeTableType )
1791
1792
1799 {
1800 Raw = 0,
1801 RenderedImage SIP_MONKEYPATCH_COMPAT_NAME( Image ) = 1
1802 };
1803 Q_ENUM( RasterExportType )
1804
1805
1812 {
1814 SourceProviderError = 1,
1815 DestinationProviderError SIP_MONKEYPATCH_COMPAT_NAME( DestProviderError ) = 2,
1816 CreateDatasourceError = 3,
1817 WriteError = 4,
1818 NoDataConflict = 5,
1819 Canceled SIP_MONKEYPATCH_COMPAT_NAME( WriteCanceled ) = 6,
1820 };
1821 Q_ENUM( RasterFileWriterResult )
1822
1823
1828 enum class MeshEditingErrorType : int
1829 {
1830 NoError,
1831 InvalidFace,
1832 TooManyVerticesInFace,
1833 FlatFace,
1834 UniqueSharedVertex,
1835 InvalidVertex,
1836 ManifoldFace,
1837 };
1838 Q_ENUM( MeshEditingErrorType )
1839
1840
1845 enum class FilePathType : int
1846 {
1847 Absolute,
1848 Relative,
1849 };
1850 Q_ENUM( FilePathType )
1851
1852
1857 enum class SublayerPromptMode : int
1858 {
1859 AlwaysAsk,
1860 AskExcludingRasterBands,
1861 NeverAskSkip,
1862 NeverAskLoadAll,
1863 };
1864 Q_ENUM( SublayerPromptMode )
1865
1866
1874 {
1875 Unknown SIP_MONKEYPATCH_COMPAT_NAME( OriginUnknown ),
1876 Provider SIP_MONKEYPATCH_COMPAT_NAME( OriginProvider ),
1877 Join SIP_MONKEYPATCH_COMPAT_NAME( OriginJoin ),
1878 Edit SIP_MONKEYPATCH_COMPAT_NAME( OriginEdit ),
1879 Expression SIP_MONKEYPATCH_COMPAT_NAME( OriginExpression )
1880 };
1881 Q_ENUM( FieldOrigin )
1882
1883
1890 enum class FieldConfigurationFlag : int SIP_ENUM_BASETYPE( IntFlag )
1891 {
1892 NoFlag = 0,
1893 NotSearchable = 1 << 1,
1894 HideFromWms = 1 << 2,
1895 HideFromWfs = 1 << 3,
1896 };
1897 Q_ENUM( FieldConfigurationFlag )
1898
1899
1907 Q_FLAG( FieldConfigurationFlags )
1908
1914 enum class FieldMetadataProperty : int
1915 {
1916 GeometryCrs = 0x1000,
1917 GeometryWkbType = 0x1001,
1918 CustomProperty = 0x100000,
1919 };
1920 Q_ENUM( FieldMetadataProperty )
1921
1922
1927 enum class SelectionRenderingMode : int
1928 {
1929 Default,
1930 CustomColor,
1931 CustomSymbol,
1932 };
1933 Q_ENUM( SelectionRenderingMode )
1934
1935
1941 {
1942 SetSelection,
1943 AddToSelection,
1944 IntersectSelection,
1945 RemoveFromSelection,
1946 };
1947 Q_ENUM( SelectBehavior )
1948
1949
1955 {
1956 Intersect,
1957 Within,
1958 };
1959 Q_ENUM( SelectGeometryRelationship )
1960
1961
1966 enum class SelectionFlag : int SIP_ENUM_BASETYPE( IntFlag )
1967 {
1968 SingleFeatureSelection = 1 << 0,
1969 ToggleSelection = 1 << 1,
1970 };
1971
1977 Q_DECLARE_FLAGS( SelectionFlags, SelectionFlag )
1978
1980 Q_FLAG( SelectionFlags )
1981
1982
1988 {
1990 EmptyGeometry = 1,
1991 EditFailed = 2,
1992 FetchFeatureFailed = 3,
1993 InvalidLayer = 4,
1994 };
1995 Q_ENUM( VectorEditResult )
1996
1997
2003 {
2004 SemiTransparentCircle,
2005 Cross,
2006 NoMarker,
2007 };
2008 Q_ENUM( VertexMarkerType )
2009
2010
2014 enum class ContentStatus : int
2015 {
2016 NotStarted,
2017 Running,
2018 Finished,
2019 Failed,
2020 Canceled,
2021 };
2022 Q_ENUM( ContentStatus )
2023
2024
2029 enum class GpsConnectionType : int
2030 {
2031 Automatic,
2032 Internal,
2033 Serial,
2034 Gpsd,
2035 };
2036 Q_ENUM( GpsConnectionType )
2037
2038
2043 enum class DeviceConnectionStatus SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, GpsConnectionStatus ) : int
2044 {
2045 Disconnected,
2046 Connecting,
2047 Connected,
2048 };
2049 Q_ENUM( DeviceConnectionStatus )
2050
2051
2059 {
2060 NoData,
2061 NoFix,
2062 Fix2D,
2063 Fix3D
2064 };
2066
2067
2074 {
2075 Unknown,
2076 Gps,
2077 Glonass,
2078 Galileo,
2079 BeiDou,
2080 Qzss,
2081 Navic,
2082 Sbas,
2083 };
2085
2092 {
2093 Unknown = -1,
2094 Invalid,
2095 GPS,
2096 DGPS,
2097 PPS,
2098 RTK,
2099 FloatRTK,
2100 Estimated,
2101 Manual,
2102 Simulation,
2103 };
2104 Q_ENUM( GpsQualityIndicator )
2105
2106
2111 enum class GpsNavigationStatus : int
2112 {
2113 NotValid,
2114 Safe,
2115 Caution,
2116 Unsafe,
2117 };
2119
2125 enum class GpsInformationComponent : int SIP_ENUM_BASETYPE( IntFlag )
2126 {
2127 Location = 1 << 0,
2128 Altitude = 1 << 1,
2129 GroundSpeed = 1 << 2,
2130 Bearing = 1 << 3,
2131 TotalTrackLength = 1 << 4,
2132 TrackDistanceFromStart = 1 << 5,
2133 Pdop = 1 << 6,
2134 Hdop = 1 << 7,
2135 Vdop = 1 << 8,
2136 HorizontalAccuracy = 1 << 9,
2137 VerticalAccuracy = 1 << 10,
2138 HvAccuracy = 1 << 11,
2139 SatellitesUsed = 1 << 12,
2140 Timestamp = 1 << 13,
2141 TrackStartTime = 1 << 14,
2142 TrackEndTime = 1 << 15,
2143 TrackDistanceSinceLastPoint = 1 << 16,
2144 TrackTimeSinceLastPoint = 1 << 17,
2145 GeoidalSeparation = 1 << 18,
2146 EllipsoidAltitude = 1 << 19,
2147 };
2148
2156 Q_FLAG( GpsInformationComponents )
2157
2158
2163 enum class BabelFormatCapability : int SIP_ENUM_BASETYPE( IntFlag )
2164 {
2165 Import = 1 << 0,
2166 Export = 1 << 1,
2167 Waypoints = 1 << 2,
2168 Routes = 1 << 3,
2169 Tracks = 1 << 4,
2170 };
2171
2174 Q_FLAG( BabelFormatCapabilities )
2175
2176
2182 enum class BabelCommandFlag : int SIP_ENUM_BASETYPE( IntFlag )
2183 {
2184 QuoteFilePaths = 1 << 0,
2185 };
2186
2189 Q_FLAG( BabelCommandFlags )
2190
2191
2196 enum class GpsFeatureType : int
2197 {
2198 Waypoint,
2199 Route,
2200 Track,
2201 };
2202 Q_ENUM( GpsFeatureType )
2203
2204
2212 {
2214 NothingHappened = 1000,
2215 InvalidBaseGeometry,
2216 InvalidInputGeometryType,
2217 SelectionIsEmpty,
2218 SelectionIsGreaterThanOne,
2219 GeometryEngineError,
2220 LayerNotEditable,
2221 // Add part issues
2222 AddPartSelectedGeometryNotFound,
2223 AddPartNotMultiGeometry,
2224 // Add ring issues
2225 AddRingNotClosed,
2226 AddRingNotValid,
2227 AddRingCrossesExistingRings,
2228 AddRingNotInExistingFeature,
2229 // Split features
2230 SplitCannotSplitPoint,
2231 GeometryTypeHasChanged,
2232 };
2233 Q_ENUM( GeometryOperationResult )
2234
2235
2241 {
2242 AllowSelfTouchingHoles SIP_MONKEYPATCH_COMPAT_NAME( FlagAllowSelfTouchingHoles )
2243 = 1 << 0,
2244 };
2245
2248 Q_FLAG( GeometryValidityFlags )
2249
2250
2255 {
2256 QgisInternal SIP_MONKEYPATCH_COMPAT_NAME( ValidatorQgisInternal ),
2257 Geos SIP_MONKEYPATCH_COMPAT_NAME( ValidatorGeos ),
2258 Sfcgal,
2259 };
2260 Q_ENUM( GeometryValidationEngine )
2261
2262
2272 Q_ENUM( BufferSide )
2273
2274
2285 Q_ENUM( EndCapStyle )
2286
2287
2293 {
2294 Round SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleRound ) = 1,
2295 Miter SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleMiter ),
2296 Bevel SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleBevel ),
2297 };
2298 Q_ENUM( JoinStyle )
2299
2300
2305 enum class JoinStyle3D : int
2306 {
2307 Round = 1,
2308 Flat,
2309 CylindersAndSpheres,
2310 };
2311 Q_ENUM( JoinStyle3D )
2312
2313
2318 enum class GeometryBackend : int
2319 {
2320 QGIS = 1,
2321 GEOS,
2322 };
2323 Q_ENUM( GeometryBackend )
2324
2325
2330 enum class GeosCreationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2331 {
2332 RejectOnInvalidSubGeometry = 1 << 0,
2333 SkipEmptyInteriorRings = 1 << 1,
2334 };
2335 Q_ENUM( GeosCreationFlag )
2336
2337
2343 Q_FLAG( GeosCreationFlags )
2344
2350 enum class CoverageValidityResult : int
2351 {
2352 Invalid = 0,
2353 Valid = 1,
2354 Error = 2,
2355 };
2356 Q_ENUM( CoverageValidityResult )
2357
2358
2363 enum class MakeValidMethod : int
2364 {
2365 Linework = 0,
2366 Structure = 1,
2367 };
2368 Q_ENUM( MakeValidMethod )
2369
2370
2378 {
2379 NoFlags = 0,
2380 NoGeometry = 1,
2381 SubsetOfAttributes = 2,
2382 ExactIntersect = 4,
2383 IgnoreStaticNodesDuringExpressionCompilation
2384 = 8,
2385 EmbeddedSymbols = 16,
2386 };
2387 Q_ENUM( FeatureRequestFlag )
2388
2389
2397 Q_FLAG( FeatureRequestFlags )
2398
2407 {
2408 NoFilter SIP_MONKEYPATCH_COMPAT_NAME( FilterNone ),
2410 Expression SIP_MONKEYPATCH_COMPAT_NAME( FilterExpression ),
2412 };
2413 Q_ENUM( FeatureRequestFilterType )
2414
2415
2423 {
2424 NoCheck SIP_MONKEYPATCH_COMPAT_NAME( GeometryNoCheck ) = 0,
2425 SkipInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometrySkipInvalid ) = 1,
2426 AbortOnInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometryAbortOnInvalid ) = 2,
2427 };
2428 Q_ENUM( InvalidGeometryCheck )
2429
2430
2435 enum class SpatialFilterType : int
2436 {
2437 NoFilter,
2438 BoundingBox,
2439 DistanceWithin,
2440 };
2441 Q_ENUM( SpatialFilterType )
2442
2443
2448 enum class FileOperationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2449 {
2450 IncludeMetadataFile = 1 << 0,
2451 IncludeStyleFile = 1 << 1,
2452 };
2453
2456 Q_FLAG( FileOperationFlags )
2457
2458
2463 enum class MapLayerProperty : int SIP_ENUM_BASETYPE( IntFlag )
2464 {
2465 UsersCannotToggleEditing
2466 = 1 << 0,
2467 IsBasemapLayer = 1 << 1,
2468 Is3DBasemapLayer = 1 << 2,
2469 };
2470
2473 Q_FLAG( MapLayerProperties )
2474
2475
2480 enum class AutoRefreshMode : int
2481 {
2482 Disabled = 0,
2483 ReloadData = 1,
2484 RedrawOnly = 2,
2485 };
2486 Q_ENUM( AutoRefreshMode )
2487
2488
2493 enum class DataProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
2494 {
2495 IsBasemapSource = 1 << 1,
2496 FastExtent2D = 1 << 2,
2497 FastExtent3D = 1 << 3,
2498 Is3DBasemapSource = 1 << 4,
2499 };
2500
2503 Q_FLAG( DataProviderFlags )
2504
2505
2512 enum class CrsType : int
2513 {
2514 Unknown,
2515 Geodetic,
2516 Geocentric,
2517 Geographic2d,
2518 Geographic3d,
2519 Vertical,
2520 Projected,
2521 Compound,
2522 Temporal,
2523 Engineering,
2524 Bound,
2525 Other,
2526 DerivedProjected,
2527 };
2528 Q_ENUM( CrsType )
2529
2530
2537 enum class CrsAxisDirection : int
2538 {
2539 North,
2540 NorthNorthEast,
2541 NorthEast,
2542 EastNorthEast,
2543 East,
2544 EastSouthEast,
2545 SouthEast,
2546 SouthSouthEast,
2547 South,
2548 SouthSouthWest,
2549 SouthWest,
2550 WestSouthWest,
2551 West,
2552 WestNorthWest,
2553 NorthWest,
2554 NorthNorthWest,
2555 GeocentricX,
2556 GeocentricY,
2557 GeocentricZ,
2560 Forward,
2561 Aft,
2562 Port,
2563 Starboard,
2564 Clockwise,
2565 CounterClockwise,
2566 ColumnPositive,
2567 ColumnNegative,
2568 RowPositive,
2569 RowNegative,
2570 DisplayRight,
2571 DisplayLeft,
2572 DisplayUp,
2573 DisplayDown,
2574 Future,
2575 Past,
2576 Towards,
2577 AwayFrom,
2578 Unspecified,
2579 };
2580 Q_ENUM( CrsAxisDirection )
2581
2582
2587 enum class CoordinateOrder : int
2588 {
2589 Default,
2590 XY,
2591 YX,
2592 };
2593 Q_ENUM( CoordinateOrder )
2594
2595
2603 {
2604 ShortString,
2605 MediumString,
2606 FullString,
2607 };
2608 Q_ENUM( CrsIdentifierType )
2609
2610
2618 {
2620 WKT1_GDAL
2621 ),
2622 Wkt1Esri SIP_MONKEYPATCH_COMPAT_NAME( WKT1_ESRI ),
2623 Wkt2_2015 SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2015 ),
2624 Wkt2_2015Simplified SIP_MONKEYPATCH_COMPAT_NAME(
2625 WKT2_2015_SIMPLIFIED
2626 ),
2628 WKT2_2019
2629 ),
2630 Wkt2_2019Simplified SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2019_SIMPLIFIED ),
2631 Preferred SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED ) = Wkt2_2019,
2632 PreferredSimplified SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_SIMPLIFIED )
2633 = Wkt2_2019Simplified,
2634 PreferredGdal SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_GDAL ) = Wkt2_2019,
2635 };
2636 Q_ENUM( CrsWktVariant )
2637
2638
2644 {
2645 NoAction = 0,
2646 PromptUserForCrs = 1,
2647 UseProjectCrs = 2,
2648 UseDefaultCrs = 3,
2649 };
2650 Q_ENUM( UnknownLayerCrsBehavior )
2651
2652
2657 enum class Axis : int
2658 {
2659 X,
2660 Y,
2662 };
2663 Q_ENUM( Axis )
2664
2665
2670 enum class AnnotationItemFlag : int SIP_ENUM_BASETYPE( IntFlag )
2671 {
2672 ScaleDependentBoundingBox = 1 << 0,
2673 SupportsReferenceScale = 1 << 1,
2674 SupportsCallouts = 1 << 2,
2675 };
2676
2679 Q_FLAG( AnnotationItemFlags )
2680
2681
2687 {
2688 SpatialBounds = 0,
2689 FixedSize,
2690 RelativeToMapFrame,
2691 };
2692 Q_ENUM( AnnotationPlacementMode )
2693
2694
2699 enum class AnnotationItemGuiFlag : int SIP_ENUM_BASETYPE( IntFlag )
2700 {
2701 FlagNoCreationTools = 1 << 0,
2702 };
2703
2706 Q_FLAG( AnnotationItemGuiFlags )
2707
2708
2713 enum class AnnotationItemNodeType : int
2714 {
2715 VertexHandle,
2716 CalloutHandle,
2717 };
2718 Q_ENUM( AnnotationItemNodeType )
2719
2720
2726 {
2728 Invalid,
2729 ItemCleared,
2730 };
2731 Q_ENUM( AnnotationItemEditOperationResult )
2732
2733
2741 {
2742 Disabled SIP_MONKEYPATCH_COMPAT_NAME( NavigationOff ),
2743 Animated,
2744 FixedRange,
2745 Movie,
2746 };
2747 Q_ENUM( TemporalNavigationMode )
2748
2749
2762 Q_ENUM( AnimationState )
2763
2764
2769 enum class PlaybackOperation : int
2770 {
2771 SkipToStart,
2772 PreviousFrame,
2773 PlayReverse,
2774 Pause,
2775 PlayForward,
2776 NextFrame,
2777 SkipToEnd,
2778 };
2779 Q_ENUM( PlaybackOperation )
2780
2781
2787 {
2788 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2789 FeatureDateTimeInstantFromField SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeInstantFromField ),
2790 FeatureDateTimeStartAndEndFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromFields ),
2791 FeatureDateTimeStartAndDurationFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndDurationFromFields ),
2792 FeatureDateTimeStartAndEndFromExpressions SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromExpressions ),
2794 ModeRedrawLayerOnly
2795 ),
2796 };
2797 Q_ENUM( VectorTemporalMode )
2798
2799
2805 {
2806 IncludeBeginExcludeEnd = 0,
2807 IncludeBeginIncludeEnd,
2808 };
2809 Q_ENUM( VectorTemporalLimitMode )
2810
2811
2817 {
2818 HasFixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ProviderHasFixedTemporalRange ) = 0,
2819 StoresFeatureDateTimeInstantInField SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeInstantInField ),
2820 StoresFeatureDateTimeStartAndEndInSeparateFields SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeStartAndEndInSeparateFields ),
2821 };
2822 Q_ENUM( VectorDataProviderTemporalMode )
2823
2824
2830 {
2831 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2832 TemporalRangeFromDataProvider SIP_MONKEYPATCH_COMPAT_NAME( ModeTemporalRangeFromDataProvider ) = 1,
2833 RedrawLayerOnly SIP_MONKEYPATCH_COMPAT_NAME( ModeRedrawLayerOnly )
2834 = 2,
2835 FixedRangePerBand = 3,
2836 RepresentsTemporalValues = 4,
2837 FixedDateTime = 5,
2838 };
2839 Q_ENUM( RasterTemporalMode )
2840
2841
2847 {
2848 MatchUsingWholeRange,
2849 MatchExactUsingStartOfRange,
2850 MatchExactUsingEndOfRange,
2851 FindClosestMatchToStartOfRange,
2852 FindClosestMatchToEndOfRange
2853 };
2854 Q_ENUM( TemporalIntervalMatchMethod )
2855
2856
2862 {
2863 RequestedTimesMustExactlyMatchAllAvailableTemporalRanges
2864 = 1 << 0,
2865 };
2866 Q_ENUM( RasterTemporalCapabilityFlag )
2867
2868
2875
2886 Q_ENUM( TransformDirection )
2887
2888
2894 {
2895 BallparkTransformsAreAppropriate
2896 = 1 << 0,
2897 IgnoreImpossibleTransformations
2898 = 1 << 1,
2899 };
2900 Q_ENUM( CoordinateTransformationFlag )
2901
2902
2909
2916 {
2917 Default,
2918 PreferVector,
2919 ForceVector,
2920 };
2921 Q_ENUM( RasterizedRenderingPolicy )
2922
2923
2928 enum class RenderFormat : int
2929 {
2930 Raster,
2931 Vector,
2932 };
2933 Q_ENUM( RenderFormat )
2934
2935
2941 {
2942 Antialiasing = 0x01,
2943 DrawEditingInfo = 0x02,
2944 ForceVectorOutput = 0x04,
2945 UseAdvancedEffects = 0x08,
2946 DrawLabeling = 0x10,
2947 UseRenderingOptimization = 0x20,
2948 DrawSelection = 0x40,
2949 DrawSymbolBounds = 0x80,
2950 RenderMapTile = 0x100,
2951 RenderPartialOutput = 0x200,
2952 RenderPreviewJob = 0x400,
2953 RenderBlocking = 0x800,
2954 LosslessImageRendering
2955 = 0x1000,
2956 Render3DMap = 0x2000,
2957 HighQualityImageTransforms = 0x4000,
2958 SkipSymbolRendering = 0x8000,
2959 ForceRasterMasks = 0x10000,
2960 RecordProfile = 0x20000,
2961 AlwaysUseGlobalMasks
2962 = 0x40000,
2963 DrawLabelSelection = 0x80000
2964 };
2965
2968 Q_FLAG( MapSettingsFlags )
2969
2970
2976 {
2977 DrawEditingInfo = 0x01,
2978 ForceVectorOutput = 0x02,
2979 UseAdvancedEffects = 0x04,
2980 UseRenderingOptimization = 0x08,
2981 DrawSelection = 0x10,
2982 DrawSymbolBounds = 0x20,
2983 RenderMapTile = 0x40,
2984 Antialiasing = 0x80,
2985 RenderPartialOutput = 0x100,
2986 RenderPreviewJob = 0x200,
2987 RenderBlocking = 0x400,
2988 RenderSymbolPreview = 0x800,
2989 LosslessImageRendering = 0x1000,
2990 ApplyScalingWorkaroundForTextRendering = 0x2000,
2991 Render3DMap = 0x4000,
2992 ApplyClipAfterReprojection = 0x8000,
2993 RenderingSubSymbol = 0x10000,
2994 HighQualityImageTransforms = 0x20000,
2995 SkipSymbolRendering = 0x40000,
2996 RecordProfile = 0x80000,
2997 AlwaysUseGlobalMasks = 0x100000,
2998 DisableSymbolClippingToExtent = 0x200000,
2999 RenderLayerTree = 0x400000,
3000 DrawLabelSelection = 0x800000
3001 };
3002
3005 Q_FLAG( RenderContextFlags )
3006
3007
3012 enum class MapLayerRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3013 {
3014 RenderPartialOutputs = 1 << 0,
3015 RenderPartialOutputOverPreviousCachedImage = 1 << 1,
3016 AffectsLabeling = 1 << 2,
3017 };
3018 Q_ENUM( MapLayerRendererFlag )
3019
3020
3026 Q_FLAG( MapLayerRendererFlags )
3027
3033 enum class PaintEffectFlag : int SIP_ENUM_BASETYPE( IntFlag )
3034 {
3035 RequiresRasterization = 1 << 0,
3036 };
3037 Q_ENUM( PaintEffectFlag )
3038
3039
3045 Q_FLAG( PaintEffectFlags )
3046
3047 // refs for below dox: https://github.com/qgis/QGIS/pull/1286#issuecomment-39806854
3048 // https://github.com/qgis/QGIS/pull/8573#issuecomment-445585826
3049
3055 {
3057 TextFormatAlwaysOutlines
3058 ),
3060 TextFormatAlwaysText
3061 ),
3062 PreferText,
3063 };
3064 Q_ENUM( TextRenderFormat )
3065
3066
3074 {
3075 UseAllLabels = 1 << 1,
3076 UsePartialCandidates = 1 << 2,
3077 // TODO QGIS 5.0: remove
3078 RenderOutlineLabels = 1 << 3,
3079 DrawLabelRectOnly = 1 << 4,
3080 DrawCandidates = 1 << 5,
3081 DrawUnplacedLabels = 1 << 6,
3082 CollectUnplacedLabels = 1 << 7,
3083 DrawLabelMetrics = 1 << 8,
3084 IgnoreObstacles = 1 << 9,
3085 SingleCandidateOnly = 1 << 10,
3086 IgnoreOverlaps = 1 << 11,
3087 DisableSearchTree = 1 << 12,
3088 };
3089 Q_ENUM( LabelingFlag )
3090
3091
3099 Q_FLAG( LabelingFlags )
3100
3109 {
3110 Version1 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion1 ),
3111 Version2 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion2 ),
3112 };
3113 Q_ENUM( LabelPlacementEngineVersion )
3114
3115
3123 {
3124 Horizontal SIP_MONKEYPATCH_COMPAT_NAME( HorizontalOrientation ),
3125 Vertical SIP_MONKEYPATCH_COMPAT_NAME( VerticalOrientation ),
3126 RotationBased SIP_MONKEYPATCH_COMPAT_NAME( RotationBasedOrientation ),
3127 };
3128 Q_ENUM( TextOrientation )
3129
3130
3138 {
3140 Point,
3142 RectangleCapHeightBased,
3143 RectangleAscentBased,
3144 };
3145 Q_ENUM( TextLayoutMode )
3146
3147
3155 {
3156 Text = 1 << 0,
3157 Buffer = 1 << 1,
3158 Background = 1 << 2,
3159 Shadow = 1 << 3,
3160 };
3161 Q_ENUM( TextComponent )
3162
3163
3168 Q_DECLARE_FLAGS( TextComponents, TextComponent )
3169 Q_FLAG( TextComponents )
3170
3185 Q_ENUM( TextHorizontalAlignment )
3186
3187
3198 {
3200 VerticalCenter SIP_MONKEYPATCH_COMPAT_NAME( AlignVCenter ),
3201 Bottom SIP_MONKEYPATCH_COMPAT_NAME( AlignBottom ),
3202 };
3203 Q_ENUM( TextVerticalAlignment )
3204
3205
3214 {
3215 Normal,
3216 SuperScript,
3217 SubScript,
3218 };
3219 Q_ENUM( TextCharacterVerticalAlignment )
3220
3221
3227 {
3228 TruncateStringWhenLineIsTooShort = 1 << 0,
3229 UseBaselinePlacement = 1 << 1,
3230 UprightCharactersOnly = 1 << 2,
3231 ExtendLineToFitText = 1 << 3,
3232 };
3233 Q_ENUM( CurvedTextFlag )
3234
3235
3241
3250 {
3251 Distance = 0,
3252 SnapToGrid = 1,
3253 Visvalingam = 2,
3254 SnappedToGridGlobal = 3,
3255 };
3256 Q_ENUM( VectorSimplificationAlgorithm )
3257
3258
3266 {
3267 NoSimplification = 0,
3268 GeometrySimplification = 1,
3269 AntialiasingSimplification = 2,
3270 FullSimplification = 3,
3271 };
3272 Q_ENUM( VectorRenderingSimplificationFlag )
3273
3274
3283
3290 {
3291 Generic,
3292 ShadowOffset,
3293 BlurSize,
3294 GlowSpread,
3295 };
3296 Q_ENUM( RenderSubcomponentProperty )
3297
3298
3304 {
3305 SymbolLayer,
3306 Label,
3307 };
3308 Q_ENUM( SelectiveMaskSourceType )
3309
3310
3315 {
3316 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentVertex ) = 1,
3317 Curve SIP_MONKEYPATCH_COMPAT_NAME( CurveVertex ) = 2,
3318 ControlPoint SIP_MONKEYPATCH_COMPAT_NAME( ControlPointVertex ) = 3,
3319 };
3320 Q_ENUM( VertexType )
3321
3322
3330 {
3331 Square,
3332 Diamond,
3333 Pentagon,
3334 Hexagon,
3335 Triangle,
3336 EquilateralTriangle,
3337 Star,
3338 Arrow,
3339 Circle,
3340 Cross,
3341 CrossFill,
3342 Cross2,
3343 Line,
3344 ArrowHead,
3345 ArrowHeadFilled,
3346 SemiCircle,
3347 ThirdCircle,
3348 QuarterCircle,
3349 QuarterSquare,
3350 HalfSquare,
3351 DiagonalHalfSquare,
3352 RightHalfTriangle,
3353 LeftHalfTriangle,
3354 Octagon,
3355 SquareWithCorners,
3356 AsteriskFill,
3357 HalfArc,
3358 ThirdArc,
3359 QuarterArc,
3360 ParallelogramRight,
3361 ParallelogramLeft,
3362 Trapezoid,
3363 Shield,
3364 DiamondStar,
3365 Heart,
3366 Decagon,
3367 RoundedSquare,
3368 };
3369 Q_ENUM( MarkerShape )
3370
3371
3379 {
3380 Interval = 1 << 0,
3381 Vertex = 1 << 1,
3382 LastVertex = 1 << 2,
3383 FirstVertex = 1 << 3,
3384 CentralPoint = 1 << 4,
3385 CurvePoint = 1 << 5,
3386 SegmentCenter = 1 << 6,
3387 InnerVertices = 1 << 7,
3388 };
3389 Q_ENUM( MarkerLinePlacement )
3391 Q_FLAG( MarkerLinePlacements )
3392
3399 {
3400 IntervalCartesian2D = 1 << 0,
3401 IntervalZ = 1 << 1,
3402 IntervalM = 1 << 2,
3403 Vertex = 1 << 3,
3404 };
3405 Q_ENUM( LinearReferencingPlacement )
3406
3407
3413 {
3414 CartesianDistance2D,
3415 Z,
3416 M,
3417 };
3418 Q_ENUM( LinearReferencingLabelSource )
3419
3420
3428 {
3429 SimpleTwoColor,
3430 ColorRamp,
3431 };
3432 Q_ENUM( GradientColorSource )
3433
3434
3447 Q_ENUM( GradientType )
3448
3449
3457 {
3458 Feature,
3459 Viewport,
3460 };
3461 Q_ENUM( SymbolCoordinateReference )
3462
3463
3477 Q_ENUM( GradientSpread )
3478
3479
3487 {
3488 Absolute SIP_MONKEYPATCH_COMPAT_NAME( AbsoluteCount ),
3489 DensityBased SIP_MONKEYPATCH_COMPAT_NAME( DensityBasedCount ),
3490 };
3491 Q_ENUM( PointCountMethod )
3492
3493
3498 enum class MarkerClipMode : int
3499 {
3500 NoClipping,
3501 Shape,
3502 CentroidWithin,
3503 CompletelyWithin,
3504 };
3505 Q_ENUM( MarkerClipMode )
3506
3507
3512 enum class LineClipMode : int
3513 {
3514 ClipPainterOnly,
3515 ClipToIntersection,
3516 NoClipping,
3517 };
3518 Q_ENUM( LineClipMode )
3519
3520
3526 {
3527 NoRule,
3528 FullDash,
3529 HalfDash,
3530 FullGap,
3531 HalfGap,
3532 };
3533 Q_ENUM( DashPatternLineEndingRule )
3534
3535
3541 {
3542 ScaleBothDashAndGap,
3543 ScaleDashOnly,
3544 ScaleGapOnly,
3545 };
3546 Q_ENUM( DashPatternSizeAdjustment )
3547
3548
3560 Q_ENUM( GraduatedMethod )
3561
3562
3568 {
3569 NoLabels,
3570 EveryLabel,
3571 FirstLabel,
3572 LastLabel,
3573 FirstAndLastLabels,
3574 };
3575 Q_ENUM( PlotAxisSuffixPlacement )
3576
3577
3578
3583 enum class PlotAxisType
3584 {
3585 Interval,
3586 Categorical,
3587 };
3588 Q_ENUM( PlotAxisType )
3589
3590
3595 enum class PieChartLabelType : int
3596 {
3597 NoLabels,
3598 Categories,
3599 Values,
3600 };
3601 Q_ENUM( PieChartLabelType )
3602
3603
3607 enum class DpiMode
3608 {
3609 All = 7,
3610 Off = 0,
3611 QGIS = 1,
3612 UMN = 2,
3613 GeoServer = 4,
3614 };
3615 Q_ENUM( DpiMode )
3616
3617
3622 {
3623 Undefined = 0,
3624 StandardDpi = 1,
3625 HighDpi = 2,
3626 };
3627 Q_ENUM( TilePixelRatio )
3628
3629 // NOTE -- the hardcoded numbers here must match QFont::Capitalization!
3630
3631
3639 {
3640 MixedCase = 0,
3641 AllUppercase = 1,
3642 AllLowercase = 2,
3643 ForceFirstLetterToCapital = 4,
3644 SmallCaps = 5,
3645 TitleCase = 1004,
3646 UpperCamelCase = 1005,
3647 AllSmallCaps = 1006,
3648 };
3649 Q_ENUM( Capitalization )
3650
3651
3656 enum class TextRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3657 {
3658 WrapLines = 1 << 0,
3659 };
3660 Q_ENUM( TextRendererFlag )
3662 Q_FLAG( TextRendererFlags )
3663
3670 {
3671 MapBox,
3672 Esri,
3673 };
3675
3682 {
3683 Clockwise,
3684 CounterClockwise,
3685 NoOrientation,
3686 };
3687 Q_ENUM( AngularDirection )
3688
3689
3694 enum class RendererUsage : int
3695 {
3696 View,
3697 Export,
3698 Unknown,
3699 };
3700 Q_ENUM( RendererUsage )
3701
3702
3707 enum class MapCanvasFlag : int SIP_ENUM_BASETYPE( IntFlag )
3708 {
3709 ShowMainAnnotationLayer = 1 << 0,
3710 };
3711 Q_ENUM( MapCanvasFlag )
3712
3713
3718 Q_DECLARE_FLAGS( MapCanvasFlags, MapCanvasFlag )
3719 Q_FLAG( MapCanvasFlags )
3720
3726 enum class ViewSyncModeFlag : int SIP_ENUM_BASETYPE( IntFlag )
3727 {
3728 Sync3DTo2D = 1 << 0,
3729 Sync2DTo3D = 1 << 1,
3730 };
3731 Q_ENUM( ViewSyncModeFlag )
3733
3740 {
3741 Always,
3742 WhenOutsideVisibleExtent,
3743 Never,
3744 };
3745 Q_ENUM( MapRecenteringMode )
3746
3747
3752 enum class HistoryProviderBackend : int SIP_ENUM_BASETYPE( IntFlag )
3753 {
3754 LocalProfile = 1 << 0,
3755 // Project = 1 << 1, //!< QGIS Project (not yet implemented)
3756 };
3757 Q_ENUM( HistoryProviderBackend )
3759 Q_FLAG( HistoryProviderBackends )
3760
3766 enum class QueryStorageBackend : int
3767 {
3768 LocalProfile,
3769 CurrentProject,
3770 };
3771 Q_ENUM( QueryStorageBackend )
3772
3773
3781 {
3782 MapLayer SIP_MONKEYPATCH_COMPAT_NAME( TypeMapLayer ) = -2,
3783 VectorAnyGeometry SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorAnyGeometry ) = -1,
3784 VectorPoint SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPoint ) = 0,
3785 VectorLine SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorLine ) = 1,
3786 VectorPolygon SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPolygon ) = 2,
3787 Raster SIP_MONKEYPATCH_COMPAT_NAME( TypeRaster ) = 3,
3788 File SIP_MONKEYPATCH_COMPAT_NAME( TypeFile ) = 4,
3789 Vector SIP_MONKEYPATCH_COMPAT_NAME( TypeVector ) = 5,
3790 Mesh SIP_MONKEYPATCH_COMPAT_NAME( TypeMesh ) = 6,
3791 Plugin SIP_MONKEYPATCH_COMPAT_NAME( TypePlugin ) = 7,
3792 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( TypePointCloud ) = 8,
3793 Annotation SIP_MONKEYPATCH_COMPAT_NAME( TypeAnnotation ) = 9,
3794 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorTile ) = 10,
3795 TiledScene = 11
3796 };
3797 Q_ENUM( ProcessingSourceType )
3798
3799
3800
3808 {
3809 DeemphasiseSearchResults SIP_MONKEYPATCH_COMPAT_NAME( FlagDeemphasiseSearchResults )
3810 = 1 << 1,
3811 CompatibleWithVirtualRaster SIP_MONKEYPATCH_COMPAT_NAME( FlagCompatibleWithVirtualRaster ) = 1 << 2,
3812 };
3814
3823 Q_FLAG( ProcessingProviderFlags )
3824
3825
3833 {
3834 HideFromToolbox SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromToolbox ) = 1 << 1,
3835 HideFromModeler SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromModeler ) = 1 << 2,
3836 SupportsBatch SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsBatch ) = 1 << 3,
3837 CanCancel SIP_MONKEYPATCH_COMPAT_NAME( FlagCanCancel ) = 1 << 4,
3838 RequiresMatchingCrs SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresMatchingCrs ) = 1 << 5,
3839 NoThreading SIP_MONKEYPATCH_COMPAT_NAME( FlagNoThreading ) = 1 << 6,
3840 DisplayNameIsLiteral SIP_MONKEYPATCH_COMPAT_NAME( FlagDisplayNameIsLiteral ) = 1 << 7,
3841 SupportsInPlaceEdits SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsInPlaceEdits ) = 1 << 8,
3842 KnownIssues SIP_MONKEYPATCH_COMPAT_NAME( FlagKnownIssues ) = 1 << 9,
3843 CustomException SIP_MONKEYPATCH_COMPAT_NAME( FlagCustomException ) = 1 << 10,
3844 PruneModelBranchesBasedOnAlgorithmResults SIP_MONKEYPATCH_COMPAT_NAME( FlagPruneModelBranchesBasedOnAlgorithmResults ) = 1 << 11,
3845 SkipGenericModelLogging SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGenericModelLogging ) = 1 << 12,
3846 NotAvailableInStandaloneTool SIP_MONKEYPATCH_COMPAT_NAME( FlagNotAvailableInStandaloneTool ) = 1 << 13,
3847 RequiresProject SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresProject ) = 1 << 14,
3848 SecurityRisk = 1 << 15,
3849 Deprecated SIP_MONKEYPATCH_COMPAT_NAME( FlagDeprecated ) = HideFromToolbox | HideFromModeler,
3850 };
3852
3861 Q_FLAG( ProcessingAlgorithmFlags )
3862
3863
3869 {
3870 RegeneratesPrimaryKey = 1 << 0,
3871 RegeneratesPrimaryKeyInSomeScenarios = 1 << 1,
3872 RespectsEllipsoid = 1 << 2,
3873 };
3874 Q_ENUM( ProcessingAlgorithmDocumentationFlag )
3875
3876
3883
3893 {
3894 NotAvailable,
3895 Available,
3896 };
3897 Q_ENUM( ProcessingPropertyAvailability )
3898
3899
3907 {
3908 DefaultLevel = 0,
3909 Verbose,
3910 ModelDebug,
3911 };
3912 Q_ENUM( ProcessingLogLevel )
3913
3914
3922 {
3923 Standard,
3924 Batch,
3925 Modeler,
3926 };
3927 Q_ENUM( ProcessingMode )
3928
3929
3935 {
3936 VectorAnalysis,
3937 VectorResearch,
3938 VectorGeoprocessing,
3939 VectorGeometry,
3940 VectorDataManagement,
3941 VectorGeneral,
3942 RasterProjections,
3943 RasterConversion,
3944 RasterExtraction,
3945 RasterAnalysis,
3946 RasterMiscellaneous,
3947 RasterGeneral,
3948 };
3949 Q_ENUM( ProcessingMenu )
3950
3951
3959 {
3960 OverrideDefaultGeometryCheck SIP_MONKEYPATCH_COMPAT_NAME( FlagOverrideDefaultGeometryCheck )
3961 = 1 << 0,
3962 CreateIndividualOutputPerInputFeature SIP_MONKEYPATCH_COMPAT_NAME( FlagCreateIndividualOutputPerInputFeature )
3963 = 1 << 1,
3964 };
3965 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
3966
3967
3976
3985 {
3986 SkipGeometryValidityChecks SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGeometryValidityChecks ) = 1 << 1,
3987 };
3988 Q_ENUM( ProcessingFeatureSourceFlag )
3989
3990
3999
4011 {
4012 ExposeToModeler = 1
4013 };
4014 Q_ENUM( ProcessingParameterTypeFlag )
4015
4016
4028
4037 {
4038 Advanced SIP_MONKEYPATCH_COMPAT_NAME( FlagAdvanced ) = 1 << 1,
4039 Hidden SIP_MONKEYPATCH_COMPAT_NAME( FlagHidden ) = 1 << 2,
4040 Optional SIP_MONKEYPATCH_COMPAT_NAME( FlagOptional ) = 1 << 3,
4041 IsModelOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagIsModelOutput ) = 1 << 4,
4042 };
4043 Q_ENUM( ProcessingParameterFlag )
4044
4045
4053 Q_FLAG( ProcessingParameterFlags )
4054
4067 Q_ENUM( ProcessingFileParameterBehavior )
4068
4069
4081 Q_ENUM( ProcessingNumberParameterType )
4082
4083
4091 {
4092 Any = -1,
4093 Numeric = 0,
4094 String = 1,
4095 DateTime = 2,
4096 Binary = 3,
4097 Boolean = 4,
4098 };
4099 Q_ENUM( ProcessingFieldParameterDataType )
4100
4101
4114 Q_ENUM( ProcessingDateTimeParameterDataType )
4115
4116
4122 {
4123 ModelParameter,
4124 ChildOutput,
4125 StaticValue,
4126 Expression,
4127 ExpressionText,
4128 ModelOutput,
4129 };
4130 Q_ENUM( ProcessingModelChildParameterSource )
4131
4132
4138 {
4139 NotExecuted,
4141 Failed,
4142 };
4143 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
4144
4145
4153 {
4154 Vertices,
4155 StructureLines,
4156 BreakLines
4157 };
4158 Q_ENUM( ProcessingTinInputLayerType )
4159
4160
4170 Q_ENUM( CrsDefinitionFormat )
4171
4172
4180 enum class FieldDomainSplitPolicy : int
4181 {
4182 DefaultValue,
4183 Duplicate,
4184 GeometryRatio,
4185 UnsetField,
4186 };
4187 Q_ENUM( FieldDomainSplitPolicy )
4188
4189
4197 enum class FieldDomainMergePolicy : int
4198 {
4199 DefaultValue,
4200 Sum,
4201 GeometryWeighted,
4202 UnsetField,
4203 LargestGeometry,
4204 MinimumValue,
4205 MaximumValue,
4206 SetToNull,
4207 };
4208 Q_ENUM( FieldDomainMergePolicy )
4209
4210
4217 enum class FieldDuplicatePolicy : int
4218 {
4219 DefaultValue,
4220 Duplicate,
4221 UnsetField,
4222 };
4223 Q_ENUM( FieldDuplicatePolicy )
4224
4225
4230 enum class FieldDomainType : int
4231 {
4232 Coded,
4233 Range,
4234 Glob,
4235 };
4236 Q_ENUM( FieldDomainType )
4237
4238
4243 enum class TransactionMode : int
4244 {
4245 Disabled = 0,
4246 AutomaticGroups = 1,
4247 BufferedGroups = 2,
4248 };
4249 Q_ENUM( TransactionMode )
4250
4251
4256 enum class AltitudeClamping : int
4257 {
4258 Absolute,
4259 Relative,
4260 Terrain,
4261 };
4262 Q_ENUM( AltitudeClamping )
4263
4264
4269 enum class AltitudeBinding : int
4270 {
4271 Vertex,
4272 Centroid,
4273 };
4274 Q_ENUM( AltitudeBinding )
4275
4276
4281 enum class RangeLimits : int
4282 {
4283 IncludeBoth = 0,
4284 IncludeLowerExcludeUpper,
4285 ExcludeLowerIncludeUpper,
4286 ExcludeBoth,
4287 };
4288 Q_ENUM( RangeLimits )
4289
4290
4295 enum class RasterElevationMode : int
4296 {
4297 FixedElevationRange = 0,
4298 RepresentsElevationSurface = 1,
4299 FixedRangePerBand = 2,
4300 DynamicRangePerBand = 3,
4301 };
4302 Q_ENUM( RasterElevationMode )
4303
4304
4309 enum class MeshElevationMode : int
4310 {
4311 FixedElevationRange = 0,
4312 FromVertices = 1,
4313 FixedRangePerGroup = 2,
4314 };
4315 Q_ENUM( MeshElevationMode )
4316
4317
4323 {
4324 NoConstraint,
4325 Perpendicular,
4326 Parallel
4327 };
4328 Q_ENUM( BetweenLineConstraint )
4329
4330
4335 enum class LineExtensionSide : int
4336 {
4337 BeforeVertex,
4338 AfterVertex,
4339 NoVertex,
4340 };
4341 Q_ENUM( LineExtensionSide )
4342
4343
4344
4348 enum class CadConstraintType : int
4349 {
4350 Generic,
4351 Angle,
4352 Distance,
4353 XCoordinate,
4354 YCoordinate,
4355 ZValue,
4356 MValue,
4357 };
4358 Q_ENUM( CadConstraintType )
4359
4360
4365 {
4366 Hidden,
4367 Cartesian,
4368 Ellipsoidal,
4369 };
4370 Q_ENUM( CadMeasurementDisplayType )
4371
4372
4377 enum class ProjectFlag : int SIP_ENUM_BASETYPE( IntFlag )
4378 {
4379 EvaluateDefaultValuesOnProviderSide = 1 << 0,
4380 TrustStoredLayerStatistics
4381 = 1 << 1,
4382 RememberLayerEditStatusBetweenSessions = 1 << 2,
4383 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
4384 };
4385 Q_ENUM( ProjectFlag )
4386 Q_DECLARE_FLAGS( ProjectFlags, ProjectFlag )
4387 Q_FLAG( ProjectFlags )
4388
4394 enum class PlotToolFlag : int SIP_ENUM_BASETYPE( IntFlag )
4395 {
4396 ShowContextMenu = 1 << 0,
4397 };
4398 Q_ENUM( PlotToolFlag )
4399 Q_DECLARE_FLAGS( PlotToolFlags, PlotToolFlag )
4400 Q_FLAG( PlotToolFlags )
4401
4409 enum class Map3DDebugFlag : int SIP_ENUM_BASETYPE( IntFlag )
4410 {
4411 ShowTerrainBoundingBoxes = 1 << 0,
4412 ShowTerrainTileInfo = 1 << 1,
4413 ShowCameraViewCenter = 1 << 2,
4414 ShowCameraRotationCenter = 1 << 3,
4415 ShowLightSourceOrigins = 1 << 4,
4416 ShowFPS = 1 << 5,
4417 ShowDebugPanel = 1 << 6,
4418 };
4419 Q_ENUM( Map3DDebugFlag )
4421 Q_FLAG( Map3DDebugFlags )
4422
4428 enum class Map3DProjectionType : int
4429 {
4430 Orthographic = 0,
4431 Perspective = 1,
4432 };
4433 Q_ENUM( Map3DProjectionType )
4434
4435
4442 enum class Point3DShape : int
4443 {
4444 Cylinder,
4445 Sphere,
4446 Cone,
4447 Cube,
4448 Torus,
4449 Plane,
4450 ExtrudedText,
4451 Model,
4452 Billboard,
4453 };
4454 Q_ENUM( Point3DShape )
4455
4456
4465 {
4466 Triangles,
4467 Lines,
4468 InstancedPoints,
4469 Points,
4470 TrianglesWithFixedTexture,
4471 TrianglesFromModel,
4472 TrianglesDataDefined,
4473 Billboards,
4474 };
4475 Q_ENUM( MaterialRenderingTechnique )
4476
4477
4482 enum class MaterialWidgetMode : int
4483 {
4484 Compact,
4485 Full,
4486 };
4487 Q_ENUM( MaterialWidgetMode )
4488
4489
4494 enum class InstancedMaterialFlag : int SIP_ENUM_BASETYPE( IntFlag )
4495 {
4496 DataDefinedScale = 1 << 0,
4497 DataDefinedRotation = 1 << 1,
4498 };
4499 Q_ENUM( InstancedMaterialFlag )
4501 Q_FLAG( InstancedMaterialFlags )
4502
4508 enum class BillboardScaleMode : int
4509 {
4510 ViewIndependent,
4511 Perspective
4512 };
4513 Q_ENUM( BillboardScaleMode )
4514
4515
4520 enum class TextureFilterQuality : int
4521 {
4522 Trilinear,
4523 Anisotropic2x,
4524 Anisotropic4x,
4525 Anisotropic8x,
4526 Anisotropic16x,
4527 };
4528 Q_ENUM( TextureFilterQuality )
4529
4530
4535 enum class ShadowQuality : int
4536 {
4537 Low,
4538 Medium,
4539 High,
4540 VeryHigh,
4541 Extreme,
4542 };
4543 Q_ENUM( ShadowQuality )
4544
4545
4550 enum class LightSourceType : int
4551 {
4552 Point,
4553 Directional,
4554 Sun,
4555 };
4556 Q_ENUM( LightSourceType )
4557
4558
4562 enum class Map3DBackgroundType : int
4563 {
4564 NoBackground,
4565 FixedGradientBackground,
4566 DistinctTextureSkybox,
4567 };
4568 Q_ENUM( Map3DBackgroundType )
4569
4570
4575 enum class SkyboxCubeMapping : int
4576 {
4577 NativeZUp,
4578 OpenGLYUp,
4579 GodotYUp,
4580 UnrealEngineZUp,
4581 LeftHandedYUpMirrored,
4582 };
4583 Q_ENUM( SkyboxCubeMapping )
4584
4585
4590 enum class NavigationMode : int
4591 {
4592 TerrainBased,
4593 Walk,
4594 GlobeTerrainBased
4595 };
4596 Q_ENUM( NavigationMode )
4597
4598
4603 enum class SceneMode : int
4604 {
4605 Local,
4606 Globe
4607 };
4608 Q_ENUM( SceneMode )
4609
4610
4615 enum class VerticalAxisInversion : int SIP_ENUM_BASETYPE( IntFlag )
4616 {
4617 WhenRotatingDragging = 1 << 0,
4618 WhenRotatingCaptured = 1 << 1,
4619 WhenPivoting = 1 << 2,
4620
4621 // Legacy aliases for old flying-only enum:
4622
4623 Never = WhenRotatingDragging | WhenRotatingCaptured | WhenPivoting,
4624 WhenDragging = WhenRotatingCaptured | WhenPivoting,
4625 Always = WhenPivoting,
4626 };
4627 Q_ENUM( VerticalAxisInversion )
4630
4637 enum class ToneMappingMethod : int
4638 {
4639 Clamp,
4640 Aces,
4641 };
4642 Q_ENUM( ToneMappingMethod )
4643
4644
4649 enum class Export3DSceneFormat : int
4650 {
4651 Obj,
4652 StlAscii
4653 };
4654 Q_ENUM( Export3DSceneFormat )
4655
4656
4662 {
4663 Line,
4664 FillBelow,
4665 FillAbove,
4666 };
4668
4674 enum class VectorProfileType : int
4675 {
4676 IndividualFeatures,
4677 ContinuousSurface,
4678 };
4680
4686 enum class PointCloudProfileType : int
4687 {
4688 IndividualPoints,
4689 TriangulatedSurface,
4690 };
4692
4698 enum class ProfileGeneratorFlag : int SIP_ENUM_BASETYPE( IntFlag )
4699 {
4700 RespectsMaximumErrorMapUnit = 1 << 0,
4701 RespectsDistanceRange = 1 << 1,
4702 RespectsElevationRange = 1 << 2,
4703 };
4704 Q_ENUM( ProfileGeneratorFlag )
4706 Q_FLAG( ProfileGeneratorFlags )
4707
4713 enum class ProfileExportType : int
4714 {
4715 Features3D,
4716 Profile2D,
4717 DistanceVsElevationTable,
4718 };
4720
4727 {
4728 Square,
4729 Circle,
4730 };
4731 Q_ENUM( PointCloudSymbol )
4732
4733
4739 {
4740 Default,
4741 BottomToTop,
4742 TopToBottom,
4743 };
4744 Q_ENUM( PointCloudDrawOrder )
4745
4746
4754 {
4755 AllowIntersections,
4756 AvoidIntersectionsCurrentLayer,
4757 AvoidIntersectionsLayers,
4758 };
4759 Q_ENUM( AvoidIntersectionsMode )
4760
4761
4769 {
4770 Qgz,
4771 Qgs,
4772 };
4773 Q_ENUM( ProjectFileFormat )
4774
4775
4783 {
4784 DontResolveLayers SIP_MONKEYPATCH_COMPAT_NAME( FlagDontResolveLayers )
4785 = 1 << 0,
4786 DontLoadLayouts SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoadLayouts )
4787 = 1 << 1,
4788 TrustLayerMetadata SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustLayerMetadata )
4789 = 1 << 2,
4790 DontStoreOriginalStyles SIP_MONKEYPATCH_COMPAT_NAME( FlagDontStoreOriginalStyles ) = 1 << 3,
4791 DontLoad3DViews SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoad3DViews ) = 1 << 4,
4792 DontLoadProjectStyles = 1 << 5,
4793 ForceReadOnlyLayers = 1 << 6,
4794 DontUpgradeAnnotations = 1 << 7,
4795 };
4796 Q_ENUM( ProjectReadFlag )
4797
4798
4806 Q_FLAG( ProjectReadFlags )
4807
4816 enum class ProjectCapability : int SIP_ENUM_BASETYPE( IntFlag )
4817 {
4818 ProjectStyles = 1 << 0,
4819 };
4820 Q_ENUM( ProjectCapability )
4821
4822
4828 Q_FLAG( ProjectCapabilities )
4829
4836 {
4837 Vector,
4838 Raster,
4839 RasterDem,
4840 GeoJson,
4841 Image,
4842 Video,
4843 Unknown,
4844 };
4845 Q_ENUM( MapBoxGlStyleSourceType )
4846
4847
4855 {
4856 FeatureServer SIP_MONKEYPATCH_COMPAT_NAME( FeatureService ),
4857 MapServer SIP_MONKEYPATCH_COMPAT_NAME( MapService ),
4858 ImageServer SIP_MONKEYPATCH_COMPAT_NAME( ImageService ),
4859 GlobeServer,
4860 GPServer,
4861 GeocodeServer,
4862 Unknown,
4863 SceneServer,
4864 };
4865 Q_ENUM( ArcGisRestServiceType )
4866
4867
4876 {
4877 Map = 1 << 0,
4878 Query = 1 << 1,
4879 Update = 1 << 2,
4880 Delete = 1 << 3,
4881 Create = 1 << 4,
4882 Image = 1 << 5,
4883 TilesOnly = 1 << 6,
4884 };
4885 Q_ENUM( ArcGisRestServiceCapability )
4886
4887
4894
4903 {
4904 Normal,
4905 Generated,
4906 };
4907 Q_ENUM( RelationshipType )
4908
4909
4917 {
4918 Association,
4919 Composition,
4920 };
4921 Q_ENUM( RelationshipStrength )
4922
4923
4929 {
4930 OneToOne,
4931 OneToMany,
4932 ManyToOne,
4933 ManyToMany,
4934 };
4935 Q_ENUM( RelationshipCardinality )
4936
4937
4942 enum class RelationshipCapability : int SIP_ENUM_BASETYPE( IntFlag )
4943 {
4944 MultipleFieldKeys = 1 << 0,
4945 ForwardPathLabel = 1 << 1,
4946 BackwardPathLabel = 1 << 2,
4947 };
4948 Q_ENUM( RelationshipCapability )
4949
4950
4956 Q_FLAG( RelationshipCapabilities )
4957
4963 enum class CoordinateDisplayType : int
4964 {
4965 MapCrs,
4966 MapGeographic,
4967 CustomCrs,
4968 };
4969 Q_ENUM( CoordinateDisplayType )
4970
4971
4976 enum class SettingsOrigin : int
4977 {
4978 Any,
4979 Global,
4980 Local,
4981 };
4982 Q_ENUM( SettingsOrigin )
4983
4984
4989 enum class ScriptLanguage : int
4990 {
4991 Css,
4992 QgisExpression,
4993 Html,
4994 JavaScript,
4995 Json,
4996 Python,
4997 R,
4998 Sql,
4999 Batch,
5000 Bash,
5001 Unknown,
5002 };
5003 Q_ENUM( ScriptLanguage )
5004
5005
5013 {
5014 Reformat = 1 << 0,
5015 CheckSyntax = 1 << 1,
5016 ToggleComment = 1 << 2,
5017 };
5018 Q_ENUM( ScriptLanguageCapability )
5019
5020
5027
5034 {
5035 AboveInsertionPoint,
5036 TopOfTree,
5037 OptimalInInsertionGroup,
5038 };
5039 Q_ENUM( LayerTreeInsertionMethod )
5040
5041
5047 {
5048 LayerProperties = 0,
5049 AttributeTable = 1,
5050 LayerStyling = 2,
5051 };
5052 Q_ENUM( LegendLayerDoubleClickAction )
5053
5054
5059 enum class LayerTreeFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
5060 {
5061 SkipVisibilityCheck = 1 << 0,
5062 };
5063 Q_ENUM( LayerTreeFilterFlag )
5064
5065
5071 Q_FLAG( LayerTreeFilterFlags )
5072
5078 enum class MapLayerLegendFlag : int SIP_ENUM_BASETYPE( IntFlag )
5079 {
5080 ExcludeByDefault = 1 << 0,
5081 };
5082 Q_ENUM( MapLayerLegendFlag )
5083
5084
5090 Q_FLAG( MapLayerLegendFlags )
5091
5100 {
5101 Undefined,
5102 Hidden,
5103 Title,
5104 Group,
5105 Subgroup,
5106 Symbol,
5107 SymbolLabel,
5108 };
5109 // !!! WARNING: If adding new values to this enum, make sure you update QgsLegendSettings constructor accordingly!!
5110 Q_ENUM( LegendComponent )
5111
5112
5117 enum class LegendSyncMode : int
5118 {
5119 AllProjectLayers,
5120 VisibleLayers,
5121 Manual,
5122 };
5123 Q_ENUM( LegendSyncMode )
5124
5125
5132 enum class LegendJsonRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
5133 {
5134 ShowRuleDetails = 1 << 0,
5135 };
5136 Q_ENUM( LegendJsonRenderFlag )
5138 Q_FLAG( LegendJsonRenderFlags )
5139
5145 enum class GeoJsonProfile : int
5146 {
5147 Legacy,
5148 Rfc7946,
5149 JsonFg,
5150 JsonFgPlus,
5151 };
5152 Q_ENUM( GeoJsonProfile )
5153
5154
5161 enum class ActionType : int
5162 {
5163 Invalid,
5164 MapLayerAction,
5165 AttributeAction
5166 };
5167 Q_ENUM( ActionType )
5168
5169
5176 enum class MapLayerActionTarget : int SIP_ENUM_BASETYPE( IntFlag )
5177 {
5178 Layer = 1 << 0,
5179 SingleFeature = 1 << 1,
5180 MultipleFeatures = 1 << 2,
5181 AllActions = Layer | SingleFeature | MultipleFeatures
5182 };
5183 Q_ENUM( MapLayerActionTarget )
5184
5185
5193 Q_FLAG( MapLayerActionTargets )
5194
5202 enum class MapLayerActionFlag : int SIP_ENUM_BASETYPE( IntFlag )
5203 {
5204 EnabledOnlyWhenEditable = 1 << 1,
5205 EnableOnlyWhenHasGeometry = 1 << 2,
5206 };
5207 Q_ENUM( MapLayerActionFlag )
5208
5209
5217 Q_FLAG( MapLayerActionFlags )
5218
5227 {
5228 Generic,
5229 GenericPython,
5230 Mac,
5231 Windows,
5232 Unix,
5233 OpenUrl,
5234 SubmitUrlEncoded,
5235 SubmitUrlMultipart,
5236 };
5237 Q_ENUM( AttributeActionType )
5238
5239
5245 {
5246 Created,
5247 Published,
5248 Revised,
5249 Superseded,
5250 };
5251 Q_ENUM( MetadataDateType )
5252
5253
5257 enum class AcademicReferenceType : int
5258 {
5259 Unknown,
5260 Book,
5261 JournalArticle,
5262 Presentation,
5263 WebPage,
5264 Preprint
5265 };
5266 Q_ENUM( AcademicReferenceType )
5267
5268
5277
5279 {
5280 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedColorInterpretation ) = 0,
5281 GrayIndex = 1,
5282 PaletteIndex = 2,
5283 RedBand = 3,
5284 GreenBand = 4,
5285 BlueBand = 5,
5286 AlphaBand = 6,
5287 HueBand = 7,
5288 SaturationBand = 8,
5289 LightnessBand = 9,
5290 CyanBand = 10,
5291 MagentaBand = 11,
5292 YellowBand = 12,
5293 BlackBand = 13,
5294 YCbCr_YBand = 14,
5295 YCbCr_CbBand = 15,
5296 YCbCr_CrBand = 16,
5297 ContinuousPalette = 17,
5298
5299 // Note: values between PanBand and SAR_P_Band match additions done in
5300 // GDAL 3.10, except that the numeric values of the constant don't match GDAL ones
5301
5302 PanBand = 18,
5303 CoastalBand = 19,
5304 RedEdgeBand = 20,
5305 NIRBand = 21,
5306 SWIRBand = 22,
5307 MWIRBand = 23,
5308 LWIRBand = 24,
5309 TIRBand = 25,
5310 OtherIRBand = 26,
5311 SAR_Ka_Band = 27,
5312 SAR_K_Band = 28,
5313 SAR_Ku_Band = 30,
5314 SAR_X_Band = 31,
5315 SAR_C_Band = 32,
5316 SAR_S_Band = 33,
5317 SAR_L_Band = 34,
5318 SAR_P_Band = 35,
5319 };
5320 Q_ENUM( RasterColorInterpretation )
5321
5322
5330 {
5331 GrayOrUndefined,
5332 Palette,
5333 MultiBand SIP_MONKEYPATCH_COMPAT_NAME( Multiband ),
5334 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( ColorLayer ),
5335 };
5336 Q_ENUM( RasterLayerType )
5337
5338
5346 {
5347 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedDrawingStyle ),
5348 SingleBandGray,
5349 SingleBandPseudoColor,
5350 PalettedColor,
5351 PalettedSingleBandGray,
5352 PalettedSingleBandPseudoColor,
5353 PalettedMultiBandColor,
5354 MultiBandSingleBandGray,
5355 MultiBandSingleBandPseudoColor,
5356 MultiBandColor,
5357 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( SingleBandColorDataStyle ),
5358 };
5359 Q_ENUM( RasterDrawingStyle )
5360
5361
5368 enum class RasterPyramidFormat SIP_MONKEYPATCH_SCOPEENUM_UNNEST( QgsRaster, RasterPyramidsFormat ) : int
5369 {
5370 GeoTiff SIP_MONKEYPATCH_COMPAT_NAME( PyramidsGTiff ) = 0,
5371 Internal SIP_MONKEYPATCH_COMPAT_NAME( PyramidsInternal ) = 1,
5372 Erdas SIP_MONKEYPATCH_COMPAT_NAME( PyramidsErdas ) = 2
5373 };
5374 Q_ENUM( RasterPyramidFormat )
5375
5376
5384 {
5385 No SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagNo ) = 0,
5386 Yes SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagYes ) = 1,
5387 CopyExisting SIP_MONKEYPATCH_COMPAT_NAME( PyramidsCopyExisting ) = 2
5388 };
5389 Q_ENUM( RasterBuildPyramidOption )
5390
5391
5399 {
5400 Undefined SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatUndefined ) = 0,
5401 Value SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatValue ) = 1,
5402 Text SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatText ) = 1 << 1,
5403 Html SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatHtml ) = 1 << 2,
5404 Feature SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatFeature ) = 1 << 3,
5405 };
5406 Q_ENUM( RasterIdentifyFormat )
5407
5408 // TODO QGIS 5 -- remove NoCapabilities and rely on RasterInterfaceCapabilities() instead
5409 // remove deprecated members
5410 // Remove "Identify" member, and replace with combinations of IdentifyValue/IdentifyText/etc
5411
5412
5420 {
5421 NoCapabilities = 0,
5422 Size = 1 << 1,
5423 Create = 1 << 2,
5424 Remove = 1 << 3,
5425 BuildPyramids = 1 << 4,
5426 Identify = 1 << 5,
5427 IdentifyValue = 1 << 6,
5428 IdentifyText = 1 << 7,
5429 IdentifyHtml = 1 << 8,
5430 IdentifyFeature = 1 << 9,
5431 Prefetch = 1 << 10,
5432 };
5433 Q_ENUM( RasterInterfaceCapability )
5434
5435
5442
5443 // TODO QGIS 5 -- remove NoProviderCapabilities and rely on RasterProviderCapabilities() instead
5444
5453 {
5454 NoProviderCapabilities = 0,
5455 ReadLayerMetadata = 1 << 1,
5456 WriteLayerMetadata = 1 << 2,
5457 ProviderHintBenefitsFromResampling = 1 << 3,
5458 ProviderHintCanPerformProviderResampling = 1 << 4,
5459 ReloadData = 1 << 5,
5460 DpiDependentData = 1 << 6,
5461 NativeRasterAttributeTable = 1 << 7,
5462 BuildPyramids = 1 << 8,
5463 };
5464 Q_ENUM( RasterProviderCapability )
5465
5466
5475
5482 {
5483 HighestElevation,
5484 NewerElevation,
5485 };
5486 Q_ENUM( ElevationMapCombineMethod )
5487
5488
5497 {
5498 Normal SIP_MONKEYPATCH_COMPAT_NAME( BlendNormal ),
5499 Lighten SIP_MONKEYPATCH_COMPAT_NAME( BlendLighten ),
5500 Screen SIP_MONKEYPATCH_COMPAT_NAME( BlendScreen ),
5501 Dodge SIP_MONKEYPATCH_COMPAT_NAME( BlendDodge ),
5502 Addition SIP_MONKEYPATCH_COMPAT_NAME( BlendAddition ),
5503 Darken SIP_MONKEYPATCH_COMPAT_NAME( BlendDarken ),
5504 Multiply SIP_MONKEYPATCH_COMPAT_NAME( BlendMultiply ),
5506 Overlay SIP_MONKEYPATCH_COMPAT_NAME( BlendOverlay ),
5507 SoftLight SIP_MONKEYPATCH_COMPAT_NAME( BlendSoftLight ),
5508 HardLight SIP_MONKEYPATCH_COMPAT_NAME( BlendHardLight ),
5509 Difference SIP_MONKEYPATCH_COMPAT_NAME( BlendDifference ),
5510 Subtract SIP_MONKEYPATCH_COMPAT_NAME( BlendSubtract ),
5511 Source SIP_MONKEYPATCH_COMPAT_NAME( BlendSource ),
5512 DestinationOver SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOver ),
5513 Clear SIP_MONKEYPATCH_COMPAT_NAME( BlendClear ),
5514 Destination SIP_MONKEYPATCH_COMPAT_NAME( BlendDestination ),
5515 SourceIn SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceIn ),
5516 DestinationIn SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationIn ),
5517 SourceOut SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceOut ),
5518 DestinationOut SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOut ),
5519 SourceAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceAtop ),
5520 DestinationAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationAtop ),
5522 };
5523 Q_ENUM( BlendMode )
5524
5525
5533 {
5534 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownSystem ) = 0,
5535 Metric SIP_MONKEYPATCH_COMPAT_NAME( MetricSystem ),
5536 Imperial SIP_MONKEYPATCH_COMPAT_NAME( ImperialSystem ),
5537 USCS SIP_MONKEYPATCH_COMPAT_NAME( USCSSystem ),
5538 };
5539 Q_ENUM( SystemOfMeasurement )
5540
5541
5548 {
5549 Layer SIP_MONKEYPATCH_COMPAT_NAME( LayerUnits ),
5550 Pixels,
5551 Project SIP_MONKEYPATCH_COMPAT_NAME( ProjectUnits )
5552 };
5553 Q_ENUM( MapToolUnit )
5554
5555
5563 {
5564 Distance SIP_MONKEYPATCH_COMPAT_NAME( TypeDistance ) = 0,
5566 Volume SIP_MONKEYPATCH_COMPAT_NAME( TypeVolume ),
5567 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TypeUnknown ),
5568 Temporal SIP_MONKEYPATCH_COMPAT_NAME( TypeTemporal ),
5569 };
5570 Q_ENUM( UnitType )
5571
5572
5580 {
5581 Meters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMeters ),
5582 Kilometers SIP_MONKEYPATCH_COMPAT_NAME( DistanceKilometers ),
5583 Feet SIP_MONKEYPATCH_COMPAT_NAME( DistanceFeet ),
5584 NauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( DistanceNauticalMiles ),
5585 Yards SIP_MONKEYPATCH_COMPAT_NAME( DistanceYards ),
5586 Miles SIP_MONKEYPATCH_COMPAT_NAME( DistanceMiles ),
5587 Degrees SIP_MONKEYPATCH_COMPAT_NAME( DistanceDegrees ),
5588 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceCentimeters ),
5589 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMillimeters ),
5590 Inches,
5591 ChainsInternational,
5592 ChainsBritishBenoit1895A,
5593 ChainsBritishBenoit1895B,
5594 ChainsBritishSears1922Truncated,
5595 ChainsBritishSears1922,
5596 ChainsClarkes,
5597 ChainsUSSurvey,
5598 FeetBritish1865,
5599 FeetBritish1936,
5600 FeetBritishBenoit1895A,
5601 FeetBritishBenoit1895B,
5602 FeetBritishSears1922Truncated,
5603 FeetBritishSears1922,
5604 FeetClarkes,
5605 FeetGoldCoast,
5606 FeetIndian,
5607 FeetIndian1937,
5608 FeetIndian1962,
5609 FeetIndian1975,
5610 FeetUSSurvey,
5611 LinksInternational,
5612 LinksBritishBenoit1895A,
5613 LinksBritishBenoit1895B,
5614 LinksBritishSears1922Truncated,
5615 LinksBritishSears1922,
5616 LinksClarkes,
5617 LinksUSSurvey,
5618 YardsBritishBenoit1895A,
5619 YardsBritishBenoit1895B,
5620 YardsBritishSears1922Truncated,
5621 YardsBritishSears1922,
5622 YardsClarkes,
5623 YardsIndian,
5624 YardsIndian1937,
5625 YardsIndian1962,
5626 YardsIndian1975,
5627 MilesUSSurvey,
5628 Fathoms,
5629 MetersGermanLegal,
5630 Unknown SIP_MONKEYPATCH_COMPAT_NAME( DistanceUnknownUnit ),
5631 };
5632 Q_ENUM( DistanceUnit )
5633
5634
5642 {
5643 Standard,
5644 Geographic,
5645 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownType ),
5646 };
5647 Q_ENUM( DistanceUnitType )
5648
5649
5657 {
5658 SquareMeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMeters ),
5659 SquareKilometers SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareKilometers ),
5660 SquareFeet SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareFeet ),
5661 SquareYards SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareYards ),
5662 SquareMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMiles ),
5663 Hectares SIP_MONKEYPATCH_COMPAT_NAME( AreaHectares ),
5664 Acres SIP_MONKEYPATCH_COMPAT_NAME( AreaAcres ),
5665 SquareNauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareNauticalMiles ),
5666 SquareDegrees SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareDegrees ),
5667 SquareCentimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareCentimeters ),
5668 SquareMillimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMillimeters ),
5669 SquareInches,
5670 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AreaUnknownUnit ),
5671 };
5672 Q_ENUM( AreaUnit )
5673
5674
5682 {
5683 CubicMeters SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicMeters ),
5684 CubicFeet SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicFeet ),
5685 CubicYards SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicYards ),
5686 Barrel SIP_MONKEYPATCH_COMPAT_NAME( VolumeBarrel ),
5687 CubicDecimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDecimeter ),
5688 Liters SIP_MONKEYPATCH_COMPAT_NAME( VolumeLiters ),
5689 GallonUS SIP_MONKEYPATCH_COMPAT_NAME( VolumeGallonUS ),
5690 CubicInch SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicInch ),
5691 CubicCentimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicCentimeter ),
5692 CubicDegrees SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDegrees ),
5693 Unknown SIP_MONKEYPATCH_COMPAT_NAME( VolumeUnknownUnit ),
5694 };
5695 Q_ENUM( VolumeUnit )
5696
5697
5705 {
5706 Degrees SIP_MONKEYPATCH_COMPAT_NAME( AngleDegrees ),
5707 Radians SIP_MONKEYPATCH_COMPAT_NAME( AngleRadians ),
5709 MinutesOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleMinutesOfArc ),
5710 SecondsOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleSecondsOfArc ),
5712 MilliradiansSI SIP_MONKEYPATCH_COMPAT_NAME( AngleMilliradiansSI ),
5713 MilNATO SIP_MONKEYPATCH_COMPAT_NAME( AngleMilNATO ),
5714 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AngleUnknownUnit ),
5715 };
5716 Q_ENUM( AngleUnit )
5717
5718
5728 {
5729 MetersPerSecond = 0,
5730 KilometersPerHour,
5731 Knots,
5732 MilesPerHour,
5733 FeetPerSecond,
5734 OtherUnit
5735 };
5736 Q_ENUM( WindSpeedUnit )
5737
5738
5746 {
5747 Milliseconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalMilliseconds ),
5748 Seconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalSeconds ),
5749 Minutes SIP_MONKEYPATCH_COMPAT_NAME( TemporalMinutes ),
5750 Hours SIP_MONKEYPATCH_COMPAT_NAME( TemporalHours ),
5751 Days SIP_MONKEYPATCH_COMPAT_NAME( TemporalDays ),
5752 Weeks SIP_MONKEYPATCH_COMPAT_NAME( TemporalWeeks ),
5753 Months SIP_MONKEYPATCH_COMPAT_NAME( TemporalMonths ),
5754 Years SIP_MONKEYPATCH_COMPAT_NAME( TemporalYears ),
5755 Decades SIP_MONKEYPATCH_COMPAT_NAME( TemporalDecades ),
5756 Centuries SIP_MONKEYPATCH_COMPAT_NAME( TemporalCenturies ),
5757 IrregularStep SIP_MONKEYPATCH_COMPAT_NAME( TemporalIrregularStep ),
5758 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TemporalUnknownUnit )
5759 };
5760 Q_ENUM( TemporalUnit )
5761
5762
5770 {
5771 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( RenderMillimeters ),
5772 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMapUnits ),
5773 Pixels SIP_MONKEYPATCH_COMPAT_NAME( RenderPixels ),
5774 Percentage SIP_MONKEYPATCH_COMPAT_NAME( RenderPercentage ),
5775 Points SIP_MONKEYPATCH_COMPAT_NAME( RenderPoints ),
5776 Inches SIP_MONKEYPATCH_COMPAT_NAME( RenderInches ),
5777 Unknown SIP_MONKEYPATCH_COMPAT_NAME( RenderUnknownUnit ),
5778 MetersInMapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMetersInMapUnits ),
5779 };
5780 Q_ENUM( RenderUnit )
5781
5782
5790 {
5791 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMillimeters ),
5792 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutCentimeters ),
5793 Meters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMeters ),
5794 Inches SIP_MONKEYPATCH_COMPAT_NAME( LayoutInches ),
5795 Feet SIP_MONKEYPATCH_COMPAT_NAME( LayoutFeet ),
5796 Points SIP_MONKEYPATCH_COMPAT_NAME( LayoutPoints ),
5797 Picas SIP_MONKEYPATCH_COMPAT_NAME( LayoutPicas ),
5798 Pixels SIP_MONKEYPATCH_COMPAT_NAME( LayoutPixels )
5799 };
5800 Q_ENUM( LayoutUnit )
5801
5802
5810 {
5811 PaperUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutPaperUnits ),
5812 ScreenUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutScreenUnits )
5813 };
5814 Q_ENUM( LayoutUnitType )
5815
5816
5824 {
5825 Debug SIP_MONKEYPATCH_COMPAT_NAME( FlagDebug ) = 1 << 1,
5826 OutlineOnly SIP_MONKEYPATCH_COMPAT_NAME( FlagOutlineOnly ) = 1 << 2,
5827 Antialiasing SIP_MONKEYPATCH_COMPAT_NAME( FlagAntialiasing ) = 1 << 3,
5828 UseAdvancedEffects SIP_MONKEYPATCH_COMPAT_NAME( FlagUseAdvancedEffects ) = 1 << 4,
5829 ForceVectorOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagForceVectorOutput )
5830 = 1 << 5,
5831 HideCoverageLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagHideCoverageLayer ) = 1 << 6,
5832 DrawSelection SIP_MONKEYPATCH_COMPAT_NAME( FlagDrawSelection ) = 1 << 7,
5833 DisableTiledRasterLayerRenders SIP_MONKEYPATCH_COMPAT_NAME( FlagDisableTiledRasterLayerRenders )
5834 = 1 << 8,
5835 RenderLabelsByMapLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagRenderLabelsByMapLayer )
5836 = 1 << 9,
5837 LosslessImageRendering SIP_MONKEYPATCH_COMPAT_NAME( FlagLosslessImageRendering )
5838 = 1 << 10,
5839 SynchronousLegendGraphics SIP_MONKEYPATCH_COMPAT_NAME( FlagSynchronousLegendGraphics ) = 1 << 11,
5840 AlwaysUseGlobalMasks SIP_MONKEYPATCH_COMPAT_NAME( FlagAlwaysUseGlobalMasks )
5841 = 1 << 12,
5842 LimitCoverageLayerRenderToCurrentFeature = 1 << 13,
5843 };
5844 Q_ENUM( LayoutRenderFlag )
5845
5846
5854 Q_FLAG( LayoutRenderFlags )
5855
5864 {
5865 SVG SIP_MONKEYPATCH_COMPAT_NAME( FormatSVG ) = 0,
5866 Raster SIP_MONKEYPATCH_COMPAT_NAME( FormatRaster ),
5867 Unknown SIP_MONKEYPATCH_COMPAT_NAME( FormatUnknown ),
5868 };
5869 Q_ENUM( PictureFormat )
5870
5871
5876 enum class ScaleCalculationMethod : int
5877 {
5878 HorizontalTop = 0,
5879 HorizontalMiddle,
5880 HorizontalBottom,
5881 HorizontalAverage,
5882 AtEquator,
5883 };
5884 Q_ENUM( ScaleCalculationMethod )
5885
5886
5899 Q_ENUM( ScaleBarAlignment )
5900
5901
5909 {
5910 Fixed SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFixed ) = 0,
5911 FitWidth SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFitWidth ) = 1
5912 };
5913 Q_ENUM( ScaleBarSegmentSizeMode )
5914
5915
5923 {
5924 AboveSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelAboveSegment ) = 0,
5925 BelowSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelBelowSegment ),
5926 };
5927 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
5928
5929
5937 {
5938 CenteredEdge SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredEdge ) = 0,
5939 CenteredSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredSegment ),
5940 };
5941 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
5942
5943
5951 {
5952 BeforeBar = 1 << 1,
5953 AfterBar = 1 << 2,
5954 LeftAbove = 1 << 3,
5955 CenteredAbove = 1 << 4,
5956 RightAbove = 1 << 5,
5957 LeftBelow = 1 << 6,
5958 CenteredBelow = 1 << 7,
5959 RightBelow = 1 << 8,
5960 BeforeFirstDistanceLabel = 1 << 9,
5961 AfterLastDistanceLabel = 1 << 10,
5962 OnBarAfterFirstDivision = 1 << 11,
5963 BeforeEveryDistanceLabel = 1 << 12,
5964 AfterEveryDistanceLabel = 1 << 13,
5965 };
5966 Q_ENUM( ScaleBarUnitLabelPlacement )
5967
5968
5977
5986 {
5987 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( MapUnit ),
5990 DynamicPageSizeBased,
5991 };
5992 Q_ENUM( MapGridUnit )
5993
5994
6002 {
6003 Lines SIP_MONKEYPATCH_COMPAT_NAME( Solid ) = 0,
6004 LineCrosses SIP_MONKEYPATCH_COMPAT_NAME( Cross ),
6005 Markers,
6006 FrameAndAnnotationsOnly SIP_MONKEYPATCH_COMPAT_NAME( FrameAnnotationsOnly )
6007 };
6008 Q_ENUM( MapGridStyle )
6009
6010
6018 {
6019 ShowAll = 0,
6020 LatitudeOnly,
6021 LongitudeOnly,
6022 HideAll
6023 };
6024 Q_ENUM( MapGridComponentVisibility )
6025
6026
6034 {
6035 InsideMapFrame = 0,
6036 OutsideMapFrame,
6037 };
6038 Q_ENUM( MapGridAnnotationPosition )
6039
6040
6048 {
6049 Horizontal = 0,
6050 Vertical,
6051 VerticalDescending,
6052 BoundaryDirection,
6053 AboveTick,
6054 OnTick,
6055 UnderTick,
6056 };
6057 Q_ENUM( MapGridAnnotationDirection )
6058
6059
6067 {
6068 Decimal = 0,
6069 DegreeMinute,
6070 DegreeMinuteSecond,
6071 DecimalWithSuffix,
6072 DegreeMinuteNoSuffix,
6073 DegreeMinutePadded,
6074 DegreeMinuteSecondNoSuffix,
6075 DegreeMinuteSecondPadded,
6076 CustomFormat
6077 };
6078 Q_ENUM( MapGridAnnotationFormat )
6079
6080
6094 Q_ENUM( MapGridBorderSide )
6095
6096
6104 {
6105 NoFrame = 0,
6106 Zebra,
6107 InteriorTicks,
6108 ExteriorTicks,
6109 InteriorExteriorTicks,
6110 LineBorder,
6111 LineBorderNautical,
6112 ZebraNautical,
6113 };
6114 Q_ENUM( MapGridFrameStyle )
6115
6116
6124 {
6125 OrthogonalTicks = 0,
6126 NormalizedTicks,
6127 };
6128 Q_ENUM( MapGridTickLengthMode )
6129
6130
6131
6139 {
6140 Left SIP_MONKEYPATCH_COMPAT_NAME( FrameLeft ) = 0x01,
6141 Right SIP_MONKEYPATCH_COMPAT_NAME( FrameRight ) = 0x02,
6142 Top SIP_MONKEYPATCH_COMPAT_NAME( FrameTop ) = 0x04,
6143 Bottom SIP_MONKEYPATCH_COMPAT_NAME( FrameBottom ) = 0x08
6144 };
6145 Q_ENUM( MapGridFrameSideFlag )
6146
6147
6155 Q_FLAG( MapGridFrameSideFlags )
6156
6165 {
6166 Longitude = 0,
6167 Latitude
6168 };
6169 Q_ENUM( MapGridAnnotationType )
6170
6171
6177 {
6178 ManualRange = 0,
6179 FixedScale
6180 };
6181 Q_ENUM( ElevationProfileRangeMethod )
6182
6183
6188 enum class InputControllerType : int
6189 {
6190 Map2D,
6191 Map3D
6192 };
6194
6201 {
6202 NotSet,
6203 Unknown,
6204 OrdinaryTable,
6205 Index,
6206 Sequence,
6207 View,
6208 MaterializedView,
6209 CompositeType,
6210 ToastTable,
6211 ForeignTable,
6212 PartitionedTable,
6213 };
6214 Q_ENUM( PostgresRelKind )
6215
6216
6222 {
6223 SetFieldComment = 1 << 0,
6224 SetFieldAlias = 1 << 1,
6225 SetTableComment = 1 << 2,
6226 EditFieldDomain = 1 << 3,
6227 DeleteFieldDomain = 1 << 4,
6228 StyleStorage = 1 << 5,
6229 };
6230 Q_ENUM( DatabaseProviderConnectionCapability2 )
6233
6240 {
6241 SetGeometryColumnName = 1 << 0,
6242 SetPrimaryKeyName = 1 << 1,
6243 };
6244 Q_ENUM( DatabaseProviderTableImportCapability )
6247
6254 {
6255 SaveToDatabase = 1 << 1,
6256 LoadFromDatabase = 1 << 2,
6257 DeleteFromDatabase = 1 << 3
6258 };
6262
6263
6269 {
6270 LastProfile,
6271 DefaultProfile,
6272 AskUser,
6273 };
6274 Q_ENUM( UserProfileSelectionPolicy )
6275
6276
6284 {
6285 Container SIP_MONKEYPATCH_COMPAT_NAME( AeTypeContainer ),
6286 Field SIP_MONKEYPATCH_COMPAT_NAME( AeTypeField ),
6287 Relation SIP_MONKEYPATCH_COMPAT_NAME( AeTypeRelation ),
6288 QmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeQmlElement ),
6289 HtmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeHtmlElement ),
6290 Action SIP_MONKEYPATCH_COMPAT_NAME( AeTypeAction ),
6291 TextElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeTextElement ),
6292 SpacerElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeSpacerElement ),
6293 Invalid SIP_MONKEYPATCH_COMPAT_NAME( AeTypeInvalid ),
6294 };
6295 Q_ENUM( AttributeEditorType )
6296
6297
6303 {
6304 GroupBox,
6305 Tab,
6306 Row,
6307 };
6308 Q_ENUM( AttributeEditorContainerType )
6309
6310
6318 {
6319 AutoGenerated SIP_MONKEYPATCH_COMPAT_NAME( GeneratedLayout ) = 0,
6320 DragAndDrop SIP_MONKEYPATCH_COMPAT_NAME( TabLayout ) = 1,
6321 UiFile SIP_MONKEYPATCH_COMPAT_NAME( UiFileLayout ) = 2
6322 };
6323 Q_ENUM( AttributeFormLayout )
6324
6325
6333 {
6334 Default SIP_MONKEYPATCH_COMPAT_NAME( SuppressDefault ) = 0,
6335 On SIP_MONKEYPATCH_COMPAT_NAME( SuppressOn ) = 1,
6336 Off SIP_MONKEYPATCH_COMPAT_NAME( SuppressOff ) = 2
6337 };
6338 Q_ENUM( AttributeFormSuppression )
6339
6340
6348 {
6349 NoSource SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceNone ) = 0,
6350 File SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceFile ) = 1,
6351 Dialog SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceDialog ) = 2,
6352 Environment SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceEnvironment ) = 3
6353 };
6354 Q_ENUM( AttributeFormPythonInitCodeSource )
6355
6356
6362 {
6363 NotAllowed = 0,
6364 AllowedDefaultOn = 1,
6365 AllowedDefaultOff = 2,
6366 };
6367 Q_ENUM( AttributeFormReuseLastValuePolicy )
6368
6369
6375 {
6377 PointCloud,
6378 RasterCalculator,
6379 };
6380 Q_ENUM( ExpressionType )
6381
6382
6390 {
6391 NoSymbology = 0,
6392 PerFeature SIP_MONKEYPATCH_COMPAT_NAME( FeatureSymbology ),
6393 PerSymbolLayer SIP_MONKEYPATCH_COMPAT_NAME( SymbolLayerSymbology )
6394 };
6395 Q_ENUM( FeatureSymbologyExport )
6396
6397
6402 enum class VectorTileProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
6403 {
6404 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
6405 };
6406 Q_ENUM( VectorTileProviderFlag )
6407
6408
6414 Q_FLAG( VectorTileProviderFlags )
6415
6421 {
6422 ReadLayerMetadata = 1 << 1,
6423 };
6424 Q_ENUM( VectorTileProviderCapability )
6425
6426
6433
6440 {
6441 Available,
6442 NotAvailable,
6443 AvailableNoChildren,
6444 UseLowerZoomLevelTile,
6445 };
6446 Q_ENUM( TileAvailability )
6447
6448
6454 {
6455 ReadLayerMetadata = 1 << 1,
6456 };
6457 Q_ENUM( TiledSceneProviderCapability )
6458
6459
6466
6473 {
6474 Region,
6475 OrientedBox,
6476 Sphere,
6477 };
6478 Q_ENUM( TiledSceneBoundingVolumeType )
6479
6480
6489 {
6490 Replacement,
6491 Additive,
6492 };
6493 Q_ENUM( TileRefinementProcess )
6494
6495
6501 {
6502 NoChildren,
6503 Available,
6504 NeedFetching,
6505 };
6506 Q_ENUM( TileChildrenAvailability )
6507
6508
6513 enum class TiledSceneRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
6514 {
6515 NoHierarchyFetch = 1 << 0,
6516 };
6517 Q_ENUM( TiledSceneRequestFlag )
6518
6519
6525 Q_FLAG( TiledSceneRequestFlags )
6526
6532 enum class TiledSceneRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
6533 {
6534 RequiresTextures = 1 << 0,
6535 ForceRasterRender = 1 << 1,
6536 RendersTriangles = 1 << 2,
6537 RendersLines = 1 << 3,
6538 };
6539 Q_ENUM( TiledSceneRendererFlag )
6540
6541
6547 Q_FLAG( TiledSceneRendererFlags )
6548
6554 enum class GdalResampleAlgorithm : int
6555 {
6556 RA_NearestNeighbour = 0,
6557 RA_Bilinear = 1,
6558 RA_Cubic = 2,
6559 RA_CubicSpline = 3,
6560 RA_Lanczos = 4,
6561 RA_Average = 5,
6562 RA_Mode = 6,
6563 RA_Max = 8,
6564 RA_Min = 9,
6565 RA_Median = 10,
6566 RA_Q1 = 11,
6567 RA_Q3 = 12,
6568 };
6569 Q_ENUM( GdalResampleAlgorithm )
6570
6571
6576 enum class VsiHandlerType : int
6577 {
6578 Invalid,
6579 Archive,
6580 Network,
6581 Cloud,
6582 Memory,
6583 Other,
6584 };
6585 Q_ENUM( VsiHandlerType )
6586
6587 // TODO QGIS 5: make All include all values (we can't do this before 4.0, as we need to keep
6588 // compatibility with code which expects all these statistics to give numeric results)
6589
6590
6595 enum class ZonalStatistic : int SIP_ENUM_BASETYPE( IntFlag )
6596 {
6597 Count = 1 << 0,
6598 Sum = 1 << 1,
6599 Mean = 1 << 2,
6600 Median = 1 << 3,
6601 StDev = 1 << 4,
6602 Min = 1 << 5,
6603 Max = 1 << 6,
6604 Range = 1 << 7,
6605 Minority = 1 << 8,
6606 Majority = 1 << 9,
6607 Variety = 1 << 10,
6608 Variance = 1 << 11,
6609 MinimumPoint = 1 << 12,
6610 MaximumPoint = 1 << 13,
6611 // clang-format off
6612 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6613 // clang-format on
6614 AllNumeric = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6615 Default = Count | Sum | Mean,
6616 };
6617 Q_ENUM( ZonalStatistic )
6618
6619
6625 Q_FLAG( ZonalStatistics )
6626
6632 enum class ZonalStatisticResult : int
6633 {
6635 LayerTypeWrong = 1,
6636 LayerInvalid,
6637 RasterInvalid,
6638 RasterBandInvalid,
6639 FailedToCreateField = 8,
6640 Canceled = 9
6641 };
6642 Q_ENUM( ZonalStatisticResult )
6643
6644
6651 {
6652 Count,
6653 CountDistinct,
6654 CountMissing,
6655 Min,
6656 Max,
6657 Sum,
6658 Mean,
6659 Median,
6660 StDev,
6661 StDevSample,
6662 Range,
6663 Minority,
6664 Majority,
6665 FirstQuartile,
6666 ThirdQuartile,
6667 InterQuartileRange,
6668 StringMinimumLength,
6669 StringMaximumLength,
6670 StringConcatenate,
6671 GeometryCollect,
6672 ArrayAggregate,
6673 StringConcatenateUnique
6674 };
6675 Q_ENUM( Aggregate )
6676
6677
6683 {
6684 Count = 1 << 0,
6685 CountMissing = 1 << 15,
6686 Sum = 1 << 1,
6687 Mean = 1 << 2,
6688 Median = 1 << 3,
6689 StDev = 1 << 4,
6690 StDevSample = 1 << 5,
6691 Min = 1 << 6,
6692 Max = 1 << 7,
6693 Range = 1 << 8,
6694 Minority = 1 << 9,
6695 Majority = 1 << 10,
6696 Variety = 1 << 11,
6697 FirstQuartile = 1 << 12,
6698 ThirdQuartile = 1 << 13,
6699 InterQuartileRange = 1 << 14,
6700 First = 1 << 16,
6701 Last = 1 << 17,
6702 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
6703 };
6704 Q_ENUM( Statistic )
6705
6706
6712 Q_FLAG( Statistics )
6713
6720 {
6721 Count = 1,
6722 CountDistinct = 2,
6723 CountMissing = 4,
6724 Min = 8,
6725 Max = 16,
6726 Range = 32,
6727 All = Count | CountDistinct | CountMissing | Min | Max | Range,
6728 };
6729 Q_ENUM( DateTimeStatistic )
6730
6731
6737 Q_FLAG( DateTimeStatistics )
6738
6745 {
6746 Count = 1,
6747 CountDistinct = 2,
6748 CountMissing = 4,
6749 Min = 8,
6750 Max = 16,
6751 MinimumLength = 32,
6752 MaximumLength = 64,
6753 MeanLength = 128,
6754 Minority = 256,
6755 Majority = 512,
6756 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
6757 };
6758 Q_ENUM( StringStatistic )
6759
6760
6766 Q_FLAG( StringStatistics )
6767
6774 {
6775 NoStatistic = 0,
6776 Min = 1,
6777 Max = 1 << 1,
6778 Range = 1 << 2,
6779 Sum = 1 << 3,
6780 Mean = 1 << 4,
6781 StdDev = 1 << 5,
6782 SumOfSquares = 1 << 6,
6783 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
6784 };
6785 Q_ENUM( RasterBandStatistic )
6786
6787
6793 Q_FLAG( RasterBandStatistics )
6794
6801 {
6802 Points,
6803 StructureLines,
6804 BreakLines,
6805 };
6806 Q_ENUM( InterpolationSourceType )
6807
6808
6814 {
6815 Attribute,
6816 Z,
6817 M,
6818 };
6819 Q_ENUM( InterpolationValueSource )
6820
6821
6826 enum class SensorThingsVersion : int
6827 {
6828 Version1_1,
6829 Version2_0,
6830 };
6832
6838 enum class SensorThingsExtension : int SIP_ENUM_BASETYPE( IntFlag )
6839 {
6840 MultiDatastream = 1 << 0,
6841 SensingExtensionObservationsMeasurements = 1 << 1,
6842 SensingExtensionSampling = 1 << 2,
6843 SensingExtensionRelations = 1 << 3,
6844 };
6846
6853 Q_FLAG( SensorThingsExtensions )
6854
6855
6860 enum class SensorThingsEntity : int
6861 {
6862 Invalid,
6863 Thing,
6864 Location,
6865 HistoricalLocation,
6866 Datastream,
6867 Sensor,
6868 ObservedProperty,
6869 Observation,
6870 FeatureOfInterest,
6871 MultiDatastream,
6872 // version 2.0
6873 Feature,
6874 FeatureType,
6875 Deployment,
6876 ObservingProcedure,
6877 Sampling,
6878 SamplingProcedure,
6879 Sampler,
6880 PreparationStep,
6881 PreparationProcedure,
6882 ThingRelation,
6883 RelationRole,
6884 FeatureRelation,
6885 DatastreamRelation,
6886 ObservationRelation,
6887 };
6888 Q_ENUM( SensorThingsEntity )
6889
6890
6895 enum class ColorModel : int
6896 {
6897 Rgb,
6898 Cmyk,
6899 };
6900 Q_ENUM( ColorModel )
6901
6902
6907 enum class DocumentationApi : int
6908 {
6909 PyQgis,
6910 PyQgisSearch,
6911 CppQgis,
6912 Qt,
6913 };
6914 Q_ENUM( DocumentationApi )
6915
6916
6921 enum class DocumentationBrowser : int
6922 {
6923 DeveloperToolsPanel,
6924 SystemWebBrowser,
6925 };
6926 Q_ENUM( DocumentationBrowser )
6927
6928
6933 enum class MouseHandlesAction : int
6934 {
6935 MoveItem,
6936 ResizeUp,
6937 ResizeDown,
6938 ResizeLeft,
6939 ResizeRight,
6940 ResizeLeftUp,
6941 ResizeRightUp,
6942 ResizeLeftDown,
6943 ResizeRightDown,
6944 RotateTopLeft,
6945 RotateTopRight,
6946 RotateBottomLeft,
6947 RotateBottomRight,
6948 SelectItem,
6949 NoAction
6950 };
6951 Q_ENUM( MouseHandlesAction )
6952
6953
6957 enum class MeshRangeLimit : int
6958 {
6959 NotSet,
6960 MinimumMaximum,
6961 };
6962 Q_ENUM( MeshRangeLimit )
6963
6964
6969 enum class MeshRangeExtent : int
6970 {
6971 WholeMesh,
6972 FixedCanvas,
6973 UpdatedCanvas,
6974 };
6975 Q_ENUM( MeshRangeExtent )
6976
6977
6983 enum class PointCloudAccessType : int
6984 {
6985 Local,
6986 Remote
6987 };
6988 Q_ENUM( PointCloudAccessType )
6989
6990
6995 {
6996 RenderExtents,
6997 RenderOverview,
6998 RenderOverviewAndExtents
6999 };
7000 Q_ENUM( PointCloudZoomOutRenderBehavior )
7001
7002
7007 {
7008 Standard = 0,
7009 Adaptive,
7010 AreaError,
7011 ConstantDensity
7012 };
7013 Q_ENUM( SegmentCalculationMethod )
7014
7015
7019 enum class StacObjectType : int
7020 {
7021 Unknown,
7022 Catalog,
7023 Collection,
7024 Item,
7025 };
7026 Q_ENUM( StacObjectType )
7027
7028
7033 {
7034 WmsScale = 1 << 0,
7035 WmsDpi = 1 << 1,
7036 };
7037 Q_ENUM( RasterProcessingParameterCapability )
7038
7039
7045
7051 {
7052 Status = Qt::UserRole + 1,
7053 Id,
7054 ElapsedTime,
7055 MaximumTime,
7056 Sort,
7057 };
7058 Q_ENUM( DevToolsNodeRole )
7059
7060
7065 enum class ExtrusionFace : int SIP_ENUM_BASETYPE( IntFlag )
7066 {
7067 NoFace = 0,
7068 Walls = 1 << 0,
7069 Roof = 1 << 1,
7070 Floor = 1 << 2
7071 };
7072 Q_ENUM( ExtrusionFace )
7073
7074
7078 Q_DECLARE_FLAGS( ExtrusionFaces, ExtrusionFace )
7079 Q_FLAG( ExtrusionFaces )
7080
7085 enum class TriangulationAlgorithm : int SIP_ENUM_BASETYPE( IntFlag )
7086 {
7087 ConstrainedDelaunay = 0,
7088 Earcut = 1 << 0
7089 };
7090 Q_ENUM( TriangulationAlgorithm )
7091
7092
7103 enum class WmsGroupRequestMode : int
7104 {
7105 Normal,
7106 Opaque,
7107 };
7108 Q_ENUM( WmsGroupRequestMode )
7109
7110
7116 {
7117 RestorePreviousState,
7118 ForceDocked,
7119 ForceDialog,
7120 };
7121 Q_ENUM( DockableWidgetInitialState )
7122
7123
7129 {
7130 LongestBorder = 0,
7131 MaximumArea = 1,
7132 MinimumArea = 2,
7133 MinimumIndex = 3,
7134 };
7135 Q_ENUM( CoverageCleanOverlapMergeStrategy )
7136
7137
7142 enum class PdfRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
7143 {
7144 RenderTextAsText = 1 << 0,
7145 };
7146 Q_ENUM( PdfRenderFlag )
7147
7148
7153 Q_DECLARE_FLAGS( PdfRenderFlags, PdfRenderFlag )
7154 Q_FLAG( PdfRenderFlags )
7155
7156
7165 {
7166 AllValues = 0,
7167 MinValue = 1,
7168 MaxValue = 2,
7169 ReferenceValue = 3,
7170 };
7171 Q_ENUM( WmsDimensionDefaultDisplay )
7172
7173
7178 enum class RubberBandIconType : int
7179 {
7180 NoIcon,
7181 CrossPlus,
7182 CrossX,
7183 Box,
7184 Circle,
7185 BoxFilled,
7186 Diamond,
7187 DiamondFilled,
7188 SVG
7189 };
7190 Q_ENUM( RubberBandIconType )
7191
7192
7197 enum class RubberBandComponent : int SIP_ENUM_BASETYPE( IntFlag )
7198 {
7199 Symbol = 1 << 0,
7200 PreviewItems = 1 << 1,
7201 };
7202 Q_ENUM( RubberBandComponent )
7203
7204
7210 Q_FLAG( RubberBandComponents )
7211
7217 enum class UserInterfaceIconType : int
7218 {
7219 MainWindowToolbar,
7220 DockedToolbar,
7221 };
7222 Q_ENUM( UserInterfaceIconType )
7223
7224
7232 {
7233 MinMax = 0,
7234 Scaled,
7235 Fixed
7236 };
7237 Q_ENUM( VectorFieldArrowScalingMethod )
7238
7239
7247 {
7248 Arrows = 0,
7249 Streamlines,
7250 Traces,
7251 WindBarbs
7252 };
7253 Q_ENUM( VectorFieldSymbology )
7254
7255
7263 {
7264 Gridded SIP_MONKEYPATCH_COMPAT_NAME( MeshGridded ) = 0,
7265 Random
7266 };
7267 Q_ENUM( VectorFieldSeedingMethod )
7268
7269
7275 {
7276 CartesianComponents = 0,
7277 EncodedDirection,
7278 };
7279 Q_ENUM( RasterVectorFieldSourceMode )
7280
7281
7289 {
7290 Esri = 0,
7291 Grass,
7292 Saga,
7293 PcRaster,
7294 };
7295 Q_ENUM( RasterDirectionEncoding )
7296
7297
7302 enum class LinearMatrixMethod : int
7303 {
7304 Lu = 0,
7305 Svd = 1,
7306 LuWithSvdFallback = 2
7307 };
7308 Q_ENUM( LinearMatrixMethod )
7309
7310
7318 {
7319 ShowAll,
7320 ShowSelected,
7321 ShowVisible,
7322 ShowFilteredList,
7323 ShowEdited,
7324 ShowInvalid,
7325 };
7326 Q_ENUM( AttributeTableFilterMode )
7327
7328
7333 enum class PointCloudOutputsTypes : int
7334 {
7335 All,
7336 OnlyVPC,
7337 };
7338 Q_ENUM( PointCloudOutputsTypes )
7339
7340
7345 enum class SaveStyleFormat : int SIP_ENUM_BASETYPE( IntFlag )
7346 {
7347 QML = 1 << 0,
7348 SLD = 1 << 1,
7349 };
7350 Q_ENUM( SaveStyleFormat )
7352 Q_FLAG( SaveStyleFormats )
7353
7357 static const double DEFAULT_SEARCH_RADIUS_MM;
7358
7361
7367 static const QColor DEFAULT_HIGHLIGHT_COLOR;
7368
7372 static const double DEFAULT_HIGHLIGHT_BUFFER_MM;
7373
7378
7386 Q_DECL_DEPRECATED static const double SCALE_PRECISION;
7387
7392 static const double DEFAULT_Z_COORDINATE;
7393
7399 static const double DEFAULT_M_COORDINATE;
7400
7405 static const double UI_SCALE_FACTOR;
7406
7410 static const double DEFAULT_SNAP_TOLERANCE;
7411
7416
7420 static const int USER_CRS_START_ID;
7421
7423 static const double DEFAULT_POINT_SIZE;
7424
7426 static const double DEFAULT_LINE_WIDTH;
7427
7429 static const double DEFAULT_SEGMENT_EPSILON;
7430
7433
7436
7442 static QString defaultProjectScales();
7443
7449 static int geosVersionInt();
7450
7456 static int geosVersionMajor();
7457
7463 static int geosVersionMinor();
7464
7470 static int geosVersionPatch();
7471
7477 static QString geosVersion();
7478
7484 static bool hasSfcgal();
7485
7492 static int sfcgalVersionInt();
7493
7499 static bool hasGeographicLib();
7500
7507 static int geographicLibVersion();
7508
7514 Q_DECL_DEPRECATED static bool hasQtWebkit();
7515
7521 static QString geoNone() { return u"NONE"_s; }
7522
7528 static QString geographicCrsAuthId() { return u"EPSG:4326"_s; }
7529
7534 Q_DECL_DEPRECATED static QString geoWkt()
7535 {
7536 return QStringLiteral(
7537 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]] )"""
7538 );
7539 }
7540
7545 Q_DECL_DEPRECATED static QString geoProj4() { return u"+proj=longlat +datum=WGS84 +no_defs"_s; }
7546};
7547
7550
7653Q_DECLARE_METATYPE( QTimeZone )
7654
7655// hack to workaround warnings when casting void pointers
7656// retrieved from QLibrary::resolve to function pointers.
7657// It's assumed that this works on all systems supporting
7658// QLibrary
7659#define cast_to_fptr( f ) f
7660
7661
7669// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7670template<class Object> class QgsSignalBlocker SIP_SKIP SIP_SKIP // clazy:exclude=rule-of-three
7671{
7672 public:
7677 explicit QgsSignalBlocker( Object *object )
7678 : mObject( object )
7679 , mPreviousState( object->blockSignals( true ) )
7680 {}
7681
7682 ~QgsSignalBlocker() { mObject->blockSignals( mPreviousState ); }
7683
7685 Object *operator->() { return mObject; }
7686
7687 private:
7688 Object *mObject = nullptr;
7689 bool mPreviousState;
7690};
7691
7704// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7705template<class Object> inline QgsSignalBlocker<Object> whileBlocking( Object *object ) SIP_SKIP SIP_SKIP
7706{
7707 return QgsSignalBlocker<Object>( object );
7708}
7709
7711CORE_EXPORT size_t qHash( const QVariant &variant );
7712
7718inline QString qgsDoubleToString( double a, int precision = 17 )
7719{
7720 QString str;
7721 if ( precision )
7722 {
7723 if ( precision < 0 )
7724 {
7725 const double roundFactor = std::pow( 10, -precision );
7726 str = QString::number( static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
7727 }
7728 else
7729 {
7730 str = QString::number( a, 'f', precision );
7731 if ( str.contains( '.'_L1 ) )
7732 {
7733 // remove ending 0s
7734 int idx = str.length() - 1;
7735 while ( str.at( idx ) == '0' && idx > 1 )
7736 {
7737 idx--;
7738 }
7739 if ( idx < str.length() - 1 )
7740 str.truncate( str.at( idx ) == '.' ? idx : idx + 1 );
7741 }
7742 }
7743 }
7744 else
7745 {
7746 str = QString::number( a, 'f', precision );
7747 }
7748 // avoid printing -0
7749 // see https://bugreports.qt.io/browse/QTBUG-71439
7750 if ( str == "-0"_L1 )
7751 {
7752 return "0"_L1;
7753 }
7754 return str;
7755}
7756
7763inline bool qgsNanCompatibleEquals( double a, double b )
7764{
7765 if ( a == b )
7766 return true;
7767
7768 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7769 return true;
7770
7771 return false;
7772}
7773
7774#ifndef SIP_RUN
7775
7783template<typename T> inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
7784{
7785 static_assert( std::is_floating_point<T>::value, "qgsNumberNear requires floating-point types" );
7786
7787 if ( a == b )
7788 return true;
7789
7790 // if either 'a' or 'b' is NaN, 'diff' becomes NaN.
7791 // comparisons (>= or <=) against NaN evaluate to false, which will fallback
7792 // to the nan related logic at the end of this function
7793 const T diff = a - b;
7794 if ( diff >= -epsilon && diff <= epsilon )
7795 return true;
7796
7797 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7798 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7799 return true;
7800
7801 return false;
7802}
7803#endif
7804
7811inline bool qgsDoubleNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7812{
7813 return qgsNumberNear<double>( a, b, epsilon );
7814}
7815
7824inline bool qgsDoubleLessThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7825{
7826 // fast check first
7827 if ( a <= b )
7828 return true;
7829
7830 // => a > b
7831 // => a - b > 0
7832 // we only need to check the upper epsilon bound for the fuzzy equality
7833 if ( a - b <= epsilon )
7834 return true;
7835
7836 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7837 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7838 return true;
7839
7840 return false;
7841}
7842
7851inline bool qgsDoubleGreaterThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7852{
7853 // fast check first
7854 if ( a >= b )
7855 return true;
7856
7857 // => a < b
7858 // => b - a > 0
7859 // we only need to check the upper epsilon bound for the fuzzy equality
7860 if ( b - a <= epsilon )
7861 return true;
7862
7863 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7864 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7865 return true;
7866
7867 return false;
7868}
7869
7876inline bool qgsFloatNear( float a, float b, float epsilon = 4 * FLT_EPSILON )
7877{
7878 return qgsNumberNear<float>( a, b, epsilon );
7879}
7880
7882inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
7883{
7884 const bool aIsNan = std::isnan( a );
7885 const bool bIsNan = std::isnan( b );
7886 if ( aIsNan || bIsNan )
7887 return aIsNan && bIsNan;
7888
7889 // The most simple would be to print numbers as %.xe and compare as strings
7890 // but that is probably too costly
7891 // Then the fastest would be to set some bits directly, but little/big endian
7892 // has to be considered (maybe TODO)
7893 // Is there a better way?
7894 int aexp, bexp;
7895 const double ar = std::frexp( a, &aexp );
7896 const double br = std::frexp( b, &bexp );
7897
7898 return aexp == bexp && std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
7899}
7900
7905inline double qgsRound( double number, int places )
7906{
7907 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
7908 const double scaleFactor = std::pow( 10.0, places );
7909 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
7910}
7911
7912#ifndef SIP_RUN
7913
7920template<class Key, class Value> QString qgsMapJoinKeys( const QMap<Key, Value> &map, const QString &separator )
7921{
7922 QString result;
7923 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7924 result += QString( "%1%2" ).arg( it.key() ).arg( separator );
7925
7926 result.chop( separator.size() );
7927 return result;
7928}
7929
7936template<class Key, class Value> QString qgsMapJoinValues( const QMap<Key, Value> &map, const QString &separator )
7937{
7938 QString result;
7939 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7940 result += QString( "%1%2" ).arg( it.value() ).arg( separator );
7941
7942 result.chop( separator.size() );
7943 return result;
7944}
7945
7952template<class T> QString qgsSetJoin( const QSet<T> &set, const QString &separator )
7953{
7954 QString result;
7955 for ( auto it = set.constBegin(); it != set.constEnd(); it++ )
7956 result += QString( "%1%2" ).arg( *it ).arg( separator );
7957
7958 result.chop( separator.size() );
7959 return result;
7960}
7961
7963
7973namespace qgis
7974{
7975
7988 template<typename To, typename From> inline To down_cast( From *f )
7989 {
7990 static_assert( ( std::is_base_of<From, typename std::remove_pointer<To>::type>::value ), "target type not derived from source type" );
7991 Q_ASSERT( f == nullptr || dynamic_cast<To>( f ) != nullptr );
7992 return static_cast<To>( f );
7993 }
7994
7995 template<class T> QSet<T> listToSet( const QList<T> &list )
7996 {
7997 return QSet<T>( list.begin(), list.end() );
7998 }
7999
8000 template<class T> QList<T> setToList( const QSet<T> &set )
8001 {
8002 return QList<T>( set.begin(), set.end() );
8003 }
8004
8013 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_static_cast( std::unique_ptr<From> f )
8014 {
8015 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
8016 Q_ASSERT( !f || dynamic_cast<To *>( f.get() ) != nullptr );
8017 return std::unique_ptr<To>( static_cast<To *>( f.release() ) );
8018 }
8019
8027 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_dynamic_cast( std::unique_ptr<From> &&f )
8028 {
8029 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
8030 if ( To *casted = dynamic_cast<To *>( f.get() ) )
8031 {
8032 return std::unique_ptr< To >( dynamic_cast<To *>( f.release() ) );
8033 }
8034 else
8035 {
8036 //could not cast
8037 return nullptr;
8038 }
8039 }
8040
8041
8042} //namespace qgis
8043
8045#endif
8046
8051template<class T> const QList<T> qgsEnumList() SIP_SKIP
8052{
8053 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8054 Q_ASSERT( metaEnum.isValid() );
8055 QList<T> enumList;
8056 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
8057 {
8058 enumList.append( static_cast<T>( metaEnum.value( idx ) ) );
8059 }
8060 return enumList;
8061}
8062
8068template<class T> const QMap<T, QString> qgsEnumMap() SIP_SKIP
8069{
8070 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8071 Q_ASSERT( metaEnum.isValid() );
8072 QMap<T, QString> enumMap;
8073 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
8074 {
8075 enumMap.insert( static_cast<T>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
8076 }
8077 return enumMap;
8078}
8079
8085template<class T> QString qgsEnumValueToKey( const T &value, bool *returnOk = nullptr ) SIP_SKIP
8086{
8087 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8088 Q_ASSERT( metaEnum.isValid() );
8089 const char *key = metaEnum.valueToKey( static_cast<int>( value ) );
8090 if ( returnOk )
8091 {
8092 *returnOk = key ? true : false;
8093 }
8094 return QString::fromUtf8( key );
8095}
8096
8104template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
8105{
8106 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8107 Q_ASSERT( metaEnum.isValid() );
8108 bool ok = false;
8109 T v = static_cast<T>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
8110 if ( returnOk )
8111 {
8112 *returnOk = ok;
8113 }
8114 if ( ok )
8115 {
8116 return v;
8117 }
8118 else
8119 {
8120 // if conversion has failed, try with conversion from int value
8121 if ( tryValueAsKey )
8122 {
8123 bool canConvert = false;
8124 const int intValue = key.toInt( &canConvert );
8125 if ( canConvert && metaEnum.valueToKey( intValue ) )
8126 {
8127 if ( returnOk )
8128 {
8129 *returnOk = true;
8130 }
8131 return static_cast<T>( intValue );
8132 }
8133 }
8134 }
8135 return defaultValue;
8136}
8137
8143template<class T> QString qgsFlagValueToKeys( const T &value, bool *returnOk = nullptr ) SIP_SKIP
8144{
8145 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8146 Q_ASSERT( metaEnum.isValid() );
8147 int intValue = static_cast<int>( value );
8148 if ( intValue == 0 )
8149 {
8150 if ( returnOk )
8151 *returnOk = true;
8152 return u"0"_s;
8153 }
8154
8155 const QByteArray ba = metaEnum.valueToKeys( intValue );
8156 // check that the int value does correspond to a flag
8157 // see https://stackoverflow.com/a/68495949/1548052
8158 const int intValueCheck = metaEnum.keysToValue( ba );
8159 bool ok = intValue == intValueCheck;
8160 if ( returnOk )
8161 *returnOk = ok;
8162 return ok ? QString::fromUtf8( ba ) : QString();
8163}
8164
8172template<class T> T qgsFlagKeysToValue( const QString &keys, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
8173{
8174 if ( keys.isEmpty() )
8175 {
8176 if ( returnOk )
8177 {
8178 *returnOk = false;
8179 }
8180 return defaultValue;
8181 }
8182 else if ( keys == "0"_L1 )
8183 {
8184 if ( returnOk )
8185 {
8186 *returnOk = true;
8187 }
8188 return T();
8189 }
8190 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8191 Q_ASSERT( metaEnum.isValid() );
8192 bool ok = false;
8193 T v = static_cast<T>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
8194 if ( returnOk )
8195 {
8196 *returnOk = ok;
8197 }
8198 if ( ok )
8199 {
8200 return v;
8201 }
8202 else
8203 {
8204 // if conversion has failed, try with conversion from int value
8205 if ( tryValueAsKey )
8206 {
8207 bool canConvert = false;
8208 const int intValue = keys.toInt( &canConvert );
8209 if ( canConvert )
8210 {
8211 const QByteArray keyArray = metaEnum.valueToKeys( intValue );
8212 const int intValueCheck = metaEnum.keysToValue( keyArray );
8213 if ( !keyArray.isEmpty() && intValue == intValueCheck )
8214 {
8215 if ( returnOk )
8216 {
8217 *returnOk = true;
8218 }
8219 return T( intValue );
8220 }
8221 }
8222 }
8223 }
8224 return defaultValue;
8225}
8226
8227
8236CORE_EXPORT double qgsPermissiveToDouble( QString string, bool &ok );
8237
8246CORE_EXPORT int qgsPermissiveToInt( QString string, bool &ok );
8247
8257CORE_EXPORT qlonglong qgsPermissiveToLongLong( QString string, bool &ok );
8258
8278CORE_EXPORT int qgsVariantCompare( const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck = false );
8279
8290CORE_EXPORT bool qgsVariantLessThan( const QVariant &lhs, const QVariant &rhs );
8291
8300CORE_EXPORT bool qgsVariantEqual( const QVariant &lhs, const QVariant &rhs );
8301
8310CORE_EXPORT bool qgsVariantGreaterThan( const QVariant &lhs, const QVariant &rhs );
8311
8323inline bool operator>( const QVariant &v1, const QVariant &v2 )
8324{
8325 return qgsVariantCompare( v1, v2, true ) > 0;
8326}
8327
8339inline bool operator<( const QVariant &v1, const QVariant &v2 )
8340{
8341 return qgsVariantCompare( v1, v2, true ) < 0;
8342}
8343
8350Q_DECL_DEPRECATED CORE_EXPORT QString qgsVsiPrefix( const QString &path ) SIP_DEPRECATED;
8351
8357void CORE_EXPORT *qgsMalloc( size_t size ) SIP_SKIP;
8358
8363void CORE_EXPORT qgsFree( void *ptr ) SIP_SKIP;
8364
8365#ifndef SIP_RUN
8366
8368class ScopedIntIncrementor
8369{
8370 public:
8371 ScopedIntIncrementor( int *variable )
8372 : mVariable( variable )
8373 {
8374 ( *mVariable )++;
8375 }
8376
8377 ScopedIntIncrementor( const ScopedIntIncrementor &other ) = delete;
8378 ScopedIntIncrementor &operator=( const ScopedIntIncrementor &other ) = delete;
8379
8380 void release()
8381 {
8382 if ( mVariable )
8383 ( *mVariable )--;
8384
8385 mVariable = nullptr;
8386 }
8387
8388 ~ScopedIntIncrementor() { release(); }
8389
8390 private:
8391 int *mVariable = nullptr;
8392};
8394
8395#endif
8396
8402Q_DECL_DEPRECATED const long GEOSRID = 4326;
8403
8409Q_DECL_DEPRECATED const long GEOCRS_ID = 3452;
8410
8416Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID = 4326;
8417
8418typedef QMap<QString, QString> QgsStringMap SIP_SKIP;
8419
8428typedef unsigned long long qgssize;
8429
8430#ifndef SIP_RUN
8431#if ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) ) || defined( __clang__ )
8432
8433#define Q_NOWARN_DEPRECATED_PUSH _Pragma( "GCC diagnostic push" ) _Pragma( "GCC diagnostic ignored \"-Wdeprecated-declarations\"" );
8434#define Q_NOWARN_DEPRECATED_POP _Pragma( "GCC diagnostic pop" );
8435#define Q_NOWARN_UNREACHABLE_PUSH
8436#define Q_NOWARN_UNREACHABLE_POP
8437
8438#elif defined( _MSC_VER )
8439
8440#define Q_NOWARN_DEPRECATED_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4996 ) )
8441#define Q_NOWARN_DEPRECATED_POP __pragma( warning( pop ) )
8442#define Q_NOWARN_UNREACHABLE_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4702 ) )
8443#define Q_NOWARN_UNREACHABLE_POP __pragma( warning( pop ) )
8444#else
8445
8446#define Q_NOWARN_DEPRECATED_PUSH
8447#define Q_NOWARN_DEPRECATED_POP
8448#define Q_NOWARN_UNREACHABLE_PUSH
8449#define Q_NOWARN_UNREACHABLE_POP
8450
8451#endif
8452#endif
8453
8454#ifndef QGISEXTERN
8455#ifdef Q_OS_WIN
8456#define QGISEXTERN extern "C" __declspec( dllexport )
8457#else
8458#if defined( __GNUC__ ) || defined( __clang__ )
8459#define QGISEXTERN extern "C" __attribute__( ( visibility( "default" ) ) )
8460#else
8461#define QGISEXTERN extern "C"
8462#endif
8463#endif
8464#endif
8465#endif
8466
8467#ifndef SIP_RUN
8468#ifdef _MSC_VER
8469#define BUILTIN_UNREACHABLE __assume( false );
8470#elif defined( __GNUC__ ) && !defined( __clang__ )
8471// Workaround a GCC bug where a -Wreturn-type warning is emitted in constructs
8472// like:
8473// switch( mVariableThatCanOnlyBeXorY )
8474// {
8475// case X:
8476// return "foo";
8477// case Y:
8478// return "foo";
8479// }
8480// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951
8481#define BUILTIN_UNREACHABLE __builtin_unreachable();
8482#else
8483#define BUILTIN_UNREACHABLE
8484#endif
8485#endif // SIP_RUN
Provides global constants and enumerations for use throughout the application.
Definition qgis.h:62
MapGridTickLengthMode
Map grid tick length mode (useful for rotated grids).
Definition qgis.h:6124
DistanceUnitType
Types of distance units.
Definition qgis.h:5642
PieChartLabelType
Pie chart label types.
Definition qgis.h:3596
GnssConstellation
GNSS constellation.
Definition qgis.h:2074
SettingsOption
Settings options.
Definition qgis.h:785
EmbeddedScriptType
Type of Python Embedded in projects.
Definition qgis.h:483
AttributeTableFilterMode
Defines how rows in attribute tables should be filtered.
Definition qgis.h:7318
ProfileGeneratorFlag
Flags that control the way the QgsAbstractProfileGenerator operate.
Definition qgis.h:4699
GeometryBackend
Geometry backend for QgsGeometry.
Definition qgis.h:2319
ProcessingSourceType
Processing data source types.
Definition qgis.h:3781
static const Qgis::MapToolUnit DEFAULT_SNAP_UNITS
Default snapping distance units.
Definition qgis.h:7415
GpsQualityIndicator
GPS signal quality indicator.
Definition qgis.h:2092
QFlags< MapGridFrameSideFlag > MapGridFrameSideFlags
Flags for controlling which side of the map a frame is drawn on.
Definition qgis.h:6154
DataItemProviderCapability
Capabilities for data item providers.
Definition qgis.h:1077
ProcessingFileParameterBehavior
Flags which dictate the behavior of QgsProcessingParameterFile.
Definition qgis.h:4063
RasterizedRenderingPolicy
Policies controlling when rasterisation of content during renders is permitted.
Definition qgis.h:2916
QFlags< MapLayerRendererFlag > MapLayerRendererFlags
Flags which control how map layer renderers behave.
Definition qgis.h:3025
ProjectReadFlag
Flags which control project read behavior.
Definition qgis.h:4783
QFlags< DatabaseProviderTableImportCapability > DatabaseProviderTableImportCapabilities
Definition qgis.h:6245
QFlags< BabelCommandFlag > BabelCommandFlags
Babel command flags.
Definition qgis.h:2187
CurvedLabelMode
Modes which determine how curved labels are generated and placed.
Definition qgis.h:1326
MapToolUnit
Type of unit of tolerance value from settings.
Definition qgis.h:5548
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
Definition qgis.h:3568
static const double DEFAULT_LINE_WIDTH
The default width (in millimeters) for line symbols.
Definition qgis.h:7426
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
Definition qgis.h:4138
QFlags< GpsInformationComponent > GpsInformationComponents
GPS information component.
Definition qgis.h:2154
ScaleBarDistanceLabelHorizontalPlacement
Scale bar distance label horizontal placement.
Definition qgis.h:5937
PointCloudSymbol
Rendering symbols for point cloud points.
Definition qgis.h:4727
SymbolRotationMode
Modes for handling how symbol and text entity rotation is handled when maps are rotated.
Definition qgis.h:868
static const double DEFAULT_HIGHLIGHT_MIN_WIDTH_MM
Default highlight line/stroke minimum width in mm.
Definition qgis.h:7377
QFlags< PdfRenderFlag > PdfRenderFlags
PDF rendering flags.
Definition qgis.h:7153
static QString version()
Version string.
Definition qgis.cpp:682
GeometryValidityFlag
Geometry validity check flags.
Definition qgis.h:2241
QFlags< RasterProviderCapability > RasterProviderCapabilities
Raster data provider capabilities.
Definition qgis.h:5473
ExpressionType
Expression types.
Definition qgis.h:6375
MapLayerActionFlag
Map layer action flags.
Definition qgis.h:5203
ScaleBarDistanceLabelVerticalPlacement
Scale bar distance label vertical placement.
Definition qgis.h:5923
MapLayerProperty
Generic map layer properties.
Definition qgis.h:2464
VectorProviderCapability
Vector data provider capabilities.
Definition qgis.h:545
RasterProcessingParameterCapability
Capabilities of a raster layer processing parameter.
Definition qgis.h:7033
BufferSide
Side of line to buffer.
Definition qgis.h:2268
RasterResamplingStage
Stage at which raster resampling occurs.
Definition qgis.h:1639
WmsGroupRequestMode
Request mode of groups in a WMS context.
Definition qgis.h:7104
VectorFieldSeedingMethod
Method used to define start points that are used to draw streamlines.
Definition qgis.h:7263
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
Definition qgis.h:5192
VectorTileProviderCapability
Enumeration with capabilities that vector tile data providers might implement.
Definition qgis.h:6421
ProjectTrustStatus
Project trust status.
Definition qgis.h:496
MultiPartLabelingBehavior
Behavior modifier for labeling features with multi-part geometries.
Definition qgis.h:1365
AltitudeClamping
Altitude clamping.
Definition qgis.h:4257
static const int PREVIEW_JOB_DELAY_MS
Delay between the scheduling of 2 preview jobs.
Definition qgis.h:7432
VectorTileProviderFlag
Flags for vector tile data providers.
Definition qgis.h:6403
VectorFieldSymbology
Defines the symbology of vector field rendering.
Definition qgis.h:7247
VectorTemporalMode
Vector layer temporal feature modes.
Definition qgis.h:2787
SublayerFlag
Flags which reflect the properties of sublayers in a dataset.
Definition qgis.h:1578
QFlags< ProjectCapability > ProjectCapabilities
Flags which control project capabilities.
Definition qgis.h:4827
LabelLinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1415
QFlags< UriCleaningFlag > UriCleaningFlags
Flags for cleaning layer URIs.
Definition qgis.h:1538
CoordinateDisplayType
Formats for displaying coordinates.
Definition qgis.h:4964
ProcessingParameterTypeFlag
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:4011
QFlags< VectorRenderingSimplificationFlag > VectorRenderingSimplificationFlags
Simplification flags for vector feature rendering.
Definition qgis.h:3281
DashPatternSizeAdjustment
Dash pattern size adjustment options.
Definition qgis.h:3541
InterpolationSourceType
Interpolation source types.
Definition qgis.h:6801
static const double DEFAULT_Z_COORDINATE
Default Z coordinate value.
Definition qgis.h:7392
CoverageCleanOverlapMergeStrategy
Merge strategies for coverage cleaning operations.
Definition qgis.h:7129
GpsFixStatus
GPS fix status.
Definition qgis.h:2059
AnnotationItemNodeType
Annotation item node types.
Definition qgis.h:2714
static const char * QGIS_DEV_VERSION
The development version.
Definition qgis.h:89
VectorFileWriterCapability
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1174
QFlags< MapSettingsFlag > MapSettingsFlags
Map settings flags.
Definition qgis.h:2966
InterpolationValueSource
Source for interpolated values from features.
Definition qgis.h:6814
CrsIdentifierType
Available identifier string types for representing coordinate reference systems.
Definition qgis.h:2603
QFlags< RasterRendererFlag > RasterRendererFlags
Flags which control behavior of raster renderers.
Definition qgis.h:1682
AngularDirection
Angular directions.
Definition qgis.h:3682
DriveType
Drive types.
Definition qgis.h:1227
UnitType
Unit types.
Definition qgis.h:5563
ContentStatus
Status for fetched or stored content.
Definition qgis.h:2015
UserInterfaceIconType
Icon types for icons shown in the user interface.
Definition qgis.h:7218
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
Definition qgis.h:1977
SnappingType
SnappingTypeFlag defines on what object the snapping is performed.
Definition qgis.h:810
Map3DBackgroundType
Background types for 3D map view.
Definition qgis.h:4563
LayoutUnit
Layout measurement units.
Definition qgis.h:5790
Q_ENUM(GpsFixStatus)
RelationshipStrength
Relationship strength.
Definition qgis.h:4917
Q_ENUM(GnssConstellation)
PaintEffectFlag
Flags which control how paint effects behave.
Definition qgis.h:3034
MarkerLinePlacement
Defines how/where the symbols should be placed on a line.
Definition qgis.h:3379
QFlags< ProjectReadFlag > ProjectReadFlags
Project load flags.
Definition qgis.h:4805
LegendComponent
Component of legends which can be styled.
Definition qgis.h:5100
Point3DShape
3D point shape types.
Definition qgis.h:4443
GeometryOperationResult
Success or failure of a geometry operation.
Definition qgis.h:2212
QFlags< StringStatistic > StringStatistics
Statistics to be calculated for string values.
Definition qgis.h:6765
BrowserItemState
Browser item states.
Definition qgis.h:1020
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:6303
QFlags< TiledSceneProviderCapability > TiledSceneProviderCapabilities
Tiled scene data provider capabilities.
Definition qgis.h:6464
QFlags< SensorThingsExtension > SensorThingsExtensions
OGC SensorThings extensions.
Definition qgis.h:6852
FeatureRequestFilterType
Types of feature request filters.
Definition qgis.h:2407
MarkerClipMode
Marker clipping modes.
Definition qgis.h:3499
GpsNavigationStatus
GPS navigation status.
Definition qgis.h:2112
AnnotationItemFlag
Flags for annotation items.
Definition qgis.h:2671
AttributeFormReuseLastValuePolicy
Attribute form policy for reusing last entered values.
Definition qgis.h:6362
RenderSubcomponentProperty
Rendering subcomponent properties.
Definition qgis.h:3290
ProcessingTinInputLayerType
Defines the type of input layer for a Processing TIN input.
Definition qgis.h:4153
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
Definition qgis.h:2501
TextureFilterQuality
Texture filtering qualities.
Definition qgis.h:4521
Statistic
Available generic statistics.
Definition qgis.h:6683
TriangulationAlgorithm
Triangulation algorithms.
Definition qgis.h:7086
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
Definition qgis.h:830
SaveStyleFormat
Style save format.
Definition qgis.h:7346
AngleUnit
Units of angles.
Definition qgis.h:5705
ToneMappingMethod
Defines the method used to map High Dynamic Range (HDR) scene colors to the Standard Dynamic Range (S...
Definition qgis.h:4638
MapGridAnnotationPosition
Position for map grid annotations.
Definition qgis.h:6034
CaptureTechnique
Capture technique.
Definition qgis.h:438
static QString geosVersion()
GEOS string version linked.
Definition qgis.cpp:704
SpatialIndexPresence
Enumeration of spatial index presence states.
Definition qgis.h:619
BrowserItemCapability
Browser item capabilities.
Definition qgis.h:1033
AttributeFormSuppression
Available form types for layout of the attribute form editor.
Definition qgis.h:6333
QFlags< AuthConfigurationStorageCapability > AuthConfigurationStorageCapabilities
Authentication configuration storage capabilities.
Definition qgis.h:152
QFlags< LayerTreeFilterFlag > LayerTreeFilterFlags
Layer tree filter flags.
Definition qgis.h:5070
LayerTreeInsertionMethod
Layer tree insertion methods.
Definition qgis.h:5034
RasterProviderCapability
Raster data provider capabilities.
Definition qgis.h:5453
DatabaseProviderTableImportCapability
Represents capabilities of a database provider connection when importing table data.
Definition qgis.h:6240
LineClipMode
Line clipping modes.
Definition qgis.h:3513
static const double DEFAULT_SNAP_TOLERANCE
Default snapping distance tolerance.
Definition qgis.h:7410
VectorRenderingSimplificationFlag
Simplification flags for vector feature rendering.
Definition qgis.h:3266
QFlags< GeometryValidityFlag > GeometryValidityFlags
Geometry validity flags.
Definition qgis.h:2246
BrowserDirectoryMonitoring
Browser directory item monitoring switches.
Definition qgis.h:1126
LayerItemCapability
Flags for layer item capabilities.
Definition qgis.h:253
VsiHandlerType
GDAL VSI handler types.
Definition qgis.h:6577
NetworkRequestFlag
Flags controlling behavior of network requests.
Definition qgis.h:187
static int geographicLibVersion()
Returns the version of the GeographicLib library if QGIS is built with GeographicLib support.
Definition qgis.cpp:736
PointCloudOutputsTypes
Point cloud output formats allowed for a point cloud destination.
Definition qgis.h:7334
SettingsTreeNodeType
Type of tree node.
Definition qgis.h:715
TilePixelRatio
DpiMode enum.
Definition qgis.h:3622
DatabaseProviderConnectionCapability2
The Capability enum represents the extended operations supported by the connection.
Definition qgis.h:6222
QFlags< PaintEffectFlag > PaintEffectFlags
Flags which control how paint effects behave.
Definition qgis.h:3044
LabelOffsetType
Behavior modifier for label offset and distance, only applies in some label placement modes.
Definition qgis.h:1381
QFlags< ProfileGeneratorFlag > ProfileGeneratorFlags
Definition qgis.h:4705
QFlags< MapLayerLegendFlag > MapLayerLegendFlags
Map layer legend flags.
Definition qgis.h:5089
MapGridUnit
Units for map grid values.
Definition qgis.h:5986
LabelPrioritization
Label prioritization.
Definition qgis.h:1293
GradientColorSource
Gradient color sources.
Definition qgis.h:3428
FileFilterType
Type of file filters.
Definition qgis.h:1510
LabelPlacement
Placement modes which determine how label candidates are generated for a feature.
Definition qgis.h:1307
RasterLayerType
Raster layer types.
Definition qgis.h:5330
static const double DEFAULT_M_COORDINATE
Default M coordinate value.
Definition qgis.h:7399
QFlags< VectorLayerTypeFlag > VectorLayerTypeFlags
Vector layer type flags.
Definition qgis.h:460
ScaleBarAlignment
Scalebar alignment.
Definition qgis.h:5894
LegendLayerDoubleClickAction
Action performed when double-clicking a layer in the legend.
Definition qgis.h:5047
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:5369
ProcessingMode
Types of modes which Processing widgets can be created for.
Definition qgis.h:3922
VectorExportResult
Vector layer export result codes.
Definition qgis.h:1153
ShadowQuality
Shadow texture quality.
Definition qgis.h:4536
PdfRenderFlag
PDF rendering flags.
Definition qgis.h:7143
DistanceUnit
Units of distance.
Definition qgis.h:5580
ScaleBarUnitLabelPlacement
Available placement options for a scale bar's unit label.
Definition qgis.h:5951
RasterTemporalCapabilityFlag
Flags for raster layer temporal capabilities.
Definition qgis.h:2862
SymbolLayerFlag
Flags controlling behavior of symbol layers.
Definition qgis.h:962
MeshRangeLimit
Describes the limits used to compute mesh ranges (min/max values).
Definition qgis.h:6958
GradientSpread
Gradient spread options, which control how gradients are rendered outside of their start and end poin...
Definition qgis.h:3472
LegendSyncMode
Legend synchronization mode.
Definition qgis.h:5118
QFlags< AnnotationItemGuiFlag > AnnotationItemGuiFlags
Annotation item GUI flags.
Definition qgis.h:2704
LabelPolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1440
RasterRangeLimit
Describes the limits used to compute raster ranges (min/max values).
Definition qgis.h:1714
ScaleMethod
Scale methods.
Definition qgis.h:685
QFlags< RasterProcessingParameterCapability > RasterProcessingParameterCapabilities
Raster layer processing parameter capabilities.
Definition qgis.h:7043
SldExportOption
SLD export options.
Definition qgis.h:757
RasterVectorFieldSourceMode
Defines how a raster vector field renderer reads the vectors from the raster bands.
Definition qgis.h:7275
VectorSimplificationAlgorithm
Simplification algorithms for vector features.
Definition qgis.h:3250
FilePathType
File path types.
Definition qgis.h:1846
CadConstraintType
Advanced digitizing constraint type.
Definition qgis.h:4349
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:6348
PointCountMethod
Methods which define the number of points randomly filling a polygon.
Definition qgis.h:3487
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition qgis.h:772
static const double DEFAULT_HIGHLIGHT_BUFFER_MM
Default highlight buffer in mm.
Definition qgis.h:7372
MapCanvasFlag
Flags controlling behavior of map canvases.
Definition qgis.h:3708
LayerTreeFilterFlag
Layer tree filter flags.
Definition qgis.h:5060
TextAnchorPoint
Anchor point of label text.
Definition qgis.h:1495
ExtrusionFace
Extrusion face types for the QgsTessellator.
Definition qgis.h:7066
AttributeFormLayout
Available form types for layout of the attribute form editor.
Definition qgis.h:6318
FeatureRequestFlag
Flags for controlling feature requests.
Definition qgis.h:2378
Map3DDebugFlag
Flags that control debug options for 3D maps.
Definition qgis.h:4410
VertexType
Types of vertex.
Definition qgis.h:3315
ShaderInterpolationMethod
Color ramp shader interpolation methods.
Definition qgis.h:1594
JoinStyle3D
Join styles for 3D buffers.
Definition qgis.h:2306
DataProviderFlag
Generic data provider flags.
Definition qgis.h:2494
Q_ENUM(GpsNavigationStatus)
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
Definition qgis.h:6555
RasterResamplingMethod
Resampling method for raster provider-level resampling.
Definition qgis.h:1653
GeometryValidationEngine
Available engines for validating geometries.
Definition qgis.h:2255
static int geosVersionPatch()
GEOS Patch version number linked.
Definition qgis.cpp:766
TransactionMode
Transaction mode.
Definition qgis.h:4244
Q_ENUM(ScaleToTileZoomLevelMethod)
QFlags< FeatureRendererFlag > FeatureRendererFlags
Flags controlling behavior of vector feature renderers.
Definition qgis.h:920
static const QColor DEFAULT_HIGHLIGHT_COLOR
Default highlight color.
Definition qgis.h:7367
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
Definition qgis.h:5482
static Q_DECL_DEPRECATED const double SCALE_PRECISION
Fudge factor used to compare two scales.
Definition qgis.h:7386
RasterDrawingStyle
Raster drawing styles.
Definition qgis.h:5346
GeosCreationFlag
Flags which control geos geometry creation behavior.
Definition qgis.h:2331
Q_ENUM(SensorThingsExtension)
static const int MAXIMUM_LAYER_PREVIEW_TIME_MS
Maximum rendering time for a layer of a preview job.
Definition qgis.h:7435
QFlags< RubberBandComponent > RubberBandComponents
Rubber band components.
Definition qgis.h:7209
MeshRangeExtent
Describes the extent used to compute mesh ranges (min/max values).
Definition qgis.h:6970
GpsInformationComponent
GPS information component.
Definition qgis.h:2126
Q_ENUM(PointCloudProfileType)
ViewSyncModeFlag
Synchronization of 2D map canvas and 3D view.
Definition qgis.h:3727
ProcessingProviderFlag
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3808
FileOperationFlag
File operation flags.
Definition qgis.h:2449
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
Definition qgis.h:1093
ProjectCapability
Flags which control project capabilities.
Definition qgis.h:4817
QFlags< BabelFormatCapability > BabelFormatCapabilities
Babel GPS format capabilities.
Definition qgis.h:2172
QFlags< SymbolLayerFlag > SymbolLayerFlags
Symbol layer flags.
Definition qgis.h:969
QFlags< RasterInterfaceCapability > RasterInterfaceCapabilities
Raster interface capabilities.
Definition qgis.h:5440
Q_ENUM(VectorProfileType)
AttributeActionType
Attribute action types.
Definition qgis.h:5227
TemporalNavigationMode
Temporal navigation modes.
Definition qgis.h:2741
ProcessingFieldParameterDataType
Processing field parameter data types.
Definition qgis.h:4091
AreaUnit
Units of area.
Definition qgis.h:5657
StringStatistic
Available string statistics.
Definition qgis.h:6745
SelectiveMaskSourceType
Selective masking source types.
Definition qgis.h:3304
FieldDomainMergePolicy
Merge policy for field domains.
Definition qgis.h:4198
ZonalStatistic
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:6596
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition qgis.h:160
@ NoLevel
No level.
Definition qgis.h:165
@ Warning
Warning message.
Definition qgis.h:162
@ Critical
Critical/error message.
Definition qgis.h:163
@ Info
Information message.
Definition qgis.h:161
@ Success
Used for reporting a successful operation.
Definition qgis.h:164
MapGridBorderSide
Border sides for map grid annotations.
Definition qgis.h:6088
SqlKeywordCategory
SqlKeywordCategory enum represents the categories of the SQL keywords used by the SQL query editor.
Definition qgis.h:1209
QFlags< SnappingType > SnappingTypes
Snapping types.
Definition qgis.h:821
static Q_DECL_DEPRECATED QString geoWkt()
WKT string that represents a geographic coord system.
Definition qgis.h:7534
static Q_DECL_DEPRECATED bool hasQtWebkit()
Returns false.
Definition qgis.cpp:745
MapGridFrameSideFlag
Flags for controlling which side of the map a frame is drawn on.
Definition qgis.h:6139
GraduatedMethod
Methods for modifying symbols by range in a graduated symbol renderer.
Definition qgis.h:3556
QFlags< LabelLinePlacementFlag > LabelLinePlacementFlags
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1430
TiledSceneBoundingVolumeType
Tiled scene bounding volume types.
Definition qgis.h:6473
TextLayoutMode
Text layout modes.
Definition qgis.h:3138
PropertyType
Property types.
Definition qgis.h:743
QFlags< RenderContextFlag > RenderContextFlags
Render context flags.
Definition qgis.h:3003
LayerFilter
Filter for layers.
Definition qgis.h:225
Q_ENUM(ProviderStyleStorageCapability)
QFlags< SublayerFlag > SublayerFlags
Sublayer flags.
Definition qgis.h:1582
RasterRendererFlag
Flags which control behavior of raster renderers.
Definition qgis.h:1671
QFlags< ExtrusionFace > ExtrusionFaces
Tessellator extrusion face types.
Definition qgis.h:7078
static QString devVersion()
The development version.
Definition qgis.cpp:699
CrsType
Coordinate reference system types.
Definition qgis.h:2513
QFlags< GeosCreationFlag > GeosCreationFlags
Geos geometry creation behavior flags.
Definition qgis.h:2342
MapGridComponentVisibility
Visibility display settings for map grid annotations and frames.
Definition qgis.h:6018
SensorThingsEntity
OGC SensorThings API entity types.
Definition qgis.h:6861
MeshEditingErrorType
Type of error that can occur during mesh frame editing.
Definition qgis.h:1829
FieldDomainSplitPolicy
Split policy for field domains.
Definition qgis.h:4181
ArcGisRestServiceType
Available ArcGIS REST service types.
Definition qgis.h:4855
UriCleaningFlag
Flags for cleaning layer URIs.
Definition qgis.h:1527
RasterFileWriterResult
Raster file export results.
Definition qgis.h:1812
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
Definition qgis.h:2726
ProcessingPropertyAvailability
Property availability, used for QgsProcessingAlgorithm::VectorProperties in order to determine if pro...
Definition qgis.h:3893
GeoJsonProfile
GeoJson export Profile according to OGC Features and Geometries JSON - Part 1: Core https://docs....
Definition qgis.h:5146
MapRecenteringMode
Modes for recentering map canvases.
Definition qgis.h:3740
RasterRangeAccuracy
Describes the accuracy used to compute raster ranges (min/max values).
Definition qgis.h:1745
ActionType
Action types.
Definition qgis.h:5162
ActionStart
Enum to determine when an operation would begin.
Definition qgis.h:1244
PlaybackOperation
Media playback operations.
Definition qgis.h:2770
QFlags< SymbolLayerUserFlag > SymbolLayerUserFlags
Symbol layer user flags.
Definition qgis.h:992
QFlags< TextRendererFlag > TextRendererFlags
Definition qgis.h:3661
SensorThingsExtension
OGC SensorThings extensions.
Definition qgis.h:6839
QueryStorageBackend
Stored query storage backends.
Definition qgis.h:3767
ProviderStyleStorageCapability
The StorageCapability enum represents the style storage operations supported by the provider.
Definition qgis.h:6254
AvoidIntersectionsMode
Flags which control how intersections of pre-existing feature are handled when digitizing new feature...
Definition qgis.h:4754
MarkerShape
Marker shapes.
Definition qgis.h:3330
StacObjectType
Available types of stac objects.
Definition qgis.h:7020
LegendJsonRenderFlag
Legend JSON export flags.
Definition qgis.h:5133
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Definition qgis.h:5497
RasterElevationMode
Raster layer elevation modes.
Definition qgis.h:4296
Capitalization
String capitalization options.
Definition qgis.h:3639
TemporalIntervalMatchMethod
Method to use when resolving a temporal range to a data provider layer or band.
Definition qgis.h:2847
PictureFormat
Picture formats.
Definition qgis.h:5864
QFlags< LabelPolygonPlacementFlag > LabelPolygonPlacementFlags
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1452
static QString releaseName()
Release name.
Definition qgis.cpp:694
LabelQuadrantPosition
Label quadrant positions.
Definition qgis.h:1395
QFlags< PlotToolFlag > PlotToolFlags
Definition qgis.h:4399
ScaleToTileZoomLevelMethod
Available methods for converting map scales to tile zoom levels.
Definition qgis.h:3670
SublayerQueryFlag
Flags which control how data providers will scan for sublayers in a dataset.
Definition qgis.h:1560
QFlags< VectorFileWriterCapability > VectorFileWriterCapabilities
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1184
TextOrientation
Text orientations.
Definition qgis.h:3123
TemporalUnit
Temporal units.
Definition qgis.h:5746
QFlags< RasterRendererCapability > RasterRendererCapabilities
Raster renderer capabilities.
Definition qgis.h:1703
QFlags< SymbolPreviewFlag > SymbolPreviewFlags
Symbol preview flags.
Definition qgis.h:949
UnplacedLabelVisibility
Unplaced label visibility.
Definition qgis.h:1256
CrsDefinitionFormat
CRS definition formats.
Definition qgis.h:4166
SpatialFilterType
Feature request spatial filter types.
Definition qgis.h:2436
VerticalAnchorPoint
Marker symbol vertical anchor points.
Definition qgis.h:896
QFlags< LayoutRenderFlag > LayoutRenderFlags
Flags for controlling how a layout is rendered.
Definition qgis.h:5853
static QString defaultProjectScales()
A string with default project scales.
Definition qgis.cpp:674
QFlags< ProcessingParameterTypeFlag > ProcessingParameterTypeFlags
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:4026
TileAvailability
Possible availability states for a tile within a tile matrix.
Definition qgis.h:6440
QFlags< SaveStyleFormat > SaveStyleFormats
Definition qgis.h:7351
ProjectFlag
Flags which control the behavior of QgsProjects.
Definition qgis.h:4378
MapGridStyle
Map grid drawing styles.
Definition qgis.h:6002
SensorThingsVersion
OGC SensorThings API versions.
Definition qgis.h:6827
FeatureRendererFlag
Flags controlling behavior of vector feature renderers.
Definition qgis.h:910
static Q_DECL_DEPRECATED QString geoProj4()
PROJ4 string that represents a geographic coord system.
Definition qgis.h:7545
AcademicReferenceType
Type of academic reference.
Definition qgis.h:5258
BrowserItemType
Browser item types.
Definition qgis.h:1001
QFlags< FeatureRequestFlag > FeatureRequestFlags
Flags for controlling feature requests.
Definition qgis.h:2396
static bool hasGeographicLib()
Returns true if the QGIS build contains GeographicLib.
Definition qgis.cpp:727
SettingsType
Types of settings entries.
Definition qgis.h:696
QFlags< SettingsOption > SettingsOptions
Definition qgis.h:790
RasterTemporalMode
Raster layer temporal modes.
Definition qgis.h:2830
RasterAttributeTableType
The RasterAttributeTableType enum represents the type of RAT.
Definition qgis.h:1786
RubberBandIconType
Rubber band icon type.
Definition qgis.h:7179
LabelingFlag
Various flags that affect drawing and placement of labels.
Definition qgis.h:3074
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:399
RelationshipType
Relationship types.
Definition qgis.h:4903
ScriptLanguageCapability
Script language capabilities.
Definition qgis.h:5013
RasterInterfaceCapability
Raster interface capabilities.
Definition qgis.h:5420
JoinStyle
Join styles for buffers.
Definition qgis.h:2293
PointCloudDrawOrder
Pointcloud rendering order for 2d views.
Definition qgis.h:4739
QFlags< RasterBandStatistic > RasterBandStatistics
Statistics to be calculated for raster bands.
Definition qgis.h:6792
CadMeasurementDisplayType
Advanced digitizing measurement display types.
Definition qgis.h:4365
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3869
ProcessingMenu
Standard menu groups for Processing tools.
Definition qgis.h:3935
TextCharacterVerticalAlignment
Text vertical alignment for characters.
Definition qgis.h:3214
FieldDuplicatePolicy
Duplicate policy for fields.
Definition qgis.h:4218
UserProfileSelectionPolicy
User profile selection policy.
Definition qgis.h:6269
static const float DEFAULT_MAPTOPIXEL_THRESHOLD
Default threshold between map coordinates and device coordinates for map2pixel simplification.
Definition qgis.h:7360
QFlags< FileOperationFlag > FileOperationFlags
File operation flags.
Definition qgis.h:2454
DpiMode
DpiMode enum.
Definition qgis.h:3608
Q_ENUM(ProfileExportType)
BrowserLayerType
Browser item layer types.
Definition qgis.h:1102
QFlags< ProcessingAlgorithmFlag > ProcessingAlgorithmFlags
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3860
AltitudeBinding
Altitude binding.
Definition qgis.h:4270
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
Definition qgis.h:532
StringFormat
Format of log message.
Definition qgis.h:175
Q_ENUM(ProcessingProviderFlag)
TiledSceneRendererFlag
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:6533
MaterialWidgetMode
Modes for material settings widgets.
Definition qgis.h:4483
MapLayerActionTarget
Map layer action targets.
Definition qgis.h:5177
ShaderClassificationMethod
Color ramp shader classification methods.
Definition qgis.h:1609
QFlags< ScaleBarUnitLabelPlacement > ScaleBarUnitLabelPlacements
Available placement options for a scale bar's unit label.
Definition qgis.h:5975
MapLayerLegendFlag
Map layer legend flags.
Definition qgis.h:5079
ZonalStatisticResult
Zonal statistics result codes.
Definition qgis.h:6633
ScriptLanguage
Scripting languages.
Definition qgis.h:4990
QFlags< BrowserItemCapability > BrowserItemCapabilities
Browser item capabilities.
Definition qgis.h:1047
QFlags< NetworkRequestFlag > NetworkRequestFlags
Flags controlling behavior of network requests.
Definition qgis.h:197
Export3DSceneFormat
The file format used when exporting a 3D scene.
Definition qgis.h:4650
FeatureAvailability
Possible return value for QgsFeatureSource::hasFeatures() to determine if a source is empty.
Definition qgis.h:638
PlotAxisType
Plots axis types.
Definition qgis.h:3584
TiledSceneProviderCapability
Tiled scene data provider capabilities.
Definition qgis.h:6454
LabelMultiLineAlignment
Text alignment for multi-line labels.
Definition qgis.h:1478
PointCloudProfileType
Types of elevation profiles to generate for point cloud sources.
Definition qgis.h:4687
RasterBandStatistic
Available raster band statistics.
Definition qgis.h:6774
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
Definition qgis.h:6431
Q_ENUM(SensorThingsVersion)
AuthConfigurationStorageCapability
Authentication configuration storage capabilities.
Definition qgis.h:107
QFlags< ZonalStatistic > ZonalStatistics
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:6624
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
Definition qgis.h:2817
TextRenderFormat
Options for rendering text.
Definition qgis.h:3055
DocumentationBrowser
Documentation API browser.
Definition qgis.h:6922
DataType
Raster data types.
Definition qgis.h:413
Q_ENUM(ProfileSurfaceSymbology)
QFlags< ViewSyncModeFlag > ViewSyncModeFlags
Definition qgis.h:3732
QFlags< SublayerQueryFlag > SublayerQueryFlags
Sublayer query flags.
Definition qgis.h:1568
SystemOfMeasurement
Systems of unit measurement.
Definition qgis.h:5533
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
Definition qgis.h:1757
VerticalAxisInversion
Vertical axis inversion options for 3D views.
Definition qgis.h:4616
QFlags< CoordinateTransformationFlag > CoordinateTransformationFlags
Coordinate transformation flags.
Definition qgis.h:2907
RelationshipCapability
Relationship capabilities.
Definition qgis.h:4943
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
Definition qgis.h:4576
RasterBuildPyramidOption
Raster pyramid building options.
Definition qgis.h:5384
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
Definition qgis.h:584
NavigationMode
The navigation mode used by 3D cameras.
Definition qgis.h:4591
static int geosVersionMajor()
GEOS Major version number linked.
Definition qgis.cpp:756
LinearReferencingPlacement
Defines how/where the labels should be placed in a linear referencing symbol layer.
Definition qgis.h:3399
TileChildrenAvailability
Possible availability states for a tile's children.
Definition qgis.h:6501
WindSpeedUnit
Wind speed units.
Definition qgis.h:5728
RenderFormat
Rendering formats.
Definition qgis.h:2929
PointCloudZoomOutRenderBehavior
Point cloud zoom out options.
Definition qgis.h:6995
QFlags< SymbolConverterCapability > SymbolConverterCapabilities
Symbol converter capabilities.
Definition qgis.h:859
LayerType
Types of layers that can be added to a map.
Definition qgis.h:206
QFlags< AnnotationItemFlag > AnnotationItemFlags
Annotation item flags.
Definition qgis.h:2677
FieldOrigin
Field origin.
Definition qgis.h:1874
BillboardScaleMode
3D billboard scaling modes.
Definition qgis.h:4509
LinearReferencingLabelSource
Defines what quantity to use for the labels shown in a linear referencing symbol layer.
Definition qgis.h:3413
QFlags< BrowserItemFilterFlag > BrowserItemFilterFlags
Browser item filter flags.
Definition qgis.h:1066
LabelWhitespaceCollisionHandling
Label whitespace collision handling.
Definition qgis.h:1281
RasterRangeExtent
Describes the extent used to compute raster ranges (min/max values).
Definition qgis.h:1730
QFlags< Statistic > Statistics
Statistics to be calculated for generic values.
Definition qgis.h:6711
PlotToolFlag
Flags that control the way the QgsPlotTools operate.
Definition qgis.h:4395
RenderUnit
Rendering size units.
Definition qgis.h:5770
QFlags< ArcGisRestServiceCapability > ArcGisRestServiceCapabilities
Available ArcGIS REST service capabilities.
Definition qgis.h:4892
static QString geographicCrsAuthId()
Geographic coordinate system auth:id string for a default geographic CRS (EPSG:4326).
Definition qgis.h:7528
CoordinateOrder
Order of coordinates.
Definition qgis.h:2588
SelectionFlag
Flags which control feature selection behavior.
Definition qgis.h:1967
QFlags< SettingsTreeNodeOption > SettingsTreeNodeOptions
Definition qgis.h:732
EndCapStyle
End cap styles for buffers.
Definition qgis.h:2280
ScaleCalculationMethod
Scale calculation logic.
Definition qgis.h:5877
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:6524
static bool hasSfcgal()
Returns true if the QGIS build contains SFCGAL.
Definition qgis.cpp:709
QFlags< MapLayerActionFlag > MapLayerActionFlags
Map layer action flags.
Definition qgis.h:5216
QFlags< MapLayerProperty > MapLayerProperties
Map layer properties.
Definition qgis.h:2471
QFlags< LoadStyleFlag > LoadStyleFlags
Flags for loading layer styles.
Definition qgis.h:283
BabelCommandFlag
Babel command flags, which control how commands and arguments are generated for executing GPSBabel pr...
Definition qgis.h:2183
QFlags< LabelingFlag > LabelingFlags
Flags that affect drawing and placement of labels.
Definition qgis.h:3098
QFlags< VerticalAxisInversion > VerticalAxisInversionFlags
Definition qgis.h:4628
FieldDomainType
Types of field domain.
Definition qgis.h:4231
MapLayerRendererFlag
Flags which control how map layer renderers behave.
Definition qgis.h:3013
RenderContextFlag
Flags which affect rendering operations.
Definition qgis.h:2976
RasterPipeInterfaceRole
Raster pipe interface roles.
Definition qgis.h:1622
CoverageValidityResult
Coverage validity results.
Definition qgis.h:2351
DataProviderReadFlag
Flags which control data provider construction.
Definition qgis.h:511
ScaleBarSegmentSizeMode
Modes for setting size for scale bar segments.
Definition qgis.h:5909
Aggregate
Available aggregates to calculate.
Definition qgis.h:6651
static int sfcgalVersionInt()
Returns the version of the SFCGAL library if QGIS is built with SFCGAL.
Definition qgis.cpp:718
UnknownLayerCrsBehavior
Behavior to use when encountering a layer with an unknown (invalid) CRS.
Definition qgis.h:2644
BrowserItemFilterFlag
Browser item filter flags.
Definition qgis.h:1056
QFlags< LayerItemCapability > LayerItemCapabilities
Flags for layer item capabilities.
Definition qgis.h:263
SymbolPreviewFlag
Flags for controlling how symbol preview images are generated.
Definition qgis.h:944
static const double DEFAULT_SEARCH_RADIUS_MM
Identify search radius in mm.
Definition qgis.h:7357
AnnotationItemGuiFlag
Flags for controlling how an annotation item behaves in the GUI.
Definition qgis.h:2700
MapBoxGlStyleSourceType
Available MapBox GL style source types.
Definition qgis.h:4836
LayoutUnitType
Types of layout units.
Definition qgis.h:5810
VectorDataProviderAttributeEditCapability
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:651
DashPatternLineEndingRule
Dash pattern line ending rules.
Definition qgis.h:3526
FieldMetadataProperty
Standard field metadata values.
Definition qgis.h:1915
MapGridAnnotationType
Annotation coordinate type.
Definition qgis.h:6165
TiledSceneRequestFlag
Flags which control how tiled scene requests behave.
Definition qgis.h:6514
RasterRendererCapability
Raster renderer capabilities.
Definition qgis.h:1693
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
Definition qgis.h:2003
HistoryProviderBackend
History provider backends.
Definition qgis.h:3753
static const double DEFAULT_SEGMENT_EPSILON
Default snapping tolerance for segments.
Definition qgis.h:7429
RasterExportType
Raster file export types.
Definition qgis.h:1799
SublayerPromptMode
Specifies how to handle layer sources with multiple sublayers.
Definition qgis.h:1858
TextVerticalAlignment
Text vertical alignment.
Definition qgis.h:3198
RelationshipCardinality
Relationship cardinality.
Definition qgis.h:4929
GradientType
Gradient types.
Definition qgis.h:3442
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
Definition qgis.h:5025
VectorProfileType
Types of elevation profiles to generate for vector sources.
Definition qgis.h:4675
GpsFeatureType
GPS feature types.
Definition qgis.h:2197
SourceHierarchyLevel
Defines the structural levels within a data source hierarchy.
Definition qgis.h:1547
VectorLayerTypeFlag
Vector layer type flags.
Definition qgis.h:455
MakeValidMethod
Algorithms to use when repairing invalid geometries.
Definition qgis.h:2364
QFlags< Map3DDebugFlag > Map3DDebugFlags
Definition qgis.h:4420
RangeLimits
Describes how the limits of a range are handled.
Definition qgis.h:4282
QFlags< ProjectFlag > ProjectFlags
Definition qgis.h:4386
VectorTemporalLimitMode
Mode for the handling of the limits of the filtering timeframe for vector features.
Definition qgis.h:2805
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4052
SqlLayerDefinitionCapability
SqlLayerDefinitionCapability enum lists the arguments supported by the provider when creating SQL que...
Definition qgis.h:1192
static int versionInt()
Version number used for comparing versions using the "Check QGIS Version" function.
Definition qgis.cpp:687
VectorEditResult
Specifies the result of a vector layer edit operation.
Definition qgis.h:1988
QFlags< VectorDataProviderAttributeEditCapability > VectorDataProviderAttributeEditCapabilities
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:663
Map3DProjectionType
3D map projection type
Definition qgis.h:4429
Axis
Cartesian axes.
Definition qgis.h:2658
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3881
QFlags< RelationshipCapability > RelationshipCapabilities
Relationship capabilities.
Definition qgis.h:4955
ArcGisRestServiceCapability
Available ArcGIS REST service capabilities.
Definition qgis.h:4876
QFlags< SymbolRenderHint > SymbolRenderHints
Symbol render hints.
Definition qgis.h:838
VolumeUnit
Units of volume.
Definition qgis.h:5682
CurvedTextFlag
Flags controlling behavior of curved text generation.
Definition qgis.h:3227
AttributeEditorType
Attribute editor types.
Definition qgis.h:6284
QFlags< LegendJsonRenderFlag > LegendJsonRenderFlags
Definition qgis.h:5137
QFlags< ProviderStyleStorageCapability > ProviderStyleStorageCapabilities
Definition qgis.h:6260
RubberBandComponent
Rubber band components.
Definition qgis.h:7198
EmbeddedScriptMode
Authorisation to run script embedded in projects.
Definition qgis.h:468
SymbolLayerUserFlag
User-specified flags controlling behavior of symbol layers.
Definition qgis.h:982
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
Definition qgis.h:2423
QFlags< SymbolFlag > SymbolFlags
Symbol flags.
Definition qgis.h:935
QFlags< ProcessingFeatureSourceDefinitionFlag > ProcessingFeatureSourceDefinitionFlags
Flags which control behavior for a Processing feature source.
Definition qgis.h:3974
MapGridFrameStyle
Style for map grid frames.
Definition qgis.h:6104
PointCloudAccessType
The access type of the data, local is for local files and remote for remote files (over HTTP).
Definition qgis.h:6984
ProfileExportType
Types of export for elevation profiles.
Definition qgis.h:4714
MeshElevationMode
Mesh layer elevation modes.
Definition qgis.h:4310
ProjectFileFormat
Flags which control project read behavior.
Definition qgis.h:4769
SnappingMode
SnappingMode defines on which layer the snapping is performed.
Definition qgis.h:798
SymbolType
Symbol types.
Definition qgis.h:671
RasterColorInterpretation
Raster color interpretation.
Definition qgis.h:5279
static const int USER_CRS_START_ID
Minimum ID number for a user-defined projection.
Definition qgis.h:7420
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
Definition qgis.h:4662
LabelPlacementEngineVersion
Labeling placement engine version.
Definition qgis.h:3109
Q_ENUM(ProcessingAlgorithmFlag)
static int geosVersionMinor()
GEOS Minor version number linked.
Definition qgis.cpp:761
MaterialRenderingTechnique
Material rendering techniques.
Definition qgis.h:4465
ColorModel
Color model types.
Definition qgis.h:6896
RendererUsage
Usage of the renderer.
Definition qgis.h:3695
SettingsTreeNodeOption
Options for named list nodes.
Definition qgis.h:727
BabelFormatCapability
Babel GPS format capabilities.
Definition qgis.h:2164
PostgresRelKind
Postgres database relkind options.
Definition qgis.h:6201
SegmentCalculationMethod
brief Method used to calculate the number of segments for circle approximation
Definition qgis.h:7007
WmsDimensionDefaultDisplay
QGIS Server WMS Dimension default display types.
Definition qgis.h:7165
GpsConnectionType
GPS connection types.
Definition qgis.h:2030
RasterDirectionEncoding
Schemes used to encode a compass direction as an integer raster value.
Definition qgis.h:7289
Q_ENUM(InputControllerType)
ElevationProfileRangeMethod
Elevation profile range calculation methods.
Definition qgis.h:6177
QFlags< DatabaseProviderConnectionCapability2 > DatabaseProviderConnectionCapabilities2
Definition qgis.h:6231
MouseHandlesAction
Action to be performed by the mouse handles.
Definition qgis.h:6934
ProcessingFeatureSourceDefinitionFlag
Flags which control behavior for a Processing feature source.
Definition qgis.h:3959
QFlags< TextComponent > TextComponents
Text components.
Definition qgis.h:3168
static QString geoNone()
Constant that holds the string representation for "No ellipse/No CRS".
Definition qgis.h:7521
DevToolsNodeRole
Dev tools node custom data roles.
Definition qgis.h:7051
LoadStyleFlag
Flags for loading layer styles.
Definition qgis.h:272
BetweenLineConstraint
Between line constraints which can be enabled.
Definition qgis.h:4323
QFlags< VectorTileProviderFlag > VectorTileProviderFlags
Vector tile data provider flags.
Definition qgis.h:6413
SymbolConverterCapability
Symbol converter capabilities.
Definition qgis.h:847
MetadataDateType
Date types for metadata.
Definition qgis.h:5245
QFlags< RasterTemporalCapabilityFlag > RasterTemporalCapabilityFlags
Flags for raster layer temporal capabilities.
Definition qgis.h:2873
ProcessingFeatureSourceFlag
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3985
RasterIdentifyFormat
Raster identify formats.
Definition qgis.h:5399
MapGridAnnotationDirection
Direction of grid annotations.
Definition qgis.h:6048
TextHorizontalAlignment
Text horizontal alignment.
Definition qgis.h:3179
SymbolFlag
Flags controlling behavior of symbols.
Definition qgis.h:929
LineExtensionSide
Designates whether the line extension constraint is currently soft locked with the previous or next v...
Definition qgis.h:4336
HttpMethod
Different methods of HTTP requests.
Definition qgis.h:1138
WkbType
The WKB type describes the number of dimensions a geometry has.
Definition qgis.h:314
QFlags< SldExportOption > SldExportOptions
Definition qgis.h:763
SymbolCoordinateReference
Symbol coordinate reference modes.
Definition qgis.h:3457
QFlags< ProcessingProviderFlag > ProcessingProviderFlags
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3822
TileRefinementProcess
Tiled scene tile refinement processes.
Definition qgis.h:6489
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
Definition qgis.h:6736
SelectionRenderingMode
Specifies how a selection should be rendered.
Definition qgis.h:1928
InputControllerType
Input controller types.
Definition qgis.h:6189
TextRendererFlag
Flags which control the behavior of rendering text.
Definition qgis.h:3657
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
Definition qgis.h:1955
CrsAxisDirection
Coordinate reference system axis directions.
Definition qgis.h:2538
ProcessingModelChildParameterSource
Processing model child parameter sources.
Definition qgis.h:4122
static int geosVersionInt()
GEOS version number linked.
Definition qgis.cpp:750
QFlags< MarkerLinePlacement > MarkerLinePlacements
Definition qgis.h:3390
QFlags< MapCanvasFlag > MapCanvasFlags
Flags controlling behavior of map canvases.
Definition qgis.h:3718
CrsWktVariant
Coordinate reference system WKT formatting variants.
Definition qgis.h:2618
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:6546
MapGridAnnotationFormat
Format for displaying map grid annotations.
Definition qgis.h:6067
DocumentationApi
Documentation API.
Definition qgis.h:6908
AutoRefreshMode
Map layer automatic refresh modes.
Definition qgis.h:2481
AnnotationPlacementMode
Annotation item placement modes.
Definition qgis.h:2687
ProcessingAlgorithmFlag
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3833
QFlags< InstancedMaterialFlag > InstancedMaterialFlags
Definition qgis.h:4500
SceneMode
The 3D scene mode used in 3D map views.
Definition qgis.h:4604
InstancedMaterialFlag
Optional per-instance properties of instanced materials.
Definition qgis.h:4495
FieldConfigurationFlag
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1891
SettingsOrigin
The setting origin describes where a setting is stored.
Definition qgis.h:4977
HorizontalAnchorPoint
Marker symbol horizontal anchor points.
Definition qgis.h:882
VectorFieldArrowScalingMethod
Algorithm to transform vector magnitude to length of arrow on the device in pixels.
Definition qgis.h:7232
QFlags< CurvedTextFlag > CurvedTextFlags
Flags controlling behavior of curved text generation.
Definition qgis.h:3240
ProcessingParameterFlag
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4037
LabelOverlapHandling
Label overlap handling.
Definition qgis.h:1268
static const double UI_SCALE_FACTOR
UI scaling factor.
Definition qgis.h:7405
FeatureSymbologyExport
Options for exporting features considering their symbology.
Definition qgis.h:6390
QFlags< LayerFilter > LayerFilters
Definition qgis.h:243
ProcessingDateTimeParameterDataType
Processing date time parameter data types.
Definition qgis.h:4109
DockableWidgetInitialState
Dockable widget initial states.
Definition qgis.h:7116
CoordinateTransformationFlag
Flags which adjust the coordinate transformations behave.
Definition qgis.h:2894
TextComponent
Text components.
Definition qgis.h:3155
DateTimeStatistic
Available date/time statistics.
Definition qgis.h:6720
AnimationState
Animation states.
Definition qgis.h:2757
TransformDirection
Indicates the direction (forward or inverse) of a transform.
Definition qgis.h:2882
LightSourceType
Light source types for 3D scenes.
Definition qgis.h:4551
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3997
QFlags< HistoryProviderBackend > HistoryProviderBackends
Definition qgis.h:3758
LabelPredefinedPointPosition
Positions for labels when using the Qgis::LabelPlacement::OrderedPositionsAroundPoint placement mode.
Definition qgis.h:1342
QFlags< FieldConfigurationFlag > FieldConfigurationFlags
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1906
UpsideDownLabelHandling
Handling techniques for upside down labels.
Definition qgis.h:1463
LinearMatrixMethod
Mathematical methods to use for solving linear matrix equations.
Definition qgis.h:7303
static const double DEFAULT_POINT_SIZE
The default size (in millimeters) for point marker symbols.
Definition qgis.h:7423
DeviceConnectionStatus
GPS connection status.
Definition qgis.h:2044
ProcessingNumberParameterType
Processing numeric parameter data types.
Definition qgis.h:4077
MapSettingsFlag
Flags which adjust the way maps are rendered.
Definition qgis.h:2941
QFlags< SqlLayerDefinitionCapability > SqlLayerDefinitionCapabilities
SQL layer definition capabilities.
Definition qgis.h:1200
ProcessingLogLevel
Logging level for algorithms to use when pushing feedback messages.
Definition qgis.h:3907
SelectBehavior
Specifies how a selection should be applied.
Definition qgis.h:1941
LayoutRenderFlag
Flags for controlling how a layout is rendered.
Definition qgis.h:5824
Utility class that encapsulates an action based on vector attributes.
Definition qgsaction.h:38
Utility class for calculating aggregates for a field (or expression) over the features from a vector ...
Utility functions for working with ArcGIS REST services.
An abstract base class for any elements of a drag and drop form.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
Represents a coordinate reference system (CRS).
Handles coordinate transforms between two coordinate systems.
Abstract base class for curved geometry type.
Definition qgscurve.h:36
Base class for all items in the model.
Definition qgsdataitem.h:50
Abstract base class for spatial data provider implementations.
Calculator for summary statistics and aggregates for a list of datetimes.
Contains configuration settings for an editor form.
Wraps a request for features to a vector layer (or directly its vector data provider).
An interface for objects which provide features via a getFeatures method.
Container of fields for a vector layer.
Definition qgsfields.h:45
A geometry is the spatial representation of a feature.
Encapsulates information relating to a GPS position fix.
A fill symbol layer which draws a smooth color gradient over a polygon.
A vector feature renderer which uses numeric attributes to classify features into different ranges.
Contains settings related to how the label engine places and formats labels for line features (or pol...
Stores global configuration for labeling engine.
Contains constants and enums relating to labeling.
Definition qgslabeling.h:33
A browser item that represents a layer that can be opened with one of the providers.
An individual grid which is drawn above the map content in a QgsLayoutItemMap.
A layout item subclass that displays SVG files or raster format images (jpg, png, ....
Stores information relating to the current rendering settings for a layout.
Contains detailed styling information relating to how a layout legend should be rendered.
A proxy model which provides an easy to use model to display the list of layers in widgets.
Base class for all map layer types.
Definition qgsmaplayer.h:84
Contains configuration for rendering maps.
Abstract base class for marker symbol layers.
Represents a mesh renderer settings for vector datasets displayed with arrows.
Represents a renderer settings for vector datasets.
Represents a streamline renderer settings for vector datasets displayed by streamlines.
Represents a mesh renderer settings for vector datasets displayed with wind barbs.
Interface for showing messages from QGIS in GUI independent way.
Registry for temporary fetched files.
Contains miscellaneous painting utility functions.
Definition qgspainting.h:32
Contains settings for how a map layer will be labeled.
Abstract base class for 2d point cloud renderers.
Abstract base class for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
Encapsulates settings relating to a feature source input to a processing algorithm.
QgsFeatureSource subclass which proxies methods to an underlying QgsFeatureSource,...
A datetime (or pure date or time) parameter for processing algorithms.
Base class for the definition of processing parameters.
A vector layer or feature source field parameter for processing algorithms.
An input file or folder parameter for processing algorithms.
A numeric parameter for processing algorithms.
A parameter for processing algorithms that need a list of input vector layers to construct a TIN.
Makes metadata of processing parameters available.
Abstract base class for processing providers.
Contains enumerations and other constants for use in processing algorithms and parameters.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:114
A store for object properties.
Holds data provider key, description, and associated shared library file or function pointer informat...
A fill symbol layer which places markers at random locations within polygons.
The RasterBandStats struct is a container for statistics about a single raster band.
Implementation of data provider temporal properties for QgsRasterDataProviders.
Base class for raster data providers.
The raster file writer which allows you to save a raster to a new file.
Base class for processing filters like renderers, reprojector, resampler etc.
Implementation of map layer temporal properties for raster layers.
Represents a raster layer.
Describes the origin of minimum and maximum values in a raster.
Contains a pipeline of raster interfaces for sequential raster processing.
Raster namespace.
Definition qgsraster.h:32
Represents a relationship between two vector layers.
Definition qgsrelation.h:42
Contains information about the context of a rendering operation.
Stores the appearance and layout settings for scalebar drawing with QgsScaleBarRenderer.
Represents a settings entry and provides methods for reading and writing settings values.
RAII signal blocking class.
Definition qgis.h:7671
Object * operator->()
Returns pointer to blocked QObject.
Definition qgis.h:7685
QgsSignalBlocker(Object *object)
Constructor for QgsSignalBlocker.
Definition qgis.h:7677
Abstract base class for simple marker symbol layers.
Stores configuration of snapping settings for the project.
Calculator for summary statistics for a list of doubles.
Calculator for summary statistics and aggregates for a list of strings.
Utility functions for working with strings.
Contains utility functions for working with symbols and symbol layers.
Abstract base class for all rendered symbols.
Definition qgssymbol.h:227
Base class for templated line symbols, e.g.
Implements a temporal controller based on a frame by frame navigation and animation.
Container for all settings relating to text rendering.
Utility functions for text rendering.
Handles rendering text using rich formatting options, including drop shadows, buffers and background ...
Provides calculations for tolerance values in map units.
Helper functions for various unit types.
Implementation of data provider temporal properties for QgsVectorDataProviders.
Base class for vector data providers.
A convenience class for writing vector layers to disk based formats (e.g.
A convenience class for exporting vector layers to a destination data provider.
Implementation of map layer temporal properties for vector layers.
Represents a vector layer which manages a vector based dataset.
Contains settings for simplifying geometries fetched from a vector layer.
Handles storage of information regarding WKB types and their properties.
Definition qgswkbtypes.h:42
FeatureCountState
Enumeration of feature count states.
Definition qgis.h:606
CreateLayerActionOnExisting
Actions to take when attempting to create a layer on an existing datasource.
Definition qgis.h:593
As part of the API refactoring and improvements which landed in QGIS
Q_DECL_DEPRECATED const long GEOCRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system in QGIS internal srs database.
Definition qgis.h:8409
Q_DECL_DEPRECATED CORE_EXPORT QString qgsVsiPrefix(const QString &path)
Returns a the vsi prefix which corresponds to a file path, or an empty string if the path is not asso...
Definition qgis.cpp:606
bool operator>(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is greater than the second.
Definition qgis.h:8323
CORE_EXPORT bool qgsVariantEqual(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether they are equal, two NULL values are always treated a...
Definition qgis.cpp:657
Q_DECL_DEPRECATED const long GEOSRID
Numeric ID for the EPSG:4326 geographic coordinate system.
Definition qgis.h:8402
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:8104
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
Definition qgis.h:7718
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:7936
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
Definition qgis.h:8085
QString qgsFlagValueToKeys(const T &value, bool *returnOk=nullptr)
Returns the value for the given keys of a flag.
Definition qgis.h:8143
CORE_EXPORT size_t qHash(const QVariant &variant)
Hash for QVariant.
Definition qgis.cpp:611
QString qgsMapJoinKeys(const QMap< Key, Value > &map, const QString &separator)
Joins all the map keys into a single string with each element separated by the given separator.
Definition qgis.h:7920
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:8172
CORE_EXPORT bool qgsVariantGreaterThan(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether the first is greater than the second.
Definition qgis.cpp:601
unsigned long long qgssize
Qgssize is used instead of size_t, because size_t is stdlib type, unknown by SIP, and it would be har...
Definition qgis.h:8428
const QMap< T, QString > qgsEnumMap()
Returns a map of all enum entries.
Definition qgis.h:8068
bool qgsFloatNear(float a, float b, float epsilon=4 *FLT_EPSILON)
Compare two floats (but allow some difference).
Definition qgis.h:7876
CORE_EXPORT int qgsVariantCompare(const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck=false)
Compares two QVariant values.
Definition qgis.cpp:139
QString qgsSetJoin(const QSet< T > &set, const QString &separator)
Joins all the set values into a single string with each element separated by the given separator.
Definition qgis.h:7952
CORE_EXPORT double qgsPermissiveToDouble(QString string, bool &ok)
Converts a string to a double in a permissive way, e.g., allowing for incorrect numbers of digits bet...
Definition qgis.cpp:91
const QList< T > qgsEnumList()
Returns a list all enum entries.
Definition qgis.h:8051
double qgsRound(double number, int places)
Returns a double number, rounded (as close as possible) to the specified number of places.
Definition qgis.h:7905
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference).
Definition qgis.h:7811
bool qgsNanCompatibleEquals(double a, double b)
Compare two doubles, treating nan values as equal.
Definition qgis.h:7763
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Definition qgis.h:7705
void CORE_EXPORT * qgsMalloc(size_t size)
Allocates size bytes and returns a pointer to the allocated memory.
Definition qgis.cpp:112
QMap< QString, QString > QgsStringMap
Definition qgis.h:8418
Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system.
Definition qgis.h:8416
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
Compare two doubles using specified number of significant digits.
Definition qgis.h:7882
void CORE_EXPORT qgsFree(void *ptr)
Frees the memory space pointed to by ptr.
Definition qgis.cpp:134
bool qgsNumberNear(T a, T b, T epsilon=std::numeric_limits< T >::epsilon() *4)
Compare two numbers of type T (but allow some difference).
Definition qgis.h:7783
CORE_EXPORT qlonglong qgsPermissiveToLongLong(QString string, bool &ok)
Converts a string to an qlonglong in a permissive way, e.g., allowing for incorrect numbers of digits...
Definition qgis.cpp:105
CORE_EXPORT int qgsPermissiveToInt(QString string, bool &ok)
Converts a string to an integer in a permissive way, e.g., allowing for incorrect numbers of digits b...
Definition qgis.cpp:98
CORE_EXPORT bool qgsVariantLessThan(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether the first is less than the second.
Definition qgis.cpp:596
bool qgsDoubleGreaterThanOrNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles to see if one is greater than the other or very near to the other.
Definition qgis.h:7851
#define QHASH_FOR_CLASS_ENUM(T)
Definition qgis.h:50
bool qgsDoubleLessThanOrNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles to see if one is less than the other or very near to the other.
Definition qgis.h:7824
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:8339
#define SIP_DEPRECATED
Definition qgis_sip.h:113
#define SIP_ENUM_BASETYPE(type)
Definition qgis_sip.h:277
#define SIP_SKIP
Definition qgis_sip.h:138
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:270
#define SIP_MONKEYPATCH_FLAGS_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:271
#define SIP_MONKEYPATCH_SCOPEENUM
Definition qgis_sip.h:269
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)
Definition qgis_sip.h:272
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTimeZoneComboBox::StandardItems)
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
Utility class for identifying a unique vertex within a geometry.
Definition qgsvertexid.h:35