QGIS API Documentation 4.5.0-Master (39653871251)
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 Patch,
1145 };
1146 Q_ENUM( HttpMethod )
1147
1148
1154 {
1156 ErrorCreatingDataSource SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateDataSource ),
1157 ErrorCreatingLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateLayer ),
1158 ErrorAttributeTypeUnsupported SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeTypeUnsupported ),
1159 ErrorAttributeCreationFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeCreationFailed ),
1160 ErrorProjectingFeatures SIP_MONKEYPATCH_COMPAT_NAME( ErrProjection ),
1161 ErrorFeatureWriteFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrFeatureWriteFailed ),
1162 ErrorInvalidLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidLayer ),
1163 ErrorInvalidProvider SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidProvider ),
1164 ErrorProviderUnsupportedFeature SIP_MONKEYPATCH_COMPAT_NAME( ErrProviderUnsupportedFeature ),
1165 ErrorConnectionFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrConnectionFailed ),
1166 UserCanceled SIP_MONKEYPATCH_COMPAT_NAME( ErrUserCanceled ),
1167 };
1168 Q_ENUM( VectorExportResult )
1169
1170
1175 {
1176 FieldAliases = 1 << 0,
1177 FieldComments = 1 << 2,
1178 };
1179 Q_ENUM( VectorFileWriterCapability )
1180
1181
1187
1193 {
1194 SubsetStringFilter = 1 << 1,
1195 GeometryColumn = 1 << 2,
1196 PrimaryKeys = 1 << 3,
1197 UnstableFeatureIds = 1 << 4
1198 };
1199 Q_ENUM( SqlLayerDefinitionCapability )
1203
1209 enum class SqlKeywordCategory : int
1210 {
1211 Keyword,
1212 Constant,
1213 Function,
1214 Geospatial,
1215 Operator,
1216 Math,
1218 String,
1219 Identifier
1220 };
1221 Q_ENUM( SqlKeywordCategory )
1222
1223
1227 enum class DriveType : int
1228 {
1229 Unknown,
1230 Invalid,
1231 Removable,
1232 Fixed,
1233 Remote,
1234 CdRom,
1235 RamDisk,
1236 Cloud,
1237 };
1238 Q_ENUM( DriveType )
1239
1240
1245 {
1246 Deferred SIP_MONKEYPATCH_COMPAT_NAME( DownloadLater ),
1247 Immediate SIP_MONKEYPATCH_COMPAT_NAME( DownloadImmediately ),
1248 };
1249 Q_ENUM( ActionStart )
1250
1251
1257 {
1258 FollowEngineSetting,
1259 NeverShow,
1260 };
1261 Q_ENUM( UnplacedLabelVisibility )
1262
1263
1268 enum class LabelOverlapHandling : int
1269 {
1270 PreventOverlap,
1271 AllowOverlapIfRequired,
1272 AllowOverlapAtNoCost,
1273 };
1274 Q_ENUM( LabelOverlapHandling )
1275
1276
1282 {
1283 TreatWhitespaceAsCollision,
1284 IgnoreWhitespaceCollisions,
1285 };
1286 Q_ENUM( LabelWhitespaceCollisionHandling )
1287
1288
1293 enum class LabelPrioritization : int
1294 {
1295 PreferCloser,
1296 PreferPositionOrdering,
1297 };
1298 Q_ENUM( LabelPrioritization )
1299
1300
1308 {
1309 AroundPoint,
1310 OverPoint,
1311 Line,
1312 Curved,
1313 Horizontal,
1314 Free,
1315 OrderedPositionsAroundPoint,
1316 PerimeterCurved,
1317 OutsidePolygons,
1318 };
1319 Q_ENUM( LabelPlacement )
1320
1321
1326 enum class CurvedLabelMode : int
1327 {
1328 Default,
1329 PlaceCharactersAtVertices,
1330 StretchCharacterSpacingToFitLine,
1331 StretchWordSpacingToFitLine,
1332 };
1333 Q_ENUM( CurvedLabelMode )
1334
1335
1343 {
1344 TopLeft,
1345 TopSlightlyLeft,
1346 TopMiddle,
1347 TopSlightlyRight,
1348 TopRight,
1349 MiddleLeft,
1350 MiddleRight,
1351 BottomLeft,
1352 BottomSlightlyLeft,
1353 BottomMiddle,
1354 BottomSlightlyRight,
1355 BottomRight,
1356 OverPoint,
1357 };
1358 Q_ENUM( LabelPredefinedPointPosition )
1359
1360
1366 {
1367 LabelLargestPartOnly,
1368 LabelEveryPartWithEntireLabel,
1369 SplitLabelTextLinesOverParts,
1370 };
1371 Q_ENUM( MultiPartLabelingBehavior )
1372
1373
1382 {
1383 FromPoint,
1384 FromSymbolBounds,
1385 };
1386 Q_ENUM( LabelOffsetType )
1387
1388
1396 {
1397 AboveLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveLeft ),
1398 Above SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAbove ),
1399 AboveRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveRight ),
1401 Over SIP_MONKEYPATCH_COMPAT_NAME( QuadrantOver ),
1403 BelowLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowLeft ),
1404 Below SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelow ),
1405 BelowRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowRight ),
1406 };
1407 Q_ENUM( LabelQuadrantPosition )
1408
1409
1416 {
1417 OnLine = 1,
1418 AboveLine = 2,
1419 BelowLine = 4,
1420 MapOrientation = 8,
1421 };
1422 Q_ENUM( LabelLinePlacementFlag )
1423
1424
1432 Q_FLAG( LabelLinePlacementFlags )
1433
1441 {
1442 AllowPlacementOutsideOfPolygon = 1 << 0,
1443 AllowPlacementInsideOfPolygon = 1 << 1,
1444 };
1445 Q_ENUM( LabelPolygonPlacementFlag )
1446
1447
1455
1464 {
1465 FlipUpsideDownLabels SIP_MONKEYPATCH_COMPAT_NAME( Upright ),
1466 AllowUpsideDownWhenRotationIsDefined SIP_MONKEYPATCH_COMPAT_NAME( ShowDefined ),
1467 AlwaysAllowUpsideDown SIP_MONKEYPATCH_COMPAT_NAME( ShowAll )
1468 };
1469 Q_ENUM( UpsideDownLabelHandling )
1470
1471
1479 {
1481 Center SIP_MONKEYPATCH_COMPAT_NAME( MultiCenter ),
1483 FollowPlacement SIP_MONKEYPATCH_COMPAT_NAME( MultiFollowPlacement ),
1484 Justify SIP_MONKEYPATCH_COMPAT_NAME( MultiJustify ),
1485 };
1486 Q_ENUM( LabelMultiLineAlignment )
1487
1488
1496 {
1497 StartOfText,
1498 CenterOfText,
1499 EndOfText,
1500 FollowPlacement,
1501 };
1502 Q_ENUM( TextAnchorPoint )
1503
1504
1511 {
1512 Vector SIP_MONKEYPATCH_COMPAT_NAME( FilterVector ) = 1,
1513 Raster SIP_MONKEYPATCH_COMPAT_NAME( FilterRaster ),
1514 Mesh SIP_MONKEYPATCH_COMPAT_NAME( FilterMesh ),
1515 MeshDataset SIP_MONKEYPATCH_COMPAT_NAME( FilterMeshDataset ),
1516 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( FilterPointCloud ),
1517 VectorTile,
1518 TiledScene,
1519 };
1520 Q_ENUM( FileFilterType )
1521
1522
1527 enum class UriCleaningFlag : int SIP_ENUM_BASETYPE( IntFlag )
1528 {
1529 RemoveCredentials = 1 << 0,
1530 RedactCredentials = 1 << 1,
1531 };
1532 Q_ENUM( UriCleaningFlag )
1533
1534
1540 Q_FLAG( UriCleaningFlags )
1541
1547 enum class SourceHierarchyLevel : int
1548 {
1549 Connection,
1550 Group,
1551 Object,
1552 };
1553 Q_ENUM( SourceHierarchyLevel )
1554
1555
1560 enum class SublayerQueryFlag : int SIP_ENUM_BASETYPE( IntFlag )
1561 {
1562 FastScan = 1 << 0,
1563 ResolveGeometryType = 1 << 1,
1564 CountFeatures = 1 << 2,
1565 IncludeSystemTables = 1 << 3,
1566 OpenLayersToResolveDescriptions = 1 << 4,
1567 };
1568
1571 Q_FLAG( SublayerQueryFlags )
1572
1573
1578 enum class SublayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
1579 {
1580 SystemTable = 1 << 0,
1581 };
1582
1583 Q_DECLARE_FLAGS( SublayerFlags, SublayerFlag )
1585 Q_FLAG( SublayerFlags )
1586
1587
1595 {
1596 Linear SIP_MONKEYPATCH_COMPAT_NAME( Interpolated ) = 0,
1597 Discrete = 1,
1598 Exact = 2,
1599 };
1600 Q_ENUM( ShaderInterpolationMethod )
1601
1602
1610 {
1611 Continuous = 1,
1612 EqualInterval = 2,
1613 Quantile = 3,
1614 };
1615 Q_ENUM( ShaderClassificationMethod )
1616
1617
1623 {
1624 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownRole ) = 0,
1625 Provider SIP_MONKEYPATCH_COMPAT_NAME( ProviderRole ) = 1,
1626 Renderer SIP_MONKEYPATCH_COMPAT_NAME( RendererRole ) = 2,
1627 Brightness SIP_MONKEYPATCH_COMPAT_NAME( BrightnessRole ) = 3,
1628 Resampler SIP_MONKEYPATCH_COMPAT_NAME( ResamplerRole ) = 4,
1629 Projector SIP_MONKEYPATCH_COMPAT_NAME( ProjectorRole ) = 5,
1630 Nuller SIP_MONKEYPATCH_COMPAT_NAME( NullerRole ) = 6,
1631 HueSaturation SIP_MONKEYPATCH_COMPAT_NAME( HueSaturationRole ) = 7,
1632 };
1633 Q_ENUM( RasterPipeInterfaceRole )
1634
1635
1640 {
1641 ResampleFilter,
1642 Provider,
1643 };
1644 Q_ENUM( RasterResamplingStage )
1645
1646
1654 {
1655 Nearest,
1656 Bilinear,
1657 Cubic,
1658 CubicSpline,
1659 Lanczos,
1660 Average,
1661 Mode,
1662 Gauss
1663 };
1664 Q_ENUM( RasterResamplingMethod )
1665
1666
1671 enum class RasterRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
1672 {
1673 InternalLayerOpacityHandling = 1 << 0,
1674 UseNoDataForOutOfRangePixels
1675 = 1 << 1,
1676 };
1677
1684
1686 Q_FLAG( RasterRendererFlags )
1687
1688
1694 {
1695 UsesMultipleBands = 1 << 0,
1696 };
1697 Q_ENUM( RasterRendererCapability )
1698
1699
1706
1715 {
1717 MinimumMaximum SIP_MONKEYPATCH_COMPAT_NAME( MinMax ),
1718 StdDev,
1719 CumulativeCut
1720 };
1721 Q_ENUM( RasterRangeLimit )
1722
1723
1731 {
1732 WholeRaster SIP_MONKEYPATCH_COMPAT_NAME( None_ ),
1733 FixedCanvas SIP_MONKEYPATCH_COMPAT_NAME( CurrentCanvas ),
1734 UpdatedCanvas,
1735 };
1736 Q_ENUM( RasterRangeExtent )
1737
1738
1746 {
1747 Exact,
1748 Estimated,
1749 };
1750 Q_ENUM( RasterRangeAccuracy )
1751
1752
1758 {
1759 Generic = 0,
1760 PixelCount = 1,
1761 Name = 2,
1762 Min = 3,
1763 Max = 4,
1764 MinMax = 5,
1765 Red = 6,
1766 Green = 7,
1767 Blue = 8,
1768 Alpha = 9,
1769 RedMin = 10,
1770 GreenMin = 11,
1771 BlueMin = 12,
1772 AlphaMin = 13,
1773 RedMax = 14,
1774 GreenMax = 15,
1775 BlueMax = 16,
1776 AlphaMax = 17,
1777 MaxCount
1778 };
1779 Q_ENUM( RasterAttributeTableFieldUsage )
1780
1781
1787 {
1788 Thematic = 0,
1789 Athematic = 1
1790 };
1791 Q_ENUM( RasterAttributeTableType )
1792
1793
1800 {
1801 Raw = 0,
1802 RenderedImage SIP_MONKEYPATCH_COMPAT_NAME( Image ) = 1
1803 };
1804 Q_ENUM( RasterExportType )
1805
1806
1813 {
1815 SourceProviderError = 1,
1816 DestinationProviderError SIP_MONKEYPATCH_COMPAT_NAME( DestProviderError ) = 2,
1817 CreateDatasourceError = 3,
1818 WriteError = 4,
1819 NoDataConflict = 5,
1820 Canceled SIP_MONKEYPATCH_COMPAT_NAME( WriteCanceled ) = 6,
1821 };
1822 Q_ENUM( RasterFileWriterResult )
1823
1824
1829 enum class MeshEditingErrorType : int
1830 {
1831 NoError,
1832 InvalidFace,
1833 TooManyVerticesInFace,
1834 FlatFace,
1835 UniqueSharedVertex,
1836 InvalidVertex,
1837 ManifoldFace,
1838 };
1839 Q_ENUM( MeshEditingErrorType )
1840
1841
1846 enum class FilePathType : int
1847 {
1848 Absolute,
1849 Relative,
1850 };
1851 Q_ENUM( FilePathType )
1852
1853
1858 enum class SublayerPromptMode : int
1859 {
1860 AlwaysAsk,
1861 AskExcludingRasterBands,
1862 NeverAskSkip,
1863 NeverAskLoadAll,
1864 };
1865 Q_ENUM( SublayerPromptMode )
1866
1867
1875 {
1876 Unknown SIP_MONKEYPATCH_COMPAT_NAME( OriginUnknown ),
1877 Provider SIP_MONKEYPATCH_COMPAT_NAME( OriginProvider ),
1878 Join SIP_MONKEYPATCH_COMPAT_NAME( OriginJoin ),
1879 Edit SIP_MONKEYPATCH_COMPAT_NAME( OriginEdit ),
1880 Expression SIP_MONKEYPATCH_COMPAT_NAME( OriginExpression )
1881 };
1882 Q_ENUM( FieldOrigin )
1883
1884
1891 enum class FieldConfigurationFlag : int SIP_ENUM_BASETYPE( IntFlag )
1892 {
1893 NoFlag = 0,
1894 NotSearchable = 1 << 1,
1895 HideFromWms = 1 << 2,
1896 HideFromWfs = 1 << 3,
1897 };
1898 Q_ENUM( FieldConfigurationFlag )
1899
1900
1908 Q_FLAG( FieldConfigurationFlags )
1909
1915 enum class FieldMetadataProperty : int
1916 {
1917 GeometryCrs = 0x1000,
1918 GeometryWkbType = 0x1001,
1919 CustomProperty = 0x100000,
1920 };
1921 Q_ENUM( FieldMetadataProperty )
1922
1923
1928 enum class SelectionRenderingMode : int
1929 {
1930 Default,
1931 CustomColor,
1932 CustomSymbol,
1933 };
1934 Q_ENUM( SelectionRenderingMode )
1935
1936
1942 {
1943 SetSelection,
1944 AddToSelection,
1945 IntersectSelection,
1946 RemoveFromSelection,
1947 };
1948 Q_ENUM( SelectBehavior )
1949
1950
1956 {
1957 Intersect,
1958 Within,
1959 };
1960 Q_ENUM( SelectGeometryRelationship )
1961
1962
1967 enum class SelectionFlag : int SIP_ENUM_BASETYPE( IntFlag )
1968 {
1969 SingleFeatureSelection = 1 << 0,
1970 ToggleSelection = 1 << 1,
1971 };
1972
1978 Q_DECLARE_FLAGS( SelectionFlags, SelectionFlag )
1979
1981 Q_FLAG( SelectionFlags )
1982
1983
1989 {
1991 EmptyGeometry = 1,
1992 EditFailed = 2,
1993 FetchFeatureFailed = 3,
1994 InvalidLayer = 4,
1995 };
1996 Q_ENUM( VectorEditResult )
1997
1998
2004 {
2005 SemiTransparentCircle,
2006 Cross,
2007 NoMarker,
2008 };
2009 Q_ENUM( VertexMarkerType )
2010
2011
2015 enum class ContentStatus : int
2016 {
2017 NotStarted,
2018 Running,
2019 Finished,
2020 Failed,
2021 Canceled,
2022 };
2023 Q_ENUM( ContentStatus )
2024
2025
2030 enum class GpsConnectionType : int
2031 {
2032 Automatic,
2033 Internal,
2034 Serial,
2035 Gpsd,
2036 };
2037 Q_ENUM( GpsConnectionType )
2038
2039
2044 enum class DeviceConnectionStatus SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, GpsConnectionStatus ) : int
2045 {
2046 Disconnected,
2047 Connecting,
2048 Connected,
2049 };
2050 Q_ENUM( DeviceConnectionStatus )
2051
2052
2060 {
2061 NoData,
2062 NoFix,
2063 Fix2D,
2064 Fix3D
2065 };
2067
2068
2075 {
2076 Unknown,
2077 Gps,
2078 Glonass,
2079 Galileo,
2080 BeiDou,
2081 Qzss,
2082 Navic,
2083 Sbas,
2084 };
2086
2093 {
2094 Unknown = -1,
2095 Invalid,
2096 GPS,
2097 DGPS,
2098 PPS,
2099 RTK,
2100 FloatRTK,
2101 Estimated,
2102 Manual,
2103 Simulation,
2104 };
2105 Q_ENUM( GpsQualityIndicator )
2106
2107
2112 enum class GpsNavigationStatus : int
2113 {
2114 NotValid,
2115 Safe,
2116 Caution,
2117 Unsafe,
2118 };
2120
2126 enum class GpsInformationComponent : int SIP_ENUM_BASETYPE( IntFlag )
2127 {
2128 Location = 1 << 0,
2129 Altitude = 1 << 1,
2130 GroundSpeed = 1 << 2,
2131 Bearing = 1 << 3,
2132 TotalTrackLength = 1 << 4,
2133 TrackDistanceFromStart = 1 << 5,
2134 Pdop = 1 << 6,
2135 Hdop = 1 << 7,
2136 Vdop = 1 << 8,
2137 HorizontalAccuracy = 1 << 9,
2138 VerticalAccuracy = 1 << 10,
2139 HvAccuracy = 1 << 11,
2140 SatellitesUsed = 1 << 12,
2141 Timestamp = 1 << 13,
2142 TrackStartTime = 1 << 14,
2143 TrackEndTime = 1 << 15,
2144 TrackDistanceSinceLastPoint = 1 << 16,
2145 TrackTimeSinceLastPoint = 1 << 17,
2146 GeoidalSeparation = 1 << 18,
2147 EllipsoidAltitude = 1 << 19,
2148 };
2149
2157 Q_FLAG( GpsInformationComponents )
2158
2159
2164 enum class BabelFormatCapability : int SIP_ENUM_BASETYPE( IntFlag )
2165 {
2166 Import = 1 << 0,
2167 Export = 1 << 1,
2168 Waypoints = 1 << 2,
2169 Routes = 1 << 3,
2170 Tracks = 1 << 4,
2171 };
2172
2175 Q_FLAG( BabelFormatCapabilities )
2176
2177
2183 enum class BabelCommandFlag : int SIP_ENUM_BASETYPE( IntFlag )
2184 {
2185 QuoteFilePaths = 1 << 0,
2186 };
2187
2190 Q_FLAG( BabelCommandFlags )
2191
2192
2197 enum class GpsFeatureType : int
2198 {
2199 Waypoint,
2200 Route,
2201 Track,
2202 };
2203 Q_ENUM( GpsFeatureType )
2204
2205
2213 {
2215 NothingHappened = 1000,
2216 InvalidBaseGeometry,
2217 InvalidInputGeometryType,
2218 SelectionIsEmpty,
2219 SelectionIsGreaterThanOne,
2220 GeometryEngineError,
2221 LayerNotEditable,
2222 // Add part issues
2223 AddPartSelectedGeometryNotFound,
2224 AddPartNotMultiGeometry,
2225 // Add ring issues
2226 AddRingNotClosed,
2227 AddRingNotValid,
2228 AddRingCrossesExistingRings,
2229 AddRingNotInExistingFeature,
2230 // Split features
2231 SplitCannotSplitPoint,
2232 GeometryTypeHasChanged,
2233 };
2234 Q_ENUM( GeometryOperationResult )
2235
2236
2242 {
2243 AllowSelfTouchingHoles SIP_MONKEYPATCH_COMPAT_NAME( FlagAllowSelfTouchingHoles )
2244 = 1 << 0,
2245 };
2246
2249 Q_FLAG( GeometryValidityFlags )
2250
2251
2256 {
2257 QgisInternal SIP_MONKEYPATCH_COMPAT_NAME( ValidatorQgisInternal ),
2258 Geos SIP_MONKEYPATCH_COMPAT_NAME( ValidatorGeos ),
2259 Sfcgal,
2260 };
2261 Q_ENUM( GeometryValidationEngine )
2262
2263
2273 Q_ENUM( BufferSide )
2274
2275
2286 Q_ENUM( EndCapStyle )
2287
2288
2294 {
2295 Round SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleRound ) = 1,
2296 Miter SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleMiter ),
2297 Bevel SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleBevel ),
2298 };
2299 Q_ENUM( JoinStyle )
2300
2301
2306 enum class JoinStyle3D : int
2307 {
2308 Round = 1,
2309 Flat,
2310 CylindersAndSpheres,
2311 };
2312 Q_ENUM( JoinStyle3D )
2313
2314
2319 enum class GeometryBackend : int
2320 {
2321 QGIS = 1,
2322 GEOS,
2323 };
2324 Q_ENUM( GeometryBackend )
2325
2326
2331 enum class GeosCreationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2332 {
2333 RejectOnInvalidSubGeometry = 1 << 0,
2334 SkipEmptyInteriorRings = 1 << 1,
2335 };
2336 Q_ENUM( GeosCreationFlag )
2337
2338
2344 Q_FLAG( GeosCreationFlags )
2345
2351 enum class CoverageValidityResult : int
2352 {
2353 Invalid = 0,
2354 Valid = 1,
2355 Error = 2,
2356 };
2357 Q_ENUM( CoverageValidityResult )
2358
2359
2364 enum class CoverageEdgeType : int
2365 {
2366 AllEdges = 0,
2367 Exterior = 1,
2368 Interior = 2,
2369 };
2370 Q_ENUM( CoverageEdgeType )
2371
2372
2377 enum class MakeValidMethod : int
2378 {
2379 Linework = 0,
2380 Structure = 1,
2381 };
2382 Q_ENUM( MakeValidMethod )
2383
2384
2385
2393 {
2394 NoFlags = 0,
2395 NoGeometry = 1,
2396 SubsetOfAttributes = 2,
2397 ExactIntersect = 4,
2398 IgnoreStaticNodesDuringExpressionCompilation
2399 = 8,
2400 EmbeddedSymbols = 16,
2401 };
2402 Q_ENUM( FeatureRequestFlag )
2403
2404
2412 Q_FLAG( FeatureRequestFlags )
2413
2422 {
2423 NoFilter SIP_MONKEYPATCH_COMPAT_NAME( FilterNone ),
2425 Expression SIP_MONKEYPATCH_COMPAT_NAME( FilterExpression ),
2427 };
2428 Q_ENUM( FeatureRequestFilterType )
2429
2430
2438 {
2439 NoCheck SIP_MONKEYPATCH_COMPAT_NAME( GeometryNoCheck ) = 0,
2440 SkipInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometrySkipInvalid ) = 1,
2441 AbortOnInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometryAbortOnInvalid ) = 2,
2442 };
2443 Q_ENUM( InvalidGeometryCheck )
2444
2445
2450 enum class SpatialFilterType : int
2451 {
2452 NoFilter,
2453 BoundingBox,
2454 DistanceWithin,
2455 };
2456 Q_ENUM( SpatialFilterType )
2457
2458
2463 enum class FileOperationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2464 {
2465 IncludeMetadataFile = 1 << 0,
2466 IncludeStyleFile = 1 << 1,
2467 };
2468
2471 Q_FLAG( FileOperationFlags )
2472
2473
2478 enum class MapLayerProperty : int SIP_ENUM_BASETYPE( IntFlag )
2479 {
2480 UsersCannotToggleEditing
2481 = 1 << 0,
2482 IsBasemapLayer = 1 << 1,
2483 Is3DBasemapLayer = 1 << 2,
2484 };
2485
2488 Q_FLAG( MapLayerProperties )
2489
2490
2495 enum class AutoRefreshMode : int
2496 {
2497 Disabled = 0,
2498 ReloadData = 1,
2499 RedrawOnly = 2,
2500 };
2501 Q_ENUM( AutoRefreshMode )
2502
2503
2508 enum class DataProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
2509 {
2510 IsBasemapSource = 1 << 1,
2511 FastExtent2D = 1 << 2,
2512 FastExtent3D = 1 << 3,
2513 Is3DBasemapSource = 1 << 4,
2514 };
2515
2518 Q_FLAG( DataProviderFlags )
2519
2520
2527 enum class CrsType : int
2528 {
2529 Unknown,
2530 Geodetic,
2531 Geocentric,
2532 Geographic2d,
2533 Geographic3d,
2534 Vertical,
2535 Projected,
2536 Compound,
2537 Temporal,
2538 Engineering,
2539 Bound,
2540 Other,
2541 DerivedProjected,
2542 };
2543 Q_ENUM( CrsType )
2544
2545
2552 enum class CrsAxisDirection : int
2553 {
2554 North,
2555 NorthNorthEast,
2556 NorthEast,
2557 EastNorthEast,
2558 East,
2559 EastSouthEast,
2560 SouthEast,
2561 SouthSouthEast,
2562 South,
2563 SouthSouthWest,
2564 SouthWest,
2565 WestSouthWest,
2566 West,
2567 WestNorthWest,
2568 NorthWest,
2569 NorthNorthWest,
2570 GeocentricX,
2571 GeocentricY,
2572 GeocentricZ,
2575 Forward,
2576 Aft,
2577 Port,
2578 Starboard,
2579 Clockwise,
2580 CounterClockwise,
2581 ColumnPositive,
2582 ColumnNegative,
2583 RowPositive,
2584 RowNegative,
2585 DisplayRight,
2586 DisplayLeft,
2587 DisplayUp,
2588 DisplayDown,
2589 Future,
2590 Past,
2591 Towards,
2592 AwayFrom,
2593 Unspecified,
2594 };
2595 Q_ENUM( CrsAxisDirection )
2596
2597
2602 enum class CoordinateOrder : int
2603 {
2604 Default,
2605 XY,
2606 YX,
2607 };
2608 Q_ENUM( CoordinateOrder )
2609
2610
2618 {
2619 ShortString,
2620 MediumString,
2621 FullString,
2622 };
2623 Q_ENUM( CrsIdentifierType )
2624
2625
2633 {
2635 WKT1_GDAL
2636 ),
2637 Wkt1Esri SIP_MONKEYPATCH_COMPAT_NAME( WKT1_ESRI ),
2638 Wkt2_2015 SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2015 ),
2639 Wkt2_2015Simplified SIP_MONKEYPATCH_COMPAT_NAME(
2640 WKT2_2015_SIMPLIFIED
2641 ),
2643 WKT2_2019
2644 ),
2645 Wkt2_2019Simplified SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2019_SIMPLIFIED ),
2646 Preferred SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED ) = Wkt2_2019,
2647 PreferredSimplified SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_SIMPLIFIED )
2648 = Wkt2_2019Simplified,
2649 PreferredGdal SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_GDAL ) = Wkt2_2019,
2650 };
2651 Q_ENUM( CrsWktVariant )
2652
2653
2659 {
2660 NoAction = 0,
2661 PromptUserForCrs = 1,
2662 UseProjectCrs = 2,
2663 UseDefaultCrs = 3,
2664 };
2665 Q_ENUM( UnknownLayerCrsBehavior )
2666
2667
2672 enum class Axis : int
2673 {
2674 X,
2675 Y,
2677 };
2678 Q_ENUM( Axis )
2679
2680
2685 enum class AnnotationItemFlag : int SIP_ENUM_BASETYPE( IntFlag )
2686 {
2687 ScaleDependentBoundingBox = 1 << 0,
2688 SupportsReferenceScale = 1 << 1,
2689 SupportsCallouts = 1 << 2,
2690 };
2691
2694 Q_FLAG( AnnotationItemFlags )
2695
2696
2702 {
2703 SpatialBounds = 0,
2704 FixedSize,
2705 RelativeToMapFrame,
2706 };
2707 Q_ENUM( AnnotationPlacementMode )
2708
2709
2714 enum class AnnotationItemGuiFlag : int SIP_ENUM_BASETYPE( IntFlag )
2715 {
2716 FlagNoCreationTools = 1 << 0,
2717 };
2718
2721 Q_FLAG( AnnotationItemGuiFlags )
2722
2723
2728 enum class AnnotationItemNodeType : int
2729 {
2730 VertexHandle,
2731 CalloutHandle,
2732 };
2733 Q_ENUM( AnnotationItemNodeType )
2734
2735
2741 {
2743 Invalid,
2744 ItemCleared,
2745 };
2746 Q_ENUM( AnnotationItemEditOperationResult )
2747
2748
2756 {
2757 Disabled SIP_MONKEYPATCH_COMPAT_NAME( NavigationOff ),
2758 Animated,
2759 FixedRange,
2760 Movie,
2761 };
2762 Q_ENUM( TemporalNavigationMode )
2763
2764
2777 Q_ENUM( AnimationState )
2778
2779
2784 enum class PlaybackOperation : int
2785 {
2786 SkipToStart,
2787 PreviousFrame,
2788 PlayReverse,
2789 Pause,
2790 PlayForward,
2791 NextFrame,
2792 SkipToEnd,
2793 };
2794 Q_ENUM( PlaybackOperation )
2795
2796
2802 {
2803 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2804 FeatureDateTimeInstantFromField SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeInstantFromField ),
2805 FeatureDateTimeStartAndEndFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromFields ),
2806 FeatureDateTimeStartAndDurationFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndDurationFromFields ),
2807 FeatureDateTimeStartAndEndFromExpressions SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromExpressions ),
2809 ModeRedrawLayerOnly
2810 ),
2811 };
2812 Q_ENUM( VectorTemporalMode )
2813
2814
2820 {
2821 IncludeBeginExcludeEnd = 0,
2822 IncludeBeginIncludeEnd,
2823 };
2824 Q_ENUM( VectorTemporalLimitMode )
2825
2826
2832 {
2833 HasFixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ProviderHasFixedTemporalRange ) = 0,
2834 StoresFeatureDateTimeInstantInField SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeInstantInField ),
2835 StoresFeatureDateTimeStartAndEndInSeparateFields SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeStartAndEndInSeparateFields ),
2836 };
2837 Q_ENUM( VectorDataProviderTemporalMode )
2838
2839
2845 {
2846 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2847 TemporalRangeFromDataProvider SIP_MONKEYPATCH_COMPAT_NAME( ModeTemporalRangeFromDataProvider ) = 1,
2848 RedrawLayerOnly SIP_MONKEYPATCH_COMPAT_NAME( ModeRedrawLayerOnly )
2849 = 2,
2850 FixedRangePerBand = 3,
2851 RepresentsTemporalValues = 4,
2852 FixedDateTime = 5,
2853 };
2854 Q_ENUM( RasterTemporalMode )
2855
2856
2862 {
2863 MatchUsingWholeRange,
2864 MatchExactUsingStartOfRange,
2865 MatchExactUsingEndOfRange,
2866 FindClosestMatchToStartOfRange,
2867 FindClosestMatchToEndOfRange
2868 };
2869 Q_ENUM( TemporalIntervalMatchMethod )
2870
2871
2877 {
2878 RequestedTimesMustExactlyMatchAllAvailableTemporalRanges
2879 = 1 << 0,
2880 };
2881 Q_ENUM( RasterTemporalCapabilityFlag )
2882
2883
2890
2901 Q_ENUM( TransformDirection )
2902
2903
2909 {
2910 BallparkTransformsAreAppropriate
2911 = 1 << 0,
2912 IgnoreImpossibleTransformations
2913 = 1 << 1,
2914 };
2915 Q_ENUM( CoordinateTransformationFlag )
2916
2917
2924
2931 {
2932 Default,
2933 PreferVector,
2934 ForceVector,
2935 };
2936 Q_ENUM( RasterizedRenderingPolicy )
2937
2938
2943 enum class RenderFormat : int
2944 {
2945 Raster,
2946 Vector,
2947 };
2948 Q_ENUM( RenderFormat )
2949
2950
2956 {
2957 Antialiasing = 0x01,
2958 DrawEditingInfo = 0x02,
2959 ForceVectorOutput = 0x04,
2960 UseAdvancedEffects = 0x08,
2961 DrawLabeling = 0x10,
2962 UseRenderingOptimization = 0x20,
2963 DrawSelection = 0x40,
2964 DrawSymbolBounds = 0x80,
2965 RenderMapTile = 0x100,
2966 RenderPartialOutput = 0x200,
2967 RenderPreviewJob = 0x400,
2968 RenderBlocking = 0x800,
2969 LosslessImageRendering
2970 = 0x1000,
2971 Render3DMap = 0x2000,
2972 HighQualityImageTransforms = 0x4000,
2973 SkipSymbolRendering = 0x8000,
2974 ForceRasterMasks = 0x10000,
2975 RecordProfile = 0x20000,
2976 AlwaysUseGlobalMasks
2977 = 0x40000,
2978 DrawLabelSelection = 0x80000
2979 };
2980
2983 Q_FLAG( MapSettingsFlags )
2984
2985
2991 {
2992 DrawEditingInfo = 0x01,
2993 ForceVectorOutput = 0x02,
2994 UseAdvancedEffects = 0x04,
2995 UseRenderingOptimization = 0x08,
2996 DrawSelection = 0x10,
2997 DrawSymbolBounds = 0x20,
2998 RenderMapTile = 0x40,
2999 Antialiasing = 0x80,
3000 RenderPartialOutput = 0x100,
3001 RenderPreviewJob = 0x200,
3002 RenderBlocking = 0x400,
3003 RenderSymbolPreview = 0x800,
3004 LosslessImageRendering = 0x1000,
3005 ApplyScalingWorkaroundForTextRendering = 0x2000,
3006 Render3DMap = 0x4000,
3007 ApplyClipAfterReprojection = 0x8000,
3008 RenderingSubSymbol = 0x10000,
3009 HighQualityImageTransforms = 0x20000,
3010 SkipSymbolRendering = 0x40000,
3011 RecordProfile = 0x80000,
3012 AlwaysUseGlobalMasks = 0x100000,
3013 DisableSymbolClippingToExtent = 0x200000,
3014 RenderLayerTree = 0x400000,
3015 DrawLabelSelection = 0x800000
3016 };
3017
3020 Q_FLAG( RenderContextFlags )
3021
3022
3027 enum class MapLayerRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3028 {
3029 RenderPartialOutputs = 1 << 0,
3030 RenderPartialOutputOverPreviousCachedImage = 1 << 1,
3031 AffectsLabeling = 1 << 2,
3032 };
3033 Q_ENUM( MapLayerRendererFlag )
3034
3035
3041 Q_FLAG( MapLayerRendererFlags )
3042
3048 enum class PaintEffectFlag : int SIP_ENUM_BASETYPE( IntFlag )
3049 {
3050 RequiresRasterization = 1 << 0,
3051 };
3052 Q_ENUM( PaintEffectFlag )
3053
3054
3060 Q_FLAG( PaintEffectFlags )
3061
3062 // refs for below dox: https://github.com/qgis/QGIS/pull/1286#issuecomment-39806854
3063 // https://github.com/qgis/QGIS/pull/8573#issuecomment-445585826
3064
3070 {
3072 TextFormatAlwaysOutlines
3073 ),
3075 TextFormatAlwaysText
3076 ),
3077 PreferText,
3078 };
3079 Q_ENUM( TextRenderFormat )
3080
3081
3089 {
3090 UseAllLabels = 1 << 1,
3091 UsePartialCandidates = 1 << 2,
3092 // TODO QGIS 5.0: remove
3093 RenderOutlineLabels = 1 << 3,
3094 DrawLabelRectOnly = 1 << 4,
3095 DrawCandidates = 1 << 5,
3096 DrawUnplacedLabels = 1 << 6,
3097 CollectUnplacedLabels = 1 << 7,
3098 DrawLabelMetrics = 1 << 8,
3099 IgnoreObstacles = 1 << 9,
3100 SingleCandidateOnly = 1 << 10,
3101 IgnoreOverlaps = 1 << 11,
3102 DisableSearchTree = 1 << 12,
3103 };
3104 Q_ENUM( LabelingFlag )
3105
3106
3114 Q_FLAG( LabelingFlags )
3115
3124 {
3125 Version1 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion1 ),
3126 Version2 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion2 ),
3127 };
3128 Q_ENUM( LabelPlacementEngineVersion )
3129
3130
3138 {
3139 Horizontal SIP_MONKEYPATCH_COMPAT_NAME( HorizontalOrientation ),
3140 Vertical SIP_MONKEYPATCH_COMPAT_NAME( VerticalOrientation ),
3141 RotationBased SIP_MONKEYPATCH_COMPAT_NAME( RotationBasedOrientation ),
3142 };
3143 Q_ENUM( TextOrientation )
3144
3145
3153 {
3155 Point,
3157 RectangleCapHeightBased,
3158 RectangleAscentBased,
3159 };
3160 Q_ENUM( TextLayoutMode )
3161
3162
3170 {
3171 Text = 1 << 0,
3172 Buffer = 1 << 1,
3173 Background = 1 << 2,
3174 Shadow = 1 << 3,
3175 };
3176 Q_ENUM( TextComponent )
3177
3178
3183 Q_DECLARE_FLAGS( TextComponents, TextComponent )
3184 Q_FLAG( TextComponents )
3185
3200 Q_ENUM( TextHorizontalAlignment )
3201
3202
3213 {
3215 VerticalCenter SIP_MONKEYPATCH_COMPAT_NAME( AlignVCenter ),
3216 Bottom SIP_MONKEYPATCH_COMPAT_NAME( AlignBottom ),
3217 };
3218 Q_ENUM( TextVerticalAlignment )
3219
3220
3229 {
3230 Normal,
3231 SuperScript,
3232 SubScript,
3233 };
3234 Q_ENUM( TextCharacterVerticalAlignment )
3235
3236
3242 {
3243 TruncateStringWhenLineIsTooShort = 1 << 0,
3244 UseBaselinePlacement = 1 << 1,
3245 UprightCharactersOnly = 1 << 2,
3246 ExtendLineToFitText = 1 << 3,
3247 };
3248 Q_ENUM( CurvedTextFlag )
3249
3250
3256
3265 {
3266 Distance = 0,
3267 SnapToGrid = 1,
3268 Visvalingam = 2,
3269 SnappedToGridGlobal = 3,
3270 };
3271 Q_ENUM( VectorSimplificationAlgorithm )
3272
3273
3281 {
3282 NoSimplification = 0,
3283 GeometrySimplification = 1,
3284 AntialiasingSimplification = 2,
3285 FullSimplification = 3,
3286 };
3287 Q_ENUM( VectorRenderingSimplificationFlag )
3288
3289
3298
3305 {
3306 Generic,
3307 ShadowOffset,
3308 BlurSize,
3309 GlowSpread,
3310 };
3311 Q_ENUM( RenderSubcomponentProperty )
3312
3313
3319 {
3320 SymbolLayer,
3321 Label,
3322 };
3323 Q_ENUM( SelectiveMaskSourceType )
3324
3325
3330 {
3331 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentVertex ) = 1,
3332 Curve SIP_MONKEYPATCH_COMPAT_NAME( CurveVertex ) = 2,
3333 ControlPoint SIP_MONKEYPATCH_COMPAT_NAME( ControlPointVertex ) = 3,
3334 };
3335 Q_ENUM( VertexType )
3336
3337
3345 {
3346 Square,
3347 Diamond,
3348 Pentagon,
3349 Hexagon,
3350 Triangle,
3351 EquilateralTriangle,
3352 Star,
3353 Arrow,
3354 Circle,
3355 Cross,
3356 CrossFill,
3357 Cross2,
3358 Line,
3359 ArrowHead,
3360 ArrowHeadFilled,
3361 SemiCircle,
3362 ThirdCircle,
3363 QuarterCircle,
3364 QuarterSquare,
3365 HalfSquare,
3366 DiagonalHalfSquare,
3367 RightHalfTriangle,
3368 LeftHalfTriangle,
3369 Octagon,
3370 SquareWithCorners,
3371 AsteriskFill,
3372 HalfArc,
3373 ThirdArc,
3374 QuarterArc,
3375 ParallelogramRight,
3376 ParallelogramLeft,
3377 Trapezoid,
3378 Shield,
3379 DiamondStar,
3380 Heart,
3381 Decagon,
3382 RoundedSquare,
3383 };
3384 Q_ENUM( MarkerShape )
3385
3386
3394 {
3395 Interval = 1 << 0,
3396 Vertex = 1 << 1,
3397 LastVertex = 1 << 2,
3398 FirstVertex = 1 << 3,
3399 CentralPoint = 1 << 4,
3400 CurvePoint = 1 << 5,
3401 SegmentCenter = 1 << 6,
3402 InnerVertices = 1 << 7,
3403 };
3404 Q_ENUM( MarkerLinePlacement )
3406 Q_FLAG( MarkerLinePlacements )
3407
3414 {
3415 IntervalCartesian2D = 1 << 0,
3416 IntervalZ = 1 << 1,
3417 IntervalM = 1 << 2,
3418 Vertex = 1 << 3,
3419 };
3420 Q_ENUM( LinearReferencingPlacement )
3421
3422
3428 {
3429 CartesianDistance2D,
3430 Z,
3431 M,
3432 };
3433 Q_ENUM( LinearReferencingLabelSource )
3434
3435
3443 {
3444 SimpleTwoColor,
3445 ColorRamp,
3446 };
3447 Q_ENUM( GradientColorSource )
3448
3449
3462 Q_ENUM( GradientType )
3463
3464
3472 {
3473 Feature,
3474 Viewport,
3475 };
3476 Q_ENUM( SymbolCoordinateReference )
3477
3478
3492 Q_ENUM( GradientSpread )
3493
3494
3502 {
3503 Absolute SIP_MONKEYPATCH_COMPAT_NAME( AbsoluteCount ),
3504 DensityBased SIP_MONKEYPATCH_COMPAT_NAME( DensityBasedCount ),
3505 };
3506 Q_ENUM( PointCountMethod )
3507
3508
3513 enum class MarkerClipMode : int
3514 {
3515 NoClipping,
3516 Shape,
3517 CentroidWithin,
3518 CompletelyWithin,
3519 };
3520 Q_ENUM( MarkerClipMode )
3521
3522
3527 enum class LineClipMode : int
3528 {
3529 ClipPainterOnly,
3530 ClipToIntersection,
3531 NoClipping,
3532 };
3533 Q_ENUM( LineClipMode )
3534
3535
3541 {
3542 NoRule,
3543 FullDash,
3544 HalfDash,
3545 FullGap,
3546 HalfGap,
3547 };
3548 Q_ENUM( DashPatternLineEndingRule )
3549
3550
3556 {
3557 ScaleBothDashAndGap,
3558 ScaleDashOnly,
3559 ScaleGapOnly,
3560 };
3561 Q_ENUM( DashPatternSizeAdjustment )
3562
3563
3575 Q_ENUM( GraduatedMethod )
3576
3577
3583 {
3584 NoLabels,
3585 EveryLabel,
3586 FirstLabel,
3587 LastLabel,
3588 FirstAndLastLabels,
3589 };
3590 Q_ENUM( PlotAxisSuffixPlacement )
3591
3592
3593
3598 enum class PlotAxisType
3599 {
3600 Interval,
3601 Categorical,
3602 };
3603 Q_ENUM( PlotAxisType )
3604
3605
3610 enum class PieChartLabelType : int
3611 {
3612 NoLabels,
3613 Categories,
3614 Values,
3615 };
3616 Q_ENUM( PieChartLabelType )
3617
3618
3622 enum class DpiMode
3623 {
3624 All = 7,
3625 Off = 0,
3626 QGIS = 1,
3627 UMN = 2,
3628 GeoServer = 4,
3629 };
3630 Q_ENUM( DpiMode )
3631
3632
3637 {
3638 Undefined = 0,
3639 StandardDpi = 1,
3640 HighDpi = 2,
3641 };
3642 Q_ENUM( TilePixelRatio )
3643
3644 // NOTE -- the hardcoded numbers here must match QFont::Capitalization!
3645
3646
3654 {
3655 MixedCase = 0,
3656 AllUppercase = 1,
3657 AllLowercase = 2,
3658 ForceFirstLetterToCapital = 4,
3659 SmallCaps = 5,
3660 TitleCase = 1004,
3661 UpperCamelCase = 1005,
3662 AllSmallCaps = 1006,
3663 };
3664 Q_ENUM( Capitalization )
3665
3666
3671 enum class TextRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3672 {
3673 WrapLines = 1 << 0,
3674 };
3675 Q_ENUM( TextRendererFlag )
3677 Q_FLAG( TextRendererFlags )
3678
3685 {
3686 MapBox,
3687 Esri,
3688 };
3690
3697 {
3698 Clockwise,
3699 CounterClockwise,
3700 NoOrientation,
3701 };
3702 Q_ENUM( AngularDirection )
3703
3704
3709 enum class RendererUsage : int
3710 {
3711 View,
3712 Export,
3713 Unknown,
3714 };
3715 Q_ENUM( RendererUsage )
3716
3717
3722 enum class MapCanvasFlag : int SIP_ENUM_BASETYPE( IntFlag )
3723 {
3724 ShowMainAnnotationLayer = 1 << 0,
3725 };
3726 Q_ENUM( MapCanvasFlag )
3727
3728
3733 Q_DECLARE_FLAGS( MapCanvasFlags, MapCanvasFlag )
3734 Q_FLAG( MapCanvasFlags )
3735
3741 enum class ViewSyncModeFlag : int SIP_ENUM_BASETYPE( IntFlag )
3742 {
3743 Sync3DTo2D = 1 << 0,
3744 Sync2DTo3D = 1 << 1,
3745 };
3746 Q_ENUM( ViewSyncModeFlag )
3748
3755 {
3756 Always,
3757 WhenOutsideVisibleExtent,
3758 Never,
3759 };
3760 Q_ENUM( MapRecenteringMode )
3761
3762
3767 enum class HistoryProviderBackend : int SIP_ENUM_BASETYPE( IntFlag )
3768 {
3769 LocalProfile = 1 << 0,
3770 // Project = 1 << 1, //!< QGIS Project (not yet implemented)
3771 };
3772 Q_ENUM( HistoryProviderBackend )
3774 Q_FLAG( HistoryProviderBackends )
3775
3781 enum class QueryStorageBackend : int
3782 {
3783 LocalProfile,
3784 CurrentProject,
3785 };
3786 Q_ENUM( QueryStorageBackend )
3787
3788
3796 {
3797 MapLayer SIP_MONKEYPATCH_COMPAT_NAME( TypeMapLayer ) = -2,
3798 VectorAnyGeometry SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorAnyGeometry ) = -1,
3799 VectorPoint SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPoint ) = 0,
3800 VectorLine SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorLine ) = 1,
3801 VectorPolygon SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPolygon ) = 2,
3802 Raster SIP_MONKEYPATCH_COMPAT_NAME( TypeRaster ) = 3,
3803 File SIP_MONKEYPATCH_COMPAT_NAME( TypeFile ) = 4,
3804 Vector SIP_MONKEYPATCH_COMPAT_NAME( TypeVector ) = 5,
3805 Mesh SIP_MONKEYPATCH_COMPAT_NAME( TypeMesh ) = 6,
3806 Plugin SIP_MONKEYPATCH_COMPAT_NAME( TypePlugin ) = 7,
3807 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( TypePointCloud ) = 8,
3808 Annotation SIP_MONKEYPATCH_COMPAT_NAME( TypeAnnotation ) = 9,
3809 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorTile ) = 10,
3810 TiledScene = 11
3811 };
3812 Q_ENUM( ProcessingSourceType )
3813
3814
3815
3823 {
3824 DeemphasiseSearchResults SIP_MONKEYPATCH_COMPAT_NAME( FlagDeemphasiseSearchResults )
3825 = 1 << 1,
3826 CompatibleWithVirtualRaster SIP_MONKEYPATCH_COMPAT_NAME( FlagCompatibleWithVirtualRaster ) = 1 << 2,
3827 };
3829
3838 Q_FLAG( ProcessingProviderFlags )
3839
3840
3848 {
3849 HideFromToolbox SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromToolbox ) = 1 << 1,
3850 HideFromModeler SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromModeler ) = 1 << 2,
3851 SupportsBatch SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsBatch ) = 1 << 3,
3852 CanCancel SIP_MONKEYPATCH_COMPAT_NAME( FlagCanCancel ) = 1 << 4,
3853 RequiresMatchingCrs SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresMatchingCrs ) = 1 << 5,
3854 NoThreading SIP_MONKEYPATCH_COMPAT_NAME( FlagNoThreading ) = 1 << 6,
3855 DisplayNameIsLiteral SIP_MONKEYPATCH_COMPAT_NAME( FlagDisplayNameIsLiteral ) = 1 << 7,
3856 SupportsInPlaceEdits SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsInPlaceEdits ) = 1 << 8,
3857 KnownIssues SIP_MONKEYPATCH_COMPAT_NAME( FlagKnownIssues ) = 1 << 9,
3858 CustomException SIP_MONKEYPATCH_COMPAT_NAME( FlagCustomException ) = 1 << 10,
3859 PruneModelBranchesBasedOnAlgorithmResults SIP_MONKEYPATCH_COMPAT_NAME( FlagPruneModelBranchesBasedOnAlgorithmResults ) = 1 << 11,
3860 SkipGenericModelLogging SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGenericModelLogging ) = 1 << 12,
3861 NotAvailableInStandaloneTool SIP_MONKEYPATCH_COMPAT_NAME( FlagNotAvailableInStandaloneTool ) = 1 << 13,
3862 RequiresProject SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresProject ) = 1 << 14,
3863 SecurityRisk = 1 << 15,
3864 Deprecated SIP_MONKEYPATCH_COMPAT_NAME( FlagDeprecated ) = HideFromToolbox | HideFromModeler,
3865 };
3867
3876 Q_FLAG( ProcessingAlgorithmFlags )
3877
3878
3884 {
3885 RegeneratesPrimaryKey = 1 << 0,
3886 RegeneratesPrimaryKeyInSomeScenarios = 1 << 1,
3887 RespectsEllipsoid = 1 << 2,
3888 };
3889 Q_ENUM( ProcessingAlgorithmDocumentationFlag )
3890
3891
3898
3908 {
3909 NotAvailable,
3910 Available,
3911 };
3912 Q_ENUM( ProcessingPropertyAvailability )
3913
3914
3922 {
3923 DefaultLevel = 0,
3924 Verbose,
3925 ModelDebug,
3926 };
3927 Q_ENUM( ProcessingLogLevel )
3928
3929
3937 {
3938 Standard,
3939 Batch,
3940 Modeler,
3941 };
3942 Q_ENUM( ProcessingMode )
3943
3944
3950 {
3951 VectorAnalysis,
3952 VectorResearch,
3953 VectorGeoprocessing,
3954 VectorGeometry,
3955 VectorDataManagement,
3956 VectorGeneral,
3957 RasterProjections,
3958 RasterConversion,
3959 RasterExtraction,
3960 RasterAnalysis,
3961 RasterMiscellaneous,
3962 RasterGeneral,
3963 };
3964 Q_ENUM( ProcessingMenu )
3965
3966
3974 {
3975 OverrideDefaultGeometryCheck SIP_MONKEYPATCH_COMPAT_NAME( FlagOverrideDefaultGeometryCheck )
3976 = 1 << 0,
3977 CreateIndividualOutputPerInputFeature SIP_MONKEYPATCH_COMPAT_NAME( FlagCreateIndividualOutputPerInputFeature )
3978 = 1 << 1,
3979 };
3980 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
3981
3982
3991
4000 {
4001 SkipGeometryValidityChecks SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGeometryValidityChecks ) = 1 << 1,
4002 };
4003 Q_ENUM( ProcessingFeatureSourceFlag )
4004
4005
4014
4026 {
4027 ExposeToModeler = 1
4028 };
4029 Q_ENUM( ProcessingParameterTypeFlag )
4030
4031
4043
4052 {
4053 Advanced SIP_MONKEYPATCH_COMPAT_NAME( FlagAdvanced ) = 1 << 1,
4054 Hidden SIP_MONKEYPATCH_COMPAT_NAME( FlagHidden ) = 1 << 2,
4055 Optional SIP_MONKEYPATCH_COMPAT_NAME( FlagOptional ) = 1 << 3,
4056 IsModelOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagIsModelOutput ) = 1 << 4,
4057 };
4058 Q_ENUM( ProcessingParameterFlag )
4059
4060
4068 Q_FLAG( ProcessingParameterFlags )
4069
4082 Q_ENUM( ProcessingFileParameterBehavior )
4083
4084
4096 Q_ENUM( ProcessingNumberParameterType )
4097
4098
4106 {
4107 Any = -1,
4108 Numeric = 0,
4109 String = 1,
4110 DateTime = 2,
4111 Binary = 3,
4112 Boolean = 4,
4113 };
4114 Q_ENUM( ProcessingFieldParameterDataType )
4115
4116
4129 Q_ENUM( ProcessingDateTimeParameterDataType )
4130
4131
4137 {
4138 ModelParameter,
4139 ChildOutput,
4140 StaticValue,
4141 Expression,
4142 ExpressionText,
4143 ModelOutput,
4144 };
4145 Q_ENUM( ProcessingModelChildParameterSource )
4146
4147
4153 {
4154 NotExecuted,
4156 Failed,
4157 };
4158 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
4159
4160
4168 {
4169 Vertices,
4170 StructureLines,
4171 BreakLines
4172 };
4173 Q_ENUM( ProcessingTinInputLayerType )
4174
4175
4185 Q_ENUM( CrsDefinitionFormat )
4186
4187
4195 enum class FieldDomainSplitPolicy : int
4196 {
4197 DefaultValue,
4198 Duplicate,
4199 GeometryRatio,
4200 UnsetField,
4201 };
4202 Q_ENUM( FieldDomainSplitPolicy )
4203
4204
4212 enum class FieldDomainMergePolicy : int
4213 {
4214 DefaultValue,
4215 Sum,
4216 GeometryWeighted,
4217 UnsetField,
4218 LargestGeometry,
4219 MinimumValue,
4220 MaximumValue,
4221 SetToNull,
4222 };
4223 Q_ENUM( FieldDomainMergePolicy )
4224
4225
4232 enum class FieldDuplicatePolicy : int
4233 {
4234 DefaultValue,
4235 Duplicate,
4236 UnsetField,
4237 };
4238 Q_ENUM( FieldDuplicatePolicy )
4239
4240
4245 enum class FieldDomainType : int
4246 {
4247 Coded,
4248 Range,
4249 Glob,
4250 };
4251 Q_ENUM( FieldDomainType )
4252
4253
4258 enum class TransactionMode : int
4259 {
4260 Disabled = 0,
4261 AutomaticGroups = 1,
4262 BufferedGroups = 2,
4263 };
4264 Q_ENUM( TransactionMode )
4265
4266
4271 enum class AltitudeClamping : int
4272 {
4273 Absolute,
4274 Relative,
4275 Terrain,
4276 };
4277 Q_ENUM( AltitudeClamping )
4278
4279
4284 enum class AltitudeBinding : int
4285 {
4286 Vertex,
4287 Centroid,
4288 };
4289 Q_ENUM( AltitudeBinding )
4290
4291
4296 enum class RangeLimits : int
4297 {
4298 IncludeBoth = 0,
4299 IncludeLowerExcludeUpper,
4300 ExcludeLowerIncludeUpper,
4301 ExcludeBoth,
4302 };
4303 Q_ENUM( RangeLimits )
4304
4305
4310 enum class RasterElevationMode : int
4311 {
4312 FixedElevationRange = 0,
4313 RepresentsElevationSurface = 1,
4314 FixedRangePerBand = 2,
4315 DynamicRangePerBand = 3,
4316 };
4317 Q_ENUM( RasterElevationMode )
4318
4319
4324 enum class MeshElevationMode : int
4325 {
4326 FixedElevationRange = 0,
4327 FromVertices = 1,
4328 FixedRangePerGroup = 2,
4329 };
4330 Q_ENUM( MeshElevationMode )
4331
4332
4338 {
4339 NoConstraint,
4340 Perpendicular,
4341 Parallel
4342 };
4343 Q_ENUM( BetweenLineConstraint )
4344
4345
4350 enum class LineExtensionSide : int
4351 {
4352 BeforeVertex,
4353 AfterVertex,
4354 NoVertex,
4355 };
4356 Q_ENUM( LineExtensionSide )
4357
4358
4359
4363 enum class CadConstraintType : int
4364 {
4365 Generic,
4366 Angle,
4367 Distance,
4368 XCoordinate,
4369 YCoordinate,
4370 ZValue,
4371 MValue,
4372 };
4373 Q_ENUM( CadConstraintType )
4374
4375
4380 {
4381 Hidden,
4382 Cartesian,
4383 Ellipsoidal,
4384 };
4385 Q_ENUM( CadMeasurementDisplayType )
4386
4387
4392 enum class ProjectFlag : int SIP_ENUM_BASETYPE( IntFlag )
4393 {
4394 EvaluateDefaultValuesOnProviderSide = 1 << 0,
4395 TrustStoredLayerStatistics
4396 = 1 << 1,
4397 RememberLayerEditStatusBetweenSessions = 1 << 2,
4398 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
4399 };
4400 Q_ENUM( ProjectFlag )
4401 Q_DECLARE_FLAGS( ProjectFlags, ProjectFlag )
4402 Q_FLAG( ProjectFlags )
4403
4409 enum class PlotToolFlag : int SIP_ENUM_BASETYPE( IntFlag )
4410 {
4411 ShowContextMenu = 1 << 0,
4412 };
4413 Q_ENUM( PlotToolFlag )
4414 Q_DECLARE_FLAGS( PlotToolFlags, PlotToolFlag )
4415 Q_FLAG( PlotToolFlags )
4416
4424 enum class Map3DDebugFlag : int SIP_ENUM_BASETYPE( IntFlag )
4425 {
4426 ShowTerrainBoundingBoxes = 1 << 0,
4427 ShowTerrainTileInfo = 1 << 1,
4428 ShowCameraViewCenter = 1 << 2,
4429 ShowCameraRotationCenter = 1 << 3,
4430 ShowLightSourceOrigins = 1 << 4,
4431 ShowFPS = 1 << 5,
4432 ShowDebugPanel = 1 << 6,
4433 };
4434 Q_ENUM( Map3DDebugFlag )
4436 Q_FLAG( Map3DDebugFlags )
4437
4443 enum class Map3DProjectionType : int
4444 {
4445 Orthographic = 0,
4446 Perspective = 1,
4447 };
4448 Q_ENUM( Map3DProjectionType )
4449
4450
4457 enum class Point3DShape : int
4458 {
4459 Cylinder,
4460 Sphere,
4461 Cone,
4462 Cube,
4463 Torus,
4464 Plane,
4465 ExtrudedText,
4466 Model,
4467 Billboard,
4468 };
4469 Q_ENUM( Point3DShape )
4470
4471
4480 {
4481 Triangles,
4482 Lines,
4483 InstancedPoints,
4484 Points,
4485 TrianglesWithFixedTexture,
4486 TrianglesFromModel,
4487 TrianglesDataDefined,
4488 Billboards,
4489 };
4490 Q_ENUM( MaterialRenderingTechnique )
4491
4492
4497 enum class MaterialWidgetMode : int
4498 {
4499 Compact,
4500 Full,
4501 };
4502 Q_ENUM( MaterialWidgetMode )
4503
4504
4509 enum class InstancedMaterialFlag : int SIP_ENUM_BASETYPE( IntFlag )
4510 {
4511 DataDefinedScale = 1 << 0,
4512 DataDefinedRotation = 1 << 1,
4513 };
4514 Q_ENUM( InstancedMaterialFlag )
4516 Q_FLAG( InstancedMaterialFlags )
4517
4523 enum class BillboardScaleMode : int
4524 {
4525 ViewIndependent,
4526 Perspective
4527 };
4528 Q_ENUM( BillboardScaleMode )
4529
4530
4535 enum class TextureFilterQuality : int
4536 {
4537 Trilinear,
4538 Anisotropic2x,
4539 Anisotropic4x,
4540 Anisotropic8x,
4541 Anisotropic16x,
4542 };
4543 Q_ENUM( TextureFilterQuality )
4544
4545
4550 enum class ShadowQuality : int
4551 {
4552 Low,
4553 Medium,
4554 High,
4555 VeryHigh,
4556 Extreme,
4557 };
4558 Q_ENUM( ShadowQuality )
4559
4560
4565 enum class LightSourceType : int
4566 {
4567 Point,
4568 Directional,
4569 Sun,
4570 };
4571 Q_ENUM( LightSourceType )
4572
4573
4577 enum class Map3DBackgroundType : int
4578 {
4579 NoBackground,
4580 FixedGradientBackground,
4581 DistinctTextureSkybox,
4582 };
4583 Q_ENUM( Map3DBackgroundType )
4584
4585
4590 enum class SkyboxCubeMapping : int
4591 {
4592 NativeZUp,
4593 OpenGLYUp,
4594 GodotYUp,
4595 UnrealEngineZUp,
4596 LeftHandedYUpMirrored,
4597 };
4598 Q_ENUM( SkyboxCubeMapping )
4599
4600
4605 enum class NavigationMode : int
4606 {
4607 TerrainBased,
4608 Walk,
4609 GlobeTerrainBased
4610 };
4611 Q_ENUM( NavigationMode )
4612
4613
4618 enum class SceneMode : int
4619 {
4620 Local,
4621 Globe
4622 };
4623 Q_ENUM( SceneMode )
4624
4625
4630 enum class VerticalAxisInversion : int SIP_ENUM_BASETYPE( IntFlag )
4631 {
4632 WhenRotatingDragging = 1 << 0,
4633 WhenRotatingCaptured = 1 << 1,
4634 WhenPivoting = 1 << 2,
4635
4636 // Legacy aliases for old flying-only enum:
4637
4638 Never = WhenRotatingDragging | WhenRotatingCaptured | WhenPivoting,
4639 WhenDragging = WhenRotatingCaptured | WhenPivoting,
4640 Always = WhenPivoting,
4641 };
4642 Q_ENUM( VerticalAxisInversion )
4645
4652 enum class ToneMappingMethod : int
4653 {
4654 Clamp,
4655 Aces,
4656 };
4657 Q_ENUM( ToneMappingMethod )
4658
4659
4664 enum class Export3DSceneFormat : int
4665 {
4666 Obj,
4667 StlAscii
4668 };
4669 Q_ENUM( Export3DSceneFormat )
4670
4671
4677 {
4678 Line,
4679 FillBelow,
4680 FillAbove,
4681 };
4683
4689 enum class VectorProfileType : int
4690 {
4691 IndividualFeatures,
4692 ContinuousSurface,
4693 };
4695
4701 enum class PointCloudProfileType : int
4702 {
4703 IndividualPoints,
4704 TriangulatedSurface,
4705 };
4707
4713 enum class ProfileGeneratorFlag : int SIP_ENUM_BASETYPE( IntFlag )
4714 {
4715 RespectsMaximumErrorMapUnit = 1 << 0,
4716 RespectsDistanceRange = 1 << 1,
4717 RespectsElevationRange = 1 << 2,
4718 };
4719 Q_ENUM( ProfileGeneratorFlag )
4721 Q_FLAG( ProfileGeneratorFlags )
4722
4728 enum class ProfileExportType : int
4729 {
4730 Features3D,
4731 Profile2D,
4732 DistanceVsElevationTable,
4733 };
4735
4742 {
4743 Square,
4744 Circle,
4745 };
4746 Q_ENUM( PointCloudSymbol )
4747
4748
4754 {
4755 Default,
4756 BottomToTop,
4757 TopToBottom,
4758 };
4759 Q_ENUM( PointCloudDrawOrder )
4760
4761
4769 {
4770 AllowIntersections,
4771 AvoidIntersectionsCurrentLayer,
4772 AvoidIntersectionsLayers,
4773 };
4774 Q_ENUM( AvoidIntersectionsMode )
4775
4776
4784 {
4785 Qgz,
4786 Qgs,
4787 };
4788 Q_ENUM( ProjectFileFormat )
4789
4790
4798 {
4799 DontResolveLayers SIP_MONKEYPATCH_COMPAT_NAME( FlagDontResolveLayers )
4800 = 1 << 0,
4801 DontLoadLayouts SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoadLayouts )
4802 = 1 << 1,
4803 TrustLayerMetadata SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustLayerMetadata )
4804 = 1 << 2,
4805 DontStoreOriginalStyles SIP_MONKEYPATCH_COMPAT_NAME( FlagDontStoreOriginalStyles ) = 1 << 3,
4806 DontLoad3DViews SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoad3DViews ) = 1 << 4,
4807 DontLoadProjectStyles = 1 << 5,
4808 ForceReadOnlyLayers = 1 << 6,
4809 DontUpgradeAnnotations = 1 << 7,
4810 };
4811 Q_ENUM( ProjectReadFlag )
4812
4813
4821 Q_FLAG( ProjectReadFlags )
4822
4831 enum class ProjectCapability : int SIP_ENUM_BASETYPE( IntFlag )
4832 {
4833 ProjectStyles = 1 << 0,
4834 };
4835 Q_ENUM( ProjectCapability )
4836
4837
4843 Q_FLAG( ProjectCapabilities )
4844
4851 {
4852 Vector,
4853 Raster,
4854 RasterDem,
4855 GeoJson,
4856 Image,
4857 Video,
4858 Unknown,
4859 };
4860 Q_ENUM( MapBoxGlStyleSourceType )
4861
4862
4870 {
4871 FeatureServer SIP_MONKEYPATCH_COMPAT_NAME( FeatureService ),
4872 MapServer SIP_MONKEYPATCH_COMPAT_NAME( MapService ),
4873 ImageServer SIP_MONKEYPATCH_COMPAT_NAME( ImageService ),
4874 GlobeServer,
4875 GPServer,
4876 GeocodeServer,
4877 Unknown,
4878 SceneServer,
4879 };
4880 Q_ENUM( ArcGisRestServiceType )
4881
4882
4891 {
4892 Map = 1 << 0,
4893 Query = 1 << 1,
4894 Update = 1 << 2,
4895 Delete = 1 << 3,
4896 Create = 1 << 4,
4897 Image = 1 << 5,
4898 TilesOnly = 1 << 6,
4899 };
4900 Q_ENUM( ArcGisRestServiceCapability )
4901
4902
4909
4918 {
4919 Normal,
4920 Generated,
4921 };
4922 Q_ENUM( RelationshipType )
4923
4924
4932 {
4933 Association,
4934 Composition,
4935 };
4936 Q_ENUM( RelationshipStrength )
4937
4938
4944 {
4945 OneToOne,
4946 OneToMany,
4947 ManyToOne,
4948 ManyToMany,
4949 };
4950 Q_ENUM( RelationshipCardinality )
4951
4952
4957 enum class RelationshipCapability : int SIP_ENUM_BASETYPE( IntFlag )
4958 {
4959 MultipleFieldKeys = 1 << 0,
4960 ForwardPathLabel = 1 << 1,
4961 BackwardPathLabel = 1 << 2,
4962 };
4963 Q_ENUM( RelationshipCapability )
4964
4965
4971 Q_FLAG( RelationshipCapabilities )
4972
4978 enum class CoordinateDisplayType : int
4979 {
4980 MapCrs,
4981 MapGeographic,
4982 CustomCrs,
4983 };
4984 Q_ENUM( CoordinateDisplayType )
4985
4986
4991 enum class SettingsOrigin : int
4992 {
4993 Any,
4994 Global,
4995 Local,
4996 };
4997 Q_ENUM( SettingsOrigin )
4998
4999
5004 enum class ScriptLanguage : int
5005 {
5006 Css,
5007 QgisExpression,
5008 Html,
5009 JavaScript,
5010 Json,
5011 Python,
5012 R,
5013 Sql,
5014 Batch,
5015 Bash,
5016 Unknown,
5017 };
5018 Q_ENUM( ScriptLanguage )
5019
5020
5028 {
5029 Reformat = 1 << 0,
5030 CheckSyntax = 1 << 1,
5031 ToggleComment = 1 << 2,
5032 };
5033 Q_ENUM( ScriptLanguageCapability )
5034
5035
5042
5049 {
5050 AboveInsertionPoint,
5051 TopOfTree,
5052 OptimalInInsertionGroup,
5053 };
5054 Q_ENUM( LayerTreeInsertionMethod )
5055
5056
5062 {
5063 LayerProperties = 0,
5064 AttributeTable = 1,
5065 LayerStyling = 2,
5066 };
5067 Q_ENUM( LegendLayerDoubleClickAction )
5068
5069
5074 enum class LayerTreeFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
5075 {
5076 SkipVisibilityCheck = 1 << 0,
5077 };
5078 Q_ENUM( LayerTreeFilterFlag )
5079
5080
5086 Q_FLAG( LayerTreeFilterFlags )
5087
5093 enum class MapLayerLegendFlag : int SIP_ENUM_BASETYPE( IntFlag )
5094 {
5095 ExcludeByDefault = 1 << 0,
5096 };
5097 Q_ENUM( MapLayerLegendFlag )
5098
5099
5105 Q_FLAG( MapLayerLegendFlags )
5106
5115 {
5116 Undefined,
5117 Hidden,
5118 Title,
5119 Group,
5120 Subgroup,
5121 Symbol,
5122 SymbolLabel,
5123 };
5124 // !!! WARNING: If adding new values to this enum, make sure you update QgsLegendSettings constructor accordingly!!
5125 Q_ENUM( LegendComponent )
5126
5127
5132 enum class LegendSyncMode : int
5133 {
5134 AllProjectLayers,
5135 VisibleLayers,
5136 Manual,
5137 };
5138 Q_ENUM( LegendSyncMode )
5139
5140
5147 enum class LegendJsonRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
5148 {
5149 ShowRuleDetails = 1 << 0,
5150 };
5151 Q_ENUM( LegendJsonRenderFlag )
5153 Q_FLAG( LegendJsonRenderFlags )
5154
5160 enum class GeoJsonProfile : int
5161 {
5162 Legacy,
5163 Rfc7946,
5164 JsonFg,
5165 JsonFgPlus,
5166 };
5167 Q_ENUM( GeoJsonProfile )
5168
5169
5176 enum class ActionType : int
5177 {
5178 Invalid,
5179 MapLayerAction,
5180 AttributeAction
5181 };
5182 Q_ENUM( ActionType )
5183
5184
5191 enum class MapLayerActionTarget : int SIP_ENUM_BASETYPE( IntFlag )
5192 {
5193 Layer = 1 << 0,
5194 SingleFeature = 1 << 1,
5195 MultipleFeatures = 1 << 2,
5196 AllActions = Layer | SingleFeature | MultipleFeatures
5197 };
5198 Q_ENUM( MapLayerActionTarget )
5199
5200
5208 Q_FLAG( MapLayerActionTargets )
5209
5217 enum class MapLayerActionFlag : int SIP_ENUM_BASETYPE( IntFlag )
5218 {
5219 EnabledOnlyWhenEditable = 1 << 1,
5220 EnableOnlyWhenHasGeometry = 1 << 2,
5221 };
5222 Q_ENUM( MapLayerActionFlag )
5223
5224
5232 Q_FLAG( MapLayerActionFlags )
5233
5242 {
5243 Generic,
5244 GenericPython,
5245 Mac,
5246 Windows,
5247 Unix,
5248 OpenUrl,
5249 SubmitUrlEncoded,
5250 SubmitUrlMultipart,
5251 };
5252 Q_ENUM( AttributeActionType )
5253
5254
5260 {
5261 Created,
5262 Published,
5263 Revised,
5264 Superseded,
5265 };
5266 Q_ENUM( MetadataDateType )
5267
5268
5272 enum class AcademicReferenceType : int
5273 {
5274 Unknown,
5275 Book,
5276 JournalArticle,
5277 Presentation,
5278 WebPage,
5279 Preprint
5280 };
5281 Q_ENUM( AcademicReferenceType )
5282
5283
5292
5294 {
5295 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedColorInterpretation ) = 0,
5296 GrayIndex = 1,
5297 PaletteIndex = 2,
5298 RedBand = 3,
5299 GreenBand = 4,
5300 BlueBand = 5,
5301 AlphaBand = 6,
5302 HueBand = 7,
5303 SaturationBand = 8,
5304 LightnessBand = 9,
5305 CyanBand = 10,
5306 MagentaBand = 11,
5307 YellowBand = 12,
5308 BlackBand = 13,
5309 YCbCr_YBand = 14,
5310 YCbCr_CbBand = 15,
5311 YCbCr_CrBand = 16,
5312 ContinuousPalette = 17,
5313
5314 // Note: values between PanBand and SAR_P_Band match additions done in
5315 // GDAL 3.10, except that the numeric values of the constant don't match GDAL ones
5316
5317 PanBand = 18,
5318 CoastalBand = 19,
5319 RedEdgeBand = 20,
5320 NIRBand = 21,
5321 SWIRBand = 22,
5322 MWIRBand = 23,
5323 LWIRBand = 24,
5324 TIRBand = 25,
5325 OtherIRBand = 26,
5326 SAR_Ka_Band = 27,
5327 SAR_K_Band = 28,
5328 SAR_Ku_Band = 30,
5329 SAR_X_Band = 31,
5330 SAR_C_Band = 32,
5331 SAR_S_Band = 33,
5332 SAR_L_Band = 34,
5333 SAR_P_Band = 35,
5334 };
5335 Q_ENUM( RasterColorInterpretation )
5336
5337
5345 {
5346 GrayOrUndefined,
5347 Palette,
5348 MultiBand SIP_MONKEYPATCH_COMPAT_NAME( Multiband ),
5349 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( ColorLayer ),
5350 };
5351 Q_ENUM( RasterLayerType )
5352
5353
5361 {
5362 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedDrawingStyle ),
5363 SingleBandGray,
5364 SingleBandPseudoColor,
5365 PalettedColor,
5366 PalettedSingleBandGray,
5367 PalettedSingleBandPseudoColor,
5368 PalettedMultiBandColor,
5369 MultiBandSingleBandGray,
5370 MultiBandSingleBandPseudoColor,
5371 MultiBandColor,
5372 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( SingleBandColorDataStyle ),
5373 };
5374 Q_ENUM( RasterDrawingStyle )
5375
5376
5383 enum class RasterPyramidFormat SIP_MONKEYPATCH_SCOPEENUM_UNNEST( QgsRaster, RasterPyramidsFormat ) : int
5384 {
5385 GeoTiff SIP_MONKEYPATCH_COMPAT_NAME( PyramidsGTiff ) = 0,
5386 Internal SIP_MONKEYPATCH_COMPAT_NAME( PyramidsInternal ) = 1,
5387 Erdas SIP_MONKEYPATCH_COMPAT_NAME( PyramidsErdas ) = 2
5388 };
5389 Q_ENUM( RasterPyramidFormat )
5390
5391
5399 {
5400 No SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagNo ) = 0,
5401 Yes SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagYes ) = 1,
5402 CopyExisting SIP_MONKEYPATCH_COMPAT_NAME( PyramidsCopyExisting ) = 2
5403 };
5404 Q_ENUM( RasterBuildPyramidOption )
5405
5406
5414 {
5415 Undefined SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatUndefined ) = 0,
5416 Value SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatValue ) = 1,
5417 Text SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatText ) = 1 << 1,
5418 Html SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatHtml ) = 1 << 2,
5419 Feature SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatFeature ) = 1 << 3,
5420 };
5421 Q_ENUM( RasterIdentifyFormat )
5422
5423 // TODO QGIS 5 -- remove NoCapabilities and rely on RasterInterfaceCapabilities() instead
5424 // remove deprecated members
5425 // Remove "Identify" member, and replace with combinations of IdentifyValue/IdentifyText/etc
5426
5427
5435 {
5436 NoCapabilities = 0,
5437 Size = 1 << 1,
5438 Create = 1 << 2,
5439 Remove = 1 << 3,
5440 BuildPyramids = 1 << 4,
5441 Identify = 1 << 5,
5442 IdentifyValue = 1 << 6,
5443 IdentifyText = 1 << 7,
5444 IdentifyHtml = 1 << 8,
5445 IdentifyFeature = 1 << 9,
5446 Prefetch = 1 << 10,
5447 };
5448 Q_ENUM( RasterInterfaceCapability )
5449
5450
5457
5458 // TODO QGIS 5 -- remove NoProviderCapabilities and rely on RasterProviderCapabilities() instead
5459
5468 {
5469 NoProviderCapabilities = 0,
5470 ReadLayerMetadata = 1 << 1,
5471 WriteLayerMetadata = 1 << 2,
5472 ProviderHintBenefitsFromResampling = 1 << 3,
5473 ProviderHintCanPerformProviderResampling = 1 << 4,
5474 ReloadData = 1 << 5,
5475 DpiDependentData = 1 << 6,
5476 NativeRasterAttributeTable = 1 << 7,
5477 BuildPyramids = 1 << 8,
5478 };
5479 Q_ENUM( RasterProviderCapability )
5480
5481
5490
5497 {
5498 HighestElevation,
5499 NewerElevation,
5500 };
5501 Q_ENUM( ElevationMapCombineMethod )
5502
5503
5512 {
5513 Normal SIP_MONKEYPATCH_COMPAT_NAME( BlendNormal ),
5514 Lighten SIP_MONKEYPATCH_COMPAT_NAME( BlendLighten ),
5515 Screen SIP_MONKEYPATCH_COMPAT_NAME( BlendScreen ),
5516 Dodge SIP_MONKEYPATCH_COMPAT_NAME( BlendDodge ),
5517 Addition SIP_MONKEYPATCH_COMPAT_NAME( BlendAddition ),
5518 Darken SIP_MONKEYPATCH_COMPAT_NAME( BlendDarken ),
5519 Multiply SIP_MONKEYPATCH_COMPAT_NAME( BlendMultiply ),
5521 Overlay SIP_MONKEYPATCH_COMPAT_NAME( BlendOverlay ),
5522 SoftLight SIP_MONKEYPATCH_COMPAT_NAME( BlendSoftLight ),
5523 HardLight SIP_MONKEYPATCH_COMPAT_NAME( BlendHardLight ),
5524 Difference SIP_MONKEYPATCH_COMPAT_NAME( BlendDifference ),
5525 Subtract SIP_MONKEYPATCH_COMPAT_NAME( BlendSubtract ),
5526 Source SIP_MONKEYPATCH_COMPAT_NAME( BlendSource ),
5527 DestinationOver SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOver ),
5528 Clear SIP_MONKEYPATCH_COMPAT_NAME( BlendClear ),
5529 Destination SIP_MONKEYPATCH_COMPAT_NAME( BlendDestination ),
5530 SourceIn SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceIn ),
5531 DestinationIn SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationIn ),
5532 SourceOut SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceOut ),
5533 DestinationOut SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOut ),
5534 SourceAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceAtop ),
5535 DestinationAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationAtop ),
5537 };
5538 Q_ENUM( BlendMode )
5539
5540
5548 {
5549 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownSystem ) = 0,
5550 Metric SIP_MONKEYPATCH_COMPAT_NAME( MetricSystem ),
5551 Imperial SIP_MONKEYPATCH_COMPAT_NAME( ImperialSystem ),
5552 USCS SIP_MONKEYPATCH_COMPAT_NAME( USCSSystem ),
5553 };
5554 Q_ENUM( SystemOfMeasurement )
5555
5556
5563 {
5564 Layer SIP_MONKEYPATCH_COMPAT_NAME( LayerUnits ),
5565 Pixels,
5566 Project SIP_MONKEYPATCH_COMPAT_NAME( ProjectUnits )
5567 };
5568 Q_ENUM( MapToolUnit )
5569
5570
5578 {
5579 Distance SIP_MONKEYPATCH_COMPAT_NAME( TypeDistance ) = 0,
5581 Volume SIP_MONKEYPATCH_COMPAT_NAME( TypeVolume ),
5582 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TypeUnknown ),
5583 Temporal SIP_MONKEYPATCH_COMPAT_NAME( TypeTemporal ),
5584 };
5585 Q_ENUM( UnitType )
5586
5587
5595 {
5596 Meters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMeters ),
5597 Kilometers SIP_MONKEYPATCH_COMPAT_NAME( DistanceKilometers ),
5598 Feet SIP_MONKEYPATCH_COMPAT_NAME( DistanceFeet ),
5599 NauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( DistanceNauticalMiles ),
5600 Yards SIP_MONKEYPATCH_COMPAT_NAME( DistanceYards ),
5601 Miles SIP_MONKEYPATCH_COMPAT_NAME( DistanceMiles ),
5602 Degrees SIP_MONKEYPATCH_COMPAT_NAME( DistanceDegrees ),
5603 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceCentimeters ),
5604 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMillimeters ),
5605 Inches,
5606 ChainsInternational,
5607 ChainsBritishBenoit1895A,
5608 ChainsBritishBenoit1895B,
5609 ChainsBritishSears1922Truncated,
5610 ChainsBritishSears1922,
5611 ChainsClarkes,
5612 ChainsUSSurvey,
5613 FeetBritish1865,
5614 FeetBritish1936,
5615 FeetBritishBenoit1895A,
5616 FeetBritishBenoit1895B,
5617 FeetBritishSears1922Truncated,
5618 FeetBritishSears1922,
5619 FeetClarkes,
5620 FeetGoldCoast,
5621 FeetIndian,
5622 FeetIndian1937,
5623 FeetIndian1962,
5624 FeetIndian1975,
5625 FeetUSSurvey,
5626 LinksInternational,
5627 LinksBritishBenoit1895A,
5628 LinksBritishBenoit1895B,
5629 LinksBritishSears1922Truncated,
5630 LinksBritishSears1922,
5631 LinksClarkes,
5632 LinksUSSurvey,
5633 YardsBritishBenoit1895A,
5634 YardsBritishBenoit1895B,
5635 YardsBritishSears1922Truncated,
5636 YardsBritishSears1922,
5637 YardsClarkes,
5638 YardsIndian,
5639 YardsIndian1937,
5640 YardsIndian1962,
5641 YardsIndian1975,
5642 MilesUSSurvey,
5643 Fathoms,
5644 MetersGermanLegal,
5645 Unknown SIP_MONKEYPATCH_COMPAT_NAME( DistanceUnknownUnit ),
5646 };
5647 Q_ENUM( DistanceUnit )
5648
5649
5657 {
5658 Standard,
5659 Geographic,
5660 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownType ),
5661 };
5662 Q_ENUM( DistanceUnitType )
5663
5664
5672 {
5673 SquareMeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMeters ),
5674 SquareKilometers SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareKilometers ),
5675 SquareFeet SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareFeet ),
5676 SquareYards SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareYards ),
5677 SquareMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMiles ),
5678 Hectares SIP_MONKEYPATCH_COMPAT_NAME( AreaHectares ),
5679 Acres SIP_MONKEYPATCH_COMPAT_NAME( AreaAcres ),
5680 SquareNauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareNauticalMiles ),
5681 SquareDegrees SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareDegrees ),
5682 SquareCentimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareCentimeters ),
5683 SquareMillimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMillimeters ),
5684 SquareInches,
5685 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AreaUnknownUnit ),
5686 };
5687 Q_ENUM( AreaUnit )
5688
5689
5697 {
5698 CubicMeters SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicMeters ),
5699 CubicFeet SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicFeet ),
5700 CubicYards SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicYards ),
5701 Barrel SIP_MONKEYPATCH_COMPAT_NAME( VolumeBarrel ),
5702 CubicDecimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDecimeter ),
5703 Liters SIP_MONKEYPATCH_COMPAT_NAME( VolumeLiters ),
5704 GallonUS SIP_MONKEYPATCH_COMPAT_NAME( VolumeGallonUS ),
5705 CubicInch SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicInch ),
5706 CubicCentimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicCentimeter ),
5707 CubicDegrees SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDegrees ),
5708 Unknown SIP_MONKEYPATCH_COMPAT_NAME( VolumeUnknownUnit ),
5709 };
5710 Q_ENUM( VolumeUnit )
5711
5712
5720 {
5721 Degrees SIP_MONKEYPATCH_COMPAT_NAME( AngleDegrees ),
5722 Radians SIP_MONKEYPATCH_COMPAT_NAME( AngleRadians ),
5724 MinutesOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleMinutesOfArc ),
5725 SecondsOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleSecondsOfArc ),
5727 MilliradiansSI SIP_MONKEYPATCH_COMPAT_NAME( AngleMilliradiansSI ),
5728 MilNATO SIP_MONKEYPATCH_COMPAT_NAME( AngleMilNATO ),
5729 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AngleUnknownUnit ),
5730 };
5731 Q_ENUM( AngleUnit )
5732
5733
5743 {
5744 MetersPerSecond = 0,
5745 KilometersPerHour,
5746 Knots,
5747 MilesPerHour,
5748 FeetPerSecond,
5749 OtherUnit
5750 };
5751 Q_ENUM( WindSpeedUnit )
5752
5753
5761 {
5762 Milliseconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalMilliseconds ),
5763 Seconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalSeconds ),
5764 Minutes SIP_MONKEYPATCH_COMPAT_NAME( TemporalMinutes ),
5765 Hours SIP_MONKEYPATCH_COMPAT_NAME( TemporalHours ),
5766 Days SIP_MONKEYPATCH_COMPAT_NAME( TemporalDays ),
5767 Weeks SIP_MONKEYPATCH_COMPAT_NAME( TemporalWeeks ),
5768 Months SIP_MONKEYPATCH_COMPAT_NAME( TemporalMonths ),
5769 Years SIP_MONKEYPATCH_COMPAT_NAME( TemporalYears ),
5770 Decades SIP_MONKEYPATCH_COMPAT_NAME( TemporalDecades ),
5771 Centuries SIP_MONKEYPATCH_COMPAT_NAME( TemporalCenturies ),
5772 IrregularStep SIP_MONKEYPATCH_COMPAT_NAME( TemporalIrregularStep ),
5773 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TemporalUnknownUnit )
5774 };
5775 Q_ENUM( TemporalUnit )
5776
5777
5785 {
5786 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( RenderMillimeters ),
5787 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMapUnits ),
5788 Pixels SIP_MONKEYPATCH_COMPAT_NAME( RenderPixels ),
5789 Percentage SIP_MONKEYPATCH_COMPAT_NAME( RenderPercentage ),
5790 Points SIP_MONKEYPATCH_COMPAT_NAME( RenderPoints ),
5791 Inches SIP_MONKEYPATCH_COMPAT_NAME( RenderInches ),
5792 Unknown SIP_MONKEYPATCH_COMPAT_NAME( RenderUnknownUnit ),
5793 MetersInMapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMetersInMapUnits ),
5794 };
5795 Q_ENUM( RenderUnit )
5796
5797
5805 {
5806 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMillimeters ),
5807 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutCentimeters ),
5808 Meters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMeters ),
5809 Inches SIP_MONKEYPATCH_COMPAT_NAME( LayoutInches ),
5810 Feet SIP_MONKEYPATCH_COMPAT_NAME( LayoutFeet ),
5811 Points SIP_MONKEYPATCH_COMPAT_NAME( LayoutPoints ),
5812 Picas SIP_MONKEYPATCH_COMPAT_NAME( LayoutPicas ),
5813 Pixels SIP_MONKEYPATCH_COMPAT_NAME( LayoutPixels )
5814 };
5815 Q_ENUM( LayoutUnit )
5816
5817
5825 {
5826 PaperUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutPaperUnits ),
5827 ScreenUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutScreenUnits )
5828 };
5829 Q_ENUM( LayoutUnitType )
5830
5831
5839 {
5840 Debug SIP_MONKEYPATCH_COMPAT_NAME( FlagDebug ) = 1 << 1,
5841 OutlineOnly SIP_MONKEYPATCH_COMPAT_NAME( FlagOutlineOnly ) = 1 << 2,
5842 Antialiasing SIP_MONKEYPATCH_COMPAT_NAME( FlagAntialiasing ) = 1 << 3,
5843 UseAdvancedEffects SIP_MONKEYPATCH_COMPAT_NAME( FlagUseAdvancedEffects ) = 1 << 4,
5844 ForceVectorOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagForceVectorOutput )
5845 = 1 << 5,
5846 HideCoverageLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagHideCoverageLayer ) = 1 << 6,
5847 DrawSelection SIP_MONKEYPATCH_COMPAT_NAME( FlagDrawSelection ) = 1 << 7,
5848 DisableTiledRasterLayerRenders SIP_MONKEYPATCH_COMPAT_NAME( FlagDisableTiledRasterLayerRenders )
5849 = 1 << 8,
5850 RenderLabelsByMapLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagRenderLabelsByMapLayer )
5851 = 1 << 9,
5852 LosslessImageRendering SIP_MONKEYPATCH_COMPAT_NAME( FlagLosslessImageRendering )
5853 = 1 << 10,
5854 SynchronousLegendGraphics SIP_MONKEYPATCH_COMPAT_NAME( FlagSynchronousLegendGraphics ) = 1 << 11,
5855 AlwaysUseGlobalMasks SIP_MONKEYPATCH_COMPAT_NAME( FlagAlwaysUseGlobalMasks )
5856 = 1 << 12,
5857 LimitCoverageLayerRenderToCurrentFeature = 1 << 13,
5858 };
5859 Q_ENUM( LayoutRenderFlag )
5860
5861
5869 Q_FLAG( LayoutRenderFlags )
5870
5879 {
5880 SVG SIP_MONKEYPATCH_COMPAT_NAME( FormatSVG ) = 0,
5881 Raster SIP_MONKEYPATCH_COMPAT_NAME( FormatRaster ),
5882 Unknown SIP_MONKEYPATCH_COMPAT_NAME( FormatUnknown ),
5883 };
5884 Q_ENUM( PictureFormat )
5885
5886
5891 enum class ScaleCalculationMethod : int
5892 {
5893 HorizontalTop = 0,
5894 HorizontalMiddle,
5895 HorizontalBottom,
5896 HorizontalAverage,
5897 AtEquator,
5898 };
5899 Q_ENUM( ScaleCalculationMethod )
5900
5901
5914 Q_ENUM( ScaleBarAlignment )
5915
5916
5924 {
5925 Fixed SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFixed ) = 0,
5926 FitWidth SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFitWidth ) = 1
5927 };
5928 Q_ENUM( ScaleBarSegmentSizeMode )
5929
5930
5938 {
5939 AboveSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelAboveSegment ) = 0,
5940 BelowSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelBelowSegment ),
5941 };
5942 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
5943
5944
5952 {
5953 CenteredEdge SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredEdge ) = 0,
5954 CenteredSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredSegment ),
5955 };
5956 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
5957
5958
5966 {
5967 BeforeBar = 1 << 1,
5968 AfterBar = 1 << 2,
5969 LeftAbove = 1 << 3,
5970 CenteredAbove = 1 << 4,
5971 RightAbove = 1 << 5,
5972 LeftBelow = 1 << 6,
5973 CenteredBelow = 1 << 7,
5974 RightBelow = 1 << 8,
5975 BeforeFirstDistanceLabel = 1 << 9,
5976 AfterLastDistanceLabel = 1 << 10,
5977 OnBarAfterFirstDivision = 1 << 11,
5978 BeforeEveryDistanceLabel = 1 << 12,
5979 AfterEveryDistanceLabel = 1 << 13,
5980 };
5981 Q_ENUM( ScaleBarUnitLabelPlacement )
5982
5983
5992
6001 {
6002 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( MapUnit ),
6005 DynamicPageSizeBased,
6006 };
6007 Q_ENUM( MapGridUnit )
6008
6009
6017 {
6018 Lines SIP_MONKEYPATCH_COMPAT_NAME( Solid ) = 0,
6019 LineCrosses SIP_MONKEYPATCH_COMPAT_NAME( Cross ),
6020 Markers,
6021 FrameAndAnnotationsOnly SIP_MONKEYPATCH_COMPAT_NAME( FrameAnnotationsOnly )
6022 };
6023 Q_ENUM( MapGridStyle )
6024
6025
6033 {
6034 ShowAll = 0,
6035 LatitudeOnly,
6036 LongitudeOnly,
6037 HideAll
6038 };
6039 Q_ENUM( MapGridComponentVisibility )
6040
6041
6049 {
6050 InsideMapFrame = 0,
6051 OutsideMapFrame,
6052 };
6053 Q_ENUM( MapGridAnnotationPosition )
6054
6055
6063 {
6064 Horizontal = 0,
6065 Vertical,
6066 VerticalDescending,
6067 BoundaryDirection,
6068 AboveTick,
6069 OnTick,
6070 UnderTick,
6071 };
6072 Q_ENUM( MapGridAnnotationDirection )
6073
6074
6082 {
6083 Decimal = 0,
6084 DegreeMinute,
6085 DegreeMinuteSecond,
6086 DecimalWithSuffix,
6087 DegreeMinuteNoSuffix,
6088 DegreeMinutePadded,
6089 DegreeMinuteSecondNoSuffix,
6090 DegreeMinuteSecondPadded,
6091 CustomFormat
6092 };
6093 Q_ENUM( MapGridAnnotationFormat )
6094
6095
6109 Q_ENUM( MapGridBorderSide )
6110
6111
6119 {
6120 NoFrame = 0,
6121 Zebra,
6122 InteriorTicks,
6123 ExteriorTicks,
6124 InteriorExteriorTicks,
6125 LineBorder,
6126 LineBorderNautical,
6127 ZebraNautical,
6128 };
6129 Q_ENUM( MapGridFrameStyle )
6130
6131
6139 {
6140 OrthogonalTicks = 0,
6141 NormalizedTicks,
6142 };
6143 Q_ENUM( MapGridTickLengthMode )
6144
6145
6146
6154 {
6155 Left SIP_MONKEYPATCH_COMPAT_NAME( FrameLeft ) = 0x01,
6156 Right SIP_MONKEYPATCH_COMPAT_NAME( FrameRight ) = 0x02,
6157 Top SIP_MONKEYPATCH_COMPAT_NAME( FrameTop ) = 0x04,
6158 Bottom SIP_MONKEYPATCH_COMPAT_NAME( FrameBottom ) = 0x08
6159 };
6160 Q_ENUM( MapGridFrameSideFlag )
6161
6162
6170 Q_FLAG( MapGridFrameSideFlags )
6171
6180 {
6181 Longitude = 0,
6182 Latitude
6183 };
6184 Q_ENUM( MapGridAnnotationType )
6185
6186
6192 {
6193 ManualRange = 0,
6194 FixedScale
6195 };
6196 Q_ENUM( ElevationProfileRangeMethod )
6197
6198
6203 enum class InputControllerType : int
6204 {
6205 Map2D,
6206 Map3D
6207 };
6209
6216 {
6217 NotSet,
6218 Unknown,
6219 OrdinaryTable,
6220 Index,
6221 Sequence,
6222 View,
6223 MaterializedView,
6224 CompositeType,
6225 ToastTable,
6226 ForeignTable,
6227 PartitionedTable,
6228 };
6229 Q_ENUM( PostgresRelKind )
6230
6231
6237 {
6238 SetFieldComment = 1 << 0,
6239 SetFieldAlias = 1 << 1,
6240 SetTableComment = 1 << 2,
6241 EditFieldDomain = 1 << 3,
6242 DeleteFieldDomain = 1 << 4,
6243 StyleStorage = 1 << 5,
6244 };
6245 Q_ENUM( DatabaseProviderConnectionCapability2 )
6248
6255 {
6256 SetGeometryColumnName = 1 << 0,
6257 SetPrimaryKeyName = 1 << 1,
6258 };
6259 Q_ENUM( DatabaseProviderTableImportCapability )
6262
6269 {
6270 SaveToDatabase = 1 << 1,
6271 LoadFromDatabase = 1 << 2,
6272 DeleteFromDatabase = 1 << 3
6273 };
6277
6278
6284 {
6285 LastProfile,
6286 DefaultProfile,
6287 AskUser,
6288 };
6289 Q_ENUM( UserProfileSelectionPolicy )
6290
6291
6299 {
6300 Container SIP_MONKEYPATCH_COMPAT_NAME( AeTypeContainer ),
6301 Field SIP_MONKEYPATCH_COMPAT_NAME( AeTypeField ),
6302 Relation SIP_MONKEYPATCH_COMPAT_NAME( AeTypeRelation ),
6303 QmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeQmlElement ),
6304 HtmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeHtmlElement ),
6305 Action SIP_MONKEYPATCH_COMPAT_NAME( AeTypeAction ),
6306 TextElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeTextElement ),
6307 SpacerElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeSpacerElement ),
6308 Invalid SIP_MONKEYPATCH_COMPAT_NAME( AeTypeInvalid ),
6309 };
6310 Q_ENUM( AttributeEditorType )
6311
6312
6318 {
6319 GroupBox,
6320 Tab,
6321 Row,
6322 };
6323 Q_ENUM( AttributeEditorContainerType )
6324
6325
6333 {
6334 AutoGenerated SIP_MONKEYPATCH_COMPAT_NAME( GeneratedLayout ) = 0,
6335 DragAndDrop SIP_MONKEYPATCH_COMPAT_NAME( TabLayout ) = 1,
6336 UiFile SIP_MONKEYPATCH_COMPAT_NAME( UiFileLayout ) = 2
6337 };
6338 Q_ENUM( AttributeFormLayout )
6339
6340
6348 {
6349 Default SIP_MONKEYPATCH_COMPAT_NAME( SuppressDefault ) = 0,
6350 On SIP_MONKEYPATCH_COMPAT_NAME( SuppressOn ) = 1,
6351 Off SIP_MONKEYPATCH_COMPAT_NAME( SuppressOff ) = 2
6352 };
6353 Q_ENUM( AttributeFormSuppression )
6354
6355
6363 {
6364 NoSource SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceNone ) = 0,
6365 File SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceFile ) = 1,
6366 Dialog SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceDialog ) = 2,
6367 Environment SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceEnvironment ) = 3
6368 };
6369 Q_ENUM( AttributeFormPythonInitCodeSource )
6370
6371
6377 {
6378 NotAllowed = 0,
6379 AllowedDefaultOn = 1,
6380 AllowedDefaultOff = 2,
6381 };
6382 Q_ENUM( AttributeFormReuseLastValuePolicy )
6383
6384
6390 {
6392 PointCloud,
6393 RasterCalculator,
6394 };
6395 Q_ENUM( ExpressionType )
6396
6397
6405 {
6406 NoSymbology = 0,
6407 PerFeature SIP_MONKEYPATCH_COMPAT_NAME( FeatureSymbology ),
6408 PerSymbolLayer SIP_MONKEYPATCH_COMPAT_NAME( SymbolLayerSymbology )
6409 };
6410 Q_ENUM( FeatureSymbologyExport )
6411
6412
6417 enum class VectorTileProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
6418 {
6419 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
6420 };
6421 Q_ENUM( VectorTileProviderFlag )
6422
6423
6429 Q_FLAG( VectorTileProviderFlags )
6430
6436 {
6437 ReadLayerMetadata = 1 << 1,
6438 };
6439 Q_ENUM( VectorTileProviderCapability )
6440
6441
6448
6455 {
6456 Available,
6457 NotAvailable,
6458 AvailableNoChildren,
6459 UseLowerZoomLevelTile,
6460 };
6461 Q_ENUM( TileAvailability )
6462
6463
6469 {
6470 ReadLayerMetadata = 1 << 1,
6471 };
6472 Q_ENUM( TiledSceneProviderCapability )
6473
6474
6481
6488 {
6489 Region,
6490 OrientedBox,
6491 Sphere,
6492 };
6493 Q_ENUM( TiledSceneBoundingVolumeType )
6494
6495
6504 {
6505 Replacement,
6506 Additive,
6507 };
6508 Q_ENUM( TileRefinementProcess )
6509
6510
6516 {
6517 NoChildren,
6518 Available,
6519 NeedFetching,
6520 };
6521 Q_ENUM( TileChildrenAvailability )
6522
6523
6528 enum class TiledSceneRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
6529 {
6530 NoHierarchyFetch = 1 << 0,
6531 };
6532 Q_ENUM( TiledSceneRequestFlag )
6533
6534
6540 Q_FLAG( TiledSceneRequestFlags )
6541
6547 enum class TiledSceneRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
6548 {
6549 RequiresTextures = 1 << 0,
6550 ForceRasterRender = 1 << 1,
6551 RendersTriangles = 1 << 2,
6552 RendersLines = 1 << 3,
6553 };
6554 Q_ENUM( TiledSceneRendererFlag )
6555
6556
6562 Q_FLAG( TiledSceneRendererFlags )
6563
6569 enum class GdalResampleAlgorithm : int
6570 {
6571 RA_NearestNeighbour = 0,
6572 RA_Bilinear = 1,
6573 RA_Cubic = 2,
6574 RA_CubicSpline = 3,
6575 RA_Lanczos = 4,
6576 RA_Average = 5,
6577 RA_Mode = 6,
6578 RA_Max = 8,
6579 RA_Min = 9,
6580 RA_Median = 10,
6581 RA_Q1 = 11,
6582 RA_Q3 = 12,
6583 };
6584 Q_ENUM( GdalResampleAlgorithm )
6585
6586
6591 enum class VsiHandlerType : int
6592 {
6593 Invalid,
6594 Archive,
6595 Network,
6596 Cloud,
6597 Memory,
6598 Other,
6599 };
6600 Q_ENUM( VsiHandlerType )
6601
6602 // TODO QGIS 5: make All include all values (we can't do this before 4.0, as we need to keep
6603 // compatibility with code which expects all these statistics to give numeric results)
6604
6605
6610 enum class ZonalStatistic : int SIP_ENUM_BASETYPE( IntFlag )
6611 {
6612 Count = 1 << 0,
6613 Sum = 1 << 1,
6614 Mean = 1 << 2,
6615 Median = 1 << 3,
6616 StDev = 1 << 4,
6617 Min = 1 << 5,
6618 Max = 1 << 6,
6619 Range = 1 << 7,
6620 Minority = 1 << 8,
6621 Majority = 1 << 9,
6622 Variety = 1 << 10,
6623 Variance = 1 << 11,
6624 MinimumPoint = 1 << 12,
6625 MaximumPoint = 1 << 13,
6626 // clang-format off
6627 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6628 // clang-format on
6629 AllNumeric = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6630 Default = Count | Sum | Mean,
6631 };
6632 Q_ENUM( ZonalStatistic )
6633
6634
6640 Q_FLAG( ZonalStatistics )
6641
6647 enum class ZonalStatisticResult : int
6648 {
6650 LayerTypeWrong = 1,
6651 LayerInvalid,
6652 RasterInvalid,
6653 RasterBandInvalid,
6654 FailedToCreateField = 8,
6655 Canceled = 9
6656 };
6657 Q_ENUM( ZonalStatisticResult )
6658
6659
6666 {
6667 Count,
6668 CountDistinct,
6669 CountMissing,
6670 Min,
6671 Max,
6672 Sum,
6673 Mean,
6674 Median,
6675 StDev,
6676 StDevSample,
6677 Range,
6678 Minority,
6679 Majority,
6680 FirstQuartile,
6681 ThirdQuartile,
6682 InterQuartileRange,
6683 StringMinimumLength,
6684 StringMaximumLength,
6685 StringConcatenate,
6686 GeometryCollect,
6687 ArrayAggregate,
6688 StringConcatenateUnique
6689 };
6690 Q_ENUM( Aggregate )
6691
6692
6698 {
6699 Count = 1 << 0,
6700 CountMissing = 1 << 15,
6701 Sum = 1 << 1,
6702 Mean = 1 << 2,
6703 Median = 1 << 3,
6704 StDev = 1 << 4,
6705 StDevSample = 1 << 5,
6706 Min = 1 << 6,
6707 Max = 1 << 7,
6708 Range = 1 << 8,
6709 Minority = 1 << 9,
6710 Majority = 1 << 10,
6711 Variety = 1 << 11,
6712 FirstQuartile = 1 << 12,
6713 ThirdQuartile = 1 << 13,
6714 InterQuartileRange = 1 << 14,
6715 First = 1 << 16,
6716 Last = 1 << 17,
6717 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
6718 };
6719 Q_ENUM( Statistic )
6720
6721
6727 Q_FLAG( Statistics )
6728
6735 {
6736 Count = 1,
6737 CountDistinct = 2,
6738 CountMissing = 4,
6739 Min = 8,
6740 Max = 16,
6741 Range = 32,
6742 All = Count | CountDistinct | CountMissing | Min | Max | Range,
6743 };
6744 Q_ENUM( DateTimeStatistic )
6745
6746
6752 Q_FLAG( DateTimeStatistics )
6753
6760 {
6761 Count = 1,
6762 CountDistinct = 2,
6763 CountMissing = 4,
6764 Min = 8,
6765 Max = 16,
6766 MinimumLength = 32,
6767 MaximumLength = 64,
6768 MeanLength = 128,
6769 Minority = 256,
6770 Majority = 512,
6771 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
6772 };
6773 Q_ENUM( StringStatistic )
6774
6775
6781 Q_FLAG( StringStatistics )
6782
6789 {
6790 NoStatistic = 0,
6791 Min = 1,
6792 Max = 1 << 1,
6793 Range = 1 << 2,
6794 Sum = 1 << 3,
6795 Mean = 1 << 4,
6796 StdDev = 1 << 5,
6797 SumOfSquares = 1 << 6,
6798 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
6799 };
6800 Q_ENUM( RasterBandStatistic )
6801
6802
6808 Q_FLAG( RasterBandStatistics )
6809
6816 {
6817 Points,
6818 StructureLines,
6819 BreakLines,
6820 };
6821 Q_ENUM( InterpolationSourceType )
6822
6823
6829 {
6830 Attribute,
6831 Z,
6832 M,
6833 };
6834 Q_ENUM( InterpolationValueSource )
6835
6836
6841 enum class SensorThingsVersion : int
6842 {
6843 Version1_1,
6844 Version2_0,
6845 };
6847
6853 enum class SensorThingsExtension : int SIP_ENUM_BASETYPE( IntFlag )
6854 {
6855 MultiDatastream = 1 << 0,
6856 SensingExtensionObservationsMeasurements = 1 << 1,
6857 SensingExtensionSampling = 1 << 2,
6858 SensingExtensionRelations = 1 << 3,
6859 };
6861
6868 Q_FLAG( SensorThingsExtensions )
6869
6870
6875 enum class SensorThingsEntity : int
6876 {
6877 Invalid,
6878 Thing,
6879 Location,
6880 HistoricalLocation,
6881 Datastream,
6882 Sensor,
6883 ObservedProperty,
6884 Observation,
6885 FeatureOfInterest,
6886 MultiDatastream,
6887 // version 2.0
6888 Feature,
6889 FeatureType,
6890 Deployment,
6891 ObservingProcedure,
6892 Sampling,
6893 SamplingProcedure,
6894 Sampler,
6895 PreparationStep,
6896 PreparationProcedure,
6897 ThingRelation,
6898 RelationRole,
6899 FeatureRelation,
6900 DatastreamRelation,
6901 ObservationRelation,
6902 };
6903 Q_ENUM( SensorThingsEntity )
6904
6905
6910 enum class ColorModel : int
6911 {
6912 Rgb,
6913 Cmyk,
6914 };
6915 Q_ENUM( ColorModel )
6916
6917
6922 enum class DocumentationApi : int
6923 {
6924 PyQgis,
6925 PyQgisSearch,
6926 CppQgis,
6927 Qt,
6928 };
6929 Q_ENUM( DocumentationApi )
6930
6931
6936 enum class DocumentationBrowser : int
6937 {
6938 DeveloperToolsPanel,
6939 SystemWebBrowser,
6940 };
6941 Q_ENUM( DocumentationBrowser )
6942
6943
6948 enum class MouseHandlesAction : int
6949 {
6950 MoveItem,
6951 ResizeUp,
6952 ResizeDown,
6953 ResizeLeft,
6954 ResizeRight,
6955 ResizeLeftUp,
6956 ResizeRightUp,
6957 ResizeLeftDown,
6958 ResizeRightDown,
6959 RotateTopLeft,
6960 RotateTopRight,
6961 RotateBottomLeft,
6962 RotateBottomRight,
6963 SelectItem,
6964 NoAction
6965 };
6966 Q_ENUM( MouseHandlesAction )
6967
6968
6972 enum class MeshRangeLimit : int
6973 {
6974 NotSet,
6975 MinimumMaximum,
6976 };
6977 Q_ENUM( MeshRangeLimit )
6978
6979
6984 enum class MeshRangeExtent : int
6985 {
6986 WholeMesh,
6987 FixedCanvas,
6988 UpdatedCanvas,
6989 };
6990 Q_ENUM( MeshRangeExtent )
6991
6992
6998 enum class PointCloudAccessType : int
6999 {
7000 Local,
7001 Remote
7002 };
7003 Q_ENUM( PointCloudAccessType )
7004
7005
7010 {
7011 RenderExtents,
7012 RenderOverview,
7013 RenderOverviewAndExtents
7014 };
7015 Q_ENUM( PointCloudZoomOutRenderBehavior )
7016
7017
7022 {
7023 Standard = 0,
7024 Adaptive,
7025 AreaError,
7026 ConstantDensity
7027 };
7028 Q_ENUM( SegmentCalculationMethod )
7029
7030
7034 enum class StacObjectType : int
7035 {
7036 Unknown,
7037 Catalog,
7038 Collection,
7039 Item,
7040 };
7041 Q_ENUM( StacObjectType )
7042
7043
7048 {
7049 WmsScale = 1 << 0,
7050 WmsDpi = 1 << 1,
7051 };
7052 Q_ENUM( RasterProcessingParameterCapability )
7053
7054
7060
7066 {
7067 Status = Qt::UserRole + 1,
7068 Id,
7069 ElapsedTime,
7070 MaximumTime,
7071 Sort,
7072 };
7073 Q_ENUM( DevToolsNodeRole )
7074
7075
7080 enum class ExtrusionFace : int SIP_ENUM_BASETYPE( IntFlag )
7081 {
7082 NoFace = 0,
7083 Walls = 1 << 0,
7084 Roof = 1 << 1,
7085 Floor = 1 << 2
7086 };
7087 Q_ENUM( ExtrusionFace )
7088
7089
7093 Q_DECLARE_FLAGS( ExtrusionFaces, ExtrusionFace )
7094 Q_FLAG( ExtrusionFaces )
7095
7100 enum class TriangulationAlgorithm : int SIP_ENUM_BASETYPE( IntFlag )
7101 {
7102 ConstrainedDelaunay = 0,
7103 Earcut = 1 << 0
7104 };
7105 Q_ENUM( TriangulationAlgorithm )
7106
7107
7118 enum class WmsGroupRequestMode : int
7119 {
7120 Normal,
7121 Opaque,
7122 };
7123 Q_ENUM( WmsGroupRequestMode )
7124
7125
7131 {
7132 RestorePreviousState,
7133 ForceDocked,
7134 ForceDialog,
7135 };
7136 Q_ENUM( DockableWidgetInitialState )
7137
7138
7144 {
7145 LongestBorder = 0,
7146 MaximumArea = 1,
7147 MinimumArea = 2,
7148 MinimumIndex = 3,
7149 };
7150 Q_ENUM( CoverageCleanOverlapMergeStrategy )
7151
7152
7157 enum class PdfRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
7158 {
7159 RenderTextAsText = 1 << 0,
7160 };
7161 Q_ENUM( PdfRenderFlag )
7162
7163
7168 Q_DECLARE_FLAGS( PdfRenderFlags, PdfRenderFlag )
7169 Q_FLAG( PdfRenderFlags )
7170
7171
7180 {
7181 AllValues = 0,
7182 MinValue = 1,
7183 MaxValue = 2,
7184 ReferenceValue = 3,
7185 };
7186 Q_ENUM( WmsDimensionDefaultDisplay )
7187
7188
7193 enum class RubberBandIconType : int
7194 {
7195 NoIcon,
7196 CrossPlus,
7197 CrossX,
7198 Box,
7199 Circle,
7200 BoxFilled,
7201 Diamond,
7202 DiamondFilled,
7203 SVG
7204 };
7205 Q_ENUM( RubberBandIconType )
7206
7207
7212 enum class RubberBandComponent : int SIP_ENUM_BASETYPE( IntFlag )
7213 {
7214 Symbol = 1 << 0,
7215 PreviewItems = 1 << 1,
7216 };
7217 Q_ENUM( RubberBandComponent )
7218
7219
7225 Q_FLAG( RubberBandComponents )
7226
7232 enum class UserInterfaceIconType : int
7233 {
7234 MainWindowToolbar,
7235 DockedToolbar,
7236 };
7237 Q_ENUM( UserInterfaceIconType )
7238
7239
7247 {
7248 MinMax = 0,
7249 Scaled,
7250 Fixed
7251 };
7252 Q_ENUM( VectorFieldArrowScalingMethod )
7253
7254
7262 {
7263 Arrows = 0,
7264 Streamlines,
7265 Traces,
7266 WindBarbs
7267 };
7268 Q_ENUM( VectorFieldSymbology )
7269
7270
7278 {
7279 Gridded SIP_MONKEYPATCH_COMPAT_NAME( MeshGridded ) = 0,
7280 Random
7281 };
7282 Q_ENUM( VectorFieldSeedingMethod )
7283
7284
7290 {
7291 CartesianComponents = 0,
7292 EncodedDirection,
7293 };
7294 Q_ENUM( RasterVectorFieldSourceMode )
7295
7296
7304 {
7305 Esri = 0,
7306 Grass,
7307 Saga,
7308 PcRaster,
7309 };
7310 Q_ENUM( RasterDirectionEncoding )
7311
7312
7317 enum class LinearMatrixMethod : int
7318 {
7319 Lu = 0,
7320 Svd = 1,
7321 LuWithSvdFallback = 2
7322 };
7323 Q_ENUM( LinearMatrixMethod )
7324
7325
7333 {
7334 ShowAll,
7335 ShowSelected,
7336 ShowVisible,
7337 ShowFilteredList,
7338 ShowEdited,
7339 ShowInvalid,
7340 };
7341 Q_ENUM( AttributeTableFilterMode )
7342
7343
7348 enum class PointCloudOutputsTypes : int
7349 {
7350 All,
7351 OnlyVPC,
7352 };
7353 Q_ENUM( PointCloudOutputsTypes )
7354
7355
7360 enum class SaveStyleFormat : int SIP_ENUM_BASETYPE( IntFlag )
7361 {
7362 QML = 1 << 0,
7363 SLD = 1 << 1,
7364 };
7365 Q_ENUM( SaveStyleFormat )
7367 Q_FLAG( SaveStyleFormats )
7368
7372 static const double DEFAULT_SEARCH_RADIUS_MM;
7373
7376
7382 static const QColor DEFAULT_HIGHLIGHT_COLOR;
7383
7387 static const double DEFAULT_HIGHLIGHT_BUFFER_MM;
7388
7393
7401 Q_DECL_DEPRECATED static const double SCALE_PRECISION;
7402
7407 static const double DEFAULT_Z_COORDINATE;
7408
7414 static const double DEFAULT_M_COORDINATE;
7415
7420 static const double UI_SCALE_FACTOR;
7421
7425 static const double DEFAULT_SNAP_TOLERANCE;
7426
7431
7435 static const int USER_CRS_START_ID;
7436
7438 static const double DEFAULT_POINT_SIZE;
7439
7441 static const double DEFAULT_LINE_WIDTH;
7442
7444 static const double DEFAULT_SEGMENT_EPSILON;
7445
7448
7451
7457 static QString defaultProjectScales();
7458
7464 static int geosVersionInt();
7465
7471 static int geosVersionMajor();
7472
7478 static int geosVersionMinor();
7479
7485 static int geosVersionPatch();
7486
7492 static QString geosVersion();
7493
7499 static bool hasSfcgal();
7500
7507 static int sfcgalVersionInt();
7508
7514 static bool hasGeographicLib();
7515
7522 static int geographicLibVersion();
7523
7529 Q_DECL_DEPRECATED static bool hasQtWebkit();
7530
7536 static QString geoNone() { return u"NONE"_s; }
7537
7543 static QString geographicCrsAuthId() { return u"EPSG:4326"_s; }
7544
7549 Q_DECL_DEPRECATED static QString geoWkt()
7550 {
7551 return QStringLiteral(
7552 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]] )"""
7553 );
7554 }
7555
7560 Q_DECL_DEPRECATED static QString geoProj4() { return u"+proj=longlat +datum=WGS84 +no_defs"_s; }
7561};
7562
7565
7668Q_DECLARE_METATYPE( QTimeZone )
7669
7670// hack to workaround warnings when casting void pointers
7671// retrieved from QLibrary::resolve to function pointers.
7672// It's assumed that this works on all systems supporting
7673// QLibrary
7674#define cast_to_fptr( f ) f
7675
7676
7684// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7685template<class Object> class QgsSignalBlocker SIP_SKIP SIP_SKIP // clazy:exclude=rule-of-three
7686{
7687 public:
7692 explicit QgsSignalBlocker( Object *object )
7693 : mObject( object )
7694 , mPreviousState( object->blockSignals( true ) )
7695 {}
7696
7697 ~QgsSignalBlocker() { mObject->blockSignals( mPreviousState ); }
7698
7700 Object *operator->() { return mObject; }
7701
7702 private:
7703 Object *mObject = nullptr;
7704 bool mPreviousState;
7705};
7706
7719// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7720template<class Object> inline QgsSignalBlocker<Object> whileBlocking( Object *object ) SIP_SKIP SIP_SKIP
7721{
7722 return QgsSignalBlocker<Object>( object );
7723}
7724
7726CORE_EXPORT size_t qHash( const QVariant &variant );
7727
7733inline QString qgsDoubleToString( double a, int precision = 17 )
7734{
7735 QString str;
7736 if ( precision )
7737 {
7738 if ( precision < 0 )
7739 {
7740 const double roundFactor = std::pow( 10, -precision );
7741 str = QString::number( static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
7742 }
7743 else
7744 {
7745 str = QString::number( a, 'f', precision );
7746 if ( str.contains( '.'_L1 ) )
7747 {
7748 // remove ending 0s
7749 int idx = str.length() - 1;
7750 while ( str.at( idx ) == '0' && idx > 1 )
7751 {
7752 idx--;
7753 }
7754 if ( idx < str.length() - 1 )
7755 str.truncate( str.at( idx ) == '.' ? idx : idx + 1 );
7756 }
7757 }
7758 }
7759 else
7760 {
7761 str = QString::number( a, 'f', precision );
7762 }
7763 // avoid printing -0
7764 // see https://bugreports.qt.io/browse/QTBUG-71439
7765 if ( str == "-0"_L1 )
7766 {
7767 return "0"_L1;
7768 }
7769 return str;
7770}
7771
7778inline bool qgsNanCompatibleEquals( double a, double b )
7779{
7780 if ( a == b )
7781 return true;
7782
7783 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7784 return true;
7785
7786 return false;
7787}
7788
7789#ifndef SIP_RUN
7790
7798template<typename T> inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
7799{
7800 static_assert( std::is_floating_point<T>::value, "qgsNumberNear requires floating-point types" );
7801
7802 if ( a == b )
7803 return true;
7804
7805 // if either 'a' or 'b' is NaN, 'diff' becomes NaN.
7806 // comparisons (>= or <=) against NaN evaluate to false, which will fallback
7807 // to the nan related logic at the end of this function
7808 const T diff = a - b;
7809 if ( diff >= -epsilon && diff <= epsilon )
7810 return true;
7811
7812 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7813 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7814 return true;
7815
7816 return false;
7817}
7818#endif
7819
7826inline bool qgsDoubleNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7827{
7828 return qgsNumberNear<double>( a, b, epsilon );
7829}
7830
7839inline bool qgsDoubleLessThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7840{
7841 // fast check first
7842 if ( a <= b )
7843 return true;
7844
7845 // => a > b
7846 // => a - b > 0
7847 // we only need to check the upper epsilon bound for the fuzzy equality
7848 if ( a - b <= epsilon )
7849 return true;
7850
7851 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7852 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7853 return true;
7854
7855 return false;
7856}
7857
7866inline bool qgsDoubleGreaterThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7867{
7868 // fast check first
7869 if ( a >= b )
7870 return true;
7871
7872 // => a < b
7873 // => b - a > 0
7874 // we only need to check the upper epsilon bound for the fuzzy equality
7875 if ( b - a <= epsilon )
7876 return true;
7877
7878 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7879 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7880 return true;
7881
7882 return false;
7883}
7884
7891inline bool qgsFloatNear( float a, float b, float epsilon = 4 * FLT_EPSILON )
7892{
7893 return qgsNumberNear<float>( a, b, epsilon );
7894}
7895
7897inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
7898{
7899 const bool aIsNan = std::isnan( a );
7900 const bool bIsNan = std::isnan( b );
7901 if ( aIsNan || bIsNan )
7902 return aIsNan && bIsNan;
7903
7904 // The most simple would be to print numbers as %.xe and compare as strings
7905 // but that is probably too costly
7906 // Then the fastest would be to set some bits directly, but little/big endian
7907 // has to be considered (maybe TODO)
7908 // Is there a better way?
7909 int aexp, bexp;
7910 const double ar = std::frexp( a, &aexp );
7911 const double br = std::frexp( b, &bexp );
7912
7913 return aexp == bexp && std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
7914}
7915
7920inline double qgsRound( double number, int places )
7921{
7922 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
7923 const double scaleFactor = std::pow( 10.0, places );
7924 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
7925}
7926
7927#ifndef SIP_RUN
7928
7935template<class Key, class Value> QString qgsMapJoinKeys( const QMap<Key, Value> &map, const QString &separator )
7936{
7937 QString result;
7938 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7939 result += QString( "%1%2" ).arg( it.key() ).arg( separator );
7940
7941 result.chop( separator.size() );
7942 return result;
7943}
7944
7951template<class Key, class Value> QString qgsMapJoinValues( const QMap<Key, Value> &map, const QString &separator )
7952{
7953 QString result;
7954 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7955 result += QString( "%1%2" ).arg( it.value() ).arg( separator );
7956
7957 result.chop( separator.size() );
7958 return result;
7959}
7960
7967template<class T> QString qgsSetJoin( const QSet<T> &set, const QString &separator )
7968{
7969 QString result;
7970 for ( auto it = set.constBegin(); it != set.constEnd(); it++ )
7971 result += QString( "%1%2" ).arg( *it ).arg( separator );
7972
7973 result.chop( separator.size() );
7974 return result;
7975}
7976
7978
7988namespace qgis
7989{
7990
8003 template<typename To, typename From> inline To down_cast( From *f )
8004 {
8005 static_assert( ( std::is_base_of<From, typename std::remove_pointer<To>::type>::value ), "target type not derived from source type" );
8006 Q_ASSERT( f == nullptr || dynamic_cast<To>( f ) != nullptr );
8007 return static_cast<To>( f );
8008 }
8009
8010 template<class T> QSet<T> listToSet( const QList<T> &list )
8011 {
8012 return QSet<T>( list.begin(), list.end() );
8013 }
8014
8015 template<class T> QList<T> setToList( const QSet<T> &set )
8016 {
8017 return QList<T>( set.begin(), set.end() );
8018 }
8019
8028 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_static_cast( std::unique_ptr<From> f )
8029 {
8030 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
8031 Q_ASSERT( !f || dynamic_cast<To *>( f.get() ) != nullptr );
8032 return std::unique_ptr<To>( static_cast<To *>( f.release() ) );
8033 }
8034
8042 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_dynamic_cast( std::unique_ptr<From> &&f )
8043 {
8044 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
8045 if ( To *casted = dynamic_cast<To *>( f.get() ) )
8046 {
8047 return std::unique_ptr< To >( dynamic_cast<To *>( f.release() ) );
8048 }
8049 else
8050 {
8051 //could not cast
8052 return nullptr;
8053 }
8054 }
8055
8056
8057} //namespace qgis
8058
8060#endif
8061
8066template<class T> const QList<T> qgsEnumList() SIP_SKIP
8067{
8068 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8069 Q_ASSERT( metaEnum.isValid() );
8070 QList<T> enumList;
8071 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
8072 {
8073 enumList.append( static_cast<T>( metaEnum.value( idx ) ) );
8074 }
8075 return enumList;
8076}
8077
8083template<class T> const QMap<T, QString> qgsEnumMap() SIP_SKIP
8084{
8085 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8086 Q_ASSERT( metaEnum.isValid() );
8087 QMap<T, QString> enumMap;
8088 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
8089 {
8090 enumMap.insert( static_cast<T>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
8091 }
8092 return enumMap;
8093}
8094
8100template<class T> QString qgsEnumValueToKey( const T &value, bool *returnOk = nullptr ) SIP_SKIP
8101{
8102 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8103 Q_ASSERT( metaEnum.isValid() );
8104 const char *key = metaEnum.valueToKey( static_cast<int>( value ) );
8105 if ( returnOk )
8106 {
8107 *returnOk = key ? true : false;
8108 }
8109 return QString::fromUtf8( key );
8110}
8111
8119template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
8120{
8121 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8122 Q_ASSERT( metaEnum.isValid() );
8123 bool ok = false;
8124 T v = static_cast<T>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
8125 if ( returnOk )
8126 {
8127 *returnOk = ok;
8128 }
8129 if ( ok )
8130 {
8131 return v;
8132 }
8133 else
8134 {
8135 // if conversion has failed, try with conversion from int value
8136 if ( tryValueAsKey )
8137 {
8138 bool canConvert = false;
8139 const int intValue = key.toInt( &canConvert );
8140 if ( canConvert && metaEnum.valueToKey( intValue ) )
8141 {
8142 if ( returnOk )
8143 {
8144 *returnOk = true;
8145 }
8146 return static_cast<T>( intValue );
8147 }
8148 }
8149 }
8150 return defaultValue;
8151}
8152
8158template<class T> QString qgsFlagValueToKeys( const T &value, bool *returnOk = nullptr ) SIP_SKIP
8159{
8160 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8161 Q_ASSERT( metaEnum.isValid() );
8162 int intValue = static_cast<int>( value );
8163 if ( intValue == 0 )
8164 {
8165 if ( returnOk )
8166 *returnOk = true;
8167 return u"0"_s;
8168 }
8169
8170 const QByteArray ba = metaEnum.valueToKeys( intValue );
8171 // check that the int value does correspond to a flag
8172 // see https://stackoverflow.com/a/68495949/1548052
8173 const int intValueCheck = metaEnum.keysToValue( ba );
8174 bool ok = intValue == intValueCheck;
8175 if ( returnOk )
8176 *returnOk = ok;
8177 return ok ? QString::fromUtf8( ba ) : QString();
8178}
8179
8187template<class T> T qgsFlagKeysToValue( const QString &keys, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
8188{
8189 if ( keys.isEmpty() )
8190 {
8191 if ( returnOk )
8192 {
8193 *returnOk = false;
8194 }
8195 return defaultValue;
8196 }
8197 else if ( keys == "0"_L1 )
8198 {
8199 if ( returnOk )
8200 {
8201 *returnOk = true;
8202 }
8203 return T();
8204 }
8205 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8206 Q_ASSERT( metaEnum.isValid() );
8207 bool ok = false;
8208 T v = static_cast<T>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
8209 if ( returnOk )
8210 {
8211 *returnOk = ok;
8212 }
8213 if ( ok )
8214 {
8215 return v;
8216 }
8217 else
8218 {
8219 // if conversion has failed, try with conversion from int value
8220 if ( tryValueAsKey )
8221 {
8222 bool canConvert = false;
8223 const int intValue = keys.toInt( &canConvert );
8224 if ( canConvert )
8225 {
8226 const QByteArray keyArray = metaEnum.valueToKeys( intValue );
8227 const int intValueCheck = metaEnum.keysToValue( keyArray );
8228 if ( !keyArray.isEmpty() && intValue == intValueCheck )
8229 {
8230 if ( returnOk )
8231 {
8232 *returnOk = true;
8233 }
8234 return T( intValue );
8235 }
8236 }
8237 }
8238 }
8239 return defaultValue;
8240}
8241
8242
8251CORE_EXPORT double qgsPermissiveToDouble( QString string, bool &ok );
8252
8261CORE_EXPORT int qgsPermissiveToInt( QString string, bool &ok );
8262
8272CORE_EXPORT qlonglong qgsPermissiveToLongLong( QString string, bool &ok );
8273
8293CORE_EXPORT int qgsVariantCompare( const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck = false );
8294
8305CORE_EXPORT bool qgsVariantLessThan( const QVariant &lhs, const QVariant &rhs );
8306
8315CORE_EXPORT bool qgsVariantEqual( const QVariant &lhs, const QVariant &rhs );
8316
8325CORE_EXPORT bool qgsVariantGreaterThan( const QVariant &lhs, const QVariant &rhs );
8326
8338inline bool operator>( const QVariant &v1, const QVariant &v2 )
8339{
8340 return qgsVariantCompare( v1, v2, true ) > 0;
8341}
8342
8354inline bool operator<( const QVariant &v1, const QVariant &v2 )
8355{
8356 return qgsVariantCompare( v1, v2, true ) < 0;
8357}
8358
8365Q_DECL_DEPRECATED CORE_EXPORT QString qgsVsiPrefix( const QString &path ) SIP_DEPRECATED;
8366
8372void CORE_EXPORT *qgsMalloc( size_t size ) SIP_SKIP;
8373
8378void CORE_EXPORT qgsFree( void *ptr ) SIP_SKIP;
8379
8380#ifndef SIP_RUN
8381
8383class ScopedIntIncrementor
8384{
8385 public:
8386 ScopedIntIncrementor( int *variable )
8387 : mVariable( variable )
8388 {
8389 ( *mVariable )++;
8390 }
8391
8392 ScopedIntIncrementor( const ScopedIntIncrementor &other ) = delete;
8393 ScopedIntIncrementor &operator=( const ScopedIntIncrementor &other ) = delete;
8394
8395 void release()
8396 {
8397 if ( mVariable )
8398 ( *mVariable )--;
8399
8400 mVariable = nullptr;
8401 }
8402
8403 ~ScopedIntIncrementor() { release(); }
8404
8405 private:
8406 int *mVariable = nullptr;
8407};
8409
8410#endif
8411
8417Q_DECL_DEPRECATED const long GEOSRID = 4326;
8418
8424Q_DECL_DEPRECATED const long GEOCRS_ID = 3452;
8425
8431Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID = 4326;
8432
8433typedef QMap<QString, QString> QgsStringMap SIP_SKIP;
8434
8443typedef unsigned long long qgssize;
8444
8445#ifndef SIP_RUN
8446#if ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) ) || defined( __clang__ )
8447
8448#define Q_NOWARN_DEPRECATED_PUSH _Pragma( "GCC diagnostic push" ) _Pragma( "GCC diagnostic ignored \"-Wdeprecated-declarations\"" );
8449#define Q_NOWARN_DEPRECATED_POP _Pragma( "GCC diagnostic pop" );
8450#define Q_NOWARN_UNREACHABLE_PUSH
8451#define Q_NOWARN_UNREACHABLE_POP
8452
8453#elif defined( _MSC_VER )
8454
8455#define Q_NOWARN_DEPRECATED_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4996 ) )
8456#define Q_NOWARN_DEPRECATED_POP __pragma( warning( pop ) )
8457#define Q_NOWARN_UNREACHABLE_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4702 ) )
8458#define Q_NOWARN_UNREACHABLE_POP __pragma( warning( pop ) )
8459#else
8460
8461#define Q_NOWARN_DEPRECATED_PUSH
8462#define Q_NOWARN_DEPRECATED_POP
8463#define Q_NOWARN_UNREACHABLE_PUSH
8464#define Q_NOWARN_UNREACHABLE_POP
8465
8466#endif
8467#endif
8468
8469#ifndef QGISEXTERN
8470#ifdef Q_OS_WIN
8471#define QGISEXTERN extern "C" __declspec( dllexport )
8472#else
8473#if defined( __GNUC__ ) || defined( __clang__ )
8474#define QGISEXTERN extern "C" __attribute__( ( visibility( "default" ) ) )
8475#else
8476#define QGISEXTERN extern "C"
8477#endif
8478#endif
8479#endif
8480#endif
8481
8482#ifndef SIP_RUN
8483#ifdef _MSC_VER
8484#define BUILTIN_UNREACHABLE __assume( false );
8485#elif defined( __GNUC__ ) && !defined( __clang__ )
8486// Workaround a GCC bug where a -Wreturn-type warning is emitted in constructs
8487// like:
8488// switch( mVariableThatCanOnlyBeXorY )
8489// {
8490// case X:
8491// return "foo";
8492// case Y:
8493// return "foo";
8494// }
8495// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951
8496#define BUILTIN_UNREACHABLE __builtin_unreachable();
8497#else
8498#define BUILTIN_UNREACHABLE
8499#endif
8500#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:6139
DistanceUnitType
Types of distance units.
Definition qgis.h:5657
PieChartLabelType
Pie chart label types.
Definition qgis.h:3611
GnssConstellation
GNSS constellation.
Definition qgis.h:2075
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:7333
ProfileGeneratorFlag
Flags that control the way the QgsAbstractProfileGenerator operate.
Definition qgis.h:4714
GeometryBackend
Geometry backend for QgsGeometry.
Definition qgis.h:2320
ProcessingSourceType
Processing data source types.
Definition qgis.h:3796
static const Qgis::MapToolUnit DEFAULT_SNAP_UNITS
Default snapping distance units.
Definition qgis.h:7430
GpsQualityIndicator
GPS signal quality indicator.
Definition qgis.h:2093
QFlags< MapGridFrameSideFlag > MapGridFrameSideFlags
Flags for controlling which side of the map a frame is drawn on.
Definition qgis.h:6169
DataItemProviderCapability
Capabilities for data item providers.
Definition qgis.h:1077
ProcessingFileParameterBehavior
Flags which dictate the behavior of QgsProcessingParameterFile.
Definition qgis.h:4078
RasterizedRenderingPolicy
Policies controlling when rasterisation of content during renders is permitted.
Definition qgis.h:2931
QFlags< MapLayerRendererFlag > MapLayerRendererFlags
Flags which control how map layer renderers behave.
Definition qgis.h:3040
ProjectReadFlag
Flags which control project read behavior.
Definition qgis.h:4798
QFlags< DatabaseProviderTableImportCapability > DatabaseProviderTableImportCapabilities
Definition qgis.h:6260
QFlags< BabelCommandFlag > BabelCommandFlags
Babel command flags.
Definition qgis.h:2188
CurvedLabelMode
Modes which determine how curved labels are generated and placed.
Definition qgis.h:1327
MapToolUnit
Type of unit of tolerance value from settings.
Definition qgis.h:5563
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
Definition qgis.h:3583
static const double DEFAULT_LINE_WIDTH
The default width (in millimeters) for line symbols.
Definition qgis.h:7441
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
Definition qgis.h:4153
QFlags< GpsInformationComponent > GpsInformationComponents
GPS information component.
Definition qgis.h:2155
ScaleBarDistanceLabelHorizontalPlacement
Scale bar distance label horizontal placement.
Definition qgis.h:5952
PointCloudSymbol
Rendering symbols for point cloud points.
Definition qgis.h:4742
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:7392
QFlags< PdfRenderFlag > PdfRenderFlags
PDF rendering flags.
Definition qgis.h:7168
static QString version()
Version string.
Definition qgis.cpp:682
GeometryValidityFlag
Geometry validity check flags.
Definition qgis.h:2242
QFlags< RasterProviderCapability > RasterProviderCapabilities
Raster data provider capabilities.
Definition qgis.h:5488
ExpressionType
Expression types.
Definition qgis.h:6390
MapLayerActionFlag
Map layer action flags.
Definition qgis.h:5218
ScaleBarDistanceLabelVerticalPlacement
Scale bar distance label vertical placement.
Definition qgis.h:5938
MapLayerProperty
Generic map layer properties.
Definition qgis.h:2479
VectorProviderCapability
Vector data provider capabilities.
Definition qgis.h:545
RasterProcessingParameterCapability
Capabilities of a raster layer processing parameter.
Definition qgis.h:7048
BufferSide
Side of line to buffer.
Definition qgis.h:2269
RasterResamplingStage
Stage at which raster resampling occurs.
Definition qgis.h:1640
WmsGroupRequestMode
Request mode of groups in a WMS context.
Definition qgis.h:7119
VectorFieldSeedingMethod
Method used to define start points that are used to draw streamlines.
Definition qgis.h:7278
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
Definition qgis.h:5207
VectorTileProviderCapability
Enumeration with capabilities that vector tile data providers might implement.
Definition qgis.h:6436
ProjectTrustStatus
Project trust status.
Definition qgis.h:496
MultiPartLabelingBehavior
Behavior modifier for labeling features with multi-part geometries.
Definition qgis.h:1366
AltitudeClamping
Altitude clamping.
Definition qgis.h:4272
static const int PREVIEW_JOB_DELAY_MS
Delay between the scheduling of 2 preview jobs.
Definition qgis.h:7447
VectorTileProviderFlag
Flags for vector tile data providers.
Definition qgis.h:6418
VectorFieldSymbology
Defines the symbology of vector field rendering.
Definition qgis.h:7262
VectorTemporalMode
Vector layer temporal feature modes.
Definition qgis.h:2802
SublayerFlag
Flags which reflect the properties of sublayers in a dataset.
Definition qgis.h:1579
QFlags< ProjectCapability > ProjectCapabilities
Flags which control project capabilities.
Definition qgis.h:4842
LabelLinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1416
QFlags< UriCleaningFlag > UriCleaningFlags
Flags for cleaning layer URIs.
Definition qgis.h:1539
CoordinateDisplayType
Formats for displaying coordinates.
Definition qgis.h:4979
ProcessingParameterTypeFlag
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:4026
QFlags< VectorRenderingSimplificationFlag > VectorRenderingSimplificationFlags
Simplification flags for vector feature rendering.
Definition qgis.h:3296
DashPatternSizeAdjustment
Dash pattern size adjustment options.
Definition qgis.h:3556
InterpolationSourceType
Interpolation source types.
Definition qgis.h:6816
static const double DEFAULT_Z_COORDINATE
Default Z coordinate value.
Definition qgis.h:7407
CoverageCleanOverlapMergeStrategy
Merge strategies for coverage cleaning operations.
Definition qgis.h:7144
GpsFixStatus
GPS fix status.
Definition qgis.h:2060
AnnotationItemNodeType
Annotation item node types.
Definition qgis.h:2729
static const char * QGIS_DEV_VERSION
The development version.
Definition qgis.h:89
VectorFileWriterCapability
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1175
QFlags< MapSettingsFlag > MapSettingsFlags
Map settings flags.
Definition qgis.h:2981
InterpolationValueSource
Source for interpolated values from features.
Definition qgis.h:6829
CrsIdentifierType
Available identifier string types for representing coordinate reference systems.
Definition qgis.h:2618
QFlags< RasterRendererFlag > RasterRendererFlags
Flags which control behavior of raster renderers.
Definition qgis.h:1683
AngularDirection
Angular directions.
Definition qgis.h:3697
DriveType
Drive types.
Definition qgis.h:1228
UnitType
Unit types.
Definition qgis.h:5578
ContentStatus
Status for fetched or stored content.
Definition qgis.h:2016
UserInterfaceIconType
Icon types for icons shown in the user interface.
Definition qgis.h:7233
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
Definition qgis.h:1978
SnappingType
SnappingTypeFlag defines on what object the snapping is performed.
Definition qgis.h:810
Map3DBackgroundType
Background types for 3D map view.
Definition qgis.h:4578
LayoutUnit
Layout measurement units.
Definition qgis.h:5805
Q_ENUM(GpsFixStatus)
RelationshipStrength
Relationship strength.
Definition qgis.h:4932
Q_ENUM(GnssConstellation)
PaintEffectFlag
Flags which control how paint effects behave.
Definition qgis.h:3049
MarkerLinePlacement
Defines how/where the symbols should be placed on a line.
Definition qgis.h:3394
QFlags< ProjectReadFlag > ProjectReadFlags
Project load flags.
Definition qgis.h:4820
LegendComponent
Component of legends which can be styled.
Definition qgis.h:5115
Point3DShape
3D point shape types.
Definition qgis.h:4458
GeometryOperationResult
Success or failure of a geometry operation.
Definition qgis.h:2213
QFlags< StringStatistic > StringStatistics
Statistics to be calculated for string values.
Definition qgis.h:6780
BrowserItemState
Browser item states.
Definition qgis.h:1020
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:6318
QFlags< TiledSceneProviderCapability > TiledSceneProviderCapabilities
Tiled scene data provider capabilities.
Definition qgis.h:6479
QFlags< SensorThingsExtension > SensorThingsExtensions
OGC SensorThings extensions.
Definition qgis.h:6867
FeatureRequestFilterType
Types of feature request filters.
Definition qgis.h:2422
MarkerClipMode
Marker clipping modes.
Definition qgis.h:3514
GpsNavigationStatus
GPS navigation status.
Definition qgis.h:2113
AnnotationItemFlag
Flags for annotation items.
Definition qgis.h:2686
AttributeFormReuseLastValuePolicy
Attribute form policy for reusing last entered values.
Definition qgis.h:6377
RenderSubcomponentProperty
Rendering subcomponent properties.
Definition qgis.h:3305
ProcessingTinInputLayerType
Defines the type of input layer for a Processing TIN input.
Definition qgis.h:4168
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
Definition qgis.h:2516
TextureFilterQuality
Texture filtering qualities.
Definition qgis.h:4536
Statistic
Available generic statistics.
Definition qgis.h:6698
TriangulationAlgorithm
Triangulation algorithms.
Definition qgis.h:7101
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
Definition qgis.h:830
SaveStyleFormat
Style save format.
Definition qgis.h:7361
AngleUnit
Units of angles.
Definition qgis.h:5720
ToneMappingMethod
Defines the method used to map High Dynamic Range (HDR) scene colors to the Standard Dynamic Range (S...
Definition qgis.h:4653
MapGridAnnotationPosition
Position for map grid annotations.
Definition qgis.h:6049
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:6348
QFlags< AuthConfigurationStorageCapability > AuthConfigurationStorageCapabilities
Authentication configuration storage capabilities.
Definition qgis.h:152
QFlags< LayerTreeFilterFlag > LayerTreeFilterFlags
Layer tree filter flags.
Definition qgis.h:5085
LayerTreeInsertionMethod
Layer tree insertion methods.
Definition qgis.h:5049
RasterProviderCapability
Raster data provider capabilities.
Definition qgis.h:5468
DatabaseProviderTableImportCapability
Represents capabilities of a database provider connection when importing table data.
Definition qgis.h:6255
LineClipMode
Line clipping modes.
Definition qgis.h:3528
static const double DEFAULT_SNAP_TOLERANCE
Default snapping distance tolerance.
Definition qgis.h:7425
VectorRenderingSimplificationFlag
Simplification flags for vector feature rendering.
Definition qgis.h:3281
QFlags< GeometryValidityFlag > GeometryValidityFlags
Geometry validity flags.
Definition qgis.h:2247
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:6592
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:7349
SettingsTreeNodeType
Type of tree node.
Definition qgis.h:715
TilePixelRatio
DpiMode enum.
Definition qgis.h:3637
DatabaseProviderConnectionCapability2
The Capability enum represents the extended operations supported by the connection.
Definition qgis.h:6237
QFlags< PaintEffectFlag > PaintEffectFlags
Flags which control how paint effects behave.
Definition qgis.h:3059
LabelOffsetType
Behavior modifier for label offset and distance, only applies in some label placement modes.
Definition qgis.h:1382
QFlags< ProfileGeneratorFlag > ProfileGeneratorFlags
Definition qgis.h:4720
QFlags< MapLayerLegendFlag > MapLayerLegendFlags
Map layer legend flags.
Definition qgis.h:5104
MapGridUnit
Units for map grid values.
Definition qgis.h:6001
LabelPrioritization
Label prioritization.
Definition qgis.h:1294
GradientColorSource
Gradient color sources.
Definition qgis.h:3443
FileFilterType
Type of file filters.
Definition qgis.h:1511
LabelPlacement
Placement modes which determine how label candidates are generated for a feature.
Definition qgis.h:1308
RasterLayerType
Raster layer types.
Definition qgis.h:5345
static const double DEFAULT_M_COORDINATE
Default M coordinate value.
Definition qgis.h:7414
QFlags< VectorLayerTypeFlag > VectorLayerTypeFlags
Vector layer type flags.
Definition qgis.h:460
ScaleBarAlignment
Scalebar alignment.
Definition qgis.h:5909
LegendLayerDoubleClickAction
Action performed when double-clicking a layer in the legend.
Definition qgis.h:5062
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:5384
ProcessingMode
Types of modes which Processing widgets can be created for.
Definition qgis.h:3937
VectorExportResult
Vector layer export result codes.
Definition qgis.h:1154
ShadowQuality
Shadow texture quality.
Definition qgis.h:4551
PdfRenderFlag
PDF rendering flags.
Definition qgis.h:7158
DistanceUnit
Units of distance.
Definition qgis.h:5595
ScaleBarUnitLabelPlacement
Available placement options for a scale bar's unit label.
Definition qgis.h:5966
RasterTemporalCapabilityFlag
Flags for raster layer temporal capabilities.
Definition qgis.h:2877
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:6973
GradientSpread
Gradient spread options, which control how gradients are rendered outside of their start and end poin...
Definition qgis.h:3487
LegendSyncMode
Legend synchronization mode.
Definition qgis.h:5133
QFlags< AnnotationItemGuiFlag > AnnotationItemGuiFlags
Annotation item GUI flags.
Definition qgis.h:2719
LabelPolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1441
RasterRangeLimit
Describes the limits used to compute raster ranges (min/max values).
Definition qgis.h:1715
ScaleMethod
Scale methods.
Definition qgis.h:685
QFlags< RasterProcessingParameterCapability > RasterProcessingParameterCapabilities
Raster layer processing parameter capabilities.
Definition qgis.h:7058
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:7290
VectorSimplificationAlgorithm
Simplification algorithms for vector features.
Definition qgis.h:3265
FilePathType
File path types.
Definition qgis.h:1847
CadConstraintType
Advanced digitizing constraint type.
Definition qgis.h:4364
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:6363
PointCountMethod
Methods which define the number of points randomly filling a polygon.
Definition qgis.h:3502
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:7387
MapCanvasFlag
Flags controlling behavior of map canvases.
Definition qgis.h:3723
LayerTreeFilterFlag
Layer tree filter flags.
Definition qgis.h:5075
TextAnchorPoint
Anchor point of label text.
Definition qgis.h:1496
ExtrusionFace
Extrusion face types for the QgsTessellator.
Definition qgis.h:7081
AttributeFormLayout
Available form types for layout of the attribute form editor.
Definition qgis.h:6333
FeatureRequestFlag
Flags for controlling feature requests.
Definition qgis.h:2393
Map3DDebugFlag
Flags that control debug options for 3D maps.
Definition qgis.h:4425
VertexType
Types of vertex.
Definition qgis.h:3330
ShaderInterpolationMethod
Color ramp shader interpolation methods.
Definition qgis.h:1595
JoinStyle3D
Join styles for 3D buffers.
Definition qgis.h:2307
DataProviderFlag
Generic data provider flags.
Definition qgis.h:2509
Q_ENUM(GpsNavigationStatus)
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
Definition qgis.h:6570
RasterResamplingMethod
Resampling method for raster provider-level resampling.
Definition qgis.h:1654
GeometryValidationEngine
Available engines for validating geometries.
Definition qgis.h:2256
static int geosVersionPatch()
GEOS Patch version number linked.
Definition qgis.cpp:766
TransactionMode
Transaction mode.
Definition qgis.h:4259
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:7382
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
Definition qgis.h:5497
static Q_DECL_DEPRECATED const double SCALE_PRECISION
Fudge factor used to compare two scales.
Definition qgis.h:7401
RasterDrawingStyle
Raster drawing styles.
Definition qgis.h:5361
GeosCreationFlag
Flags which control geos geometry creation behavior.
Definition qgis.h:2332
Q_ENUM(SensorThingsExtension)
static const int MAXIMUM_LAYER_PREVIEW_TIME_MS
Maximum rendering time for a layer of a preview job.
Definition qgis.h:7450
QFlags< RubberBandComponent > RubberBandComponents
Rubber band components.
Definition qgis.h:7224
MeshRangeExtent
Describes the extent used to compute mesh ranges (min/max values).
Definition qgis.h:6985
GpsInformationComponent
GPS information component.
Definition qgis.h:2127
Q_ENUM(PointCloudProfileType)
ViewSyncModeFlag
Synchronization of 2D map canvas and 3D view.
Definition qgis.h:3742
ProcessingProviderFlag
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3823
FileOperationFlag
File operation flags.
Definition qgis.h:2464
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
Definition qgis.h:1093
ProjectCapability
Flags which control project capabilities.
Definition qgis.h:4832
QFlags< BabelFormatCapability > BabelFormatCapabilities
Babel GPS format capabilities.
Definition qgis.h:2173
QFlags< SymbolLayerFlag > SymbolLayerFlags
Symbol layer flags.
Definition qgis.h:969
QFlags< RasterInterfaceCapability > RasterInterfaceCapabilities
Raster interface capabilities.
Definition qgis.h:5455
Q_ENUM(VectorProfileType)
AttributeActionType
Attribute action types.
Definition qgis.h:5242
TemporalNavigationMode
Temporal navigation modes.
Definition qgis.h:2756
ProcessingFieldParameterDataType
Processing field parameter data types.
Definition qgis.h:4106
AreaUnit
Units of area.
Definition qgis.h:5672
StringStatistic
Available string statistics.
Definition qgis.h:6760
SelectiveMaskSourceType
Selective masking source types.
Definition qgis.h:3319
FieldDomainMergePolicy
Merge policy for field domains.
Definition qgis.h:4213
ZonalStatistic
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:6611
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:6103
SqlKeywordCategory
SqlKeywordCategory enum represents the categories of the SQL keywords used by the SQL query editor.
Definition qgis.h:1210
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:7549
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:6154
GraduatedMethod
Methods for modifying symbols by range in a graduated symbol renderer.
Definition qgis.h:3571
QFlags< LabelLinePlacementFlag > LabelLinePlacementFlags
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1431
TiledSceneBoundingVolumeType
Tiled scene bounding volume types.
Definition qgis.h:6488
TextLayoutMode
Text layout modes.
Definition qgis.h:3153
PropertyType
Property types.
Definition qgis.h:743
QFlags< RenderContextFlag > RenderContextFlags
Render context flags.
Definition qgis.h:3018
LayerFilter
Filter for layers.
Definition qgis.h:225
Q_ENUM(ProviderStyleStorageCapability)
QFlags< SublayerFlag > SublayerFlags
Sublayer flags.
Definition qgis.h:1583
RasterRendererFlag
Flags which control behavior of raster renderers.
Definition qgis.h:1672
QFlags< ExtrusionFace > ExtrusionFaces
Tessellator extrusion face types.
Definition qgis.h:7093
static QString devVersion()
The development version.
Definition qgis.cpp:699
CrsType
Coordinate reference system types.
Definition qgis.h:2528
QFlags< GeosCreationFlag > GeosCreationFlags
Geos geometry creation behavior flags.
Definition qgis.h:2343
MapGridComponentVisibility
Visibility display settings for map grid annotations and frames.
Definition qgis.h:6033
SensorThingsEntity
OGC SensorThings API entity types.
Definition qgis.h:6876
MeshEditingErrorType
Type of error that can occur during mesh frame editing.
Definition qgis.h:1830
FieldDomainSplitPolicy
Split policy for field domains.
Definition qgis.h:4196
ArcGisRestServiceType
Available ArcGIS REST service types.
Definition qgis.h:4870
UriCleaningFlag
Flags for cleaning layer URIs.
Definition qgis.h:1528
RasterFileWriterResult
Raster file export results.
Definition qgis.h:1813
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
Definition qgis.h:2741
ProcessingPropertyAvailability
Property availability, used for QgsProcessingAlgorithm::VectorProperties in order to determine if pro...
Definition qgis.h:3908
GeoJsonProfile
GeoJson export Profile according to OGC Features and Geometries JSON - Part 1: Core https://docs....
Definition qgis.h:5161
MapRecenteringMode
Modes for recentering map canvases.
Definition qgis.h:3755
RasterRangeAccuracy
Describes the accuracy used to compute raster ranges (min/max values).
Definition qgis.h:1746
ActionType
Action types.
Definition qgis.h:5177
ActionStart
Enum to determine when an operation would begin.
Definition qgis.h:1245
PlaybackOperation
Media playback operations.
Definition qgis.h:2785
QFlags< SymbolLayerUserFlag > SymbolLayerUserFlags
Symbol layer user flags.
Definition qgis.h:992
QFlags< TextRendererFlag > TextRendererFlags
Definition qgis.h:3676
SensorThingsExtension
OGC SensorThings extensions.
Definition qgis.h:6854
QueryStorageBackend
Stored query storage backends.
Definition qgis.h:3782
ProviderStyleStorageCapability
The StorageCapability enum represents the style storage operations supported by the provider.
Definition qgis.h:6269
AvoidIntersectionsMode
Flags which control how intersections of pre-existing feature are handled when digitizing new feature...
Definition qgis.h:4769
MarkerShape
Marker shapes.
Definition qgis.h:3345
StacObjectType
Available types of stac objects.
Definition qgis.h:7035
LegendJsonRenderFlag
Legend JSON export flags.
Definition qgis.h:5148
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Definition qgis.h:5512
RasterElevationMode
Raster layer elevation modes.
Definition qgis.h:4311
Capitalization
String capitalization options.
Definition qgis.h:3654
TemporalIntervalMatchMethod
Method to use when resolving a temporal range to a data provider layer or band.
Definition qgis.h:2862
PictureFormat
Picture formats.
Definition qgis.h:5879
QFlags< LabelPolygonPlacementFlag > LabelPolygonPlacementFlags
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1453
static QString releaseName()
Release name.
Definition qgis.cpp:694
LabelQuadrantPosition
Label quadrant positions.
Definition qgis.h:1396
QFlags< PlotToolFlag > PlotToolFlags
Definition qgis.h:4414
ScaleToTileZoomLevelMethod
Available methods for converting map scales to tile zoom levels.
Definition qgis.h:3685
SublayerQueryFlag
Flags which control how data providers will scan for sublayers in a dataset.
Definition qgis.h:1561
QFlags< VectorFileWriterCapability > VectorFileWriterCapabilities
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1185
TextOrientation
Text orientations.
Definition qgis.h:3138
TemporalUnit
Temporal units.
Definition qgis.h:5761
QFlags< RasterRendererCapability > RasterRendererCapabilities
Raster renderer capabilities.
Definition qgis.h:1704
QFlags< SymbolPreviewFlag > SymbolPreviewFlags
Symbol preview flags.
Definition qgis.h:949
UnplacedLabelVisibility
Unplaced label visibility.
Definition qgis.h:1257
CrsDefinitionFormat
CRS definition formats.
Definition qgis.h:4181
SpatialFilterType
Feature request spatial filter types.
Definition qgis.h:2451
VerticalAnchorPoint
Marker symbol vertical anchor points.
Definition qgis.h:896
QFlags< LayoutRenderFlag > LayoutRenderFlags
Flags for controlling how a layout is rendered.
Definition qgis.h:5868
CoverageEdgeType
Coverage edge types.
Definition qgis.h:2365
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:4041
TileAvailability
Possible availability states for a tile within a tile matrix.
Definition qgis.h:6455
QFlags< SaveStyleFormat > SaveStyleFormats
Definition qgis.h:7366
ProjectFlag
Flags which control the behavior of QgsProjects.
Definition qgis.h:4393
MapGridStyle
Map grid drawing styles.
Definition qgis.h:6017
SensorThingsVersion
OGC SensorThings API versions.
Definition qgis.h:6842
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:7560
AcademicReferenceType
Type of academic reference.
Definition qgis.h:5273
BrowserItemType
Browser item types.
Definition qgis.h:1001
QFlags< FeatureRequestFlag > FeatureRequestFlags
Flags for controlling feature requests.
Definition qgis.h:2411
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:2845
RasterAttributeTableType
The RasterAttributeTableType enum represents the type of RAT.
Definition qgis.h:1787
RubberBandIconType
Rubber band icon type.
Definition qgis.h:7194
LabelingFlag
Various flags that affect drawing and placement of labels.
Definition qgis.h:3089
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:399
RelationshipType
Relationship types.
Definition qgis.h:4918
ScriptLanguageCapability
Script language capabilities.
Definition qgis.h:5028
RasterInterfaceCapability
Raster interface capabilities.
Definition qgis.h:5435
JoinStyle
Join styles for buffers.
Definition qgis.h:2294
PointCloudDrawOrder
Pointcloud rendering order for 2d views.
Definition qgis.h:4754
QFlags< RasterBandStatistic > RasterBandStatistics
Statistics to be calculated for raster bands.
Definition qgis.h:6807
CadMeasurementDisplayType
Advanced digitizing measurement display types.
Definition qgis.h:4380
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3884
ProcessingMenu
Standard menu groups for Processing tools.
Definition qgis.h:3950
TextCharacterVerticalAlignment
Text vertical alignment for characters.
Definition qgis.h:3229
FieldDuplicatePolicy
Duplicate policy for fields.
Definition qgis.h:4233
UserProfileSelectionPolicy
User profile selection policy.
Definition qgis.h:6284
static const float DEFAULT_MAPTOPIXEL_THRESHOLD
Default threshold between map coordinates and device coordinates for map2pixel simplification.
Definition qgis.h:7375
QFlags< FileOperationFlag > FileOperationFlags
File operation flags.
Definition qgis.h:2469
DpiMode
DpiMode enum.
Definition qgis.h:3623
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:3875
AltitudeBinding
Altitude binding.
Definition qgis.h:4285
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:6548
MaterialWidgetMode
Modes for material settings widgets.
Definition qgis.h:4498
MapLayerActionTarget
Map layer action targets.
Definition qgis.h:5192
ShaderClassificationMethod
Color ramp shader classification methods.
Definition qgis.h:1610
QFlags< ScaleBarUnitLabelPlacement > ScaleBarUnitLabelPlacements
Available placement options for a scale bar's unit label.
Definition qgis.h:5990
MapLayerLegendFlag
Map layer legend flags.
Definition qgis.h:5094
ZonalStatisticResult
Zonal statistics result codes.
Definition qgis.h:6648
ScriptLanguage
Scripting languages.
Definition qgis.h:5005
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:4665
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:3599
TiledSceneProviderCapability
Tiled scene data provider capabilities.
Definition qgis.h:6469
LabelMultiLineAlignment
Text alignment for multi-line labels.
Definition qgis.h:1479
PointCloudProfileType
Types of elevation profiles to generate for point cloud sources.
Definition qgis.h:4702
RasterBandStatistic
Available raster band statistics.
Definition qgis.h:6789
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
Definition qgis.h:6446
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:6639
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
Definition qgis.h:2832
TextRenderFormat
Options for rendering text.
Definition qgis.h:3070
DocumentationBrowser
Documentation API browser.
Definition qgis.h:6937
DataType
Raster data types.
Definition qgis.h:413
Q_ENUM(ProfileSurfaceSymbology)
QFlags< ViewSyncModeFlag > ViewSyncModeFlags
Definition qgis.h:3747
QFlags< SublayerQueryFlag > SublayerQueryFlags
Sublayer query flags.
Definition qgis.h:1569
SystemOfMeasurement
Systems of unit measurement.
Definition qgis.h:5548
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
Definition qgis.h:1758
VerticalAxisInversion
Vertical axis inversion options for 3D views.
Definition qgis.h:4631
QFlags< CoordinateTransformationFlag > CoordinateTransformationFlags
Coordinate transformation flags.
Definition qgis.h:2922
RelationshipCapability
Relationship capabilities.
Definition qgis.h:4958
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
Definition qgis.h:4591
RasterBuildPyramidOption
Raster pyramid building options.
Definition qgis.h:5399
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
Definition qgis.h:584
NavigationMode
The navigation mode used by 3D cameras.
Definition qgis.h:4606
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:3414
TileChildrenAvailability
Possible availability states for a tile's children.
Definition qgis.h:6516
WindSpeedUnit
Wind speed units.
Definition qgis.h:5743
RenderFormat
Rendering formats.
Definition qgis.h:2944
PointCloudZoomOutRenderBehavior
Point cloud zoom out options.
Definition qgis.h:7010
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:2692
FieldOrigin
Field origin.
Definition qgis.h:1875
BillboardScaleMode
3D billboard scaling modes.
Definition qgis.h:4524
LinearReferencingLabelSource
Defines what quantity to use for the labels shown in a linear referencing symbol layer.
Definition qgis.h:3428
QFlags< BrowserItemFilterFlag > BrowserItemFilterFlags
Browser item filter flags.
Definition qgis.h:1066
LabelWhitespaceCollisionHandling
Label whitespace collision handling.
Definition qgis.h:1282
RasterRangeExtent
Describes the extent used to compute raster ranges (min/max values).
Definition qgis.h:1731
QFlags< Statistic > Statistics
Statistics to be calculated for generic values.
Definition qgis.h:6726
PlotToolFlag
Flags that control the way the QgsPlotTools operate.
Definition qgis.h:4410
RenderUnit
Rendering size units.
Definition qgis.h:5785
QFlags< ArcGisRestServiceCapability > ArcGisRestServiceCapabilities
Available ArcGIS REST service capabilities.
Definition qgis.h:4907
static QString geographicCrsAuthId()
Geographic coordinate system auth:id string for a default geographic CRS (EPSG:4326).
Definition qgis.h:7543
CoordinateOrder
Order of coordinates.
Definition qgis.h:2603
SelectionFlag
Flags which control feature selection behavior.
Definition qgis.h:1968
QFlags< SettingsTreeNodeOption > SettingsTreeNodeOptions
Definition qgis.h:732
EndCapStyle
End cap styles for buffers.
Definition qgis.h:2281
ScaleCalculationMethod
Scale calculation logic.
Definition qgis.h:5892
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:6539
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:5231
QFlags< MapLayerProperty > MapLayerProperties
Map layer properties.
Definition qgis.h:2486
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:2184
QFlags< LabelingFlag > LabelingFlags
Flags that affect drawing and placement of labels.
Definition qgis.h:3113
QFlags< VerticalAxisInversion > VerticalAxisInversionFlags
Definition qgis.h:4643
FieldDomainType
Types of field domain.
Definition qgis.h:4246
MapLayerRendererFlag
Flags which control how map layer renderers behave.
Definition qgis.h:3028
RenderContextFlag
Flags which affect rendering operations.
Definition qgis.h:2991
RasterPipeInterfaceRole
Raster pipe interface roles.
Definition qgis.h:1623
CoverageValidityResult
Coverage validity results.
Definition qgis.h:2352
DataProviderReadFlag
Flags which control data provider construction.
Definition qgis.h:511
ScaleBarSegmentSizeMode
Modes for setting size for scale bar segments.
Definition qgis.h:5924
Aggregate
Available aggregates to calculate.
Definition qgis.h:6666
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:2659
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:7372
AnnotationItemGuiFlag
Flags for controlling how an annotation item behaves in the GUI.
Definition qgis.h:2715
MapBoxGlStyleSourceType
Available MapBox GL style source types.
Definition qgis.h:4851
LayoutUnitType
Types of layout units.
Definition qgis.h:5825
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:3541
FieldMetadataProperty
Standard field metadata values.
Definition qgis.h:1916
MapGridAnnotationType
Annotation coordinate type.
Definition qgis.h:6180
TiledSceneRequestFlag
Flags which control how tiled scene requests behave.
Definition qgis.h:6529
RasterRendererCapability
Raster renderer capabilities.
Definition qgis.h:1694
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
Definition qgis.h:2004
HistoryProviderBackend
History provider backends.
Definition qgis.h:3768
static const double DEFAULT_SEGMENT_EPSILON
Default snapping tolerance for segments.
Definition qgis.h:7444
RasterExportType
Raster file export types.
Definition qgis.h:1800
SublayerPromptMode
Specifies how to handle layer sources with multiple sublayers.
Definition qgis.h:1859
TextVerticalAlignment
Text vertical alignment.
Definition qgis.h:3213
RelationshipCardinality
Relationship cardinality.
Definition qgis.h:4944
GradientType
Gradient types.
Definition qgis.h:3457
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
Definition qgis.h:5040
VectorProfileType
Types of elevation profiles to generate for vector sources.
Definition qgis.h:4690
GpsFeatureType
GPS feature types.
Definition qgis.h:2198
SourceHierarchyLevel
Defines the structural levels within a data source hierarchy.
Definition qgis.h:1548
VectorLayerTypeFlag
Vector layer type flags.
Definition qgis.h:455
MakeValidMethod
Algorithms to use when repairing invalid geometries.
Definition qgis.h:2378
QFlags< Map3DDebugFlag > Map3DDebugFlags
Definition qgis.h:4435
RangeLimits
Describes how the limits of a range are handled.
Definition qgis.h:4297
QFlags< ProjectFlag > ProjectFlags
Definition qgis.h:4401
VectorTemporalLimitMode
Mode for the handling of the limits of the filtering timeframe for vector features.
Definition qgis.h:2820
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4067
SqlLayerDefinitionCapability
SqlLayerDefinitionCapability enum lists the arguments supported by the provider when creating SQL que...
Definition qgis.h:1193
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:1989
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:4444
Axis
Cartesian axes.
Definition qgis.h:2673
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3896
QFlags< RelationshipCapability > RelationshipCapabilities
Relationship capabilities.
Definition qgis.h:4970
ArcGisRestServiceCapability
Available ArcGIS REST service capabilities.
Definition qgis.h:4891
QFlags< SymbolRenderHint > SymbolRenderHints
Symbol render hints.
Definition qgis.h:838
VolumeUnit
Units of volume.
Definition qgis.h:5697
CurvedTextFlag
Flags controlling behavior of curved text generation.
Definition qgis.h:3242
AttributeEditorType
Attribute editor types.
Definition qgis.h:6299
QFlags< LegendJsonRenderFlag > LegendJsonRenderFlags
Definition qgis.h:5152
QFlags< ProviderStyleStorageCapability > ProviderStyleStorageCapabilities
Definition qgis.h:6275
RubberBandComponent
Rubber band components.
Definition qgis.h:7213
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:2438
QFlags< SymbolFlag > SymbolFlags
Symbol flags.
Definition qgis.h:935
QFlags< ProcessingFeatureSourceDefinitionFlag > ProcessingFeatureSourceDefinitionFlags
Flags which control behavior for a Processing feature source.
Definition qgis.h:3989
MapGridFrameStyle
Style for map grid frames.
Definition qgis.h:6119
PointCloudAccessType
The access type of the data, local is for local files and remote for remote files (over HTTP).
Definition qgis.h:6999
ProfileExportType
Types of export for elevation profiles.
Definition qgis.h:4729
MeshElevationMode
Mesh layer elevation modes.
Definition qgis.h:4325
ProjectFileFormat
Flags which control project read behavior.
Definition qgis.h:4784
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:5294
static const int USER_CRS_START_ID
Minimum ID number for a user-defined projection.
Definition qgis.h:7435
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
Definition qgis.h:4677
LabelPlacementEngineVersion
Labeling placement engine version.
Definition qgis.h:3124
Q_ENUM(ProcessingAlgorithmFlag)
static int geosVersionMinor()
GEOS Minor version number linked.
Definition qgis.cpp:761
MaterialRenderingTechnique
Material rendering techniques.
Definition qgis.h:4480
ColorModel
Color model types.
Definition qgis.h:6911
RendererUsage
Usage of the renderer.
Definition qgis.h:3710
SettingsTreeNodeOption
Options for named list nodes.
Definition qgis.h:727
BabelFormatCapability
Babel GPS format capabilities.
Definition qgis.h:2165
PostgresRelKind
Postgres database relkind options.
Definition qgis.h:6216
SegmentCalculationMethod
brief Method used to calculate the number of segments for circle approximation
Definition qgis.h:7022
WmsDimensionDefaultDisplay
QGIS Server WMS Dimension default display types.
Definition qgis.h:7180
GpsConnectionType
GPS connection types.
Definition qgis.h:2031
RasterDirectionEncoding
Schemes used to encode a compass direction as an integer raster value.
Definition qgis.h:7304
Q_ENUM(InputControllerType)
ElevationProfileRangeMethod
Elevation profile range calculation methods.
Definition qgis.h:6192
QFlags< DatabaseProviderConnectionCapability2 > DatabaseProviderConnectionCapabilities2
Definition qgis.h:6246
MouseHandlesAction
Action to be performed by the mouse handles.
Definition qgis.h:6949
ProcessingFeatureSourceDefinitionFlag
Flags which control behavior for a Processing feature source.
Definition qgis.h:3974
QFlags< TextComponent > TextComponents
Text components.
Definition qgis.h:3183
static QString geoNone()
Constant that holds the string representation for "No ellipse/No CRS".
Definition qgis.h:7536
DevToolsNodeRole
Dev tools node custom data roles.
Definition qgis.h:7066
LoadStyleFlag
Flags for loading layer styles.
Definition qgis.h:272
BetweenLineConstraint
Between line constraints which can be enabled.
Definition qgis.h:4338
QFlags< VectorTileProviderFlag > VectorTileProviderFlags
Vector tile data provider flags.
Definition qgis.h:6428
SymbolConverterCapability
Symbol converter capabilities.
Definition qgis.h:847
MetadataDateType
Date types for metadata.
Definition qgis.h:5260
QFlags< RasterTemporalCapabilityFlag > RasterTemporalCapabilityFlags
Flags for raster layer temporal capabilities.
Definition qgis.h:2888
ProcessingFeatureSourceFlag
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:4000
RasterIdentifyFormat
Raster identify formats.
Definition qgis.h:5414
MapGridAnnotationDirection
Direction of grid annotations.
Definition qgis.h:6063
TextHorizontalAlignment
Text horizontal alignment.
Definition qgis.h:3194
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:4351
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:3472
QFlags< ProcessingProviderFlag > ProcessingProviderFlags
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3837
TileRefinementProcess
Tiled scene tile refinement processes.
Definition qgis.h:6504
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
Definition qgis.h:6751
SelectionRenderingMode
Specifies how a selection should be rendered.
Definition qgis.h:1929
InputControllerType
Input controller types.
Definition qgis.h:6204
TextRendererFlag
Flags which control the behavior of rendering text.
Definition qgis.h:3672
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
Definition qgis.h:1956
CrsAxisDirection
Coordinate reference system axis directions.
Definition qgis.h:2553
ProcessingModelChildParameterSource
Processing model child parameter sources.
Definition qgis.h:4137
static int geosVersionInt()
GEOS version number linked.
Definition qgis.cpp:750
QFlags< MarkerLinePlacement > MarkerLinePlacements
Definition qgis.h:3405
QFlags< MapCanvasFlag > MapCanvasFlags
Flags controlling behavior of map canvases.
Definition qgis.h:3733
CrsWktVariant
Coordinate reference system WKT formatting variants.
Definition qgis.h:2633
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:6561
MapGridAnnotationFormat
Format for displaying map grid annotations.
Definition qgis.h:6082
DocumentationApi
Documentation API.
Definition qgis.h:6923
AutoRefreshMode
Map layer automatic refresh modes.
Definition qgis.h:2496
AnnotationPlacementMode
Annotation item placement modes.
Definition qgis.h:2702
ProcessingAlgorithmFlag
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3848
QFlags< InstancedMaterialFlag > InstancedMaterialFlags
Definition qgis.h:4515
SceneMode
The 3D scene mode used in 3D map views.
Definition qgis.h:4619
InstancedMaterialFlag
Optional per-instance properties of instanced materials.
Definition qgis.h:4510
FieldConfigurationFlag
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1892
SettingsOrigin
The setting origin describes where a setting is stored.
Definition qgis.h:4992
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:7247
QFlags< CurvedTextFlag > CurvedTextFlags
Flags controlling behavior of curved text generation.
Definition qgis.h:3255
ProcessingParameterFlag
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4052
LabelOverlapHandling
Label overlap handling.
Definition qgis.h:1269
static const double UI_SCALE_FACTOR
UI scaling factor.
Definition qgis.h:7420
FeatureSymbologyExport
Options for exporting features considering their symbology.
Definition qgis.h:6405
QFlags< LayerFilter > LayerFilters
Definition qgis.h:243
ProcessingDateTimeParameterDataType
Processing date time parameter data types.
Definition qgis.h:4124
DockableWidgetInitialState
Dockable widget initial states.
Definition qgis.h:7131
CoordinateTransformationFlag
Flags which adjust the coordinate transformations behave.
Definition qgis.h:2909
TextComponent
Text components.
Definition qgis.h:3170
DateTimeStatistic
Available date/time statistics.
Definition qgis.h:6735
AnimationState
Animation states.
Definition qgis.h:2772
TransformDirection
Indicates the direction (forward or inverse) of a transform.
Definition qgis.h:2897
LightSourceType
Light source types for 3D scenes.
Definition qgis.h:4566
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:4012
QFlags< HistoryProviderBackend > HistoryProviderBackends
Definition qgis.h:3773
LabelPredefinedPointPosition
Positions for labels when using the Qgis::LabelPlacement::OrderedPositionsAroundPoint placement mode.
Definition qgis.h:1343
QFlags< FieldConfigurationFlag > FieldConfigurationFlags
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1907
UpsideDownLabelHandling
Handling techniques for upside down labels.
Definition qgis.h:1464
LinearMatrixMethod
Mathematical methods to use for solving linear matrix equations.
Definition qgis.h:7318
static const double DEFAULT_POINT_SIZE
The default size (in millimeters) for point marker symbols.
Definition qgis.h:7438
DeviceConnectionStatus
GPS connection status.
Definition qgis.h:2045
ProcessingNumberParameterType
Processing numeric parameter data types.
Definition qgis.h:4092
MapSettingsFlag
Flags which adjust the way maps are rendered.
Definition qgis.h:2956
QFlags< SqlLayerDefinitionCapability > SqlLayerDefinitionCapabilities
SQL layer definition capabilities.
Definition qgis.h:1201
ProcessingLogLevel
Logging level for algorithms to use when pushing feedback messages.
Definition qgis.h:3922
SelectBehavior
Specifies how a selection should be applied.
Definition qgis.h:1942
LayoutRenderFlag
Flags for controlling how a layout is rendered.
Definition qgis.h:5839
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:7686
Object * operator->()
Returns pointer to blocked QObject.
Definition qgis.h:7700
QgsSignalBlocker(Object *object)
Constructor for QgsSignalBlocker.
Definition qgis.h:7692
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:8424
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:8338
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:8417
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:8119
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
Definition qgis.h:7733
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:7951
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
Definition qgis.h:8100
QString qgsFlagValueToKeys(const T &value, bool *returnOk=nullptr)
Returns the value for the given keys of a flag.
Definition qgis.h:8158
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:7935
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:8187
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:8443
const QMap< T, QString > qgsEnumMap()
Returns a map of all enum entries.
Definition qgis.h:8083
bool qgsFloatNear(float a, float b, float epsilon=4 *FLT_EPSILON)
Compare two floats (but allow some difference).
Definition qgis.h:7891
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:7967
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:8066
double qgsRound(double number, int places)
Returns a double number, rounded (as close as possible) to the specified number of places.
Definition qgis.h:7920
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference).
Definition qgis.h:7826
bool qgsNanCompatibleEquals(double a, double b)
Compare two doubles, treating nan values as equal.
Definition qgis.h:7778
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Definition qgis.h:7720
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:8433
Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system.
Definition qgis.h:8431
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
Compare two doubles using specified number of significant digits.
Definition qgis.h:7897
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:7798
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:7866
#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:7839
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:8354
#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