QGIS API Documentation 4.3.0-Master (45633be667c)
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
251 enum class LoadStyleFlag : int SIP_ENUM_BASETYPE( IntFlag )
252 {
253 IgnoreMissingStyleErrors
254 = 1 << 0,
255 };
256 Q_ENUM( LoadStyleFlag )
257
258
263 Q_DECLARE_FLAGS( LoadStyleFlags, LoadStyleFlag )
264 Q_FLAG( LoadStyleFlags )
265
294 {
295 Unknown = 0,
296 Point = 1,
297 LineString = 2,
298 Polygon = 3,
299 Triangle = 17,
300 MultiPoint = 4,
301 MultiLineString = 5,
302 MultiPolygon = 6,
303 GeometryCollection = 7,
304 CircularString = 8,
305 CompoundCurve = 9,
306 CurvePolygon = 10,
307 MultiCurve = 11,
308 MultiSurface = 12,
309 PolyhedralSurface = 15,
310 TIN = 16,
311 NurbsCurve = 21,
312 NoGeometry = 100,
313 PointZ = 1001,
314 LineStringZ = 1002,
315 PolygonZ = 1003,
316 TriangleZ = 1017,
317 MultiPointZ = 1004,
318 MultiLineStringZ = 1005,
319 MultiPolygonZ = 1006,
320 GeometryCollectionZ = 1007,
321 CircularStringZ = 1008,
322 CompoundCurveZ = 1009,
323 CurvePolygonZ = 1010,
324 MultiCurveZ = 1011,
325 MultiSurfaceZ = 1012,
326 PolyhedralSurfaceZ = 1015,
327 TINZ = 1016,
328 NurbsCurveZ = 1021,
329 PointM = 2001,
330 LineStringM = 2002,
331 PolygonM = 2003,
332 TriangleM = 2017,
333 MultiPointM = 2004,
334 MultiLineStringM = 2005,
335 MultiPolygonM = 2006,
336 GeometryCollectionM = 2007,
337 CircularStringM = 2008,
338 CompoundCurveM = 2009,
339 CurvePolygonM = 2010,
340 MultiCurveM = 2011,
341 MultiSurfaceM = 2012,
342 PolyhedralSurfaceM = 2015,
343 TINM = 2016,
344 NurbsCurveM = 2021,
345 PointZM = 3001,
346 LineStringZM = 3002,
347 PolygonZM = 3003,
348 MultiPointZM = 3004,
349 MultiLineStringZM = 3005,
350 MultiPolygonZM = 3006,
351 GeometryCollectionZM = 3007,
352 CircularStringZM = 3008,
353 CompoundCurveZM = 3009,
354 CurvePolygonZM = 3010,
355 MultiCurveZM = 3011,
356 MultiSurfaceZM = 3012,
357 PolyhedralSurfaceZM = 3015,
358 TINZM = 3016,
359 TriangleZM = 3017,
360 NurbsCurveZM = 3021,
361 Point25D = 0x80000001,
362 LineString25D,
363 Polygon25D,
364 MultiPoint25D,
365 MultiLineString25D,
366 MultiPolygon25D
367 };
368 Q_ENUM( WkbType )
369
370
379 {
380 Point SIP_MONKEYPATCH_COMPAT_NAME( PointGeometry ),
381 Line SIP_MONKEYPATCH_COMPAT_NAME( LineGeometry ),
382 Polygon SIP_MONKEYPATCH_COMPAT_NAME( PolygonGeometry ),
383 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownGeometry ),
384 Null SIP_MONKEYPATCH_COMPAT_NAME( NullGeometry ),
385 };
386 Q_ENUM( GeometryType )
387
388
393 {
394 UnknownDataType = 0,
395 Byte = 1,
396 Int8 = 14,
397 UInt16 = 2,
398 Int16 = 3,
399 UInt32 = 4,
400 Int32 = 5,
401 Float32 = 6,
402 Float64 = 7,
403 CInt16 = 8,
404 CInt32 = 9,
405 CFloat32 = 10,
406 CFloat64 = 11,
407 ARGB32 = 12,
408 ARGB32_Premultiplied = 13
409 };
410 Q_ENUM( DataType )
411
412
417 enum class CaptureTechnique : int
418 {
419 StraightSegments,
420 CircularString,
421 Streaming,
422 Shape,
423 PolyBezier,
424 NurbsCurve,
425 };
426 Q_ENUM( CaptureTechnique )
427
428
429
434 enum class VectorLayerTypeFlag : int SIP_ENUM_BASETYPE( IntFlag )
435 {
436 SqlQuery = 1 << 0
437 };
438 Q_ENUM( VectorLayerTypeFlag )
441 Q_FLAG( VectorLayerTypeFlags )
442
447 enum class EmbeddedScriptMode SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, PythonMacroMode ) : int
448 {
449 Never = 0,
450 Ask = 1,
451 SessionOnly = 2,
452 Always = 3,
453 NotForThisSession = 4,
454 NeverAsk = 5,
455 };
456 Q_ENUM( EmbeddedScriptMode )
457
458
462 enum class EmbeddedScriptType : int
463 {
464 Macro = 0,
465 ExpressionFunction = 1,
466 Action = 2,
467 FormInitCode = 3,
468 };
469 Q_ENUM( EmbeddedScriptType )
470
471
475 enum class ProjectTrustStatus : int
476 {
477 Undetermined = 0,
478 Trusted = 1,
479 Untrusted = 2,
480 };
481 Q_ENUM( ProjectTrustStatus )
482
483
491 {
492 TrustDataSource SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustDataSource )
493 = 1 << 0,
494 SkipFeatureCount = 1 << 1,
495 LoadDefaultStyle SIP_MONKEYPATCH_COMPAT_NAME( FlagLoadDefaultStyle ) = 1 << 2,
496 SkipGetExtent = 1 << 3,
497 SkipFullScan = 1 << 4,
498 ForceReadOnly = 1 << 5,
499 SkipCredentialsRequest
500 = 1 << 6,
501 ParallelThreadLoading = 1 << 7,
502 };
503 Q_ENUM( DataProviderReadFlag )
504
505
513 Q_FLAG( DataProviderReadFlags )
514
515 // TODO QGIS 5 -- remove NoCapabilities and rely on VectorProviderCapabilities() instead
516
525 {
526 NoCapabilities = 0,
527 AddFeatures = 1,
528 DeleteFeatures = 1 << 1,
529 ChangeAttributeValues = 1 << 2,
530 AddAttributes = 1 << 3,
531 DeleteAttributes = 1 << 4,
532 CreateSpatialIndex = 1 << 6,
533 SelectAtId = 1 << 7,
534 ChangeGeometries = 1 << 8,
535 SelectEncoding = 1 << 13,
536 CreateAttributeIndex = 1 << 12,
537 SimplifyGeometries = 1 << 14,
538 SimplifyGeometriesWithTopologicalValidation = 1 << 15,
539 TransactionSupport = 1 << 16,
540 CircularGeometries = 1 << 17,
541 ChangeFeatures = 1 << 18,
542 RenameAttributes = 1 << 19,
543 FastTruncate = 1 << 20,
544 ReadLayerMetadata = 1 << 21,
545 WriteLayerMetadata = 1 << 22,
546 CancelSupport = 1 << 23,
547 CreateRenderer = 1 << 24,
548 CreateLabeling = 1 << 25,
549 ReloadData = 1 << 26,
550 FeatureSymbology = 1 << 27,
551 CacheData = 1 << 28,
552 ReadFieldDomains = 1 << 29,
553 EditingCapabilities = AddFeatures | DeleteFeatures | ChangeAttributeValues | ChangeGeometries | AddAttributes | DeleteAttributes | RenameAttributes,
554 };
555 Q_ENUM( VectorProviderCapability )
556
557
566
573 {
574 Abort,
575 CreateOrOverwriteFile,
576 CreateOrOverwriteLayer,
577 };
578 Q_ENUM( CreateLayerActionOnExisting )
579
580
586 {
587 Uncounted = -2,
588 UnknownCount = -1,
589 };
590 Q_ENUM( FeatureCountState )
591
592
599 {
600 Unknown SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexUnknown ) = 0,
601 NotPresent SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexNotPresent ) = 1,
602 Present SIP_MONKEYPATCH_COMPAT_NAME( SpatialIndexPresent ) = 2,
603 };
604 Q_ENUM( SpatialIndexPresence )
605
606
618 {
619 NoFeaturesAvailable = 0,
620 FeaturesAvailable,
621 FeaturesMaybeAvailable
622 };
623 Q_ENUM( FeatureAvailability )
624
625
631 {
632 EditAlias = 1 << 0,
633 EditComment = 1 << 1,
634 };
635
636 Q_ENUM( VectorDataProviderAttributeEditCapability )
637
638
645
651 {
652 Marker,
653 Line,
654 Fill,
655 Hybrid
656 };
657 Q_ENUM( SymbolType )
658
659
665 {
666 ScaleArea,
667 ScaleDiameter
668 };
669 Q_ENUM( ScaleMethod )
670
671
676 {
677 Custom,
678 Variant,
679 String,
680 StringList,
681 VariantMap,
682 Bool,
683 Integer,
684 Double,
685 EnumFlag,
686 Color
687 };
688 Q_ENUM( SettingsType )
689
690
695 {
696 Root,
697 Standard,
698 NamedList,
699 };
700 Q_ENUM( SettingsTreeNodeType )
701
702
706 enum class SettingsTreeNodeOption : int SIP_ENUM_BASETYPE( IntFlag )
707 {
708 NamedListSelectedItemSetting = 1 << 0,
709 };
710
711 Q_ENUM( SettingsTreeNodeOption )
714
723 {
724 Invalid SIP_MONKEYPATCH_COMPAT_NAME( InvalidProperty ),
725 Static SIP_MONKEYPATCH_COMPAT_NAME( StaticProperty ),
726 Field SIP_MONKEYPATCH_COMPAT_NAME( FieldBasedProperty ),
727 Expression SIP_MONKEYPATCH_COMPAT_NAME( ExpressionBasedProperty ),
728 };
729 Q_ENUM( PropertyType )
730
731
736 enum class SldExportOption : int SIP_ENUM_BASETYPE( IntFlag )
737 {
738 NoOptions = 0,
739 Svg = 1 << 0,
740 Png = 1 << 1,
741 };
742 Q_ENUM( SldExportOption )
744 Q_FLAG( SldExportOptions )
745
751 enum class SldExportVendorExtension : int SIP_ENUM_BASETYPE( IntFlag )
752 {
753 NoVendorExtension = 0,
754 GeoServerVendorExtension = 1 << 1,
755 DeegreeVendorExtension = 1 << 2,
756 };
757 Q_ENUM( SldExportVendorExtension )
758
759
760
764 enum class SettingsOption : int SIP_ENUM_BASETYPE( IntFlag )
765 {
766 SaveFormerValue = 1 << 1,
767 SaveEnumFlagAsInt = 1 << 2,
768 };
769 Q_ENUM( SettingsOption )
770 Q_DECLARE_FLAGS( SettingsOptions, SettingsOption )
771 Q_FLAG( SettingsOptions )
772
778 {
779 ActiveLayer = 1,
780 AllLayers = 2,
781 AdvancedConfiguration = 3,
782 };
783 Q_ENUM( SnappingMode )
784
785
790 {
791 NoSnap SIP_MONKEYPATCH_COMPAT_NAME( NoSnapFlag ) = 0,
792 Vertex SIP_MONKEYPATCH_COMPAT_NAME( VertexFlag ) = 1 << 0,
793 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentFlag ) = 1 << 1,
794 Area SIP_MONKEYPATCH_COMPAT_NAME( AreaFlag ) = 1 << 2,
795 Centroid SIP_MONKEYPATCH_COMPAT_NAME( CentroidFlag ) = 1 << 3,
796 MiddleOfSegment SIP_MONKEYPATCH_COMPAT_NAME( MiddleOfSegmentFlag ) = 1 << 4,
797 LineEndpoint SIP_MONKEYPATCH_COMPAT_NAME( LineEndpointFlag ) = 1 << 5,
798 };
799 Q_ENUM( SnappingType )
802 Q_FLAG( SnappingTypes )
803
810 {
811 DynamicRotation = 1 << 1,
812 IsSymbolLayerSubSymbol = 1 << 2,
813 ForceVectorRendering = 1 << 3,
814 ExcludeSymbolBuffers = 1 << 4,
815 };
816 Q_ENUM( SymbolRenderHint )
819 Q_FLAG( SymbolRenderHints )
820
827 {
828 ReadSymbol = 1 << 0,
829 WriteSymbol = 1 << 1,
830 };
831
832 Q_ENUM( SymbolConverterCapability )
833
834
841
847 enum class SymbolRotationMode : int
848 {
849 RespectMapRotation,
850 IgnoreMapRotation,
851 };
852 Q_ENUM( SymbolRotationMode )
853
854
855
867 Q_ENUM( HorizontalAnchorPoint )
868
869
882 Q_ENUM( VerticalAnchorPoint )
883
884
889 enum class FeatureRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
890 {
891 AffectsLabeling = 1 << 0,
892 };
893 Q_ENUM( FeatureRendererFlag )
894
895
901 Q_FLAG( FeatureRendererFlags )
902
908 enum class SymbolFlag : int SIP_ENUM_BASETYPE( IntFlag )
909 {
910 RendererShouldUseSymbolLevels = 1 << 0,
911 AffectsLabeling = 1 << 1,
912 };
913 Q_ENUM( SymbolFlag )
915 Q_DECLARE_FLAGS( SymbolFlags, SymbolFlag )
916 Q_FLAG( SymbolFlags )
917
924 {
925 FlagIncludeCrosshairsForMarkerSymbols = 1 << 0,
926 };
927 Q_ENUM( SymbolPreviewFlag )
930 Q_FLAG( SymbolPreviewFlags )
931
941 enum class SymbolLayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
942 {
943 DisableFeatureClipping = 1 << 0,
944 CanCalculateMaskGeometryPerFeature = 1 << 1,
945 AffectsLabeling = 1 << 2,
946 };
947 Q_ENUM( SymbolLayerFlag )
950 Q_FLAG( SymbolLayerFlags )
951
961 enum class SymbolLayerUserFlag : int SIP_ENUM_BASETYPE( IntFlag )
962 {
963 DisableSelectionRecoloring = 1 << 0,
964 };
965 Q_ENUM( SymbolLayerUserFlag )
966
967
973 Q_FLAG( SymbolLayerUserFlags )
974
981 {
982 Collection,
983 Directory,
984 Layer,
985 Error,
986 Favorites,
987 Project,
988 Custom,
989 Fields,
990 Field,
991 };
992 Q_ENUM( BrowserItemType )
993
994
1000 {
1001 NotPopulated,
1002 Populating,
1003 Populated,
1004 };
1005 Q_ENUM( BrowserItemState )
1006
1007
1013 {
1014 NoCapabilities = 0,
1015 SetCrs = 1 << 0,
1016 Fertile = 1 << 1,
1017 Fast = 1 << 2,
1018 Collapse = 1 << 3,
1019 Rename = 1 << 4,
1020 Delete = 1 << 5,
1021 ItemRepresentsFile = 1 << 6,
1022 RefreshChildrenWhenItemIsRefreshed = 1 << 7,
1023 ReadOnly = 1 << 8,
1024 };
1025 Q_ENUM( BrowserItemCapability )
1028 Q_FLAG( BrowserItemCapabilities )
1029
1035 enum class BrowserItemFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
1036 {
1037 HideWhenNotFilteringByLayerType = 1 << 0,
1038 };
1039 Q_ENUM( BrowserItemFilterFlag )
1040
1041
1047 Q_FLAG( BrowserItemFilterFlags )
1048
1057 {
1058 NoCapabilities SIP_MONKEYPATCH_COMPAT_NAME( NoDataCapabilities ) = 0,
1060 Directories SIP_MONKEYPATCH_COMPAT_NAME( Dir ) = 1 << 1,
1061 Databases SIP_MONKEYPATCH_COMPAT_NAME( Database ) = 1 << 2,
1062 NetworkSources SIP_MONKEYPATCH_COMPAT_NAME( Net ) = 1 << 3,
1063 };
1064 Q_ENUM( DataItemProviderCapability )
1065
1066
1075
1082 {
1083 NoType,
1084 Vector,
1085 Raster,
1086 Point,
1087 Line,
1088 Polygon,
1089 TableLayer,
1090 Database,
1091 Table,
1092 Plugin,
1093 Mesh,
1094 VectorTile,
1095 PointCloud,
1096 TiledScene,
1097 };
1098 Q_ENUM( BrowserLayerType )
1099
1100
1106 {
1107 Default,
1108 NeverMonitor,
1109 AlwaysMonitor,
1110 };
1111 Q_ENUM( BrowserDirectoryMonitoring )
1112
1113
1117 enum class HttpMethod : int
1118 {
1119 Get = 0,
1120 Post = 1,
1121 Head,
1122 Put,
1123 Delete,
1124 };
1125 Q_ENUM( HttpMethod )
1126
1127
1133 {
1135 ErrorCreatingDataSource SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateDataSource ),
1136 ErrorCreatingLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrCreateLayer ),
1137 ErrorAttributeTypeUnsupported SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeTypeUnsupported ),
1138 ErrorAttributeCreationFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrAttributeCreationFailed ),
1139 ErrorProjectingFeatures SIP_MONKEYPATCH_COMPAT_NAME( ErrProjection ),
1140 ErrorFeatureWriteFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrFeatureWriteFailed ),
1141 ErrorInvalidLayer SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidLayer ),
1142 ErrorInvalidProvider SIP_MONKEYPATCH_COMPAT_NAME( ErrInvalidProvider ),
1143 ErrorProviderUnsupportedFeature SIP_MONKEYPATCH_COMPAT_NAME( ErrProviderUnsupportedFeature ),
1144 ErrorConnectionFailed SIP_MONKEYPATCH_COMPAT_NAME( ErrConnectionFailed ),
1145 UserCanceled SIP_MONKEYPATCH_COMPAT_NAME( ErrUserCanceled ),
1146 };
1147 Q_ENUM( VectorExportResult )
1148
1149
1154 {
1155 FieldAliases = 1 << 0,
1156 FieldComments = 1 << 2,
1157 };
1158 Q_ENUM( VectorFileWriterCapability )
1159
1160
1166
1172 {
1173 SubsetStringFilter = 1 << 1,
1174 GeometryColumn = 1 << 2,
1175 PrimaryKeys = 1 << 3,
1176 UnstableFeatureIds = 1 << 4
1177 };
1178 Q_ENUM( SqlLayerDefinitionCapability )
1182
1188 enum class SqlKeywordCategory : int
1189 {
1190 Keyword,
1191 Constant,
1192 Function,
1193 Geospatial,
1194 Operator,
1195 Math,
1197 String,
1198 Identifier
1199 };
1200 Q_ENUM( SqlKeywordCategory )
1201
1202
1206 enum class DriveType : int
1207 {
1208 Unknown,
1209 Invalid,
1210 Removable,
1211 Fixed,
1212 Remote,
1213 CdRom,
1214 RamDisk,
1215 Cloud,
1216 };
1217 Q_ENUM( DriveType )
1218
1219
1224 {
1225 Deferred SIP_MONKEYPATCH_COMPAT_NAME( DownloadLater ),
1226 Immediate SIP_MONKEYPATCH_COMPAT_NAME( DownloadImmediately ),
1227 };
1228 Q_ENUM( ActionStart )
1229
1230
1236 {
1237 FollowEngineSetting,
1238 NeverShow,
1239 };
1240 Q_ENUM( UnplacedLabelVisibility )
1241
1242
1247 enum class LabelOverlapHandling : int
1248 {
1249 PreventOverlap,
1250 AllowOverlapIfRequired,
1251 AllowOverlapAtNoCost,
1252 };
1253 Q_ENUM( LabelOverlapHandling )
1254
1255
1261 {
1262 TreatWhitespaceAsCollision,
1263 IgnoreWhitespaceCollisions,
1264 };
1265 Q_ENUM( LabelWhitespaceCollisionHandling )
1266
1267
1272 enum class LabelPrioritization : int
1273 {
1274 PreferCloser,
1275 PreferPositionOrdering,
1276 };
1277 Q_ENUM( LabelPrioritization )
1278
1279
1287 {
1288 AroundPoint,
1289 OverPoint,
1290 Line,
1291 Curved,
1292 Horizontal,
1293 Free,
1294 OrderedPositionsAroundPoint,
1295 PerimeterCurved,
1296 OutsidePolygons,
1297 };
1298 Q_ENUM( LabelPlacement )
1299
1300
1305 enum class CurvedLabelMode : int
1306 {
1307 Default,
1308 PlaceCharactersAtVertices,
1309 StretchCharacterSpacingToFitLine,
1310 StretchWordSpacingToFitLine,
1311 };
1312 Q_ENUM( CurvedLabelMode )
1313
1314
1322 {
1323 TopLeft,
1324 TopSlightlyLeft,
1325 TopMiddle,
1326 TopSlightlyRight,
1327 TopRight,
1328 MiddleLeft,
1329 MiddleRight,
1330 BottomLeft,
1331 BottomSlightlyLeft,
1332 BottomMiddle,
1333 BottomSlightlyRight,
1334 BottomRight,
1335 OverPoint,
1336 };
1337 Q_ENUM( LabelPredefinedPointPosition )
1338
1339
1345 {
1346 LabelLargestPartOnly,
1347 LabelEveryPartWithEntireLabel,
1348 SplitLabelTextLinesOverParts,
1349 };
1350 Q_ENUM( MultiPartLabelingBehavior )
1351
1352
1361 {
1362 FromPoint,
1363 FromSymbolBounds,
1364 };
1365 Q_ENUM( LabelOffsetType )
1366
1367
1375 {
1376 AboveLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveLeft ),
1377 Above SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAbove ),
1378 AboveRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantAboveRight ),
1380 Over SIP_MONKEYPATCH_COMPAT_NAME( QuadrantOver ),
1382 BelowLeft SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowLeft ),
1383 Below SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelow ),
1384 BelowRight SIP_MONKEYPATCH_COMPAT_NAME( QuadrantBelowRight ),
1385 };
1386 Q_ENUM( LabelQuadrantPosition )
1387
1388
1395 {
1396 OnLine = 1,
1397 AboveLine = 2,
1398 BelowLine = 4,
1399 MapOrientation = 8,
1400 };
1401 Q_ENUM( LabelLinePlacementFlag )
1402
1403
1411 Q_FLAG( LabelLinePlacementFlags )
1412
1420 {
1421 AllowPlacementOutsideOfPolygon = 1 << 0,
1422 AllowPlacementInsideOfPolygon = 1 << 1,
1423 };
1424 Q_ENUM( LabelPolygonPlacementFlag )
1425
1426
1434
1443 {
1444 FlipUpsideDownLabels SIP_MONKEYPATCH_COMPAT_NAME( Upright ),
1445 AllowUpsideDownWhenRotationIsDefined SIP_MONKEYPATCH_COMPAT_NAME( ShowDefined ),
1446 AlwaysAllowUpsideDown SIP_MONKEYPATCH_COMPAT_NAME( ShowAll )
1447 };
1448 Q_ENUM( UpsideDownLabelHandling )
1449
1450
1458 {
1460 Center SIP_MONKEYPATCH_COMPAT_NAME( MultiCenter ),
1462 FollowPlacement SIP_MONKEYPATCH_COMPAT_NAME( MultiFollowPlacement ),
1463 Justify SIP_MONKEYPATCH_COMPAT_NAME( MultiJustify ),
1464 };
1465 Q_ENUM( LabelMultiLineAlignment )
1466
1467
1475 {
1476 StartOfText,
1477 CenterOfText,
1478 EndOfText,
1479 FollowPlacement,
1480 };
1481 Q_ENUM( TextAnchorPoint )
1482
1483
1490 {
1491 Vector SIP_MONKEYPATCH_COMPAT_NAME( FilterVector ) = 1,
1492 Raster SIP_MONKEYPATCH_COMPAT_NAME( FilterRaster ),
1493 Mesh SIP_MONKEYPATCH_COMPAT_NAME( FilterMesh ),
1494 MeshDataset SIP_MONKEYPATCH_COMPAT_NAME( FilterMeshDataset ),
1495 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( FilterPointCloud ),
1496 VectorTile,
1497 TiledScene,
1498 };
1499 Q_ENUM( FileFilterType )
1500
1501
1506 enum class UriCleaningFlag : int SIP_ENUM_BASETYPE( IntFlag )
1507 {
1508 RemoveCredentials = 1 << 0,
1509 RedactCredentials = 1 << 1,
1510 };
1511 Q_ENUM( UriCleaningFlag )
1512
1513
1519 Q_FLAG( UriCleaningFlags )
1520
1526 enum class SourceHierarchyLevel : int
1527 {
1528 Connection,
1529 Group,
1530 Object,
1531 };
1532 Q_ENUM( SourceHierarchyLevel )
1533
1534
1539 enum class SublayerQueryFlag : int SIP_ENUM_BASETYPE( IntFlag )
1540 {
1541 FastScan = 1 << 0,
1542 ResolveGeometryType = 1 << 1,
1543 CountFeatures = 1 << 2,
1544 IncludeSystemTables = 1 << 3,
1545 OpenLayersToResolveDescriptions = 1 << 4,
1546 };
1547
1550 Q_FLAG( SublayerQueryFlags )
1551
1552
1557 enum class SublayerFlag : int SIP_ENUM_BASETYPE( IntFlag )
1558 {
1559 SystemTable = 1 << 0,
1560 };
1561
1562 Q_DECLARE_FLAGS( SublayerFlags, SublayerFlag )
1564 Q_FLAG( SublayerFlags )
1565
1566
1574 {
1575 Linear SIP_MONKEYPATCH_COMPAT_NAME( Interpolated ) = 0,
1576 Discrete = 1,
1577 Exact = 2,
1578 };
1579 Q_ENUM( ShaderInterpolationMethod )
1580
1581
1589 {
1590 Continuous = 1,
1591 EqualInterval = 2,
1592 Quantile = 3,
1593 };
1594 Q_ENUM( ShaderClassificationMethod )
1595
1596
1602 {
1603 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownRole ) = 0,
1604 Provider SIP_MONKEYPATCH_COMPAT_NAME( ProviderRole ) = 1,
1605 Renderer SIP_MONKEYPATCH_COMPAT_NAME( RendererRole ) = 2,
1606 Brightness SIP_MONKEYPATCH_COMPAT_NAME( BrightnessRole ) = 3,
1607 Resampler SIP_MONKEYPATCH_COMPAT_NAME( ResamplerRole ) = 4,
1608 Projector SIP_MONKEYPATCH_COMPAT_NAME( ProjectorRole ) = 5,
1609 Nuller SIP_MONKEYPATCH_COMPAT_NAME( NullerRole ) = 6,
1610 HueSaturation SIP_MONKEYPATCH_COMPAT_NAME( HueSaturationRole ) = 7,
1611 };
1612 Q_ENUM( RasterPipeInterfaceRole )
1613
1614
1619 {
1620 ResampleFilter,
1621 Provider,
1622 };
1623 Q_ENUM( RasterResamplingStage )
1624
1625
1633 {
1634 Nearest,
1635 Bilinear,
1636 Cubic,
1637 CubicSpline,
1638 Lanczos,
1639 Average,
1640 Mode,
1641 Gauss
1642 };
1643 Q_ENUM( RasterResamplingMethod )
1644
1645
1650 enum class RasterRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
1651 {
1652 InternalLayerOpacityHandling = 1 << 0,
1653 UseNoDataForOutOfRangePixels
1654 = 1 << 1,
1655 };
1656
1663
1665 Q_FLAG( RasterRendererFlags )
1666
1667
1673 {
1674 UsesMultipleBands = 1 << 0,
1675 };
1676 Q_ENUM( RasterRendererCapability )
1677
1678
1685
1694 {
1696 MinimumMaximum SIP_MONKEYPATCH_COMPAT_NAME( MinMax ),
1697 StdDev,
1698 CumulativeCut
1699 };
1700 Q_ENUM( RasterRangeLimit )
1701
1702
1710 {
1711 WholeRaster SIP_MONKEYPATCH_COMPAT_NAME( None_ ),
1712 FixedCanvas SIP_MONKEYPATCH_COMPAT_NAME( CurrentCanvas ),
1713 UpdatedCanvas,
1714 };
1715 Q_ENUM( RasterRangeExtent )
1716
1717
1725 {
1726 Exact,
1727 Estimated,
1728 };
1729 Q_ENUM( RasterRangeAccuracy )
1730
1731
1737 {
1738 Generic = 0,
1739 PixelCount = 1,
1740 Name = 2,
1741 Min = 3,
1742 Max = 4,
1743 MinMax = 5,
1744 Red = 6,
1745 Green = 7,
1746 Blue = 8,
1747 Alpha = 9,
1748 RedMin = 10,
1749 GreenMin = 11,
1750 BlueMin = 12,
1751 AlphaMin = 13,
1752 RedMax = 14,
1753 GreenMax = 15,
1754 BlueMax = 16,
1755 AlphaMax = 17,
1756 MaxCount
1757 };
1758 Q_ENUM( RasterAttributeTableFieldUsage )
1759
1760
1766 {
1767 Thematic = 0,
1768 Athematic = 1
1769 };
1770 Q_ENUM( RasterAttributeTableType )
1771
1772
1779 {
1780 Raw = 0,
1781 RenderedImage SIP_MONKEYPATCH_COMPAT_NAME( Image ) = 1
1782 };
1783 Q_ENUM( RasterExportType )
1784
1785
1792 {
1794 SourceProviderError = 1,
1795 DestinationProviderError SIP_MONKEYPATCH_COMPAT_NAME( DestProviderError ) = 2,
1796 CreateDatasourceError = 3,
1797 WriteError = 4,
1798 NoDataConflict = 5,
1799 Canceled SIP_MONKEYPATCH_COMPAT_NAME( WriteCanceled ) = 6,
1800 };
1801 Q_ENUM( RasterFileWriterResult )
1802
1803
1808 enum class MeshEditingErrorType : int
1809 {
1810 NoError,
1811 InvalidFace,
1812 TooManyVerticesInFace,
1813 FlatFace,
1814 UniqueSharedVertex,
1815 InvalidVertex,
1816 ManifoldFace,
1817 };
1818 Q_ENUM( MeshEditingErrorType )
1819
1820
1825 enum class FilePathType : int
1826 {
1827 Absolute,
1828 Relative,
1829 };
1830 Q_ENUM( FilePathType )
1831
1832
1837 enum class SublayerPromptMode : int
1838 {
1839 AlwaysAsk,
1840 AskExcludingRasterBands,
1841 NeverAskSkip,
1842 NeverAskLoadAll,
1843 };
1844 Q_ENUM( SublayerPromptMode )
1845
1846
1854 {
1855 Unknown SIP_MONKEYPATCH_COMPAT_NAME( OriginUnknown ),
1856 Provider SIP_MONKEYPATCH_COMPAT_NAME( OriginProvider ),
1857 Join SIP_MONKEYPATCH_COMPAT_NAME( OriginJoin ),
1858 Edit SIP_MONKEYPATCH_COMPAT_NAME( OriginEdit ),
1859 Expression SIP_MONKEYPATCH_COMPAT_NAME( OriginExpression )
1860 };
1861 Q_ENUM( FieldOrigin )
1862
1863
1870 enum class FieldConfigurationFlag : int SIP_ENUM_BASETYPE( IntFlag )
1871 {
1872 NoFlag = 0,
1873 NotSearchable = 1 << 1,
1874 HideFromWms = 1 << 2,
1875 HideFromWfs = 1 << 3,
1876 };
1877 Q_ENUM( FieldConfigurationFlag )
1878
1879
1887 Q_FLAG( FieldConfigurationFlags )
1888
1894 enum class FieldMetadataProperty : int
1895 {
1896 GeometryCrs = 0x1000,
1897 GeometryWkbType = 0x1001,
1898 CustomProperty = 0x100000,
1899 };
1900 Q_ENUM( FieldMetadataProperty )
1901
1902
1907 enum class SelectionRenderingMode : int
1908 {
1909 Default,
1910 CustomColor,
1911 CustomSymbol,
1912 };
1913 Q_ENUM( SelectionRenderingMode )
1914
1915
1921 {
1922 SetSelection,
1923 AddToSelection,
1924 IntersectSelection,
1925 RemoveFromSelection,
1926 };
1927 Q_ENUM( SelectBehavior )
1928
1929
1935 {
1936 Intersect,
1937 Within,
1938 };
1939 Q_ENUM( SelectGeometryRelationship )
1940
1941
1946 enum class SelectionFlag : int SIP_ENUM_BASETYPE( IntFlag )
1947 {
1948 SingleFeatureSelection = 1 << 0,
1949 ToggleSelection = 1 << 1,
1950 };
1951
1957 Q_DECLARE_FLAGS( SelectionFlags, SelectionFlag )
1958
1960 Q_FLAG( SelectionFlags )
1961
1962
1968 {
1970 EmptyGeometry = 1,
1971 EditFailed = 2,
1972 FetchFeatureFailed = 3,
1973 InvalidLayer = 4,
1974 };
1975 Q_ENUM( VectorEditResult )
1976
1977
1983 {
1984 SemiTransparentCircle,
1985 Cross,
1986 NoMarker,
1987 };
1988 Q_ENUM( VertexMarkerType )
1989
1990
1994 enum class ContentStatus : int
1995 {
1996 NotStarted,
1997 Running,
1998 Finished,
1999 Failed,
2000 Canceled,
2001 };
2002 Q_ENUM( ContentStatus )
2003
2004
2009 enum class GpsConnectionType : int
2010 {
2011 Automatic,
2012 Internal,
2013 Serial,
2014 Gpsd,
2015 };
2016 Q_ENUM( GpsConnectionType )
2017
2018
2023 enum class DeviceConnectionStatus SIP_MONKEYPATCH_SCOPEENUM_UNNEST( Qgis, GpsConnectionStatus ) : int
2024 {
2025 Disconnected,
2026 Connecting,
2027 Connected,
2028 };
2029 Q_ENUM( DeviceConnectionStatus )
2030
2031
2039 {
2040 NoData,
2041 NoFix,
2042 Fix2D,
2043 Fix3D
2044 };
2046
2047
2054 {
2055 Unknown,
2056 Gps,
2057 Glonass,
2058 Galileo,
2059 BeiDou,
2060 Qzss,
2061 Navic,
2062 Sbas,
2063 };
2065
2072 {
2073 Unknown = -1,
2074 Invalid,
2075 GPS,
2076 DGPS,
2077 PPS,
2078 RTK,
2079 FloatRTK,
2080 Estimated,
2081 Manual,
2082 Simulation,
2083 };
2084 Q_ENUM( GpsQualityIndicator )
2085
2086
2091 enum class GpsNavigationStatus : int
2092 {
2093 NotValid,
2094 Safe,
2095 Caution,
2096 Unsafe,
2097 };
2099
2105 enum class GpsInformationComponent : int SIP_ENUM_BASETYPE( IntFlag )
2106 {
2107 Location = 1 << 0,
2108 Altitude = 1 << 1,
2109 GroundSpeed = 1 << 2,
2110 Bearing = 1 << 3,
2111 TotalTrackLength = 1 << 4,
2112 TrackDistanceFromStart = 1 << 5,
2113 Pdop = 1 << 6,
2114 Hdop = 1 << 7,
2115 Vdop = 1 << 8,
2116 HorizontalAccuracy = 1 << 9,
2117 VerticalAccuracy = 1 << 10,
2118 HvAccuracy = 1 << 11,
2119 SatellitesUsed = 1 << 12,
2120 Timestamp = 1 << 13,
2121 TrackStartTime = 1 << 14,
2122 TrackEndTime = 1 << 15,
2123 TrackDistanceSinceLastPoint = 1 << 16,
2124 TrackTimeSinceLastPoint = 1 << 17,
2125 GeoidalSeparation = 1 << 18,
2126 EllipsoidAltitude = 1 << 19,
2127 };
2128
2136 Q_FLAG( GpsInformationComponents )
2137
2138
2143 enum class BabelFormatCapability : int SIP_ENUM_BASETYPE( IntFlag )
2144 {
2145 Import = 1 << 0,
2146 Export = 1 << 1,
2147 Waypoints = 1 << 2,
2148 Routes = 1 << 3,
2149 Tracks = 1 << 4,
2150 };
2151
2154 Q_FLAG( BabelFormatCapabilities )
2155
2156
2162 enum class BabelCommandFlag : int SIP_ENUM_BASETYPE( IntFlag )
2163 {
2164 QuoteFilePaths = 1 << 0,
2165 };
2166
2169 Q_FLAG( BabelCommandFlags )
2170
2171
2176 enum class GpsFeatureType : int
2177 {
2178 Waypoint,
2179 Route,
2180 Track,
2181 };
2182 Q_ENUM( GpsFeatureType )
2183
2184
2192 {
2194 NothingHappened = 1000,
2195 InvalidBaseGeometry,
2196 InvalidInputGeometryType,
2197 SelectionIsEmpty,
2198 SelectionIsGreaterThanOne,
2199 GeometryEngineError,
2200 LayerNotEditable,
2201 // Add part issues
2202 AddPartSelectedGeometryNotFound,
2203 AddPartNotMultiGeometry,
2204 // Add ring issues
2205 AddRingNotClosed,
2206 AddRingNotValid,
2207 AddRingCrossesExistingRings,
2208 AddRingNotInExistingFeature,
2209 // Split features
2210 SplitCannotSplitPoint,
2211 GeometryTypeHasChanged,
2212 };
2213 Q_ENUM( GeometryOperationResult )
2214
2215
2221 {
2222 AllowSelfTouchingHoles SIP_MONKEYPATCH_COMPAT_NAME( FlagAllowSelfTouchingHoles )
2223 = 1 << 0,
2224 };
2225
2228 Q_FLAG( GeometryValidityFlags )
2229
2230
2235 {
2236 QgisInternal SIP_MONKEYPATCH_COMPAT_NAME( ValidatorQgisInternal ),
2237 Geos SIP_MONKEYPATCH_COMPAT_NAME( ValidatorGeos ),
2238 Sfcgal,
2239 };
2240 Q_ENUM( GeometryValidationEngine )
2241
2242
2252 Q_ENUM( BufferSide )
2253
2254
2265 Q_ENUM( EndCapStyle )
2266
2267
2273 {
2274 Round SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleRound ) = 1,
2275 Miter SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleMiter ),
2276 Bevel SIP_MONKEYPATCH_COMPAT_NAME( JoinStyleBevel ),
2277 };
2278 Q_ENUM( JoinStyle )
2279
2280
2285 enum class JoinStyle3D : int
2286 {
2287 Round = 1,
2288 Flat,
2289 CylindersAndSpheres,
2290 };
2291 Q_ENUM( JoinStyle3D )
2292
2293
2298 enum class GeometryBackend : int
2299 {
2300 QGIS = 1,
2301 GEOS,
2302 };
2303 Q_ENUM( GeometryBackend )
2304
2305
2310 enum class GeosCreationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2311 {
2312 RejectOnInvalidSubGeometry = 1 << 0,
2313 SkipEmptyInteriorRings = 1 << 1,
2314 };
2315 Q_ENUM( GeosCreationFlag )
2316
2317
2323 Q_FLAG( GeosCreationFlags )
2324
2330 enum class CoverageValidityResult : int
2331 {
2332 Invalid = 0,
2333 Valid = 1,
2334 Error = 2,
2335 };
2336 Q_ENUM( CoverageValidityResult )
2337
2338
2343 enum class MakeValidMethod : int
2344 {
2345 Linework = 0,
2346 Structure = 1,
2347 };
2348 Q_ENUM( MakeValidMethod )
2349
2350
2358 {
2359 NoFlags = 0,
2360 NoGeometry = 1,
2361 SubsetOfAttributes = 2,
2362 ExactIntersect = 4,
2363 IgnoreStaticNodesDuringExpressionCompilation
2364 = 8,
2365 EmbeddedSymbols = 16,
2366 };
2367 Q_ENUM( FeatureRequestFlag )
2368
2369
2377 Q_FLAG( FeatureRequestFlags )
2378
2387 {
2388 NoFilter SIP_MONKEYPATCH_COMPAT_NAME( FilterNone ),
2390 Expression SIP_MONKEYPATCH_COMPAT_NAME( FilterExpression ),
2392 };
2393 Q_ENUM( FeatureRequestFilterType )
2394
2395
2403 {
2404 NoCheck SIP_MONKEYPATCH_COMPAT_NAME( GeometryNoCheck ) = 0,
2405 SkipInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometrySkipInvalid ) = 1,
2406 AbortOnInvalid SIP_MONKEYPATCH_COMPAT_NAME( GeometryAbortOnInvalid ) = 2,
2407 };
2408 Q_ENUM( InvalidGeometryCheck )
2409
2410
2415 enum class SpatialFilterType : int
2416 {
2417 NoFilter,
2418 BoundingBox,
2419 DistanceWithin,
2420 };
2421 Q_ENUM( SpatialFilterType )
2422
2423
2428 enum class FileOperationFlag : int SIP_ENUM_BASETYPE( IntFlag )
2429 {
2430 IncludeMetadataFile = 1 << 0,
2431 IncludeStyleFile = 1 << 1,
2432 };
2433
2436 Q_FLAG( FileOperationFlags )
2437
2438
2443 enum class MapLayerProperty : int SIP_ENUM_BASETYPE( IntFlag )
2444 {
2445 UsersCannotToggleEditing
2446 = 1 << 0,
2447 IsBasemapLayer = 1 << 1,
2448 Is3DBasemapLayer = 1 << 2,
2449 };
2450
2453 Q_FLAG( MapLayerProperties )
2454
2455
2460 enum class AutoRefreshMode : int
2461 {
2462 Disabled = 0,
2463 ReloadData = 1,
2464 RedrawOnly = 2,
2465 };
2466 Q_ENUM( AutoRefreshMode )
2467
2468
2473 enum class DataProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
2474 {
2475 IsBasemapSource = 1 << 1,
2476 FastExtent2D = 1 << 2,
2477 FastExtent3D = 1 << 3,
2478 Is3DBasemapSource = 1 << 4,
2479 };
2480
2483 Q_FLAG( DataProviderFlags )
2484
2485
2492 enum class CrsType : int
2493 {
2494 Unknown,
2495 Geodetic,
2496 Geocentric,
2497 Geographic2d,
2498 Geographic3d,
2499 Vertical,
2500 Projected,
2501 Compound,
2502 Temporal,
2503 Engineering,
2504 Bound,
2505 Other,
2506 DerivedProjected,
2507 };
2508 Q_ENUM( CrsType )
2509
2510
2517 enum class CrsAxisDirection : int
2518 {
2519 North,
2520 NorthNorthEast,
2521 NorthEast,
2522 EastNorthEast,
2523 East,
2524 EastSouthEast,
2525 SouthEast,
2526 SouthSouthEast,
2527 South,
2528 SouthSouthWest,
2529 SouthWest,
2530 WestSouthWest,
2531 West,
2532 WestNorthWest,
2533 NorthWest,
2534 NorthNorthWest,
2535 GeocentricX,
2536 GeocentricY,
2537 GeocentricZ,
2540 Forward,
2541 Aft,
2542 Port,
2543 Starboard,
2544 Clockwise,
2545 CounterClockwise,
2546 ColumnPositive,
2547 ColumnNegative,
2548 RowPositive,
2549 RowNegative,
2550 DisplayRight,
2551 DisplayLeft,
2552 DisplayUp,
2553 DisplayDown,
2554 Future,
2555 Past,
2556 Towards,
2557 AwayFrom,
2558 Unspecified,
2559 };
2560 Q_ENUM( CrsAxisDirection )
2561
2562
2567 enum class CoordinateOrder : int
2568 {
2569 Default,
2570 XY,
2571 YX,
2572 };
2573 Q_ENUM( CoordinateOrder )
2574
2575
2583 {
2584 ShortString,
2585 MediumString,
2586 FullString,
2587 };
2588 Q_ENUM( CrsIdentifierType )
2589
2590
2598 {
2600 WKT1_GDAL
2601 ),
2602 Wkt1Esri SIP_MONKEYPATCH_COMPAT_NAME( WKT1_ESRI ),
2603 Wkt2_2015 SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2015 ),
2604 Wkt2_2015Simplified SIP_MONKEYPATCH_COMPAT_NAME(
2605 WKT2_2015_SIMPLIFIED
2606 ),
2608 WKT2_2019
2609 ),
2610 Wkt2_2019Simplified SIP_MONKEYPATCH_COMPAT_NAME( WKT2_2019_SIMPLIFIED ),
2611 Preferred SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED ) = Wkt2_2019,
2612 PreferredSimplified SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_SIMPLIFIED )
2613 = Wkt2_2019Simplified,
2614 PreferredGdal SIP_MONKEYPATCH_COMPAT_NAME( WKT_PREFERRED_GDAL ) = Wkt2_2019,
2615 };
2616 Q_ENUM( CrsWktVariant )
2617
2618
2624 {
2625 NoAction = 0,
2626 PromptUserForCrs = 1,
2627 UseProjectCrs = 2,
2628 UseDefaultCrs = 3,
2629 };
2630 Q_ENUM( UnknownLayerCrsBehavior )
2631
2632
2637 enum class Axis : int
2638 {
2639 X,
2640 Y,
2642 };
2643 Q_ENUM( Axis )
2644
2645
2650 enum class AnnotationItemFlag : int SIP_ENUM_BASETYPE( IntFlag )
2651 {
2652 ScaleDependentBoundingBox = 1 << 0,
2653 SupportsReferenceScale = 1 << 1,
2654 SupportsCallouts = 1 << 2,
2655 };
2656
2659 Q_FLAG( AnnotationItemFlags )
2660
2661
2667 {
2668 SpatialBounds = 0,
2669 FixedSize,
2670 RelativeToMapFrame,
2671 };
2672 Q_ENUM( AnnotationPlacementMode )
2673
2674
2679 enum class AnnotationItemGuiFlag : int SIP_ENUM_BASETYPE( IntFlag )
2680 {
2681 FlagNoCreationTools = 1 << 0,
2682 };
2683
2686 Q_FLAG( AnnotationItemGuiFlags )
2687
2688
2693 enum class AnnotationItemNodeType : int
2694 {
2695 VertexHandle,
2696 CalloutHandle,
2697 };
2698 Q_ENUM( AnnotationItemNodeType )
2699
2700
2706 {
2708 Invalid,
2709 ItemCleared,
2710 };
2711 Q_ENUM( AnnotationItemEditOperationResult )
2712
2713
2721 {
2722 Disabled SIP_MONKEYPATCH_COMPAT_NAME( NavigationOff ),
2723 Animated,
2724 FixedRange,
2725 Movie,
2726 };
2727 Q_ENUM( TemporalNavigationMode )
2728
2729
2742 Q_ENUM( AnimationState )
2743
2744
2749 enum class PlaybackOperation : int
2750 {
2751 SkipToStart,
2752 PreviousFrame,
2753 PlayReverse,
2754 Pause,
2755 PlayForward,
2756 NextFrame,
2757 SkipToEnd,
2758 };
2759 Q_ENUM( PlaybackOperation )
2760
2761
2767 {
2768 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2769 FeatureDateTimeInstantFromField SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeInstantFromField ),
2770 FeatureDateTimeStartAndEndFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromFields ),
2771 FeatureDateTimeStartAndDurationFromFields SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndDurationFromFields ),
2772 FeatureDateTimeStartAndEndFromExpressions SIP_MONKEYPATCH_COMPAT_NAME( ModeFeatureDateTimeStartAndEndFromExpressions ),
2774 ModeRedrawLayerOnly
2775 ),
2776 };
2777 Q_ENUM( VectorTemporalMode )
2778
2779
2785 {
2786 IncludeBeginExcludeEnd = 0,
2787 IncludeBeginIncludeEnd,
2788 };
2789 Q_ENUM( VectorTemporalLimitMode )
2790
2791
2797 {
2798 HasFixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ProviderHasFixedTemporalRange ) = 0,
2799 StoresFeatureDateTimeInstantInField SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeInstantInField ),
2800 StoresFeatureDateTimeStartAndEndInSeparateFields SIP_MONKEYPATCH_COMPAT_NAME( ProviderStoresFeatureDateTimeStartAndEndInSeparateFields ),
2801 };
2802 Q_ENUM( VectorDataProviderTemporalMode )
2803
2804
2810 {
2811 FixedTemporalRange SIP_MONKEYPATCH_COMPAT_NAME( ModeFixedTemporalRange ) = 0,
2812 TemporalRangeFromDataProvider SIP_MONKEYPATCH_COMPAT_NAME( ModeTemporalRangeFromDataProvider ) = 1,
2813 RedrawLayerOnly SIP_MONKEYPATCH_COMPAT_NAME( ModeRedrawLayerOnly )
2814 = 2,
2815 FixedRangePerBand = 3,
2816 RepresentsTemporalValues = 4,
2817 FixedDateTime = 5,
2818 };
2819 Q_ENUM( RasterTemporalMode )
2820
2821
2827 {
2828 MatchUsingWholeRange,
2829 MatchExactUsingStartOfRange,
2830 MatchExactUsingEndOfRange,
2831 FindClosestMatchToStartOfRange,
2832 FindClosestMatchToEndOfRange
2833 };
2834 Q_ENUM( TemporalIntervalMatchMethod )
2835
2836
2842 {
2843 RequestedTimesMustExactlyMatchAllAvailableTemporalRanges
2844 = 1 << 0,
2845 };
2846 Q_ENUM( RasterTemporalCapabilityFlag )
2847
2848
2855
2866 Q_ENUM( TransformDirection )
2867
2868
2874 {
2875 BallparkTransformsAreAppropriate
2876 = 1 << 0,
2877 IgnoreImpossibleTransformations
2878 = 1 << 1,
2879 };
2880 Q_ENUM( CoordinateTransformationFlag )
2881
2882
2889
2896 {
2897 Default,
2898 PreferVector,
2899 ForceVector,
2900 };
2901 Q_ENUM( RasterizedRenderingPolicy )
2902
2903
2909 {
2910 Antialiasing = 0x01,
2911 DrawEditingInfo = 0x02,
2912 ForceVectorOutput = 0x04,
2913 UseAdvancedEffects = 0x08,
2914 DrawLabeling = 0x10,
2915 UseRenderingOptimization = 0x20,
2916 DrawSelection = 0x40,
2917 DrawSymbolBounds = 0x80,
2918 RenderMapTile = 0x100,
2919 RenderPartialOutput = 0x200,
2920 RenderPreviewJob = 0x400,
2921 RenderBlocking = 0x800,
2922 LosslessImageRendering
2923 = 0x1000,
2924 Render3DMap = 0x2000,
2925 HighQualityImageTransforms = 0x4000,
2926 SkipSymbolRendering = 0x8000,
2927 ForceRasterMasks = 0x10000,
2928 RecordProfile = 0x20000,
2929 AlwaysUseGlobalMasks
2930 = 0x40000,
2931 DrawLabelSelection = 0x80000
2932 };
2933
2936 Q_FLAG( MapSettingsFlags )
2937
2938
2944 {
2945 DrawEditingInfo = 0x01,
2946 ForceVectorOutput = 0x02,
2947 UseAdvancedEffects = 0x04,
2948 UseRenderingOptimization = 0x08,
2949 DrawSelection = 0x10,
2950 DrawSymbolBounds = 0x20,
2951 RenderMapTile = 0x40,
2952 Antialiasing = 0x80,
2953 RenderPartialOutput = 0x100,
2954 RenderPreviewJob = 0x200,
2955 RenderBlocking = 0x400,
2956 RenderSymbolPreview = 0x800,
2957 LosslessImageRendering = 0x1000,
2958 ApplyScalingWorkaroundForTextRendering = 0x2000,
2959 Render3DMap = 0x4000,
2960 ApplyClipAfterReprojection = 0x8000,
2961 RenderingSubSymbol = 0x10000,
2962 HighQualityImageTransforms = 0x20000,
2963 SkipSymbolRendering = 0x40000,
2964 RecordProfile = 0x80000,
2965 AlwaysUseGlobalMasks = 0x100000,
2966 DisableSymbolClippingToExtent = 0x200000,
2967 RenderLayerTree = 0x400000,
2968 DrawLabelSelection = 0x800000
2969 };
2970
2973 Q_FLAG( RenderContextFlags )
2974
2975
2980 enum class MapLayerRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
2981 {
2982 RenderPartialOutputs = 1 << 0,
2983 RenderPartialOutputOverPreviousCachedImage = 1 << 1,
2984 AffectsLabeling = 1 << 2,
2985 };
2986 Q_ENUM( MapLayerRendererFlag )
2987
2988
2994 Q_FLAG( MapLayerRendererFlags )
2995
3001 enum class PaintEffectFlag : int SIP_ENUM_BASETYPE( IntFlag )
3002 {
3003 RequiresRasterization = 1 << 0,
3004 };
3005 Q_ENUM( PaintEffectFlag )
3006
3007
3013 Q_FLAG( PaintEffectFlags )
3014
3015 // refs for below dox: https://github.com/qgis/QGIS/pull/1286#issuecomment-39806854
3016 // https://github.com/qgis/QGIS/pull/8573#issuecomment-445585826
3017
3023 {
3025 TextFormatAlwaysOutlines
3026 ),
3028 TextFormatAlwaysText
3029 ),
3030 PreferText,
3031 };
3032 Q_ENUM( TextRenderFormat )
3033
3034
3042 {
3043 UseAllLabels = 1 << 1,
3044 UsePartialCandidates = 1 << 2,
3045 // TODO QGIS 5.0: remove
3046 RenderOutlineLabels = 1 << 3,
3047 DrawLabelRectOnly = 1 << 4,
3048 DrawCandidates = 1 << 5,
3049 DrawUnplacedLabels = 1 << 6,
3050 CollectUnplacedLabels = 1 << 7,
3051 DrawLabelMetrics = 1 << 8,
3052 IgnoreObstacles = 1 << 9,
3053 SingleCandidateOnly = 1 << 10,
3054 IgnoreOverlaps = 1 << 11,
3055 DisableSearchTree = 1 << 12,
3056 };
3057 Q_ENUM( LabelingFlag )
3058
3059
3067 Q_FLAG( LabelingFlags )
3068
3077 {
3078 Version1 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion1 ),
3079 Version2 SIP_MONKEYPATCH_COMPAT_NAME( PlacementEngineVersion2 ),
3080 };
3081 Q_ENUM( LabelPlacementEngineVersion )
3082
3083
3091 {
3092 Horizontal SIP_MONKEYPATCH_COMPAT_NAME( HorizontalOrientation ),
3093 Vertical SIP_MONKEYPATCH_COMPAT_NAME( VerticalOrientation ),
3094 RotationBased SIP_MONKEYPATCH_COMPAT_NAME( RotationBasedOrientation ),
3095 };
3096 Q_ENUM( TextOrientation )
3097
3098
3106 {
3108 Point,
3110 RectangleCapHeightBased,
3111 RectangleAscentBased,
3112 };
3113 Q_ENUM( TextLayoutMode )
3114
3115
3123 {
3124 Text = 1 << 0,
3125 Buffer = 1 << 1,
3126 Background = 1 << 2,
3127 Shadow = 1 << 3,
3128 };
3129 Q_ENUM( TextComponent )
3130
3131
3136 Q_DECLARE_FLAGS( TextComponents, TextComponent )
3137 Q_FLAG( TextComponents )
3138
3153 Q_ENUM( TextHorizontalAlignment )
3154
3155
3166 {
3168 VerticalCenter SIP_MONKEYPATCH_COMPAT_NAME( AlignVCenter ),
3169 Bottom SIP_MONKEYPATCH_COMPAT_NAME( AlignBottom ),
3170 };
3171 Q_ENUM( TextVerticalAlignment )
3172
3173
3182 {
3183 Normal,
3184 SuperScript,
3185 SubScript,
3186 };
3187 Q_ENUM( TextCharacterVerticalAlignment )
3188
3189
3195 {
3196 TruncateStringWhenLineIsTooShort = 1 << 0,
3197 UseBaselinePlacement = 1 << 1,
3198 UprightCharactersOnly = 1 << 2,
3199 ExtendLineToFitText = 1 << 3,
3200 };
3201 Q_ENUM( CurvedTextFlag )
3202
3203
3209
3218 {
3219 Distance = 0,
3220 SnapToGrid = 1,
3221 Visvalingam = 2,
3222 SnappedToGridGlobal = 3,
3223 };
3224 Q_ENUM( VectorSimplificationAlgorithm )
3225
3226
3234 {
3235 NoSimplification = 0,
3236 GeometrySimplification = 1,
3237 AntialiasingSimplification = 2,
3238 FullSimplification = 3,
3239 };
3240 Q_ENUM( VectorRenderingSimplificationFlag )
3241
3242
3251
3258 {
3259 Generic,
3260 ShadowOffset,
3261 BlurSize,
3262 GlowSpread,
3263 };
3264 Q_ENUM( RenderSubcomponentProperty )
3265
3266
3272 {
3273 SymbolLayer,
3274 Label,
3275 };
3276 Q_ENUM( SelectiveMaskSourceType )
3277
3278
3283 {
3284 Segment SIP_MONKEYPATCH_COMPAT_NAME( SegmentVertex ) = 1,
3285 Curve SIP_MONKEYPATCH_COMPAT_NAME( CurveVertex ) = 2,
3286 ControlPoint SIP_MONKEYPATCH_COMPAT_NAME( ControlPointVertex ) = 3,
3287 };
3288 Q_ENUM( VertexType )
3289
3290
3298 {
3299 Square,
3300 Diamond,
3301 Pentagon,
3302 Hexagon,
3303 Triangle,
3304 EquilateralTriangle,
3305 Star,
3306 Arrow,
3307 Circle,
3308 Cross,
3309 CrossFill,
3310 Cross2,
3311 Line,
3312 ArrowHead,
3313 ArrowHeadFilled,
3314 SemiCircle,
3315 ThirdCircle,
3316 QuarterCircle,
3317 QuarterSquare,
3318 HalfSquare,
3319 DiagonalHalfSquare,
3320 RightHalfTriangle,
3321 LeftHalfTriangle,
3322 Octagon,
3323 SquareWithCorners,
3324 AsteriskFill,
3325 HalfArc,
3326 ThirdArc,
3327 QuarterArc,
3328 ParallelogramRight,
3329 ParallelogramLeft,
3330 Trapezoid,
3331 Shield,
3332 DiamondStar,
3333 Heart,
3334 Decagon,
3335 RoundedSquare,
3336 };
3337 Q_ENUM( MarkerShape )
3338
3339
3347 {
3348 Interval = 1 << 0,
3349 Vertex = 1 << 1,
3350 LastVertex = 1 << 2,
3351 FirstVertex = 1 << 3,
3352 CentralPoint = 1 << 4,
3353 CurvePoint = 1 << 5,
3354 SegmentCenter = 1 << 6,
3355 InnerVertices = 1 << 7,
3356 };
3357 Q_ENUM( MarkerLinePlacement )
3359 Q_FLAG( MarkerLinePlacements )
3360
3367 {
3368 IntervalCartesian2D = 1 << 0,
3369 IntervalZ = 1 << 1,
3370 IntervalM = 1 << 2,
3371 Vertex = 1 << 3,
3372 };
3373 Q_ENUM( LinearReferencingPlacement )
3374
3375
3381 {
3382 CartesianDistance2D,
3383 Z,
3384 M,
3385 };
3386 Q_ENUM( LinearReferencingLabelSource )
3387
3388
3396 {
3397 SimpleTwoColor,
3398 ColorRamp,
3399 };
3400 Q_ENUM( GradientColorSource )
3401
3402
3415 Q_ENUM( GradientType )
3416
3417
3425 {
3426 Feature,
3427 Viewport,
3428 };
3429 Q_ENUM( SymbolCoordinateReference )
3430
3431
3445 Q_ENUM( GradientSpread )
3446
3447
3455 {
3456 Absolute SIP_MONKEYPATCH_COMPAT_NAME( AbsoluteCount ),
3457 DensityBased SIP_MONKEYPATCH_COMPAT_NAME( DensityBasedCount ),
3458 };
3459 Q_ENUM( PointCountMethod )
3460
3461
3466 enum class MarkerClipMode : int
3467 {
3468 NoClipping,
3469 Shape,
3470 CentroidWithin,
3471 CompletelyWithin,
3472 };
3473 Q_ENUM( MarkerClipMode )
3474
3475
3480 enum class LineClipMode : int
3481 {
3482 ClipPainterOnly,
3483 ClipToIntersection,
3484 NoClipping,
3485 };
3486 Q_ENUM( LineClipMode )
3487
3488
3494 {
3495 NoRule,
3496 FullDash,
3497 HalfDash,
3498 FullGap,
3499 HalfGap,
3500 };
3501 Q_ENUM( DashPatternLineEndingRule )
3502
3503
3509 {
3510 ScaleBothDashAndGap,
3511 ScaleDashOnly,
3512 ScaleGapOnly,
3513 };
3514 Q_ENUM( DashPatternSizeAdjustment )
3515
3516
3528 Q_ENUM( GraduatedMethod )
3529
3530
3536 {
3537 NoLabels,
3538 EveryLabel,
3539 FirstLabel,
3540 LastLabel,
3541 FirstAndLastLabels,
3542 };
3543 Q_ENUM( PlotAxisSuffixPlacement )
3544
3545
3546
3551 enum class PlotAxisType
3552 {
3553 Interval,
3554 Categorical,
3555 };
3556 Q_ENUM( PlotAxisType )
3557
3558
3563 enum class PieChartLabelType : int
3564 {
3565 NoLabels,
3566 Categories,
3567 Values,
3568 };
3569 Q_ENUM( PieChartLabelType )
3570
3571
3575 enum class DpiMode
3576 {
3577 All = 7,
3578 Off = 0,
3579 QGIS = 1,
3580 UMN = 2,
3581 GeoServer = 4,
3582 };
3583 Q_ENUM( DpiMode )
3584
3585
3590 {
3591 Undefined = 0,
3592 StandardDpi = 1,
3593 HighDpi = 2,
3594 };
3595 Q_ENUM( TilePixelRatio )
3596
3597 // NOTE -- the hardcoded numbers here must match QFont::Capitalization!
3598
3599
3607 {
3608 MixedCase = 0,
3609 AllUppercase = 1,
3610 AllLowercase = 2,
3611 ForceFirstLetterToCapital = 4,
3612 SmallCaps = 5,
3613 TitleCase = 1004,
3614 UpperCamelCase = 1005,
3615 AllSmallCaps = 1006,
3616 };
3617 Q_ENUM( Capitalization )
3618
3619
3624 enum class TextRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
3625 {
3626 WrapLines = 1 << 0,
3627 };
3628 Q_ENUM( TextRendererFlag )
3630 Q_FLAG( TextRendererFlags )
3631
3638 {
3639 MapBox,
3640 Esri,
3641 };
3643
3650 {
3651 Clockwise,
3652 CounterClockwise,
3653 NoOrientation,
3654 };
3655 Q_ENUM( AngularDirection )
3656
3657
3662 enum class RendererUsage : int
3663 {
3664 View,
3665 Export,
3666 Unknown,
3667 };
3668 Q_ENUM( RendererUsage )
3669
3670
3675 enum class MapCanvasFlag : int SIP_ENUM_BASETYPE( IntFlag )
3676 {
3677 ShowMainAnnotationLayer = 1 << 0,
3678 };
3679 Q_ENUM( MapCanvasFlag )
3680
3681
3686 Q_DECLARE_FLAGS( MapCanvasFlags, MapCanvasFlag )
3687 Q_FLAG( MapCanvasFlags )
3688
3694 enum class ViewSyncModeFlag : int SIP_ENUM_BASETYPE( IntFlag )
3695 {
3696 Sync3DTo2D = 1 << 0,
3697 Sync2DTo3D = 1 << 1,
3698 };
3699 Q_ENUM( ViewSyncModeFlag )
3701
3708 {
3709 Always,
3710 WhenOutsideVisibleExtent,
3711 Never,
3712 };
3713 Q_ENUM( MapRecenteringMode )
3714
3715
3720 enum class HistoryProviderBackend : int SIP_ENUM_BASETYPE( IntFlag )
3721 {
3722 LocalProfile = 1 << 0,
3723 // Project = 1 << 1, //!< QGIS Project (not yet implemented)
3724 };
3725 Q_ENUM( HistoryProviderBackend )
3727 Q_FLAG( HistoryProviderBackends )
3728
3734 enum class QueryStorageBackend : int
3735 {
3736 LocalProfile,
3737 CurrentProject,
3738 };
3739 Q_ENUM( QueryStorageBackend )
3740
3741
3749 {
3750 MapLayer SIP_MONKEYPATCH_COMPAT_NAME( TypeMapLayer ) = -2,
3751 VectorAnyGeometry SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorAnyGeometry ) = -1,
3752 VectorPoint SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPoint ) = 0,
3753 VectorLine SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorLine ) = 1,
3754 VectorPolygon SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorPolygon ) = 2,
3755 Raster SIP_MONKEYPATCH_COMPAT_NAME( TypeRaster ) = 3,
3756 File SIP_MONKEYPATCH_COMPAT_NAME( TypeFile ) = 4,
3757 Vector SIP_MONKEYPATCH_COMPAT_NAME( TypeVector ) = 5,
3758 Mesh SIP_MONKEYPATCH_COMPAT_NAME( TypeMesh ) = 6,
3759 Plugin SIP_MONKEYPATCH_COMPAT_NAME( TypePlugin ) = 7,
3760 PointCloud SIP_MONKEYPATCH_COMPAT_NAME( TypePointCloud ) = 8,
3761 Annotation SIP_MONKEYPATCH_COMPAT_NAME( TypeAnnotation ) = 9,
3762 VectorTile SIP_MONKEYPATCH_COMPAT_NAME( TypeVectorTile ) = 10,
3763 TiledScene = 11
3764 };
3765 Q_ENUM( ProcessingSourceType )
3766
3767
3768
3776 {
3777 DeemphasiseSearchResults SIP_MONKEYPATCH_COMPAT_NAME( FlagDeemphasiseSearchResults )
3778 = 1 << 1,
3779 CompatibleWithVirtualRaster SIP_MONKEYPATCH_COMPAT_NAME( FlagCompatibleWithVirtualRaster ) = 1 << 2,
3780 };
3782
3791 Q_FLAG( ProcessingProviderFlags )
3792
3793
3801 {
3802 HideFromToolbox SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromToolbox ) = 1 << 1,
3803 HideFromModeler SIP_MONKEYPATCH_COMPAT_NAME( FlagHideFromModeler ) = 1 << 2,
3804 SupportsBatch SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsBatch ) = 1 << 3,
3805 CanCancel SIP_MONKEYPATCH_COMPAT_NAME( FlagCanCancel ) = 1 << 4,
3806 RequiresMatchingCrs SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresMatchingCrs ) = 1 << 5,
3807 NoThreading SIP_MONKEYPATCH_COMPAT_NAME( FlagNoThreading ) = 1 << 6,
3808 DisplayNameIsLiteral SIP_MONKEYPATCH_COMPAT_NAME( FlagDisplayNameIsLiteral ) = 1 << 7,
3809 SupportsInPlaceEdits SIP_MONKEYPATCH_COMPAT_NAME( FlagSupportsInPlaceEdits ) = 1 << 8,
3810 KnownIssues SIP_MONKEYPATCH_COMPAT_NAME( FlagKnownIssues ) = 1 << 9,
3811 CustomException SIP_MONKEYPATCH_COMPAT_NAME( FlagCustomException ) = 1 << 10,
3812 PruneModelBranchesBasedOnAlgorithmResults SIP_MONKEYPATCH_COMPAT_NAME( FlagPruneModelBranchesBasedOnAlgorithmResults ) = 1 << 11,
3813 SkipGenericModelLogging SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGenericModelLogging ) = 1 << 12,
3814 NotAvailableInStandaloneTool SIP_MONKEYPATCH_COMPAT_NAME( FlagNotAvailableInStandaloneTool ) = 1 << 13,
3815 RequiresProject SIP_MONKEYPATCH_COMPAT_NAME( FlagRequiresProject ) = 1 << 14,
3816 SecurityRisk = 1 << 15,
3817 Deprecated SIP_MONKEYPATCH_COMPAT_NAME( FlagDeprecated ) = HideFromToolbox | HideFromModeler,
3818 };
3820
3829 Q_FLAG( ProcessingAlgorithmFlags )
3830
3831
3837 {
3838 RegeneratesPrimaryKey = 1 << 0,
3839 RegeneratesPrimaryKeyInSomeScenarios = 1 << 1,
3840 RespectsEllipsoid = 1 << 2,
3841 };
3842 Q_ENUM( ProcessingAlgorithmDocumentationFlag )
3843
3844
3851
3861 {
3862 NotAvailable,
3863 Available,
3864 };
3865 Q_ENUM( ProcessingPropertyAvailability )
3866
3867
3875 {
3876 DefaultLevel = 0,
3877 Verbose,
3878 ModelDebug,
3879 };
3880 Q_ENUM( ProcessingLogLevel )
3881
3882
3890 {
3891 Standard,
3892 Batch,
3893 Modeler,
3894 };
3895 Q_ENUM( ProcessingMode )
3896
3897
3903 {
3904 VectorAnalysis,
3905 VectorResearch,
3906 VectorGeoprocessing,
3907 VectorGeometry,
3908 VectorDataManagement,
3909 VectorGeneral,
3910 RasterProjections,
3911 RasterConversion,
3912 RasterExtraction,
3913 RasterAnalysis,
3914 RasterMiscellaneous,
3915 RasterGeneral,
3916 };
3917 Q_ENUM( ProcessingMenu )
3918
3919
3927 {
3928 OverrideDefaultGeometryCheck SIP_MONKEYPATCH_COMPAT_NAME( FlagOverrideDefaultGeometryCheck )
3929 = 1 << 0,
3930 CreateIndividualOutputPerInputFeature SIP_MONKEYPATCH_COMPAT_NAME( FlagCreateIndividualOutputPerInputFeature )
3931 = 1 << 1,
3932 };
3933 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
3934
3935
3944
3953 {
3954 SkipGeometryValidityChecks SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGeometryValidityChecks ) = 1 << 1,
3955 };
3956 Q_ENUM( ProcessingFeatureSourceFlag )
3957
3958
3967
3979 {
3980 ExposeToModeler = 1
3981 };
3982 Q_ENUM( ProcessingParameterTypeFlag )
3983
3984
3996
4005 {
4006 Advanced SIP_MONKEYPATCH_COMPAT_NAME( FlagAdvanced ) = 1 << 1,
4007 Hidden SIP_MONKEYPATCH_COMPAT_NAME( FlagHidden ) = 1 << 2,
4008 Optional SIP_MONKEYPATCH_COMPAT_NAME( FlagOptional ) = 1 << 3,
4009 IsModelOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagIsModelOutput ) = 1 << 4,
4010 };
4011 Q_ENUM( ProcessingParameterFlag )
4012
4013
4021 Q_FLAG( ProcessingParameterFlags )
4022
4035 Q_ENUM( ProcessingFileParameterBehavior )
4036
4037
4049 Q_ENUM( ProcessingNumberParameterType )
4050
4051
4059 {
4060 Any = -1,
4061 Numeric = 0,
4062 String = 1,
4063 DateTime = 2,
4064 Binary = 3,
4065 Boolean = 4,
4066 };
4067 Q_ENUM( ProcessingFieldParameterDataType )
4068
4069
4082 Q_ENUM( ProcessingDateTimeParameterDataType )
4083
4084
4090 {
4091 ModelParameter,
4092 ChildOutput,
4093 StaticValue,
4094 Expression,
4095 ExpressionText,
4096 ModelOutput,
4097 };
4098 Q_ENUM( ProcessingModelChildParameterSource )
4099
4100
4106 {
4107 NotExecuted,
4109 Failed,
4110 };
4111 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
4112
4113
4121 {
4122 Vertices,
4123 StructureLines,
4124 BreakLines
4125 };
4126 Q_ENUM( ProcessingTinInputLayerType )
4127
4128
4138 Q_ENUM( CrsDefinitionFormat )
4139
4140
4148 enum class FieldDomainSplitPolicy : int
4149 {
4150 DefaultValue,
4151 Duplicate,
4152 GeometryRatio,
4153 UnsetField,
4154 };
4155 Q_ENUM( FieldDomainSplitPolicy )
4156
4157
4165 enum class FieldDomainMergePolicy : int
4166 {
4167 DefaultValue,
4168 Sum,
4169 GeometryWeighted,
4170 UnsetField,
4171 LargestGeometry,
4172 MinimumValue,
4173 MaximumValue,
4174 SetToNull,
4175 };
4176 Q_ENUM( FieldDomainMergePolicy )
4177
4178
4185 enum class FieldDuplicatePolicy : int
4186 {
4187 DefaultValue,
4188 Duplicate,
4189 UnsetField,
4190 };
4191 Q_ENUM( FieldDuplicatePolicy )
4192
4193
4198 enum class FieldDomainType : int
4199 {
4200 Coded,
4201 Range,
4202 Glob,
4203 };
4204 Q_ENUM( FieldDomainType )
4205
4206
4211 enum class TransactionMode : int
4212 {
4213 Disabled = 0,
4214 AutomaticGroups = 1,
4215 BufferedGroups = 2,
4216 };
4217 Q_ENUM( TransactionMode )
4218
4219
4224 enum class AltitudeClamping : int
4225 {
4226 Absolute,
4227 Relative,
4228 Terrain,
4229 };
4230 Q_ENUM( AltitudeClamping )
4231
4232
4237 enum class AltitudeBinding : int
4238 {
4239 Vertex,
4240 Centroid,
4241 };
4242 Q_ENUM( AltitudeBinding )
4243
4244
4249 enum class RangeLimits : int
4250 {
4251 IncludeBoth = 0,
4252 IncludeLowerExcludeUpper,
4253 ExcludeLowerIncludeUpper,
4254 ExcludeBoth,
4255 };
4256 Q_ENUM( RangeLimits )
4257
4258
4263 enum class RasterElevationMode : int
4264 {
4265 FixedElevationRange = 0,
4266 RepresentsElevationSurface = 1,
4267 FixedRangePerBand = 2,
4268 DynamicRangePerBand = 3,
4269 };
4270 Q_ENUM( RasterElevationMode )
4271
4272
4277 enum class MeshElevationMode : int
4278 {
4279 FixedElevationRange = 0,
4280 FromVertices = 1,
4281 FixedRangePerGroup = 2,
4282 };
4283 Q_ENUM( MeshElevationMode )
4284
4285
4291 {
4292 NoConstraint,
4293 Perpendicular,
4294 Parallel
4295 };
4296 Q_ENUM( BetweenLineConstraint )
4297
4298
4303 enum class LineExtensionSide : int
4304 {
4305 BeforeVertex,
4306 AfterVertex,
4307 NoVertex,
4308 };
4309 Q_ENUM( LineExtensionSide )
4310
4311
4312
4316 enum class CadConstraintType : int
4317 {
4318 Generic,
4319 Angle,
4320 Distance,
4321 XCoordinate,
4322 YCoordinate,
4323 ZValue,
4324 MValue,
4325 };
4326 Q_ENUM( CadConstraintType )
4327
4328
4333 {
4334 Hidden,
4335 Cartesian,
4336 Ellipsoidal,
4337 };
4338 Q_ENUM( CadMeasurementDisplayType )
4339
4340
4345 enum class ProjectFlag : int SIP_ENUM_BASETYPE( IntFlag )
4346 {
4347 EvaluateDefaultValuesOnProviderSide = 1 << 0,
4348 TrustStoredLayerStatistics
4349 = 1 << 1,
4350 RememberLayerEditStatusBetweenSessions = 1 << 2,
4351 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
4352 };
4353 Q_ENUM( ProjectFlag )
4354 Q_DECLARE_FLAGS( ProjectFlags, ProjectFlag )
4355 Q_FLAG( ProjectFlags )
4356
4362 enum class PlotToolFlag : int SIP_ENUM_BASETYPE( IntFlag )
4363 {
4364 ShowContextMenu = 1 << 0,
4365 };
4366 Q_ENUM( PlotToolFlag )
4367 Q_DECLARE_FLAGS( PlotToolFlags, PlotToolFlag )
4368 Q_FLAG( PlotToolFlags )
4369
4377 enum class Map3DDebugFlag : int SIP_ENUM_BASETYPE( IntFlag )
4378 {
4379 ShowTerrainBoundingBoxes = 1 << 0,
4380 ShowTerrainTileInfo = 1 << 1,
4381 ShowCameraViewCenter = 1 << 2,
4382 ShowCameraRotationCenter = 1 << 3,
4383 ShowLightSourceOrigins = 1 << 4,
4384 ShowFPS = 1 << 5,
4385 ShowDebugPanel = 1 << 6,
4386 };
4387 Q_ENUM( Map3DDebugFlag )
4389 Q_FLAG( Map3DDebugFlags )
4390
4396 enum class Map3DProjectionType : int
4397 {
4398 Orthographic = 0,
4399 Perspective = 1,
4400 };
4401 Q_ENUM( Map3DProjectionType )
4402
4403
4410 enum class Point3DShape : int
4411 {
4412 Cylinder,
4413 Sphere,
4414 Cone,
4415 Cube,
4416 Torus,
4417 Plane,
4418 ExtrudedText,
4419 Model,
4420 Billboard,
4421 };
4422 Q_ENUM( Point3DShape )
4423
4424
4433 {
4434 Triangles,
4435 Lines,
4436 InstancedPoints,
4437 Points,
4438 TrianglesWithFixedTexture,
4439 TrianglesFromModel,
4440 TrianglesDataDefined,
4441 Billboards,
4442 };
4443 Q_ENUM( MaterialRenderingTechnique )
4444
4445
4450 enum class MaterialWidgetMode : int
4451 {
4452 Compact,
4453 Full,
4454 };
4455 Q_ENUM( MaterialWidgetMode )
4456
4457
4462 enum class InstancedMaterialFlag : int SIP_ENUM_BASETYPE( IntFlag )
4463 {
4464 DataDefinedScale = 1 << 0,
4465 DataDefinedRotation = 1 << 1,
4466 };
4467 Q_ENUM( InstancedMaterialFlag )
4469 Q_FLAG( InstancedMaterialFlags )
4470
4476 enum class BillboardScaleMode : int
4477 {
4478 ViewIndependent,
4479 Perspective
4480 };
4481 Q_ENUM( BillboardScaleMode )
4482
4483
4488 enum class TextureFilterQuality : int
4489 {
4490 Trilinear,
4491 Anisotropic2x,
4492 Anisotropic4x,
4493 Anisotropic8x,
4494 Anisotropic16x,
4495 };
4496 Q_ENUM( TextureFilterQuality )
4497
4498
4503 enum class ShadowQuality : int
4504 {
4505 Low,
4506 Medium,
4507 High,
4508 VeryHigh,
4509 Extreme,
4510 };
4511 Q_ENUM( ShadowQuality )
4512
4513
4518 enum class LightSourceType : int
4519 {
4520 Point,
4521 Directional,
4522 Sun,
4523 };
4524 Q_ENUM( LightSourceType )
4525
4526
4530 enum class Map3DBackgroundType : int
4531 {
4532 NoBackground,
4533 FixedGradientBackground,
4534 DistinctTextureSkybox,
4535 };
4536 Q_ENUM( Map3DBackgroundType )
4537
4538
4543 enum class SkyboxCubeMapping : int
4544 {
4545 NativeZUp,
4546 OpenGLYUp,
4547 GodotYUp,
4548 UnrealEngineZUp,
4549 LeftHandedYUpMirrored,
4550 };
4551 Q_ENUM( SkyboxCubeMapping )
4552
4553
4558 enum class NavigationMode : int
4559 {
4560 TerrainBased,
4561 Walk,
4562 GlobeTerrainBased
4563 };
4564 Q_ENUM( NavigationMode )
4565
4566
4571 enum class SceneMode : int
4572 {
4573 Local,
4574 Globe
4575 };
4576 Q_ENUM( SceneMode )
4577
4578
4583 enum class VerticalAxisInversion : int SIP_ENUM_BASETYPE( IntFlag )
4584 {
4585 WhenRotatingDragging = 1 << 0,
4586 WhenRotatingCaptured = 1 << 1,
4587 WhenPivoting = 1 << 2,
4588
4589 // Legacy aliases for old flying-only enum:
4590
4591 Never = WhenRotatingDragging | WhenRotatingCaptured | WhenPivoting,
4592 WhenDragging = WhenRotatingCaptured | WhenPivoting,
4593 Always = WhenPivoting,
4594 };
4595 Q_ENUM( VerticalAxisInversion )
4598
4605 enum class ToneMappingMethod : int
4606 {
4607 Clamp,
4608 Aces,
4609 };
4610 Q_ENUM( ToneMappingMethod )
4611
4612
4617 enum class Export3DSceneFormat : int
4618 {
4619 Obj,
4620 StlAscii
4621 };
4622 Q_ENUM( Export3DSceneFormat )
4623
4624
4630 {
4631 Line,
4632 FillBelow,
4633 FillAbove,
4634 };
4636
4642 enum class VectorProfileType : int
4643 {
4644 IndividualFeatures,
4645 ContinuousSurface,
4646 };
4648
4654 enum class PointCloudProfileType : int
4655 {
4656 IndividualPoints,
4657 TriangulatedSurface,
4658 };
4660
4666 enum class ProfileGeneratorFlag : int SIP_ENUM_BASETYPE( IntFlag )
4667 {
4668 RespectsMaximumErrorMapUnit = 1 << 0,
4669 RespectsDistanceRange = 1 << 1,
4670 RespectsElevationRange = 1 << 2,
4671 };
4672 Q_ENUM( ProfileGeneratorFlag )
4674 Q_FLAG( ProfileGeneratorFlags )
4675
4681 enum class ProfileExportType : int
4682 {
4683 Features3D,
4684 Profile2D,
4685 DistanceVsElevationTable,
4686 };
4688
4695 {
4696 Square,
4697 Circle,
4698 };
4699 Q_ENUM( PointCloudSymbol )
4700
4701
4707 {
4708 Default,
4709 BottomToTop,
4710 TopToBottom,
4711 };
4712 Q_ENUM( PointCloudDrawOrder )
4713
4714
4722 {
4723 AllowIntersections,
4724 AvoidIntersectionsCurrentLayer,
4725 AvoidIntersectionsLayers,
4726 };
4727 Q_ENUM( AvoidIntersectionsMode )
4728
4729
4737 {
4738 Qgz,
4739 Qgs,
4740 };
4741 Q_ENUM( ProjectFileFormat )
4742
4743
4751 {
4752 DontResolveLayers SIP_MONKEYPATCH_COMPAT_NAME( FlagDontResolveLayers )
4753 = 1 << 0,
4754 DontLoadLayouts SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoadLayouts )
4755 = 1 << 1,
4756 TrustLayerMetadata SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustLayerMetadata )
4757 = 1 << 2,
4758 DontStoreOriginalStyles SIP_MONKEYPATCH_COMPAT_NAME( FlagDontStoreOriginalStyles ) = 1 << 3,
4759 DontLoad3DViews SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoad3DViews ) = 1 << 4,
4760 DontLoadProjectStyles = 1 << 5,
4761 ForceReadOnlyLayers = 1 << 6,
4762 DontUpgradeAnnotations = 1 << 7,
4763 };
4764 Q_ENUM( ProjectReadFlag )
4765
4766
4774 Q_FLAG( ProjectReadFlags )
4775
4784 enum class ProjectCapability : int SIP_ENUM_BASETYPE( IntFlag )
4785 {
4786 ProjectStyles = 1 << 0,
4787 };
4788 Q_ENUM( ProjectCapability )
4789
4790
4796 Q_FLAG( ProjectCapabilities )
4797
4804 {
4805 Vector,
4806 Raster,
4807 RasterDem,
4808 GeoJson,
4809 Image,
4810 Video,
4811 Unknown,
4812 };
4813 Q_ENUM( MapBoxGlStyleSourceType )
4814
4815
4823 {
4824 FeatureServer SIP_MONKEYPATCH_COMPAT_NAME( FeatureService ),
4825 MapServer SIP_MONKEYPATCH_COMPAT_NAME( MapService ),
4826 ImageServer SIP_MONKEYPATCH_COMPAT_NAME( ImageService ),
4827 GlobeServer,
4828 GPServer,
4829 GeocodeServer,
4830 Unknown,
4831 SceneServer,
4832 };
4833 Q_ENUM( ArcGisRestServiceType )
4834
4835
4844 {
4845 Map = 1 << 0,
4846 Query = 1 << 1,
4847 Update = 1 << 2,
4848 Delete = 1 << 3,
4849 Create = 1 << 4,
4850 Image = 1 << 5,
4851 TilesOnly = 1 << 6,
4852 };
4853 Q_ENUM( ArcGisRestServiceCapability )
4854
4855
4862
4871 {
4872 Normal,
4873 Generated,
4874 };
4875 Q_ENUM( RelationshipType )
4876
4877
4885 {
4886 Association,
4887 Composition,
4888 };
4889 Q_ENUM( RelationshipStrength )
4890
4891
4897 {
4898 OneToOne,
4899 OneToMany,
4900 ManyToOne,
4901 ManyToMany,
4902 };
4903 Q_ENUM( RelationshipCardinality )
4904
4905
4910 enum class RelationshipCapability : int SIP_ENUM_BASETYPE( IntFlag )
4911 {
4912 MultipleFieldKeys = 1 << 0,
4913 ForwardPathLabel = 1 << 1,
4914 BackwardPathLabel = 1 << 2,
4915 };
4916 Q_ENUM( RelationshipCapability )
4917
4918
4924 Q_FLAG( RelationshipCapabilities )
4925
4931 enum class CoordinateDisplayType : int
4932 {
4933 MapCrs,
4934 MapGeographic,
4935 CustomCrs,
4936 };
4937 Q_ENUM( CoordinateDisplayType )
4938
4939
4944 enum class SettingsOrigin : int
4945 {
4946 Any,
4947 Global,
4948 Local,
4949 };
4950 Q_ENUM( SettingsOrigin )
4951
4952
4957 enum class ScriptLanguage : int
4958 {
4959 Css,
4960 QgisExpression,
4961 Html,
4962 JavaScript,
4963 Json,
4964 Python,
4965 R,
4966 Sql,
4967 Batch,
4968 Bash,
4969 Unknown,
4970 };
4971 Q_ENUM( ScriptLanguage )
4972
4973
4981 {
4982 Reformat = 1 << 0,
4983 CheckSyntax = 1 << 1,
4984 ToggleComment = 1 << 2,
4985 };
4986 Q_ENUM( ScriptLanguageCapability )
4987
4988
4995
5002 {
5003 AboveInsertionPoint,
5004 TopOfTree,
5005 OptimalInInsertionGroup,
5006 };
5007 Q_ENUM( LayerTreeInsertionMethod )
5008
5009
5015 {
5016 LayerProperties = 0,
5017 AttributeTable = 1,
5018 LayerStyling = 2,
5019 };
5020 Q_ENUM( LegendLayerDoubleClickAction )
5021
5022
5027 enum class LayerTreeFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
5028 {
5029 SkipVisibilityCheck = 1 << 0,
5030 };
5031 Q_ENUM( LayerTreeFilterFlag )
5032
5033
5039 Q_FLAG( LayerTreeFilterFlags )
5040
5046 enum class MapLayerLegendFlag : int SIP_ENUM_BASETYPE( IntFlag )
5047 {
5048 ExcludeByDefault = 1 << 0,
5049 };
5050 Q_ENUM( MapLayerLegendFlag )
5051
5052
5058 Q_FLAG( MapLayerLegendFlags )
5059
5068 {
5069 Undefined,
5070 Hidden,
5071 Title,
5072 Group,
5073 Subgroup,
5074 Symbol,
5075 SymbolLabel,
5076 };
5077 // !!! WARNING: If adding new values to this enum, make sure you update QgsLegendSettings constructor accordingly!!
5078 Q_ENUM( LegendComponent )
5079
5080
5085 enum class LegendSyncMode : int
5086 {
5087 AllProjectLayers,
5088 VisibleLayers,
5089 Manual,
5090 };
5091 Q_ENUM( LegendSyncMode )
5092
5093
5100 enum class LegendJsonRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
5101 {
5102 ShowRuleDetails = 1 << 0,
5103 };
5104 Q_ENUM( LegendJsonRenderFlag )
5106 Q_FLAG( LegendJsonRenderFlags )
5107
5113 enum class GeoJsonProfile : int
5114 {
5115 Legacy,
5116 Rfc7946,
5117 JsonFg,
5118 JsonFgPlus,
5119 };
5120 Q_ENUM( GeoJsonProfile )
5121
5122
5129 enum class ActionType : int
5130 {
5131 Invalid,
5132 MapLayerAction,
5133 AttributeAction
5134 };
5135 Q_ENUM( ActionType )
5136
5137
5144 enum class MapLayerActionTarget : int SIP_ENUM_BASETYPE( IntFlag )
5145 {
5146 Layer = 1 << 0,
5147 SingleFeature = 1 << 1,
5148 MultipleFeatures = 1 << 2,
5149 AllActions = Layer | SingleFeature | MultipleFeatures
5150 };
5151 Q_ENUM( MapLayerActionTarget )
5152
5153
5161 Q_FLAG( MapLayerActionTargets )
5162
5170 enum class MapLayerActionFlag : int SIP_ENUM_BASETYPE( IntFlag )
5171 {
5172 EnabledOnlyWhenEditable = 1 << 1,
5173 EnableOnlyWhenHasGeometry = 1 << 2,
5174 };
5175 Q_ENUM( MapLayerActionFlag )
5176
5177
5185 Q_FLAG( MapLayerActionFlags )
5186
5195 {
5196 Generic,
5197 GenericPython,
5198 Mac,
5199 Windows,
5200 Unix,
5201 OpenUrl,
5202 SubmitUrlEncoded,
5203 SubmitUrlMultipart,
5204 };
5205 Q_ENUM( AttributeActionType )
5206
5207
5213 {
5214 Created,
5215 Published,
5216 Revised,
5217 Superseded,
5218 };
5219 Q_ENUM( MetadataDateType )
5220
5221
5225 enum class AcademicReferenceType : int
5226 {
5227 Unknown,
5228 Book,
5229 JournalArticle,
5230 Presentation,
5231 WebPage,
5232 Preprint
5233 };
5234 Q_ENUM( AcademicReferenceType )
5235
5236
5245
5247 {
5248 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedColorInterpretation ) = 0,
5249 GrayIndex = 1,
5250 PaletteIndex = 2,
5251 RedBand = 3,
5252 GreenBand = 4,
5253 BlueBand = 5,
5254 AlphaBand = 6,
5255 HueBand = 7,
5256 SaturationBand = 8,
5257 LightnessBand = 9,
5258 CyanBand = 10,
5259 MagentaBand = 11,
5260 YellowBand = 12,
5261 BlackBand = 13,
5262 YCbCr_YBand = 14,
5263 YCbCr_CbBand = 15,
5264 YCbCr_CrBand = 16,
5265 ContinuousPalette = 17,
5266
5267 // Note: values between PanBand and SAR_P_Band match additions done in
5268 // GDAL 3.10, except that the numeric values of the constant don't match GDAL ones
5269
5270 PanBand = 18,
5271 CoastalBand = 19,
5272 RedEdgeBand = 20,
5273 NIRBand = 21,
5274 SWIRBand = 22,
5275 MWIRBand = 23,
5276 LWIRBand = 24,
5277 TIRBand = 25,
5278 OtherIRBand = 26,
5279 SAR_Ka_Band = 27,
5280 SAR_K_Band = 28,
5281 SAR_Ku_Band = 30,
5282 SAR_X_Band = 31,
5283 SAR_C_Band = 32,
5284 SAR_S_Band = 33,
5285 SAR_L_Band = 34,
5286 SAR_P_Band = 35,
5287 };
5288 Q_ENUM( RasterColorInterpretation )
5289
5290
5298 {
5299 GrayOrUndefined,
5300 Palette,
5301 MultiBand SIP_MONKEYPATCH_COMPAT_NAME( Multiband ),
5302 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( ColorLayer ),
5303 };
5304 Q_ENUM( RasterLayerType )
5305
5306
5314 {
5315 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedDrawingStyle ),
5316 SingleBandGray,
5317 SingleBandPseudoColor,
5318 PalettedColor,
5319 PalettedSingleBandGray,
5320 PalettedSingleBandPseudoColor,
5321 PalettedMultiBandColor,
5322 MultiBandSingleBandGray,
5323 MultiBandSingleBandPseudoColor,
5324 MultiBandColor,
5325 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( SingleBandColorDataStyle ),
5326 };
5327 Q_ENUM( RasterDrawingStyle )
5328
5329
5336 enum class RasterPyramidFormat SIP_MONKEYPATCH_SCOPEENUM_UNNEST( QgsRaster, RasterPyramidsFormat ) : int
5337 {
5338 GeoTiff SIP_MONKEYPATCH_COMPAT_NAME( PyramidsGTiff ) = 0,
5339 Internal SIP_MONKEYPATCH_COMPAT_NAME( PyramidsInternal ) = 1,
5340 Erdas SIP_MONKEYPATCH_COMPAT_NAME( PyramidsErdas ) = 2
5341 };
5342 Q_ENUM( RasterPyramidFormat )
5343
5344
5352 {
5353 No SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagNo ) = 0,
5354 Yes SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagYes ) = 1,
5355 CopyExisting SIP_MONKEYPATCH_COMPAT_NAME( PyramidsCopyExisting ) = 2
5356 };
5357 Q_ENUM( RasterBuildPyramidOption )
5358
5359
5367 {
5368 Undefined SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatUndefined ) = 0,
5369 Value SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatValue ) = 1,
5370 Text SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatText ) = 1 << 1,
5371 Html SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatHtml ) = 1 << 2,
5372 Feature SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatFeature ) = 1 << 3,
5373 };
5374 Q_ENUM( RasterIdentifyFormat )
5375
5376 // TODO QGIS 5 -- remove NoCapabilities and rely on RasterInterfaceCapabilities() instead
5377 // remove deprecated members
5378 // Remove "Identify" member, and replace with combinations of IdentifyValue/IdentifyText/etc
5379
5380
5388 {
5389 NoCapabilities = 0,
5390 Size = 1 << 1,
5391 Create = 1 << 2,
5392 Remove = 1 << 3,
5393 BuildPyramids = 1 << 4,
5394 Identify = 1 << 5,
5395 IdentifyValue = 1 << 6,
5396 IdentifyText = 1 << 7,
5397 IdentifyHtml = 1 << 8,
5398 IdentifyFeature = 1 << 9,
5399 Prefetch = 1 << 10,
5400 };
5401 Q_ENUM( RasterInterfaceCapability )
5402
5403
5410
5411 // TODO QGIS 5 -- remove NoProviderCapabilities and rely on RasterProviderCapabilities() instead
5412
5421 {
5422 NoProviderCapabilities = 0,
5423 ReadLayerMetadata = 1 << 1,
5424 WriteLayerMetadata = 1 << 2,
5425 ProviderHintBenefitsFromResampling = 1 << 3,
5426 ProviderHintCanPerformProviderResampling = 1 << 4,
5427 ReloadData = 1 << 5,
5428 DpiDependentData = 1 << 6,
5429 NativeRasterAttributeTable = 1 << 7,
5430 BuildPyramids = 1 << 8,
5431 };
5432 Q_ENUM( RasterProviderCapability )
5433
5434
5443
5450 {
5451 HighestElevation,
5452 NewerElevation,
5453 };
5454 Q_ENUM( ElevationMapCombineMethod )
5455
5456
5465 {
5466 Normal SIP_MONKEYPATCH_COMPAT_NAME( BlendNormal ),
5467 Lighten SIP_MONKEYPATCH_COMPAT_NAME( BlendLighten ),
5468 Screen SIP_MONKEYPATCH_COMPAT_NAME( BlendScreen ),
5469 Dodge SIP_MONKEYPATCH_COMPAT_NAME( BlendDodge ),
5470 Addition SIP_MONKEYPATCH_COMPAT_NAME( BlendAddition ),
5471 Darken SIP_MONKEYPATCH_COMPAT_NAME( BlendDarken ),
5472 Multiply SIP_MONKEYPATCH_COMPAT_NAME( BlendMultiply ),
5474 Overlay SIP_MONKEYPATCH_COMPAT_NAME( BlendOverlay ),
5475 SoftLight SIP_MONKEYPATCH_COMPAT_NAME( BlendSoftLight ),
5476 HardLight SIP_MONKEYPATCH_COMPAT_NAME( BlendHardLight ),
5477 Difference SIP_MONKEYPATCH_COMPAT_NAME( BlendDifference ),
5478 Subtract SIP_MONKEYPATCH_COMPAT_NAME( BlendSubtract ),
5479 Source SIP_MONKEYPATCH_COMPAT_NAME( BlendSource ),
5480 DestinationOver SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOver ),
5481 Clear SIP_MONKEYPATCH_COMPAT_NAME( BlendClear ),
5482 Destination SIP_MONKEYPATCH_COMPAT_NAME( BlendDestination ),
5483 SourceIn SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceIn ),
5484 DestinationIn SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationIn ),
5485 SourceOut SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceOut ),
5486 DestinationOut SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOut ),
5487 SourceAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceAtop ),
5488 DestinationAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationAtop ),
5490 };
5491 Q_ENUM( BlendMode )
5492
5493
5501 {
5502 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownSystem ) = 0,
5503 Metric SIP_MONKEYPATCH_COMPAT_NAME( MetricSystem ),
5504 Imperial SIP_MONKEYPATCH_COMPAT_NAME( ImperialSystem ),
5505 USCS SIP_MONKEYPATCH_COMPAT_NAME( USCSSystem ),
5506 };
5507 Q_ENUM( SystemOfMeasurement )
5508
5509
5516 {
5517 Layer SIP_MONKEYPATCH_COMPAT_NAME( LayerUnits ),
5518 Pixels,
5519 Project SIP_MONKEYPATCH_COMPAT_NAME( ProjectUnits )
5520 };
5521 Q_ENUM( MapToolUnit )
5522
5523
5531 {
5532 Distance SIP_MONKEYPATCH_COMPAT_NAME( TypeDistance ) = 0,
5534 Volume SIP_MONKEYPATCH_COMPAT_NAME( TypeVolume ),
5535 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TypeUnknown ),
5536 Temporal SIP_MONKEYPATCH_COMPAT_NAME( TypeTemporal ),
5537 };
5538 Q_ENUM( UnitType )
5539
5540
5548 {
5549 Meters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMeters ),
5550 Kilometers SIP_MONKEYPATCH_COMPAT_NAME( DistanceKilometers ),
5551 Feet SIP_MONKEYPATCH_COMPAT_NAME( DistanceFeet ),
5552 NauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( DistanceNauticalMiles ),
5553 Yards SIP_MONKEYPATCH_COMPAT_NAME( DistanceYards ),
5554 Miles SIP_MONKEYPATCH_COMPAT_NAME( DistanceMiles ),
5555 Degrees SIP_MONKEYPATCH_COMPAT_NAME( DistanceDegrees ),
5556 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceCentimeters ),
5557 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMillimeters ),
5558 Inches,
5559 ChainsInternational,
5560 ChainsBritishBenoit1895A,
5561 ChainsBritishBenoit1895B,
5562 ChainsBritishSears1922Truncated,
5563 ChainsBritishSears1922,
5564 ChainsClarkes,
5565 ChainsUSSurvey,
5566 FeetBritish1865,
5567 FeetBritish1936,
5568 FeetBritishBenoit1895A,
5569 FeetBritishBenoit1895B,
5570 FeetBritishSears1922Truncated,
5571 FeetBritishSears1922,
5572 FeetClarkes,
5573 FeetGoldCoast,
5574 FeetIndian,
5575 FeetIndian1937,
5576 FeetIndian1962,
5577 FeetIndian1975,
5578 FeetUSSurvey,
5579 LinksInternational,
5580 LinksBritishBenoit1895A,
5581 LinksBritishBenoit1895B,
5582 LinksBritishSears1922Truncated,
5583 LinksBritishSears1922,
5584 LinksClarkes,
5585 LinksUSSurvey,
5586 YardsBritishBenoit1895A,
5587 YardsBritishBenoit1895B,
5588 YardsBritishSears1922Truncated,
5589 YardsBritishSears1922,
5590 YardsClarkes,
5591 YardsIndian,
5592 YardsIndian1937,
5593 YardsIndian1962,
5594 YardsIndian1975,
5595 MilesUSSurvey,
5596 Fathoms,
5597 MetersGermanLegal,
5598 Unknown SIP_MONKEYPATCH_COMPAT_NAME( DistanceUnknownUnit ),
5599 };
5600 Q_ENUM( DistanceUnit )
5601
5602
5610 {
5611 Standard,
5612 Geographic,
5613 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownType ),
5614 };
5615 Q_ENUM( DistanceUnitType )
5616
5617
5625 {
5626 SquareMeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMeters ),
5627 SquareKilometers SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareKilometers ),
5628 SquareFeet SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareFeet ),
5629 SquareYards SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareYards ),
5630 SquareMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMiles ),
5631 Hectares SIP_MONKEYPATCH_COMPAT_NAME( AreaHectares ),
5632 Acres SIP_MONKEYPATCH_COMPAT_NAME( AreaAcres ),
5633 SquareNauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareNauticalMiles ),
5634 SquareDegrees SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareDegrees ),
5635 SquareCentimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareCentimeters ),
5636 SquareMillimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMillimeters ),
5637 SquareInches,
5638 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AreaUnknownUnit ),
5639 };
5640 Q_ENUM( AreaUnit )
5641
5642
5650 {
5651 CubicMeters SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicMeters ),
5652 CubicFeet SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicFeet ),
5653 CubicYards SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicYards ),
5654 Barrel SIP_MONKEYPATCH_COMPAT_NAME( VolumeBarrel ),
5655 CubicDecimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDecimeter ),
5656 Liters SIP_MONKEYPATCH_COMPAT_NAME( VolumeLiters ),
5657 GallonUS SIP_MONKEYPATCH_COMPAT_NAME( VolumeGallonUS ),
5658 CubicInch SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicInch ),
5659 CubicCentimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicCentimeter ),
5660 CubicDegrees SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDegrees ),
5661 Unknown SIP_MONKEYPATCH_COMPAT_NAME( VolumeUnknownUnit ),
5662 };
5663 Q_ENUM( VolumeUnit )
5664
5665
5673 {
5674 Degrees SIP_MONKEYPATCH_COMPAT_NAME( AngleDegrees ),
5675 Radians SIP_MONKEYPATCH_COMPAT_NAME( AngleRadians ),
5677 MinutesOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleMinutesOfArc ),
5678 SecondsOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleSecondsOfArc ),
5680 MilliradiansSI SIP_MONKEYPATCH_COMPAT_NAME( AngleMilliradiansSI ),
5681 MilNATO SIP_MONKEYPATCH_COMPAT_NAME( AngleMilNATO ),
5682 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AngleUnknownUnit ),
5683 };
5684 Q_ENUM( AngleUnit )
5685
5686
5696 {
5697 MetersPerSecond = 0,
5698 KilometersPerHour,
5699 Knots,
5700 MilesPerHour,
5701 FeetPerSecond,
5702 OtherUnit
5703 };
5704 Q_ENUM( WindSpeedUnit )
5705
5706
5714 {
5715 Milliseconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalMilliseconds ),
5716 Seconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalSeconds ),
5717 Minutes SIP_MONKEYPATCH_COMPAT_NAME( TemporalMinutes ),
5718 Hours SIP_MONKEYPATCH_COMPAT_NAME( TemporalHours ),
5719 Days SIP_MONKEYPATCH_COMPAT_NAME( TemporalDays ),
5720 Weeks SIP_MONKEYPATCH_COMPAT_NAME( TemporalWeeks ),
5721 Months SIP_MONKEYPATCH_COMPAT_NAME( TemporalMonths ),
5722 Years SIP_MONKEYPATCH_COMPAT_NAME( TemporalYears ),
5723 Decades SIP_MONKEYPATCH_COMPAT_NAME( TemporalDecades ),
5724 Centuries SIP_MONKEYPATCH_COMPAT_NAME( TemporalCenturies ),
5725 IrregularStep SIP_MONKEYPATCH_COMPAT_NAME( TemporalIrregularStep ),
5726 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TemporalUnknownUnit )
5727 };
5728 Q_ENUM( TemporalUnit )
5729
5730
5738 {
5739 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( RenderMillimeters ),
5740 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMapUnits ),
5741 Pixels SIP_MONKEYPATCH_COMPAT_NAME( RenderPixels ),
5742 Percentage SIP_MONKEYPATCH_COMPAT_NAME( RenderPercentage ),
5743 Points SIP_MONKEYPATCH_COMPAT_NAME( RenderPoints ),
5744 Inches SIP_MONKEYPATCH_COMPAT_NAME( RenderInches ),
5745 Unknown SIP_MONKEYPATCH_COMPAT_NAME( RenderUnknownUnit ),
5746 MetersInMapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMetersInMapUnits ),
5747 };
5748 Q_ENUM( RenderUnit )
5749
5750
5758 {
5759 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMillimeters ),
5760 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutCentimeters ),
5761 Meters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMeters ),
5762 Inches SIP_MONKEYPATCH_COMPAT_NAME( LayoutInches ),
5763 Feet SIP_MONKEYPATCH_COMPAT_NAME( LayoutFeet ),
5764 Points SIP_MONKEYPATCH_COMPAT_NAME( LayoutPoints ),
5765 Picas SIP_MONKEYPATCH_COMPAT_NAME( LayoutPicas ),
5766 Pixels SIP_MONKEYPATCH_COMPAT_NAME( LayoutPixels )
5767 };
5768 Q_ENUM( LayoutUnit )
5769
5770
5778 {
5779 PaperUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutPaperUnits ),
5780 ScreenUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutScreenUnits )
5781 };
5782 Q_ENUM( LayoutUnitType )
5783
5784
5792 {
5793 Debug SIP_MONKEYPATCH_COMPAT_NAME( FlagDebug ) = 1 << 1,
5794 OutlineOnly SIP_MONKEYPATCH_COMPAT_NAME( FlagOutlineOnly ) = 1 << 2,
5795 Antialiasing SIP_MONKEYPATCH_COMPAT_NAME( FlagAntialiasing ) = 1 << 3,
5796 UseAdvancedEffects SIP_MONKEYPATCH_COMPAT_NAME( FlagUseAdvancedEffects ) = 1 << 4,
5797 ForceVectorOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagForceVectorOutput )
5798 = 1 << 5,
5799 HideCoverageLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagHideCoverageLayer ) = 1 << 6,
5800 DrawSelection SIP_MONKEYPATCH_COMPAT_NAME( FlagDrawSelection ) = 1 << 7,
5801 DisableTiledRasterLayerRenders SIP_MONKEYPATCH_COMPAT_NAME( FlagDisableTiledRasterLayerRenders )
5802 = 1 << 8,
5803 RenderLabelsByMapLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagRenderLabelsByMapLayer )
5804 = 1 << 9,
5805 LosslessImageRendering SIP_MONKEYPATCH_COMPAT_NAME( FlagLosslessImageRendering )
5806 = 1 << 10,
5807 SynchronousLegendGraphics SIP_MONKEYPATCH_COMPAT_NAME( FlagSynchronousLegendGraphics ) = 1 << 11,
5808 AlwaysUseGlobalMasks SIP_MONKEYPATCH_COMPAT_NAME( FlagAlwaysUseGlobalMasks )
5809 = 1 << 12,
5810 LimitCoverageLayerRenderToCurrentFeature = 1 << 13,
5811 };
5812 Q_ENUM( LayoutRenderFlag )
5813
5814
5822 Q_FLAG( LayoutRenderFlags )
5823
5832 {
5833 SVG SIP_MONKEYPATCH_COMPAT_NAME( FormatSVG ) = 0,
5834 Raster SIP_MONKEYPATCH_COMPAT_NAME( FormatRaster ),
5835 Unknown SIP_MONKEYPATCH_COMPAT_NAME( FormatUnknown ),
5836 };
5837 Q_ENUM( PictureFormat )
5838
5839
5844 enum class ScaleCalculationMethod : int
5845 {
5846 HorizontalTop = 0,
5847 HorizontalMiddle,
5848 HorizontalBottom,
5849 HorizontalAverage,
5850 AtEquator,
5851 };
5852 Q_ENUM( ScaleCalculationMethod )
5853
5854
5867 Q_ENUM( ScaleBarAlignment )
5868
5869
5877 {
5878 Fixed SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFixed ) = 0,
5879 FitWidth SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFitWidth ) = 1
5880 };
5881 Q_ENUM( ScaleBarSegmentSizeMode )
5882
5883
5891 {
5892 AboveSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelAboveSegment ) = 0,
5893 BelowSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelBelowSegment ),
5894 };
5895 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
5896
5897
5905 {
5906 CenteredEdge SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredEdge ) = 0,
5907 CenteredSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredSegment ),
5908 };
5909 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
5910
5911
5919 {
5920 BeforeBar = 1 << 1,
5921 AfterBar = 1 << 2,
5922 LeftAbove = 1 << 3,
5923 CenteredAbove = 1 << 4,
5924 RightAbove = 1 << 5,
5925 LeftBelow = 1 << 6,
5926 CenteredBelow = 1 << 7,
5927 RightBelow = 1 << 8,
5928 BeforeFirstDistanceLabel = 1 << 9,
5929 AfterLastDistanceLabel = 1 << 10,
5930 OnBarAfterFirstDivision = 1 << 11,
5931 BeforeEveryDistanceLabel = 1 << 12,
5932 AfterEveryDistanceLabel = 1 << 13,
5933 };
5934 Q_ENUM( ScaleBarUnitLabelPlacement )
5935
5936
5945
5954 {
5955 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( MapUnit ),
5958 DynamicPageSizeBased,
5959 };
5960 Q_ENUM( MapGridUnit )
5961
5962
5970 {
5971 Lines SIP_MONKEYPATCH_COMPAT_NAME( Solid ) = 0,
5972 LineCrosses SIP_MONKEYPATCH_COMPAT_NAME( Cross ),
5973 Markers,
5974 FrameAndAnnotationsOnly SIP_MONKEYPATCH_COMPAT_NAME( FrameAnnotationsOnly )
5975 };
5976 Q_ENUM( MapGridStyle )
5977
5978
5986 {
5987 ShowAll = 0,
5988 LatitudeOnly,
5989 LongitudeOnly,
5990 HideAll
5991 };
5992 Q_ENUM( MapGridComponentVisibility )
5993
5994
6002 {
6003 InsideMapFrame = 0,
6004 OutsideMapFrame,
6005 };
6006 Q_ENUM( MapGridAnnotationPosition )
6007
6008
6016 {
6017 Horizontal = 0,
6018 Vertical,
6019 VerticalDescending,
6020 BoundaryDirection,
6021 AboveTick,
6022 OnTick,
6023 UnderTick,
6024 };
6025 Q_ENUM( MapGridAnnotationDirection )
6026
6027
6035 {
6036 Decimal = 0,
6037 DegreeMinute,
6038 DegreeMinuteSecond,
6039 DecimalWithSuffix,
6040 DegreeMinuteNoSuffix,
6041 DegreeMinutePadded,
6042 DegreeMinuteSecondNoSuffix,
6043 DegreeMinuteSecondPadded,
6044 CustomFormat
6045 };
6046 Q_ENUM( MapGridAnnotationFormat )
6047
6048
6062 Q_ENUM( MapGridBorderSide )
6063
6064
6072 {
6073 NoFrame = 0,
6074 Zebra,
6075 InteriorTicks,
6076 ExteriorTicks,
6077 InteriorExteriorTicks,
6078 LineBorder,
6079 LineBorderNautical,
6080 ZebraNautical,
6081 };
6082 Q_ENUM( MapGridFrameStyle )
6083
6084
6092 {
6093 OrthogonalTicks = 0,
6094 NormalizedTicks,
6095 };
6096 Q_ENUM( MapGridTickLengthMode )
6097
6098
6099
6107 {
6108 Left SIP_MONKEYPATCH_COMPAT_NAME( FrameLeft ) = 0x01,
6109 Right SIP_MONKEYPATCH_COMPAT_NAME( FrameRight ) = 0x02,
6110 Top SIP_MONKEYPATCH_COMPAT_NAME( FrameTop ) = 0x04,
6111 Bottom SIP_MONKEYPATCH_COMPAT_NAME( FrameBottom ) = 0x08
6112 };
6113 Q_ENUM( MapGridFrameSideFlag )
6114
6115
6123 Q_FLAG( MapGridFrameSideFlags )
6124
6133 {
6134 Longitude = 0,
6135 Latitude
6136 };
6137 Q_ENUM( MapGridAnnotationType )
6138
6139
6144 enum class InputControllerType : int
6145 {
6146 Map2D,
6147 Map3D
6148 };
6150
6157 {
6158 NotSet,
6159 Unknown,
6160 OrdinaryTable,
6161 Index,
6162 Sequence,
6163 View,
6164 MaterializedView,
6165 CompositeType,
6166 ToastTable,
6167 ForeignTable,
6168 PartitionedTable,
6169 };
6170 Q_ENUM( PostgresRelKind )
6171
6172
6178 {
6179 SetFieldComment = 1 << 0,
6180 SetFieldAlias = 1 << 1,
6181 SetTableComment = 1 << 2,
6182 EditFieldDomain = 1 << 3,
6183 DeleteFieldDomain = 1 << 4,
6184 };
6185 Q_ENUM( DatabaseProviderConnectionCapability2 )
6188
6195 {
6196 SetGeometryColumnName = 1 << 0,
6197 SetPrimaryKeyName = 1 << 1,
6198 };
6199 Q_ENUM( DatabaseProviderTableImportCapability )
6202
6209 {
6210 SaveToDatabase = 1 << 1,
6211 LoadFromDatabase = 1 << 2,
6212 DeleteFromDatabase = 1 << 3
6213 };
6217
6218
6224 {
6225 LastProfile,
6226 DefaultProfile,
6227 AskUser,
6228 };
6229 Q_ENUM( UserProfileSelectionPolicy )
6230
6231
6239 {
6240 Container SIP_MONKEYPATCH_COMPAT_NAME( AeTypeContainer ),
6241 Field SIP_MONKEYPATCH_COMPAT_NAME( AeTypeField ),
6242 Relation SIP_MONKEYPATCH_COMPAT_NAME( AeTypeRelation ),
6243 QmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeQmlElement ),
6244 HtmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeHtmlElement ),
6245 Action SIP_MONKEYPATCH_COMPAT_NAME( AeTypeAction ),
6246 TextElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeTextElement ),
6247 SpacerElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeSpacerElement ),
6248 Invalid SIP_MONKEYPATCH_COMPAT_NAME( AeTypeInvalid ),
6249 };
6250 Q_ENUM( AttributeEditorType )
6251
6252
6258 {
6259 GroupBox,
6260 Tab,
6261 Row,
6262 };
6263 Q_ENUM( AttributeEditorContainerType )
6264
6265
6273 {
6274 AutoGenerated SIP_MONKEYPATCH_COMPAT_NAME( GeneratedLayout ) = 0,
6275 DragAndDrop SIP_MONKEYPATCH_COMPAT_NAME( TabLayout ) = 1,
6276 UiFile SIP_MONKEYPATCH_COMPAT_NAME( UiFileLayout ) = 2
6277 };
6278 Q_ENUM( AttributeFormLayout )
6279
6280
6288 {
6289 Default SIP_MONKEYPATCH_COMPAT_NAME( SuppressDefault ) = 0,
6290 On SIP_MONKEYPATCH_COMPAT_NAME( SuppressOn ) = 1,
6291 Off SIP_MONKEYPATCH_COMPAT_NAME( SuppressOff ) = 2
6292 };
6293 Q_ENUM( AttributeFormSuppression )
6294
6295
6303 {
6304 NoSource SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceNone ) = 0,
6305 File SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceFile ) = 1,
6306 Dialog SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceDialog ) = 2,
6307 Environment SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceEnvironment ) = 3
6308 };
6309 Q_ENUM( AttributeFormPythonInitCodeSource )
6310
6311
6317 {
6318 NotAllowed = 0,
6319 AllowedDefaultOn = 1,
6320 AllowedDefaultOff = 2,
6321 };
6322 Q_ENUM( AttributeFormReuseLastValuePolicy )
6323
6324
6330 {
6332 PointCloud,
6333 RasterCalculator,
6334 };
6335 Q_ENUM( ExpressionType )
6336
6337
6345 {
6346 NoSymbology = 0,
6347 PerFeature SIP_MONKEYPATCH_COMPAT_NAME( FeatureSymbology ),
6348 PerSymbolLayer SIP_MONKEYPATCH_COMPAT_NAME( SymbolLayerSymbology )
6349 };
6350 Q_ENUM( FeatureSymbologyExport )
6351
6352
6357 enum class VectorTileProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
6358 {
6359 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
6360 };
6361 Q_ENUM( VectorTileProviderFlag )
6362
6363
6369 Q_FLAG( VectorTileProviderFlags )
6370
6376 {
6377 ReadLayerMetadata = 1 << 1,
6378 };
6379 Q_ENUM( VectorTileProviderCapability )
6380
6381
6388
6395 {
6396 Available,
6397 NotAvailable,
6398 AvailableNoChildren,
6399 UseLowerZoomLevelTile,
6400 };
6401 Q_ENUM( TileAvailability )
6402
6403
6409 {
6410 ReadLayerMetadata = 1 << 1,
6411 };
6412 Q_ENUM( TiledSceneProviderCapability )
6413
6414
6421
6428 {
6429 Region,
6430 OrientedBox,
6431 Sphere,
6432 };
6433 Q_ENUM( TiledSceneBoundingVolumeType )
6434
6435
6444 {
6445 Replacement,
6446 Additive,
6447 };
6448 Q_ENUM( TileRefinementProcess )
6449
6450
6456 {
6457 NoChildren,
6458 Available,
6459 NeedFetching,
6460 };
6461 Q_ENUM( TileChildrenAvailability )
6462
6463
6468 enum class TiledSceneRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
6469 {
6470 NoHierarchyFetch = 1 << 0,
6471 };
6472 Q_ENUM( TiledSceneRequestFlag )
6473
6474
6480 Q_FLAG( TiledSceneRequestFlags )
6481
6487 enum class TiledSceneRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
6488 {
6489 RequiresTextures = 1 << 0,
6490 ForceRasterRender = 1 << 1,
6491 RendersTriangles = 1 << 2,
6492 RendersLines = 1 << 3,
6493 };
6494 Q_ENUM( TiledSceneRendererFlag )
6495
6496
6502 Q_FLAG( TiledSceneRendererFlags )
6503
6509 enum class GdalResampleAlgorithm : int
6510 {
6511 RA_NearestNeighbour = 0,
6512 RA_Bilinear = 1,
6513 RA_Cubic = 2,
6514 RA_CubicSpline = 3,
6515 RA_Lanczos = 4,
6516 RA_Average = 5,
6517 RA_Mode = 6,
6518 RA_Max = 8,
6519 RA_Min = 9,
6520 RA_Median = 10,
6521 RA_Q1 = 11,
6522 RA_Q3 = 12,
6523 };
6524 Q_ENUM( GdalResampleAlgorithm )
6525
6526
6531 enum class VsiHandlerType : int
6532 {
6533 Invalid,
6534 Archive,
6535 Network,
6536 Cloud,
6537 Memory,
6538 Other,
6539 };
6540 Q_ENUM( VsiHandlerType )
6541
6542 // TODO QGIS 5: make All include all values (we can't do this before 4.0, as we need to keep
6543 // compatibility with code which expects all these statistics to give numeric results)
6544
6545
6550 enum class ZonalStatistic : int SIP_ENUM_BASETYPE( IntFlag )
6551 {
6552 Count = 1 << 0,
6553 Sum = 1 << 1,
6554 Mean = 1 << 2,
6555 Median = 1 << 3,
6556 StDev = 1 << 4,
6557 Min = 1 << 5,
6558 Max = 1 << 6,
6559 Range = 1 << 7,
6560 Minority = 1 << 8,
6561 Majority = 1 << 9,
6562 Variety = 1 << 10,
6563 Variance = 1 << 11,
6564 MinimumPoint = 1 << 12,
6565 MaximumPoint = 1 << 13,
6566 // clang-format off
6567 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6568 // clang-format on
6569 AllNumeric = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6570 Default = Count | Sum | Mean,
6571 };
6572 Q_ENUM( ZonalStatistic )
6573
6574
6580 Q_FLAG( ZonalStatistics )
6581
6587 enum class ZonalStatisticResult : int
6588 {
6590 LayerTypeWrong = 1,
6591 LayerInvalid,
6592 RasterInvalid,
6593 RasterBandInvalid,
6594 FailedToCreateField = 8,
6595 Canceled = 9
6596 };
6597 Q_ENUM( ZonalStatisticResult )
6598
6599
6606 {
6607 Count,
6608 CountDistinct,
6609 CountMissing,
6610 Min,
6611 Max,
6612 Sum,
6613 Mean,
6614 Median,
6615 StDev,
6616 StDevSample,
6617 Range,
6618 Minority,
6619 Majority,
6620 FirstQuartile,
6621 ThirdQuartile,
6622 InterQuartileRange,
6623 StringMinimumLength,
6624 StringMaximumLength,
6625 StringConcatenate,
6626 GeometryCollect,
6627 ArrayAggregate,
6628 StringConcatenateUnique
6629 };
6630 Q_ENUM( Aggregate )
6631
6632
6638 {
6639 Count = 1 << 0,
6640 CountMissing = 1 << 15,
6641 Sum = 1 << 1,
6642 Mean = 1 << 2,
6643 Median = 1 << 3,
6644 StDev = 1 << 4,
6645 StDevSample = 1 << 5,
6646 Min = 1 << 6,
6647 Max = 1 << 7,
6648 Range = 1 << 8,
6649 Minority = 1 << 9,
6650 Majority = 1 << 10,
6651 Variety = 1 << 11,
6652 FirstQuartile = 1 << 12,
6653 ThirdQuartile = 1 << 13,
6654 InterQuartileRange = 1 << 14,
6655 First = 1 << 16,
6656 Last = 1 << 17,
6657 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
6658 };
6659 Q_ENUM( Statistic )
6660
6661
6667 Q_FLAG( Statistics )
6668
6675 {
6676 Count = 1,
6677 CountDistinct = 2,
6678 CountMissing = 4,
6679 Min = 8,
6680 Max = 16,
6681 Range = 32,
6682 All = Count | CountDistinct | CountMissing | Min | Max | Range,
6683 };
6684 Q_ENUM( DateTimeStatistic )
6685
6686
6692 Q_FLAG( DateTimeStatistics )
6693
6700 {
6701 Count = 1,
6702 CountDistinct = 2,
6703 CountMissing = 4,
6704 Min = 8,
6705 Max = 16,
6706 MinimumLength = 32,
6707 MaximumLength = 64,
6708 MeanLength = 128,
6709 Minority = 256,
6710 Majority = 512,
6711 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
6712 };
6713 Q_ENUM( StringStatistic )
6714
6715
6721 Q_FLAG( StringStatistics )
6722
6729 {
6730 NoStatistic = 0,
6731 Min = 1,
6732 Max = 1 << 1,
6733 Range = 1 << 2,
6734 Sum = 1 << 3,
6735 Mean = 1 << 4,
6736 StdDev = 1 << 5,
6737 SumOfSquares = 1 << 6,
6738 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
6739 };
6740 Q_ENUM( RasterBandStatistic )
6741
6742
6748 Q_FLAG( RasterBandStatistics )
6749
6756 {
6757 Points,
6758 StructureLines,
6759 BreakLines,
6760 };
6761 Q_ENUM( InterpolationSourceType )
6762
6763
6769 {
6770 Attribute,
6771 Z,
6772 M,
6773 };
6774 Q_ENUM( InterpolationValueSource )
6775
6776
6781 enum class SensorThingsVersion : int
6782 {
6783 Version1_1,
6784 Version2_0,
6785 };
6787
6793 enum class SensorThingsExtension : int SIP_ENUM_BASETYPE( IntFlag )
6794 {
6795 MultiDatastream = 1 << 0,
6796 SensingExtensionObservationsMeasurements = 1 << 1,
6797 SensingExtensionSampling = 1 << 2,
6798 SensingExtensionRelations = 1 << 3,
6799 };
6801
6808 Q_FLAG( SensorThingsExtensions )
6809
6810
6815 enum class SensorThingsEntity : int
6816 {
6817 Invalid,
6818 Thing,
6819 Location,
6820 HistoricalLocation,
6821 Datastream,
6822 Sensor,
6823 ObservedProperty,
6824 Observation,
6825 FeatureOfInterest,
6826 MultiDatastream,
6827 // version 2.0
6828 Feature,
6829 FeatureType,
6830 Deployment,
6831 ObservingProcedure,
6832 Sampling,
6833 SamplingProcedure,
6834 Sampler,
6835 PreparationStep,
6836 PreparationProcedure,
6837 ThingRelation,
6838 RelationRole,
6839 FeatureRelation,
6840 DatastreamRelation,
6841 ObservationRelation,
6842 };
6843 Q_ENUM( SensorThingsEntity )
6844
6845
6850 enum class ColorModel : int
6851 {
6852 Rgb,
6853 Cmyk,
6854 };
6855 Q_ENUM( ColorModel )
6856
6857
6862 enum class DocumentationApi : int
6863 {
6864 PyQgis,
6865 PyQgisSearch,
6866 CppQgis,
6867 Qt,
6868 };
6869 Q_ENUM( DocumentationApi )
6870
6871
6876 enum class DocumentationBrowser : int
6877 {
6878 DeveloperToolsPanel,
6879 SystemWebBrowser,
6880 };
6881 Q_ENUM( DocumentationBrowser )
6882
6883
6888 enum class MouseHandlesAction : int
6889 {
6890 MoveItem,
6891 ResizeUp,
6892 ResizeDown,
6893 ResizeLeft,
6894 ResizeRight,
6895 ResizeLeftUp,
6896 ResizeRightUp,
6897 ResizeLeftDown,
6898 ResizeRightDown,
6899 RotateTopLeft,
6900 RotateTopRight,
6901 RotateBottomLeft,
6902 RotateBottomRight,
6903 SelectItem,
6904 NoAction
6905 };
6906 Q_ENUM( MouseHandlesAction )
6907
6908
6912 enum class MeshRangeLimit : int
6913 {
6914 NotSet,
6915 MinimumMaximum,
6916 };
6917 Q_ENUM( MeshRangeLimit )
6918
6919
6924 enum class MeshRangeExtent : int
6925 {
6926 WholeMesh,
6927 FixedCanvas,
6928 UpdatedCanvas,
6929 };
6930 Q_ENUM( MeshRangeExtent )
6931
6932
6938 enum class PointCloudAccessType : int
6939 {
6940 Local,
6941 Remote
6942 };
6943 Q_ENUM( PointCloudAccessType )
6944
6945
6950 {
6951 RenderExtents,
6952 RenderOverview,
6953 RenderOverviewAndExtents
6954 };
6955 Q_ENUM( PointCloudZoomOutRenderBehavior )
6956
6957
6962 {
6963 Standard = 0,
6964 Adaptive,
6965 AreaError,
6966 ConstantDensity
6967 };
6968 Q_ENUM( SegmentCalculationMethod )
6969
6970
6974 enum class StacObjectType : int
6975 {
6976 Unknown,
6977 Catalog,
6978 Collection,
6979 Item,
6980 };
6981 Q_ENUM( StacObjectType )
6982
6983
6988 {
6989 WmsScale = 1 << 0,
6990 WmsDpi = 1 << 1,
6991 };
6992 Q_ENUM( RasterProcessingParameterCapability )
6993
6994
7000
7006 {
7007 Status = Qt::UserRole + 1,
7008 Id,
7009 ElapsedTime,
7010 MaximumTime,
7011 Sort,
7012 };
7013 Q_ENUM( DevToolsNodeRole )
7014
7015
7020 enum class ExtrusionFace : int SIP_ENUM_BASETYPE( IntFlag )
7021 {
7022 NoFace = 0,
7023 Walls = 1 << 0,
7024 Roof = 1 << 1,
7025 Floor = 1 << 2
7026 };
7027 Q_ENUM( ExtrusionFace )
7028
7029
7033 Q_DECLARE_FLAGS( ExtrusionFaces, ExtrusionFace )
7034 Q_FLAG( ExtrusionFaces )
7035
7040 enum class TriangulationAlgorithm : int SIP_ENUM_BASETYPE( IntFlag )
7041 {
7042 ConstrainedDelaunay = 0,
7043 Earcut = 1 << 0
7044 };
7045 Q_ENUM( TriangulationAlgorithm )
7046
7047
7058 enum class WmsGroupRequestMode : int
7059 {
7060 Normal,
7061 Opaque,
7062 };
7063 Q_ENUM( WmsGroupRequestMode )
7064
7065
7071 {
7072 RestorePreviousState,
7073 ForceDocked,
7074 ForceDialog,
7075 };
7076 Q_ENUM( DockableWidgetInitialState )
7077
7078
7084 {
7085 LongestBorder = 0,
7086 MaximumArea = 1,
7087 MinimumArea = 2,
7088 MinimumIndex = 3,
7089 };
7090 Q_ENUM( CoverageCleanOverlapMergeStrategy )
7091
7092
7097 enum class PdfRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
7098 {
7099 RenderTextAsText = 1 << 0,
7100 };
7101 Q_ENUM( PdfRenderFlag )
7102
7103
7108 Q_DECLARE_FLAGS( PdfRenderFlags, PdfRenderFlag )
7109 Q_FLAG( PdfRenderFlags )
7110
7111
7120 {
7121 AllValues = 0,
7122 MinValue = 1,
7123 MaxValue = 2,
7124 ReferenceValue = 3,
7125 };
7126 Q_ENUM( WmsDimensionDefaultDisplay )
7127
7128
7133 enum class RubberBandIconType : int
7134 {
7135 NoIcon,
7136 CrossPlus,
7137 CrossX,
7138 Box,
7139 Circle,
7140 BoxFilled,
7141 Diamond,
7142 DiamondFilled,
7143 SVG
7144 };
7145 Q_ENUM( RubberBandIconType )
7146
7147
7152 enum class RubberBandComponent : int SIP_ENUM_BASETYPE( IntFlag )
7153 {
7154 Symbol = 1 << 0,
7155 PreviewItems = 1 << 1,
7156 };
7157 Q_ENUM( RubberBandComponent )
7158
7159
7165 Q_FLAG( RubberBandComponents )
7166
7172 enum class UserInterfaceIconType : int
7173 {
7174 MainWindowToolbar,
7175 DockedToolbar,
7176 };
7177 Q_ENUM( UserInterfaceIconType )
7178
7179
7187 {
7188 MinMax = 0,
7189 Scaled,
7190 Fixed
7191 };
7192 Q_ENUM( VectorFieldArrowScalingMethod )
7193
7194
7202 {
7203 Arrows = 0,
7204 Streamlines,
7205 Traces,
7206 WindBarbs
7207 };
7208 Q_ENUM( VectorFieldSymbology )
7209
7210
7218 {
7219 Gridded SIP_MONKEYPATCH_COMPAT_NAME( MeshGridded ) = 0,
7220 Random
7221 };
7222 Q_ENUM( VectorFieldSeedingMethod )
7223
7224
7229 enum class LinearMatrixMethod : int
7230 {
7231 Lu = 0,
7232 Svd = 1,
7233 LuWithSvdFallback = 2
7234 };
7235 Q_ENUM( LinearMatrixMethod )
7236
7237
7240 static const double DEFAULT_SEARCH_RADIUS_MM;
7241
7244
7250 static const QColor DEFAULT_HIGHLIGHT_COLOR;
7251
7255 static const double DEFAULT_HIGHLIGHT_BUFFER_MM;
7256
7261
7269 Q_DECL_DEPRECATED static const double SCALE_PRECISION;
7270
7275 static const double DEFAULT_Z_COORDINATE;
7276
7282 static const double DEFAULT_M_COORDINATE;
7283
7288 static const double UI_SCALE_FACTOR;
7289
7293 static const double DEFAULT_SNAP_TOLERANCE;
7294
7299
7303 static const int USER_CRS_START_ID;
7304
7306 static const double DEFAULT_POINT_SIZE;
7307
7309 static const double DEFAULT_LINE_WIDTH;
7310
7312 static const double DEFAULT_SEGMENT_EPSILON;
7313
7316
7319
7325 static QString defaultProjectScales();
7326
7332 static int geosVersionInt();
7333
7339 static int geosVersionMajor();
7340
7346 static int geosVersionMinor();
7347
7353 static int geosVersionPatch();
7354
7360 static QString geosVersion();
7361
7367 static bool hasSfcgal();
7368
7375 static int sfcgalVersionInt();
7376
7382 static bool hasGeographicLib();
7383
7390 static int geographicLibVersion();
7391
7397 Q_DECL_DEPRECATED static bool hasQtWebkit();
7398
7404 static QString geoNone() { return u"NONE"_s; }
7405
7411 static QString geographicCrsAuthId() { return u"EPSG:4326"_s; }
7412
7417 Q_DECL_DEPRECATED static QString geoWkt()
7418 {
7419 return QStringLiteral(
7420 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]] )"""
7421 );
7422 }
7423
7428 Q_DECL_DEPRECATED static QString geoProj4() { return u"+proj=longlat +datum=WGS84 +no_defs"_s; }
7429};
7430
7433
7535Q_DECLARE_METATYPE( QTimeZone )
7536
7537// hack to workaround warnings when casting void pointers
7538// retrieved from QLibrary::resolve to function pointers.
7539// It's assumed that this works on all systems supporting
7540// QLibrary
7541#define cast_to_fptr( f ) f
7542
7543
7551// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7552template<class Object> class QgsSignalBlocker SIP_SKIP SIP_SKIP // clazy:exclude=rule-of-three
7553{
7554 public:
7559 explicit QgsSignalBlocker( Object *object )
7560 : mObject( object )
7561 , mPreviousState( object->blockSignals( true ) )
7562 {}
7563
7564 ~QgsSignalBlocker() { mObject->blockSignals( mPreviousState ); }
7565
7567 Object *operator->() { return mObject; }
7568
7569 private:
7570 Object *mObject = nullptr;
7571 bool mPreviousState;
7572};
7573
7586// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7587template<class Object> inline QgsSignalBlocker<Object> whileBlocking( Object *object ) SIP_SKIP SIP_SKIP
7588{
7589 return QgsSignalBlocker<Object>( object );
7590}
7591
7593CORE_EXPORT size_t qHash( const QVariant &variant );
7594
7600inline QString qgsDoubleToString( double a, int precision = 17 )
7601{
7602 QString str;
7603 if ( precision )
7604 {
7605 if ( precision < 0 )
7606 {
7607 const double roundFactor = std::pow( 10, -precision );
7608 str = QString::number( static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
7609 }
7610 else
7611 {
7612 str = QString::number( a, 'f', precision );
7613 if ( str.contains( '.'_L1 ) )
7614 {
7615 // remove ending 0s
7616 int idx = str.length() - 1;
7617 while ( str.at( idx ) == '0' && idx > 1 )
7618 {
7619 idx--;
7620 }
7621 if ( idx < str.length() - 1 )
7622 str.truncate( str.at( idx ) == '.' ? idx : idx + 1 );
7623 }
7624 }
7625 }
7626 else
7627 {
7628 str = QString::number( a, 'f', precision );
7629 }
7630 // avoid printing -0
7631 // see https://bugreports.qt.io/browse/QTBUG-71439
7632 if ( str == "-0"_L1 )
7633 {
7634 return "0"_L1;
7635 }
7636 return str;
7637}
7638
7645inline bool qgsNanCompatibleEquals( double a, double b )
7646{
7647 if ( a == b )
7648 return true;
7649
7650 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7651 return true;
7652
7653 return false;
7654}
7655
7656#ifndef SIP_RUN
7657
7665template<typename T> inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
7666{
7667 static_assert( std::is_floating_point<T>::value, "qgsNumberNear requires floating-point types" );
7668
7669 if ( a == b )
7670 return true;
7671
7672 // if either 'a' or 'b' is NaN, 'diff' becomes NaN.
7673 // comparisons (>= or <=) against NaN evaluate to false, which will fallback
7674 // to the nan related logic at the end of this function
7675 const T diff = a - b;
7676 if ( diff >= -epsilon && diff <= epsilon )
7677 return true;
7678
7679 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7680 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7681 return true;
7682
7683 return false;
7684}
7685#endif
7686
7693inline bool qgsDoubleNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7694{
7695 return qgsNumberNear<double>( a, b, epsilon );
7696}
7697
7706inline bool qgsDoubleLessThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7707{
7708 // fast check first
7709 if ( a <= b )
7710 return true;
7711
7712 // => a > b
7713 // => a - b > 0
7714 // we only need to check the upper epsilon bound for the fuzzy equality
7715 if ( a - b <= epsilon )
7716 return true;
7717
7718 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7719 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7720 return true;
7721
7722 return false;
7723}
7724
7733inline bool qgsDoubleGreaterThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7734{
7735 // fast check first
7736 if ( a >= b )
7737 return true;
7738
7739 // => a < b
7740 // => b - a > 0
7741 // we only need to check the upper epsilon bound for the fuzzy equality
7742 if ( b - a <= epsilon )
7743 return true;
7744
7745 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7746 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7747 return true;
7748
7749 return false;
7750}
7751
7758inline bool qgsFloatNear( float a, float b, float epsilon = 4 * FLT_EPSILON )
7759{
7760 return qgsNumberNear<float>( a, b, epsilon );
7761}
7762
7764inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
7765{
7766 const bool aIsNan = std::isnan( a );
7767 const bool bIsNan = std::isnan( b );
7768 if ( aIsNan || bIsNan )
7769 return aIsNan && bIsNan;
7770
7771 // The most simple would be to print numbers as %.xe and compare as strings
7772 // but that is probably too costly
7773 // Then the fastest would be to set some bits directly, but little/big endian
7774 // has to be considered (maybe TODO)
7775 // Is there a better way?
7776 int aexp, bexp;
7777 const double ar = std::frexp( a, &aexp );
7778 const double br = std::frexp( b, &bexp );
7779
7780 return aexp == bexp && std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
7781}
7782
7787inline double qgsRound( double number, int places )
7788{
7789 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
7790 const double scaleFactor = std::pow( 10.0, places );
7791 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
7792}
7793
7794#ifndef SIP_RUN
7795
7802template<class Key, class Value> QString qgsMapJoinKeys( const QMap<Key, Value> &map, const QString &separator )
7803{
7804 QString result;
7805 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7806 result += QString( "%1%2" ).arg( it.key() ).arg( separator );
7807
7808 result.chop( separator.size() );
7809 return result;
7810}
7811
7818template<class Key, class Value> QString qgsMapJoinValues( const QMap<Key, Value> &map, const QString &separator )
7819{
7820 QString result;
7821 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7822 result += QString( "%1%2" ).arg( it.value() ).arg( separator );
7823
7824 result.chop( separator.size() );
7825 return result;
7826}
7827
7834template<class T> QString qgsSetJoin( const QSet<T> &set, const QString &separator )
7835{
7836 QString result;
7837 for ( auto it = set.constBegin(); it != set.constEnd(); it++ )
7838 result += QString( "%1%2" ).arg( *it ).arg( separator );
7839
7840 result.chop( separator.size() );
7841 return result;
7842}
7843
7845
7855namespace qgis
7856{
7857
7870 template<typename To, typename From> inline To down_cast( From *f )
7871 {
7872 static_assert( ( std::is_base_of<From, typename std::remove_pointer<To>::type>::value ), "target type not derived from source type" );
7873 Q_ASSERT( f == nullptr || dynamic_cast<To>( f ) != nullptr );
7874 return static_cast<To>( f );
7875 }
7876
7877 template<class T> QSet<T> listToSet( const QList<T> &list )
7878 {
7879 return QSet<T>( list.begin(), list.end() );
7880 }
7881
7882 template<class T> QList<T> setToList( const QSet<T> &set )
7883 {
7884 return QList<T>( set.begin(), set.end() );
7885 }
7886
7895 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_static_cast( std::unique_ptr<From> f )
7896 {
7897 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
7898 Q_ASSERT( !f || dynamic_cast<To *>( f.get() ) != nullptr );
7899 return std::unique_ptr<To>( static_cast<To *>( f.release() ) );
7900 }
7901
7909 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_dynamic_cast( std::unique_ptr<From> &&f )
7910 {
7911 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
7912 if ( To *casted = dynamic_cast<To *>( f.get() ) )
7913 {
7914 return std::unique_ptr< To >( dynamic_cast<To *>( f.release() ) );
7915 }
7916 else
7917 {
7918 //could not cast
7919 return nullptr;
7920 }
7921 }
7922
7923
7924} //namespace qgis
7925
7927#endif
7928
7933template<class T> const QList<T> qgsEnumList() SIP_SKIP
7934{
7935 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7936 Q_ASSERT( metaEnum.isValid() );
7937 QList<T> enumList;
7938 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
7939 {
7940 enumList.append( static_cast<T>( metaEnum.value( idx ) ) );
7941 }
7942 return enumList;
7943}
7944
7950template<class T> const QMap<T, QString> qgsEnumMap() SIP_SKIP
7951{
7952 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7953 Q_ASSERT( metaEnum.isValid() );
7954 QMap<T, QString> enumMap;
7955 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
7956 {
7957 enumMap.insert( static_cast<T>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
7958 }
7959 return enumMap;
7960}
7961
7967template<class T> QString qgsEnumValueToKey( const T &value, bool *returnOk = nullptr ) SIP_SKIP
7968{
7969 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7970 Q_ASSERT( metaEnum.isValid() );
7971 const char *key = metaEnum.valueToKey( static_cast<int>( value ) );
7972 if ( returnOk )
7973 {
7974 *returnOk = key ? true : false;
7975 }
7976 return QString::fromUtf8( key );
7977}
7978
7986template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
7987{
7988 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7989 Q_ASSERT( metaEnum.isValid() );
7990 bool ok = false;
7991 T v = static_cast<T>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
7992 if ( returnOk )
7993 {
7994 *returnOk = ok;
7995 }
7996 if ( ok )
7997 {
7998 return v;
7999 }
8000 else
8001 {
8002 // if conversion has failed, try with conversion from int value
8003 if ( tryValueAsKey )
8004 {
8005 bool canConvert = false;
8006 const int intValue = key.toInt( &canConvert );
8007 if ( canConvert && metaEnum.valueToKey( intValue ) )
8008 {
8009 if ( returnOk )
8010 {
8011 *returnOk = true;
8012 }
8013 return static_cast<T>( intValue );
8014 }
8015 }
8016 }
8017 return defaultValue;
8018}
8019
8025template<class T> QString qgsFlagValueToKeys( const T &value, bool *returnOk = nullptr ) SIP_SKIP
8026{
8027 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8028 Q_ASSERT( metaEnum.isValid() );
8029 int intValue = static_cast<int>( value );
8030 if ( intValue == 0 )
8031 {
8032 if ( returnOk )
8033 *returnOk = true;
8034 return u"0"_s;
8035 }
8036
8037 const QByteArray ba = metaEnum.valueToKeys( intValue );
8038 // check that the int value does correspond to a flag
8039 // see https://stackoverflow.com/a/68495949/1548052
8040 const int intValueCheck = metaEnum.keysToValue( ba );
8041 bool ok = intValue == intValueCheck;
8042 if ( returnOk )
8043 *returnOk = ok;
8044 return ok ? QString::fromUtf8( ba ) : QString();
8045}
8046
8054template<class T> T qgsFlagKeysToValue( const QString &keys, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
8055{
8056 if ( keys.isEmpty() )
8057 {
8058 if ( returnOk )
8059 {
8060 *returnOk = false;
8061 }
8062 return defaultValue;
8063 }
8064 else if ( keys == "0"_L1 )
8065 {
8066 if ( returnOk )
8067 {
8068 *returnOk = true;
8069 }
8070 return T();
8071 }
8072 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8073 Q_ASSERT( metaEnum.isValid() );
8074 bool ok = false;
8075 T v = static_cast<T>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
8076 if ( returnOk )
8077 {
8078 *returnOk = ok;
8079 }
8080 if ( ok )
8081 {
8082 return v;
8083 }
8084 else
8085 {
8086 // if conversion has failed, try with conversion from int value
8087 if ( tryValueAsKey )
8088 {
8089 bool canConvert = false;
8090 const int intValue = keys.toInt( &canConvert );
8091 if ( canConvert )
8092 {
8093 const QByteArray keyArray = metaEnum.valueToKeys( intValue );
8094 const int intValueCheck = metaEnum.keysToValue( keyArray );
8095 if ( !keyArray.isEmpty() && intValue == intValueCheck )
8096 {
8097 if ( returnOk )
8098 {
8099 *returnOk = true;
8100 }
8101 return T( intValue );
8102 }
8103 }
8104 }
8105 }
8106 return defaultValue;
8107}
8108
8109
8118CORE_EXPORT double qgsPermissiveToDouble( QString string, bool &ok );
8119
8128CORE_EXPORT int qgsPermissiveToInt( QString string, bool &ok );
8129
8139CORE_EXPORT qlonglong qgsPermissiveToLongLong( QString string, bool &ok );
8140
8160CORE_EXPORT int qgsVariantCompare( const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck = false );
8161
8172CORE_EXPORT bool qgsVariantLessThan( const QVariant &lhs, const QVariant &rhs );
8173
8182CORE_EXPORT bool qgsVariantEqual( const QVariant &lhs, const QVariant &rhs );
8183
8192CORE_EXPORT bool qgsVariantGreaterThan( const QVariant &lhs, const QVariant &rhs );
8193
8205inline bool operator>( const QVariant &v1, const QVariant &v2 )
8206{
8207 return qgsVariantCompare( v1, v2, true ) > 0;
8208}
8209
8221inline bool operator<( const QVariant &v1, const QVariant &v2 )
8222{
8223 return qgsVariantCompare( v1, v2, true ) < 0;
8224}
8225
8232Q_DECL_DEPRECATED CORE_EXPORT QString qgsVsiPrefix( const QString &path ) SIP_DEPRECATED;
8233
8239void CORE_EXPORT *qgsMalloc( size_t size ) SIP_SKIP;
8240
8245void CORE_EXPORT qgsFree( void *ptr ) SIP_SKIP;
8246
8247#ifndef SIP_RUN
8248
8250class ScopedIntIncrementor
8251{
8252 public:
8253 ScopedIntIncrementor( int *variable )
8254 : mVariable( variable )
8255 {
8256 ( *mVariable )++;
8257 }
8258
8259 ScopedIntIncrementor( const ScopedIntIncrementor &other ) = delete;
8260 ScopedIntIncrementor &operator=( const ScopedIntIncrementor &other ) = delete;
8261
8262 void release()
8263 {
8264 if ( mVariable )
8265 ( *mVariable )--;
8266
8267 mVariable = nullptr;
8268 }
8269
8270 ~ScopedIntIncrementor() { release(); }
8271
8272 private:
8273 int *mVariable = nullptr;
8274};
8276
8277#endif
8278
8284Q_DECL_DEPRECATED const long GEOSRID = 4326;
8285
8291Q_DECL_DEPRECATED const long GEOCRS_ID = 3452;
8292
8298Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID = 4326;
8299
8300typedef QMap<QString, QString> QgsStringMap SIP_SKIP;
8301
8310typedef unsigned long long qgssize;
8311
8312#ifndef SIP_RUN
8313#if ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) ) || defined( __clang__ )
8314
8315#define Q_NOWARN_DEPRECATED_PUSH _Pragma( "GCC diagnostic push" ) _Pragma( "GCC diagnostic ignored \"-Wdeprecated-declarations\"" );
8316#define Q_NOWARN_DEPRECATED_POP _Pragma( "GCC diagnostic pop" );
8317#define Q_NOWARN_UNREACHABLE_PUSH
8318#define Q_NOWARN_UNREACHABLE_POP
8319
8320#elif defined( _MSC_VER )
8321
8322#define Q_NOWARN_DEPRECATED_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4996 ) )
8323#define Q_NOWARN_DEPRECATED_POP __pragma( warning( pop ) )
8324#define Q_NOWARN_UNREACHABLE_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4702 ) )
8325#define Q_NOWARN_UNREACHABLE_POP __pragma( warning( pop ) )
8326#else
8327
8328#define Q_NOWARN_DEPRECATED_PUSH
8329#define Q_NOWARN_DEPRECATED_POP
8330#define Q_NOWARN_UNREACHABLE_PUSH
8331#define Q_NOWARN_UNREACHABLE_POP
8332
8333#endif
8334#endif
8335
8336#ifndef QGISEXTERN
8337#ifdef Q_OS_WIN
8338#define QGISEXTERN extern "C" __declspec( dllexport )
8339#else
8340#if defined( __GNUC__ ) || defined( __clang__ )
8341#define QGISEXTERN extern "C" __attribute__( ( visibility( "default" ) ) )
8342#else
8343#define QGISEXTERN extern "C"
8344#endif
8345#endif
8346#endif
8347#endif
8348
8349#ifndef SIP_RUN
8350#ifdef _MSC_VER
8351#define BUILTIN_UNREACHABLE __assume( false );
8352#elif defined( __GNUC__ ) && !defined( __clang__ )
8353// Workaround a GCC bug where a -Wreturn-type warning is emitted in constructs
8354// like:
8355// switch( mVariableThatCanOnlyBeXorY )
8356// {
8357// case X:
8358// return "foo";
8359// case Y:
8360// return "foo";
8361// }
8362// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951
8363#define BUILTIN_UNREACHABLE __builtin_unreachable();
8364#else
8365#define BUILTIN_UNREACHABLE
8366#endif
8367#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:6092
DistanceUnitType
Types of distance units.
Definition qgis.h:5610
PieChartLabelType
Pie chart label types.
Definition qgis.h:3564
GnssConstellation
GNSS constellation.
Definition qgis.h:2054
SettingsOption
Settings options.
Definition qgis.h:765
EmbeddedScriptType
Type of Python Embedded in projects.
Definition qgis.h:463
ProfileGeneratorFlag
Flags that control the way the QgsAbstractProfileGenerator operate.
Definition qgis.h:4667
GeometryBackend
Geometry backend for QgsGeometry.
Definition qgis.h:2299
ProcessingSourceType
Processing data source types.
Definition qgis.h:3749
static const Qgis::MapToolUnit DEFAULT_SNAP_UNITS
Default snapping distance units.
Definition qgis.h:7298
GpsQualityIndicator
GPS signal quality indicator.
Definition qgis.h:2072
QFlags< MapGridFrameSideFlag > MapGridFrameSideFlags
Flags for controlling which side of the map a frame is drawn on.
Definition qgis.h:6122
DataItemProviderCapability
Capabilities for data item providers.
Definition qgis.h:1057
ProcessingFileParameterBehavior
Flags which dictate the behavior of QgsProcessingParameterFile.
Definition qgis.h:4031
RasterizedRenderingPolicy
Policies controlling when rasterisation of content during renders is permitted.
Definition qgis.h:2896
QFlags< MapLayerRendererFlag > MapLayerRendererFlags
Flags which control how map layer renderers behave.
Definition qgis.h:2993
ProjectReadFlag
Flags which control project read behavior.
Definition qgis.h:4751
QFlags< DatabaseProviderTableImportCapability > DatabaseProviderTableImportCapabilities
Definition qgis.h:6200
QFlags< BabelCommandFlag > BabelCommandFlags
Babel command flags.
Definition qgis.h:2167
CurvedLabelMode
Modes which determine how curved labels are generated and placed.
Definition qgis.h:1306
MapToolUnit
Type of unit of tolerance value from settings.
Definition qgis.h:5516
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
Definition qgis.h:3536
static const double DEFAULT_LINE_WIDTH
The default width (in millimeters) for line symbols.
Definition qgis.h:7309
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
Definition qgis.h:4106
QFlags< GpsInformationComponent > GpsInformationComponents
GPS information component.
Definition qgis.h:2134
ScaleBarDistanceLabelHorizontalPlacement
Scale bar distance label horizontal placement.
Definition qgis.h:5905
PointCloudSymbol
Rendering symbols for point cloud points.
Definition qgis.h:4695
SymbolRotationMode
Modes for handling how symbol and text entity rotation is handled when maps are rotated.
Definition qgis.h:848
static const double DEFAULT_HIGHLIGHT_MIN_WIDTH_MM
Default highlight line/stroke minimum width in mm.
Definition qgis.h:7260
QFlags< PdfRenderFlag > PdfRenderFlags
PDF rendering flags.
Definition qgis.h:7108
static QString version()
Version string.
Definition qgis.cpp:682
GeometryValidityFlag
Geometry validity check flags.
Definition qgis.h:2221
QFlags< RasterProviderCapability > RasterProviderCapabilities
Raster data provider capabilities.
Definition qgis.h:5441
ExpressionType
Expression types.
Definition qgis.h:6330
MapLayerActionFlag
Map layer action flags.
Definition qgis.h:5171
ScaleBarDistanceLabelVerticalPlacement
Scale bar distance label vertical placement.
Definition qgis.h:5891
MapLayerProperty
Generic map layer properties.
Definition qgis.h:2444
VectorProviderCapability
Vector data provider capabilities.
Definition qgis.h:525
RasterProcessingParameterCapability
Capabilities of a raster layer processing parameter.
Definition qgis.h:6988
BufferSide
Side of line to buffer.
Definition qgis.h:2248
RasterResamplingStage
Stage at which raster resampling occurs.
Definition qgis.h:1619
WmsGroupRequestMode
Request mode of groups in a WMS context.
Definition qgis.h:7059
VectorFieldSeedingMethod
Method used to define start points that are used to draw streamlines.
Definition qgis.h:7218
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
Definition qgis.h:5160
VectorTileProviderCapability
Enumeration with capabilities that vector tile data providers might implement.
Definition qgis.h:6376
ProjectTrustStatus
Project trust status.
Definition qgis.h:476
MultiPartLabelingBehavior
Behavior modifier for labeling features with multi-part geometries.
Definition qgis.h:1345
AltitudeClamping
Altitude clamping.
Definition qgis.h:4225
static const int PREVIEW_JOB_DELAY_MS
Delay between the scheduling of 2 preview jobs.
Definition qgis.h:7315
VectorTileProviderFlag
Flags for vector tile data providers.
Definition qgis.h:6358
VectorFieldSymbology
Defines the symbology of vector field rendering.
Definition qgis.h:7202
VectorTemporalMode
Vector layer temporal feature modes.
Definition qgis.h:2767
SublayerFlag
Flags which reflect the properties of sublayers in a dataset.
Definition qgis.h:1558
QFlags< ProjectCapability > ProjectCapabilities
Flags which control project capabilities.
Definition qgis.h:4795
LabelLinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1395
QFlags< UriCleaningFlag > UriCleaningFlags
Flags for cleaning layer URIs.
Definition qgis.h:1518
CoordinateDisplayType
Formats for displaying coordinates.
Definition qgis.h:4932
ProcessingParameterTypeFlag
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:3979
QFlags< VectorRenderingSimplificationFlag > VectorRenderingSimplificationFlags
Simplification flags for vector feature rendering.
Definition qgis.h:3249
DashPatternSizeAdjustment
Dash pattern size adjustment options.
Definition qgis.h:3509
InterpolationSourceType
Interpolation source types.
Definition qgis.h:6756
static const double DEFAULT_Z_COORDINATE
Default Z coordinate value.
Definition qgis.h:7275
CoverageCleanOverlapMergeStrategy
Merge strategies for coverage cleaning operations.
Definition qgis.h:7084
GpsFixStatus
GPS fix status.
Definition qgis.h:2039
AnnotationItemNodeType
Annotation item node types.
Definition qgis.h:2694
static const char * QGIS_DEV_VERSION
The development version.
Definition qgis.h:89
VectorFileWriterCapability
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1154
QFlags< MapSettingsFlag > MapSettingsFlags
Map settings flags.
Definition qgis.h:2934
InterpolationValueSource
Source for interpolated values from features.
Definition qgis.h:6769
CrsIdentifierType
Available identifier string types for representing coordinate reference systems.
Definition qgis.h:2583
QFlags< RasterRendererFlag > RasterRendererFlags
Flags which control behavior of raster renderers.
Definition qgis.h:1662
AngularDirection
Angular directions.
Definition qgis.h:3650
DriveType
Drive types.
Definition qgis.h:1207
UnitType
Unit types.
Definition qgis.h:5531
ContentStatus
Status for fetched or stored content.
Definition qgis.h:1995
UserInterfaceIconType
Icon types for icons shown in the user interface.
Definition qgis.h:7173
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
Definition qgis.h:1957
SnappingType
SnappingTypeFlag defines on what object the snapping is performed.
Definition qgis.h:790
Map3DBackgroundType
Background types for 3D map view.
Definition qgis.h:4531
LayoutUnit
Layout measurement units.
Definition qgis.h:5758
Q_ENUM(GpsFixStatus)
RelationshipStrength
Relationship strength.
Definition qgis.h:4885
Q_ENUM(GnssConstellation)
PaintEffectFlag
Flags which control how paint effects behave.
Definition qgis.h:3002
MarkerLinePlacement
Defines how/where the symbols should be placed on a line.
Definition qgis.h:3347
QFlags< ProjectReadFlag > ProjectReadFlags
Project load flags.
Definition qgis.h:4773
LegendComponent
Component of legends which can be styled.
Definition qgis.h:5068
Point3DShape
3D point shape types.
Definition qgis.h:4411
GeometryOperationResult
Success or failure of a geometry operation.
Definition qgis.h:2192
QFlags< StringStatistic > StringStatistics
Statistics to be calculated for string values.
Definition qgis.h:6720
BrowserItemState
Browser item states.
Definition qgis.h:1000
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:6258
QFlags< TiledSceneProviderCapability > TiledSceneProviderCapabilities
Tiled scene data provider capabilities.
Definition qgis.h:6419
QFlags< SensorThingsExtension > SensorThingsExtensions
OGC SensorThings extensions.
Definition qgis.h:6807
FeatureRequestFilterType
Types of feature request filters.
Definition qgis.h:2387
MarkerClipMode
Marker clipping modes.
Definition qgis.h:3467
GpsNavigationStatus
GPS navigation status.
Definition qgis.h:2092
AnnotationItemFlag
Flags for annotation items.
Definition qgis.h:2651
AttributeFormReuseLastValuePolicy
Attribute form policy for reusing last entered values.
Definition qgis.h:6317
RenderSubcomponentProperty
Rendering subcomponent properties.
Definition qgis.h:3258
ProcessingTinInputLayerType
Defines the type of input layer for a Processing TIN input.
Definition qgis.h:4121
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
Definition qgis.h:2481
TextureFilterQuality
Texture filtering qualities.
Definition qgis.h:4489
Statistic
Available generic statistics.
Definition qgis.h:6638
TriangulationAlgorithm
Triangulation algorithms.
Definition qgis.h:7041
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
Definition qgis.h:810
AngleUnit
Units of angles.
Definition qgis.h:5673
ToneMappingMethod
Defines the method used to map High Dynamic Range (HDR) scene colors to the Standard Dynamic Range (S...
Definition qgis.h:4606
MapGridAnnotationPosition
Position for map grid annotations.
Definition qgis.h:6002
CaptureTechnique
Capture technique.
Definition qgis.h:418
static QString geosVersion()
GEOS string version linked.
Definition qgis.cpp:704
SpatialIndexPresence
Enumeration of spatial index presence states.
Definition qgis.h:599
BrowserItemCapability
Browser item capabilities.
Definition qgis.h:1013
AttributeFormSuppression
Available form types for layout of the attribute form editor.
Definition qgis.h:6288
QFlags< AuthConfigurationStorageCapability > AuthConfigurationStorageCapabilities
Authentication configuration storage capabilities.
Definition qgis.h:152
QFlags< LayerTreeFilterFlag > LayerTreeFilterFlags
Layer tree filter flags.
Definition qgis.h:5038
LayerTreeInsertionMethod
Layer tree insertion methods.
Definition qgis.h:5002
RasterProviderCapability
Raster data provider capabilities.
Definition qgis.h:5421
DatabaseProviderTableImportCapability
Represents capabilities of a database provider connection when importing table data.
Definition qgis.h:6195
LineClipMode
Line clipping modes.
Definition qgis.h:3481
static const double DEFAULT_SNAP_TOLERANCE
Default snapping distance tolerance.
Definition qgis.h:7293
VectorRenderingSimplificationFlag
Simplification flags for vector feature rendering.
Definition qgis.h:3234
QFlags< GeometryValidityFlag > GeometryValidityFlags
Geometry validity flags.
Definition qgis.h:2226
BrowserDirectoryMonitoring
Browser directory item monitoring switches.
Definition qgis.h:1106
VsiHandlerType
GDAL VSI handler types.
Definition qgis.h:6532
NetworkRequestFlag
Flags controlling behavior of network requests.
Definition qgis.h:187
static int geographicLibVersion()
Returns the version of the GeographicLib library if QGIS is built with GeographicLib support.
Definition qgis.cpp:736
SettingsTreeNodeType
Type of tree node.
Definition qgis.h:695
TilePixelRatio
DpiMode enum.
Definition qgis.h:3590
DatabaseProviderConnectionCapability2
The Capability enum represents the extended operations supported by the connection.
Definition qgis.h:6178
QFlags< PaintEffectFlag > PaintEffectFlags
Flags which control how paint effects behave.
Definition qgis.h:3012
LabelOffsetType
Behavior modifier for label offset and distance, only applies in some label placement modes.
Definition qgis.h:1361
QFlags< ProfileGeneratorFlag > ProfileGeneratorFlags
Definition qgis.h:4673
QFlags< MapLayerLegendFlag > MapLayerLegendFlags
Map layer legend flags.
Definition qgis.h:5057
MapGridUnit
Units for map grid values.
Definition qgis.h:5954
LabelPrioritization
Label prioritization.
Definition qgis.h:1273
GradientColorSource
Gradient color sources.
Definition qgis.h:3396
FileFilterType
Type of file filters.
Definition qgis.h:1490
LabelPlacement
Placement modes which determine how label candidates are generated for a feature.
Definition qgis.h:1287
RasterLayerType
Raster layer types.
Definition qgis.h:5298
static const double DEFAULT_M_COORDINATE
Default M coordinate value.
Definition qgis.h:7282
QFlags< VectorLayerTypeFlag > VectorLayerTypeFlags
Vector layer type flags.
Definition qgis.h:440
ScaleBarAlignment
Scalebar alignment.
Definition qgis.h:5862
LegendLayerDoubleClickAction
Action performed when double-clicking a layer in the legend.
Definition qgis.h:5015
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:5337
ProcessingMode
Types of modes which Processing widgets can be created for.
Definition qgis.h:3890
VectorExportResult
Vector layer export result codes.
Definition qgis.h:1133
ShadowQuality
Shadow texture quality.
Definition qgis.h:4504
PdfRenderFlag
PDF rendering flags.
Definition qgis.h:7098
DistanceUnit
Units of distance.
Definition qgis.h:5548
ScaleBarUnitLabelPlacement
Available placement options for a scale bar's unit label.
Definition qgis.h:5919
RasterTemporalCapabilityFlag
Flags for raster layer temporal capabilities.
Definition qgis.h:2842
SymbolLayerFlag
Flags controlling behavior of symbol layers.
Definition qgis.h:942
MeshRangeLimit
Describes the limits used to compute mesh ranges (min/max values).
Definition qgis.h:6913
GradientSpread
Gradient spread options, which control how gradients are rendered outside of their start and end poin...
Definition qgis.h:3440
LegendSyncMode
Legend synchronization mode.
Definition qgis.h:5086
QFlags< AnnotationItemGuiFlag > AnnotationItemGuiFlags
Annotation item GUI flags.
Definition qgis.h:2684
LabelPolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1420
RasterRangeLimit
Describes the limits used to compute raster ranges (min/max values).
Definition qgis.h:1694
ScaleMethod
Scale methods.
Definition qgis.h:665
QFlags< RasterProcessingParameterCapability > RasterProcessingParameterCapabilities
Raster layer processing parameter capabilities.
Definition qgis.h:6998
SldExportOption
SLD export options.
Definition qgis.h:737
VectorSimplificationAlgorithm
Simplification algorithms for vector features.
Definition qgis.h:3218
FilePathType
File path types.
Definition qgis.h:1826
CadConstraintType
Advanced digitizing constraint type.
Definition qgis.h:4317
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:6303
PointCountMethod
Methods which define the number of points randomly filling a polygon.
Definition qgis.h:3455
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition qgis.h:752
static const double DEFAULT_HIGHLIGHT_BUFFER_MM
Default highlight buffer in mm.
Definition qgis.h:7255
MapCanvasFlag
Flags controlling behavior of map canvases.
Definition qgis.h:3676
LayerTreeFilterFlag
Layer tree filter flags.
Definition qgis.h:5028
TextAnchorPoint
Anchor point of label text.
Definition qgis.h:1475
ExtrusionFace
Extrusion face types for the QgsTessellator.
Definition qgis.h:7021
AttributeFormLayout
Available form types for layout of the attribute form editor.
Definition qgis.h:6273
FeatureRequestFlag
Flags for controlling feature requests.
Definition qgis.h:2358
Map3DDebugFlag
Flags that control debug options for 3D maps.
Definition qgis.h:4378
VertexType
Types of vertex.
Definition qgis.h:3283
ShaderInterpolationMethod
Color ramp shader interpolation methods.
Definition qgis.h:1574
JoinStyle3D
Join styles for 3D buffers.
Definition qgis.h:2286
DataProviderFlag
Generic data provider flags.
Definition qgis.h:2474
Q_ENUM(GpsNavigationStatus)
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
Definition qgis.h:6510
RasterResamplingMethod
Resampling method for raster provider-level resampling.
Definition qgis.h:1633
GeometryValidationEngine
Available engines for validating geometries.
Definition qgis.h:2235
static int geosVersionPatch()
GEOS Patch version number linked.
Definition qgis.cpp:766
TransactionMode
Transaction mode.
Definition qgis.h:4212
Q_ENUM(ScaleToTileZoomLevelMethod)
QFlags< FeatureRendererFlag > FeatureRendererFlags
Flags controlling behavior of vector feature renderers.
Definition qgis.h:900
static const QColor DEFAULT_HIGHLIGHT_COLOR
Default highlight color.
Definition qgis.h:7250
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
Definition qgis.h:5450
static Q_DECL_DEPRECATED const double SCALE_PRECISION
Fudge factor used to compare two scales.
Definition qgis.h:7269
RasterDrawingStyle
Raster drawing styles.
Definition qgis.h:5314
GeosCreationFlag
Flags which control geos geometry creation behavior.
Definition qgis.h:2311
Q_ENUM(SensorThingsExtension)
static const int MAXIMUM_LAYER_PREVIEW_TIME_MS
Maximum rendering time for a layer of a preview job.
Definition qgis.h:7318
QFlags< RubberBandComponent > RubberBandComponents
Rubber band components.
Definition qgis.h:7164
MeshRangeExtent
Describes the extent used to compute mesh ranges (min/max values).
Definition qgis.h:6925
GpsInformationComponent
GPS information component.
Definition qgis.h:2106
Q_ENUM(PointCloudProfileType)
ViewSyncModeFlag
Synchronization of 2D map canvas and 3D view.
Definition qgis.h:3695
ProcessingProviderFlag
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3776
FileOperationFlag
File operation flags.
Definition qgis.h:2429
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
Definition qgis.h:1073
ProjectCapability
Flags which control project capabilities.
Definition qgis.h:4785
QFlags< BabelFormatCapability > BabelFormatCapabilities
Babel GPS format capabilities.
Definition qgis.h:2152
QFlags< SymbolLayerFlag > SymbolLayerFlags
Symbol layer flags.
Definition qgis.h:949
QFlags< RasterInterfaceCapability > RasterInterfaceCapabilities
Raster interface capabilities.
Definition qgis.h:5408
Q_ENUM(VectorProfileType)
AttributeActionType
Attribute action types.
Definition qgis.h:5195
TemporalNavigationMode
Temporal navigation modes.
Definition qgis.h:2721
ProcessingFieldParameterDataType
Processing field parameter data types.
Definition qgis.h:4059
AreaUnit
Units of area.
Definition qgis.h:5625
StringStatistic
Available string statistics.
Definition qgis.h:6700
SelectiveMaskSourceType
Selective masking source types.
Definition qgis.h:3272
FieldDomainMergePolicy
Merge policy for field domains.
Definition qgis.h:4166
ZonalStatistic
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:6551
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:6056
SqlKeywordCategory
SqlKeywordCategory enum represents the categories of the SQL keywords used by the SQL query editor.
Definition qgis.h:1189
QFlags< SnappingType > SnappingTypes
Snapping types.
Definition qgis.h:801
static Q_DECL_DEPRECATED QString geoWkt()
WKT string that represents a geographic coord system.
Definition qgis.h:7417
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:6107
GraduatedMethod
Methods for modifying symbols by range in a graduated symbol renderer.
Definition qgis.h:3524
QFlags< LabelLinePlacementFlag > LabelLinePlacementFlags
Line placement flags, which control how candidates are generated for a linear feature.
Definition qgis.h:1410
TiledSceneBoundingVolumeType
Tiled scene bounding volume types.
Definition qgis.h:6428
TextLayoutMode
Text layout modes.
Definition qgis.h:3106
PropertyType
Property types.
Definition qgis.h:723
QFlags< RenderContextFlag > RenderContextFlags
Render context flags.
Definition qgis.h:2971
LayerFilter
Filter for layers.
Definition qgis.h:225
Q_ENUM(ProviderStyleStorageCapability)
QFlags< SublayerFlag > SublayerFlags
Sublayer flags.
Definition qgis.h:1562
RasterRendererFlag
Flags which control behavior of raster renderers.
Definition qgis.h:1651
QFlags< ExtrusionFace > ExtrusionFaces
Tessellator extrusion face types.
Definition qgis.h:7033
static QString devVersion()
The development version.
Definition qgis.cpp:699
CrsType
Coordinate reference system types.
Definition qgis.h:2493
QFlags< GeosCreationFlag > GeosCreationFlags
Geos geometry creation behavior flags.
Definition qgis.h:2322
MapGridComponentVisibility
Visibility display settings for map grid annotations and frames.
Definition qgis.h:5986
SensorThingsEntity
OGC SensorThings API entity types.
Definition qgis.h:6816
MeshEditingErrorType
Type of error that can occur during mesh frame editing.
Definition qgis.h:1809
FieldDomainSplitPolicy
Split policy for field domains.
Definition qgis.h:4149
ArcGisRestServiceType
Available ArcGIS REST service types.
Definition qgis.h:4823
UriCleaningFlag
Flags for cleaning layer URIs.
Definition qgis.h:1507
RasterFileWriterResult
Raster file export results.
Definition qgis.h:1792
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
Definition qgis.h:2706
ProcessingPropertyAvailability
Property availability, used for QgsProcessingAlgorithm::VectorProperties in order to determine if pro...
Definition qgis.h:3861
GeoJsonProfile
GeoJson export Profile according to OGC Features and Geometries JSON - Part 1: Core https://docs....
Definition qgis.h:5114
MapRecenteringMode
Modes for recentering map canvases.
Definition qgis.h:3708
RasterRangeAccuracy
Describes the accuracy used to compute raster ranges (min/max values).
Definition qgis.h:1725
ActionType
Action types.
Definition qgis.h:5130
ActionStart
Enum to determine when an operation would begin.
Definition qgis.h:1224
PlaybackOperation
Media playback operations.
Definition qgis.h:2750
QFlags< SymbolLayerUserFlag > SymbolLayerUserFlags
Symbol layer user flags.
Definition qgis.h:972
QFlags< TextRendererFlag > TextRendererFlags
Definition qgis.h:3629
SensorThingsExtension
OGC SensorThings extensions.
Definition qgis.h:6794
QueryStorageBackend
Stored query storage backends.
Definition qgis.h:3735
ProviderStyleStorageCapability
The StorageCapability enum represents the style storage operations supported by the provider.
Definition qgis.h:6209
AvoidIntersectionsMode
Flags which control how intersections of pre-existing feature are handled when digitizing new feature...
Definition qgis.h:4722
MarkerShape
Marker shapes.
Definition qgis.h:3298
StacObjectType
Available types of stac objects.
Definition qgis.h:6975
LegendJsonRenderFlag
Legend JSON export flags.
Definition qgis.h:5101
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Definition qgis.h:5465
RasterElevationMode
Raster layer elevation modes.
Definition qgis.h:4264
Capitalization
String capitalization options.
Definition qgis.h:3607
TemporalIntervalMatchMethod
Method to use when resolving a temporal range to a data provider layer or band.
Definition qgis.h:2827
PictureFormat
Picture formats.
Definition qgis.h:5832
QFlags< LabelPolygonPlacementFlag > LabelPolygonPlacementFlags
Polygon placement flags, which control how candidates are generated for a polygon feature.
Definition qgis.h:1432
static QString releaseName()
Release name.
Definition qgis.cpp:694
LabelQuadrantPosition
Label quadrant positions.
Definition qgis.h:1375
QFlags< PlotToolFlag > PlotToolFlags
Definition qgis.h:4367
ScaleToTileZoomLevelMethod
Available methods for converting map scales to tile zoom levels.
Definition qgis.h:3638
SublayerQueryFlag
Flags which control how data providers will scan for sublayers in a dataset.
Definition qgis.h:1540
QFlags< VectorFileWriterCapability > VectorFileWriterCapabilities
Capabilities supported by a QgsVectorFileWriter object.
Definition qgis.h:1164
TextOrientation
Text orientations.
Definition qgis.h:3091
TemporalUnit
Temporal units.
Definition qgis.h:5714
QFlags< RasterRendererCapability > RasterRendererCapabilities
Raster renderer capabilities.
Definition qgis.h:1683
QFlags< SymbolPreviewFlag > SymbolPreviewFlags
Symbol preview flags.
Definition qgis.h:929
UnplacedLabelVisibility
Unplaced label visibility.
Definition qgis.h:1236
CrsDefinitionFormat
CRS definition formats.
Definition qgis.h:4134
SpatialFilterType
Feature request spatial filter types.
Definition qgis.h:2416
VerticalAnchorPoint
Marker symbol vertical anchor points.
Definition qgis.h:876
QFlags< LayoutRenderFlag > LayoutRenderFlags
Flags for controlling how a layout is rendered.
Definition qgis.h:5821
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:3994
TileAvailability
Possible availability states for a tile within a tile matrix.
Definition qgis.h:6395
ProjectFlag
Flags which control the behavior of QgsProjects.
Definition qgis.h:4346
MapGridStyle
Map grid drawing styles.
Definition qgis.h:5970
SensorThingsVersion
OGC SensorThings API versions.
Definition qgis.h:6782
FeatureRendererFlag
Flags controlling behavior of vector feature renderers.
Definition qgis.h:890
static Q_DECL_DEPRECATED QString geoProj4()
PROJ4 string that represents a geographic coord system.
Definition qgis.h:7428
AcademicReferenceType
Type of academic reference.
Definition qgis.h:5226
BrowserItemType
Browser item types.
Definition qgis.h:981
QFlags< FeatureRequestFlag > FeatureRequestFlags
Flags for controlling feature requests.
Definition qgis.h:2376
static bool hasGeographicLib()
Returns true if the QGIS build contains GeographicLib.
Definition qgis.cpp:727
SettingsType
Types of settings entries.
Definition qgis.h:676
QFlags< SettingsOption > SettingsOptions
Definition qgis.h:770
RasterTemporalMode
Raster layer temporal modes.
Definition qgis.h:2810
RasterAttributeTableType
The RasterAttributeTableType enum represents the type of RAT.
Definition qgis.h:1766
RubberBandIconType
Rubber band icon type.
Definition qgis.h:7134
LabelingFlag
Various flags that affect drawing and placement of labels.
Definition qgis.h:3042
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition qgis.h:379
RelationshipType
Relationship types.
Definition qgis.h:4871
ScriptLanguageCapability
Script language capabilities.
Definition qgis.h:4981
RasterInterfaceCapability
Raster interface capabilities.
Definition qgis.h:5388
JoinStyle
Join styles for buffers.
Definition qgis.h:2273
PointCloudDrawOrder
Pointcloud rendering order for 2d views.
Definition qgis.h:4707
QFlags< RasterBandStatistic > RasterBandStatistics
Statistics to be calculated for raster bands.
Definition qgis.h:6747
CadMeasurementDisplayType
Advanced digitizing measurement display types.
Definition qgis.h:4333
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3837
ProcessingMenu
Standard menu groups for Processing tools.
Definition qgis.h:3903
TextCharacterVerticalAlignment
Text vertical alignment for characters.
Definition qgis.h:3182
FieldDuplicatePolicy
Duplicate policy for fields.
Definition qgis.h:4186
UserProfileSelectionPolicy
User profile selection policy.
Definition qgis.h:6224
static const float DEFAULT_MAPTOPIXEL_THRESHOLD
Default threshold between map coordinates and device coordinates for map2pixel simplification.
Definition qgis.h:7243
QFlags< FileOperationFlag > FileOperationFlags
File operation flags.
Definition qgis.h:2434
DpiMode
DpiMode enum.
Definition qgis.h:3576
Q_ENUM(ProfileExportType)
BrowserLayerType
Browser item layer types.
Definition qgis.h:1082
QFlags< ProcessingAlgorithmFlag > ProcessingAlgorithmFlags
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3828
AltitudeBinding
Altitude binding.
Definition qgis.h:4238
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
Definition qgis.h:512
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:6488
MaterialWidgetMode
Modes for material settings widgets.
Definition qgis.h:4451
MapLayerActionTarget
Map layer action targets.
Definition qgis.h:5145
ShaderClassificationMethod
Color ramp shader classification methods.
Definition qgis.h:1589
QFlags< ScaleBarUnitLabelPlacement > ScaleBarUnitLabelPlacements
Available placement options for a scale bar's unit label.
Definition qgis.h:5943
MapLayerLegendFlag
Map layer legend flags.
Definition qgis.h:5047
ZonalStatisticResult
Zonal statistics result codes.
Definition qgis.h:6588
ScriptLanguage
Scripting languages.
Definition qgis.h:4958
QFlags< BrowserItemCapability > BrowserItemCapabilities
Browser item capabilities.
Definition qgis.h:1027
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:4618
FeatureAvailability
Possible return value for QgsFeatureSource::hasFeatures() to determine if a source is empty.
Definition qgis.h:618
PlotAxisType
Plots axis types.
Definition qgis.h:3552
TiledSceneProviderCapability
Tiled scene data provider capabilities.
Definition qgis.h:6409
LabelMultiLineAlignment
Text alignment for multi-line labels.
Definition qgis.h:1458
PointCloudProfileType
Types of elevation profiles to generate for point cloud sources.
Definition qgis.h:4655
RasterBandStatistic
Available raster band statistics.
Definition qgis.h:6729
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
Definition qgis.h:6386
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:6579
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
Definition qgis.h:2797
TextRenderFormat
Options for rendering text.
Definition qgis.h:3023
DocumentationBrowser
Documentation API browser.
Definition qgis.h:6877
DataType
Raster data types.
Definition qgis.h:393
Q_ENUM(ProfileSurfaceSymbology)
QFlags< ViewSyncModeFlag > ViewSyncModeFlags
Definition qgis.h:3700
QFlags< SublayerQueryFlag > SublayerQueryFlags
Sublayer query flags.
Definition qgis.h:1548
SystemOfMeasurement
Systems of unit measurement.
Definition qgis.h:5501
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
Definition qgis.h:1737
VerticalAxisInversion
Vertical axis inversion options for 3D views.
Definition qgis.h:4584
QFlags< CoordinateTransformationFlag > CoordinateTransformationFlags
Coordinate transformation flags.
Definition qgis.h:2887
RelationshipCapability
Relationship capabilities.
Definition qgis.h:4911
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
Definition qgis.h:4544
RasterBuildPyramidOption
Raster pyramid building options.
Definition qgis.h:5352
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
Definition qgis.h:564
NavigationMode
The navigation mode used by 3D cameras.
Definition qgis.h:4559
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:3367
TileChildrenAvailability
Possible availability states for a tile's children.
Definition qgis.h:6456
WindSpeedUnit
Wind speed units.
Definition qgis.h:5696
PointCloudZoomOutRenderBehavior
Point cloud zoom out options.
Definition qgis.h:6950
QFlags< SymbolConverterCapability > SymbolConverterCapabilities
Symbol converter capabilities.
Definition qgis.h:839
LayerType
Types of layers that can be added to a map.
Definition qgis.h:206
QFlags< AnnotationItemFlag > AnnotationItemFlags
Annotation item flags.
Definition qgis.h:2657
FieldOrigin
Field origin.
Definition qgis.h:1854
BillboardScaleMode
3D billboard scaling modes.
Definition qgis.h:4477
LinearReferencingLabelSource
Defines what quantity to use for the labels shown in a linear referencing symbol layer.
Definition qgis.h:3381
QFlags< BrowserItemFilterFlag > BrowserItemFilterFlags
Browser item filter flags.
Definition qgis.h:1046
LabelWhitespaceCollisionHandling
Label whitespace collision handling.
Definition qgis.h:1261
RasterRangeExtent
Describes the extent used to compute raster ranges (min/max values).
Definition qgis.h:1710
QFlags< Statistic > Statistics
Statistics to be calculated for generic values.
Definition qgis.h:6666
PlotToolFlag
Flags that control the way the QgsPlotTools operate.
Definition qgis.h:4363
RenderUnit
Rendering size units.
Definition qgis.h:5738
QFlags< ArcGisRestServiceCapability > ArcGisRestServiceCapabilities
Available ArcGIS REST service capabilities.
Definition qgis.h:4860
static QString geographicCrsAuthId()
Geographic coordinate system auth:id string for a default geographic CRS (EPSG:4326).
Definition qgis.h:7411
CoordinateOrder
Order of coordinates.
Definition qgis.h:2568
SelectionFlag
Flags which control feature selection behavior.
Definition qgis.h:1947
QFlags< SettingsTreeNodeOption > SettingsTreeNodeOptions
Definition qgis.h:712
EndCapStyle
End cap styles for buffers.
Definition qgis.h:2260
ScaleCalculationMethod
Scale calculation logic.
Definition qgis.h:5845
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:6479
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:5184
QFlags< MapLayerProperty > MapLayerProperties
Map layer properties.
Definition qgis.h:2451
QFlags< LoadStyleFlag > LoadStyleFlags
Flags for loading layer styles.
Definition qgis.h:263
BabelCommandFlag
Babel command flags, which control how commands and arguments are generated for executing GPSBabel pr...
Definition qgis.h:2163
QFlags< LabelingFlag > LabelingFlags
Flags that affect drawing and placement of labels.
Definition qgis.h:3066
QFlags< VerticalAxisInversion > VerticalAxisInversionFlags
Definition qgis.h:4596
FieldDomainType
Types of field domain.
Definition qgis.h:4199
MapLayerRendererFlag
Flags which control how map layer renderers behave.
Definition qgis.h:2981
RenderContextFlag
Flags which affect rendering operations.
Definition qgis.h:2944
RasterPipeInterfaceRole
Raster pipe interface roles.
Definition qgis.h:1602
CoverageValidityResult
Coverage validity results.
Definition qgis.h:2331
DataProviderReadFlag
Flags which control data provider construction.
Definition qgis.h:491
ScaleBarSegmentSizeMode
Modes for setting size for scale bar segments.
Definition qgis.h:5877
Aggregate
Available aggregates to calculate.
Definition qgis.h:6606
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:2624
BrowserItemFilterFlag
Browser item filter flags.
Definition qgis.h:1036
SymbolPreviewFlag
Flags for controlling how symbol preview images are generated.
Definition qgis.h:924
static const double DEFAULT_SEARCH_RADIUS_MM
Identify search radius in mm.
Definition qgis.h:7240
AnnotationItemGuiFlag
Flags for controlling how an annotation item behaves in the GUI.
Definition qgis.h:2680
MapBoxGlStyleSourceType
Available MapBox GL style source types.
Definition qgis.h:4804
LayoutUnitType
Types of layout units.
Definition qgis.h:5778
VectorDataProviderAttributeEditCapability
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:631
DashPatternLineEndingRule
Dash pattern line ending rules.
Definition qgis.h:3494
FieldMetadataProperty
Standard field metadata values.
Definition qgis.h:1895
MapGridAnnotationType
Annotation coordinate type.
Definition qgis.h:6133
TiledSceneRequestFlag
Flags which control how tiled scene requests behave.
Definition qgis.h:6469
RasterRendererCapability
Raster renderer capabilities.
Definition qgis.h:1673
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
Definition qgis.h:1983
HistoryProviderBackend
History provider backends.
Definition qgis.h:3721
static const double DEFAULT_SEGMENT_EPSILON
Default snapping tolerance for segments.
Definition qgis.h:7312
RasterExportType
Raster file export types.
Definition qgis.h:1779
SublayerPromptMode
Specifies how to handle layer sources with multiple sublayers.
Definition qgis.h:1838
TextVerticalAlignment
Text vertical alignment.
Definition qgis.h:3166
RelationshipCardinality
Relationship cardinality.
Definition qgis.h:4897
GradientType
Gradient types.
Definition qgis.h:3410
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
Definition qgis.h:4993
VectorProfileType
Types of elevation profiles to generate for vector sources.
Definition qgis.h:4643
GpsFeatureType
GPS feature types.
Definition qgis.h:2177
SourceHierarchyLevel
Defines the structural levels within a data source hierarchy.
Definition qgis.h:1527
VectorLayerTypeFlag
Vector layer type flags.
Definition qgis.h:435
MakeValidMethod
Algorithms to use when repairing invalid geometries.
Definition qgis.h:2344
QFlags< Map3DDebugFlag > Map3DDebugFlags
Definition qgis.h:4388
RangeLimits
Describes how the limits of a range are handled.
Definition qgis.h:4250
QFlags< ProjectFlag > ProjectFlags
Definition qgis.h:4354
VectorTemporalLimitMode
Mode for the handling of the limits of the filtering timeframe for vector features.
Definition qgis.h:2785
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4020
SqlLayerDefinitionCapability
SqlLayerDefinitionCapability enum lists the arguments supported by the provider when creating SQL que...
Definition qgis.h:1172
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:1968
QFlags< VectorDataProviderAttributeEditCapability > VectorDataProviderAttributeEditCapabilities
Attribute editing capabilities which may be supported by vector data providers.
Definition qgis.h:643
Map3DProjectionType
3D map projection type
Definition qgis.h:4397
Axis
Cartesian axes.
Definition qgis.h:2638
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3849
QFlags< RelationshipCapability > RelationshipCapabilities
Relationship capabilities.
Definition qgis.h:4923
ArcGisRestServiceCapability
Available ArcGIS REST service capabilities.
Definition qgis.h:4844
QFlags< SymbolRenderHint > SymbolRenderHints
Symbol render hints.
Definition qgis.h:818
VolumeUnit
Units of volume.
Definition qgis.h:5650
CurvedTextFlag
Flags controlling behavior of curved text generation.
Definition qgis.h:3195
AttributeEditorType
Attribute editor types.
Definition qgis.h:6239
QFlags< LegendJsonRenderFlag > LegendJsonRenderFlags
Definition qgis.h:5105
QFlags< ProviderStyleStorageCapability > ProviderStyleStorageCapabilities
Definition qgis.h:6215
RubberBandComponent
Rubber band components.
Definition qgis.h:7153
EmbeddedScriptMode
Authorisation to run script embedded in projects.
Definition qgis.h:448
SymbolLayerUserFlag
User-specified flags controlling behavior of symbol layers.
Definition qgis.h:962
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
Definition qgis.h:2403
QFlags< SymbolFlag > SymbolFlags
Symbol flags.
Definition qgis.h:915
QFlags< ProcessingFeatureSourceDefinitionFlag > ProcessingFeatureSourceDefinitionFlags
Flags which control behavior for a Processing feature source.
Definition qgis.h:3942
MapGridFrameStyle
Style for map grid frames.
Definition qgis.h:6072
PointCloudAccessType
The access type of the data, local is for local files and remote for remote files (over HTTP).
Definition qgis.h:6939
ProfileExportType
Types of export for elevation profiles.
Definition qgis.h:4682
MeshElevationMode
Mesh layer elevation modes.
Definition qgis.h:4278
ProjectFileFormat
Flags which control project read behavior.
Definition qgis.h:4737
SnappingMode
SnappingMode defines on which layer the snapping is performed.
Definition qgis.h:778
SymbolType
Symbol types.
Definition qgis.h:651
RasterColorInterpretation
Raster color interpretation.
Definition qgis.h:5247
static const int USER_CRS_START_ID
Minimum ID number for a user-defined projection.
Definition qgis.h:7303
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
Definition qgis.h:4630
LabelPlacementEngineVersion
Labeling placement engine version.
Definition qgis.h:3077
Q_ENUM(ProcessingAlgorithmFlag)
static int geosVersionMinor()
GEOS Minor version number linked.
Definition qgis.cpp:761
MaterialRenderingTechnique
Material rendering techniques.
Definition qgis.h:4433
ColorModel
Color model types.
Definition qgis.h:6851
RendererUsage
Usage of the renderer.
Definition qgis.h:3663
SettingsTreeNodeOption
Options for named list nodes.
Definition qgis.h:707
BabelFormatCapability
Babel GPS format capabilities.
Definition qgis.h:2144
PostgresRelKind
Postgres database relkind options.
Definition qgis.h:6157
SegmentCalculationMethod
brief Method used to calculate the number of segments for circle approximation
Definition qgis.h:6962
WmsDimensionDefaultDisplay
QGIS Server WMS Dimension default display types.
Definition qgis.h:7120
GpsConnectionType
GPS connection types.
Definition qgis.h:2010
Q_ENUM(InputControllerType)
QFlags< DatabaseProviderConnectionCapability2 > DatabaseProviderConnectionCapabilities2
Definition qgis.h:6186
MouseHandlesAction
Action to be performed by the mouse handles.
Definition qgis.h:6889
ProcessingFeatureSourceDefinitionFlag
Flags which control behavior for a Processing feature source.
Definition qgis.h:3927
QFlags< TextComponent > TextComponents
Text components.
Definition qgis.h:3136
static QString geoNone()
Constant that holds the string representation for "No ellipse/No CRS".
Definition qgis.h:7404
DevToolsNodeRole
Dev tools node custom data roles.
Definition qgis.h:7006
LoadStyleFlag
Flags for loading layer styles.
Definition qgis.h:252
BetweenLineConstraint
Between line constraints which can be enabled.
Definition qgis.h:4291
QFlags< VectorTileProviderFlag > VectorTileProviderFlags
Vector tile data provider flags.
Definition qgis.h:6368
SymbolConverterCapability
Symbol converter capabilities.
Definition qgis.h:827
MetadataDateType
Date types for metadata.
Definition qgis.h:5213
QFlags< RasterTemporalCapabilityFlag > RasterTemporalCapabilityFlags
Flags for raster layer temporal capabilities.
Definition qgis.h:2853
ProcessingFeatureSourceFlag
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3953
RasterIdentifyFormat
Raster identify formats.
Definition qgis.h:5367
MapGridAnnotationDirection
Direction of grid annotations.
Definition qgis.h:6016
TextHorizontalAlignment
Text horizontal alignment.
Definition qgis.h:3147
SymbolFlag
Flags controlling behavior of symbols.
Definition qgis.h:909
LineExtensionSide
Designates whether the line extension constraint is currently soft locked with the previous or next v...
Definition qgis.h:4304
HttpMethod
Different methods of HTTP requests.
Definition qgis.h:1118
WkbType
The WKB type describes the number of dimensions a geometry has.
Definition qgis.h:294
QFlags< SldExportOption > SldExportOptions
Definition qgis.h:743
SymbolCoordinateReference
Symbol coordinate reference modes.
Definition qgis.h:3425
QFlags< ProcessingProviderFlag > ProcessingProviderFlags
Flags indicating how and when an processing provider operates and should be exposed to users.
Definition qgis.h:3790
TileRefinementProcess
Tiled scene tile refinement processes.
Definition qgis.h:6444
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
Definition qgis.h:6691
SelectionRenderingMode
Specifies how a selection should be rendered.
Definition qgis.h:1908
InputControllerType
Input controller types.
Definition qgis.h:6145
TextRendererFlag
Flags which control the behavior of rendering text.
Definition qgis.h:3625
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
Definition qgis.h:1935
CrsAxisDirection
Coordinate reference system axis directions.
Definition qgis.h:2518
ProcessingModelChildParameterSource
Processing model child parameter sources.
Definition qgis.h:4090
static int geosVersionInt()
GEOS version number linked.
Definition qgis.cpp:750
QFlags< MarkerLinePlacement > MarkerLinePlacements
Definition qgis.h:3358
QFlags< MapCanvasFlag > MapCanvasFlags
Flags controlling behavior of map canvases.
Definition qgis.h:3686
CrsWktVariant
Coordinate reference system WKT formatting variants.
Definition qgis.h:2598
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
Definition qgis.h:6501
MapGridAnnotationFormat
Format for displaying map grid annotations.
Definition qgis.h:6035
DocumentationApi
Documentation API.
Definition qgis.h:6863
AutoRefreshMode
Map layer automatic refresh modes.
Definition qgis.h:2461
AnnotationPlacementMode
Annotation item placement modes.
Definition qgis.h:2667
ProcessingAlgorithmFlag
Flags indicating how and when an algorithm operates and should be exposed to users.
Definition qgis.h:3801
QFlags< InstancedMaterialFlag > InstancedMaterialFlags
Definition qgis.h:4468
SceneMode
The 3D scene mode used in 3D map views.
Definition qgis.h:4572
InstancedMaterialFlag
Optional per-instance properties of instanced materials.
Definition qgis.h:4463
FieldConfigurationFlag
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1871
SettingsOrigin
The setting origin describes where a setting is stored.
Definition qgis.h:4945
HorizontalAnchorPoint
Marker symbol horizontal anchor points.
Definition qgis.h:862
VectorFieldArrowScalingMethod
Algorithm to transform vector magnitude to length of arrow on the device in pixels.
Definition qgis.h:7187
QFlags< CurvedTextFlag > CurvedTextFlags
Flags controlling behavior of curved text generation.
Definition qgis.h:3208
ProcessingParameterFlag
Flags which dictate the behavior of Processing parameters.
Definition qgis.h:4005
LabelOverlapHandling
Label overlap handling.
Definition qgis.h:1248
static const double UI_SCALE_FACTOR
UI scaling factor.
Definition qgis.h:7288
FeatureSymbologyExport
Options for exporting features considering their symbology.
Definition qgis.h:6345
QFlags< LayerFilter > LayerFilters
Definition qgis.h:243
ProcessingDateTimeParameterDataType
Processing date time parameter data types.
Definition qgis.h:4077
DockableWidgetInitialState
Dockable widget initial states.
Definition qgis.h:7071
CoordinateTransformationFlag
Flags which adjust the coordinate transformations behave.
Definition qgis.h:2874
TextComponent
Text components.
Definition qgis.h:3123
DateTimeStatistic
Available date/time statistics.
Definition qgis.h:6675
AnimationState
Animation states.
Definition qgis.h:2737
TransformDirection
Indicates the direction (forward or inverse) of a transform.
Definition qgis.h:2862
LightSourceType
Light source types for 3D scenes.
Definition qgis.h:4519
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3965
QFlags< HistoryProviderBackend > HistoryProviderBackends
Definition qgis.h:3726
LabelPredefinedPointPosition
Positions for labels when using the Qgis::LabelPlacement::OrderedPositionsAroundPoint placement mode.
Definition qgis.h:1322
QFlags< FieldConfigurationFlag > FieldConfigurationFlags
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
Definition qgis.h:1886
UpsideDownLabelHandling
Handling techniques for upside down labels.
Definition qgis.h:1443
LinearMatrixMethod
Mathematical methods to use for solving linear matrix equations.
Definition qgis.h:7230
static const double DEFAULT_POINT_SIZE
The default size (in millimeters) for point marker symbols.
Definition qgis.h:7306
DeviceConnectionStatus
GPS connection status.
Definition qgis.h:2024
ProcessingNumberParameterType
Processing numeric parameter data types.
Definition qgis.h:4045
MapSettingsFlag
Flags which adjust the way maps are rendered.
Definition qgis.h:2909
QFlags< SqlLayerDefinitionCapability > SqlLayerDefinitionCapabilities
SQL layer definition capabilities.
Definition qgis.h:1180
ProcessingLogLevel
Logging level for algorithms to use when pushing feedback messages.
Definition qgis.h:3875
SelectBehavior
Specifies how a selection should be applied.
Definition qgis.h:1921
LayoutRenderFlag
Flags for controlling how a layout is rendered.
Definition qgis.h:5792
Utility class that encapsulates an action based on vector attributes.
Definition qgsaction.h:38
Utility class for calculating aggregates for a field (or expression) over the features from a vector ...
Utility functions for working with ArcGIS REST services.
An abstract base class for any elements of a drag and drop form.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
Represents a coordinate reference system (CRS).
Handles coordinate transforms between two coordinate systems.
Abstract base class for curved geometry type.
Definition qgscurve.h:36
Base class for all items in the model.
Definition qgsdataitem.h:50
Abstract base class for spatial data provider implementations.
Calculator for summary statistics and aggregates for a list of datetimes.
Contains configuration settings for an editor form.
Wraps a request for features to a vector layer (or directly its vector data provider).
An interface for objects which provide features via a getFeatures method.
Container of fields for a vector layer.
Definition qgsfields.h:45
A geometry is the spatial representation of a feature.
Encapsulates information relating to a GPS position fix.
A fill symbol layer which draws a smooth color gradient over a polygon.
A vector feature renderer which uses numeric attributes to classify features into different ranges.
Contains settings related to how the label engine places and formats labels for line features (or pol...
Stores global configuration for labeling engine.
Contains constants and enums relating to labeling.
Definition qgslabeling.h:33
A browser item that represents a layer that can be opened with one of the providers.
An individual grid which is drawn above the map content in a QgsLayoutItemMap.
A layout item subclass that displays SVG files or raster format images (jpg, png, ....
Stores information relating to the current rendering settings for a layout.
Contains detailed styling information relating to how a layout legend should be rendered.
A proxy model which provides an easy to use model to display the list of layers in widgets.
Base class for all map layer types.
Definition qgsmaplayer.h:83
Contains configuration for rendering maps.
Abstract base class for marker symbol layers.
Represents a mesh renderer settings for vector datasets displayed with arrows.
Represents a renderer settings for vector datasets.
Represents a streamline renderer settings for vector datasets displayed by streamlines.
Represents a mesh renderer settings for vector datasets displayed with wind barbs.
Interface for showing messages from QGIS in GUI independent way.
Registry for temporary fetched files.
Contains miscellaneous painting utility functions.
Definition qgspainting.h:32
Contains settings for how a map layer will be labeled.
Abstract base class for 2d point cloud renderers.
Abstract base class for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
Encapsulates settings relating to a feature source input to a processing algorithm.
QgsFeatureSource subclass which proxies methods to an underlying QgsFeatureSource,...
A datetime (or pure date or time) parameter for processing algorithms.
Base class for the definition of processing parameters.
A vector layer or feature source field parameter for processing algorithms.
An input file or folder parameter for processing algorithms.
A numeric parameter for processing algorithms.
A parameter for processing algorithms that need a list of input vector layers to construct a TIN.
Makes metadata of processing parameters available.
Abstract base class for processing providers.
Contains enumerations and other constants for use in processing algorithms and parameters.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:114
A store for object properties.
Holds data provider key, description, and associated shared library file or function pointer informat...
A fill symbol layer which places markers at random locations within polygons.
The RasterBandStats struct is a container for statistics about a single raster band.
Implementation of data provider temporal properties for QgsRasterDataProviders.
Base class for raster data providers.
The raster file writer which allows you to save a raster to a new file.
Base class for processing filters like renderers, reprojector, resampler etc.
Implementation of map layer temporal properties for raster layers.
Represents a raster layer.
Describes the origin of minimum and maximum values in a raster.
Contains a pipeline of raster interfaces for sequential raster processing.
Raster namespace.
Definition qgsraster.h:32
Represents a relationship between two vector layers.
Definition qgsrelation.h:42
Contains information about the context of a rendering operation.
Stores the appearance and layout settings for scalebar drawing with QgsScaleBarRenderer.
Represents a settings entry and provides methods for reading and writing settings values.
RAII signal blocking class.
Definition qgis.h:7553
Object * operator->()
Returns pointer to blocked QObject.
Definition qgis.h:7567
QgsSignalBlocker(Object *object)
Constructor for QgsSignalBlocker.
Definition qgis.h:7559
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:586
CreateLayerActionOnExisting
Actions to take when attempting to create a layer on an existing datasource.
Definition qgis.h:573
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:8291
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:8205
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:8284
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:7986
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
Definition qgis.h:7600
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:7818
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
Definition qgis.h:7967
QString qgsFlagValueToKeys(const T &value, bool *returnOk=nullptr)
Returns the value for the given keys of a flag.
Definition qgis.h:8025
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:7802
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:8054
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:8310
const QMap< T, QString > qgsEnumMap()
Returns a map of all enum entries.
Definition qgis.h:7950
bool qgsFloatNear(float a, float b, float epsilon=4 *FLT_EPSILON)
Compare two floats (but allow some difference).
Definition qgis.h:7758
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:7834
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:7933
double qgsRound(double number, int places)
Returns a double number, rounded (as close as possible) to the specified number of places.
Definition qgis.h:7787
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference).
Definition qgis.h:7693
bool qgsNanCompatibleEquals(double a, double b)
Compare two doubles, treating nan values as equal.
Definition qgis.h:7645
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Definition qgis.h:7587
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:8300
Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system.
Definition qgis.h:8298
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
Compare two doubles using specified number of significant digits.
Definition qgis.h:7764
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:7665
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:7733
#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:7706
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:8221
#define SIP_DEPRECATED
Definition qgis_sip.h:113
#define SIP_ENUM_BASETYPE(type)
Definition qgis_sip.h:277
#define SIP_SKIP
Definition qgis_sip.h:138
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:270
#define SIP_MONKEYPATCH_FLAGS_UNNEST(OUTSIDE_CLASS, FORMERNAME)
Definition qgis_sip.h:271
#define SIP_MONKEYPATCH_SCOPEENUM
Definition qgis_sip.h:269
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)
Definition qgis_sip.h:272
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsProjectionSelectionWidget::CrsOptions)
Utility class for identifying a unique vertex within a geometry.
Definition qgsvertexid.h:35