QGIS API Documentation 4.3.0-Master (6313fb5bce0)
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
3905 {
3906 OverrideDefaultGeometryCheck SIP_MONKEYPATCH_COMPAT_NAME( FlagOverrideDefaultGeometryCheck )
3907 = 1 << 0,
3908 CreateIndividualOutputPerInputFeature SIP_MONKEYPATCH_COMPAT_NAME( FlagCreateIndividualOutputPerInputFeature )
3909 = 1 << 1,
3910 };
3911 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
3912
3913
3922
3931 {
3932 SkipGeometryValidityChecks SIP_MONKEYPATCH_COMPAT_NAME( FlagSkipGeometryValidityChecks ) = 1 << 1,
3933 };
3934 Q_ENUM( ProcessingFeatureSourceFlag )
3935
3936
3945
3957 {
3958 ExposeToModeler = 1
3959 };
3960 Q_ENUM( ProcessingParameterTypeFlag )
3961
3962
3974
3983 {
3984 Advanced SIP_MONKEYPATCH_COMPAT_NAME( FlagAdvanced ) = 1 << 1,
3985 Hidden SIP_MONKEYPATCH_COMPAT_NAME( FlagHidden ) = 1 << 2,
3986 Optional SIP_MONKEYPATCH_COMPAT_NAME( FlagOptional ) = 1 << 3,
3987 IsModelOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagIsModelOutput ) = 1 << 4,
3988 };
3989 Q_ENUM( ProcessingParameterFlag )
3990
3991
3999 Q_FLAG( ProcessingParameterFlags )
4000
4013 Q_ENUM( ProcessingFileParameterBehavior )
4014
4015
4027 Q_ENUM( ProcessingNumberParameterType )
4028
4029
4037 {
4038 Any = -1,
4039 Numeric = 0,
4040 String = 1,
4041 DateTime = 2,
4042 Binary = 3,
4043 Boolean = 4,
4044 };
4045 Q_ENUM( ProcessingFieldParameterDataType )
4046
4047
4060 Q_ENUM( ProcessingDateTimeParameterDataType )
4061
4062
4068 {
4069 ModelParameter,
4070 ChildOutput,
4071 StaticValue,
4072 Expression,
4073 ExpressionText,
4074 ModelOutput,
4075 };
4076 Q_ENUM( ProcessingModelChildParameterSource )
4077
4078
4084 {
4085 NotExecuted,
4087 Failed,
4088 };
4089 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
4090
4091
4099 {
4100 Vertices,
4101 StructureLines,
4102 BreakLines
4103 };
4104 Q_ENUM( ProcessingTinInputLayerType )
4105
4106
4116 Q_ENUM( CrsDefinitionFormat )
4117
4118
4126 enum class FieldDomainSplitPolicy : int
4127 {
4128 DefaultValue,
4129 Duplicate,
4130 GeometryRatio,
4131 UnsetField,
4132 };
4133 Q_ENUM( FieldDomainSplitPolicy )
4134
4135
4143 enum class FieldDomainMergePolicy : int
4144 {
4145 DefaultValue,
4146 Sum,
4147 GeometryWeighted,
4148 UnsetField,
4149 LargestGeometry,
4150 MinimumValue,
4151 MaximumValue,
4152 SetToNull,
4153 };
4154 Q_ENUM( FieldDomainMergePolicy )
4155
4156
4163 enum class FieldDuplicatePolicy : int
4164 {
4165 DefaultValue,
4166 Duplicate,
4167 UnsetField,
4168 };
4169 Q_ENUM( FieldDuplicatePolicy )
4170
4171
4176 enum class FieldDomainType : int
4177 {
4178 Coded,
4179 Range,
4180 Glob,
4181 };
4182 Q_ENUM( FieldDomainType )
4183
4184
4189 enum class TransactionMode : int
4190 {
4191 Disabled = 0,
4192 AutomaticGroups = 1,
4193 BufferedGroups = 2,
4194 };
4195 Q_ENUM( TransactionMode )
4196
4197
4202 enum class AltitudeClamping : int
4203 {
4204 Absolute,
4205 Relative,
4206 Terrain,
4207 };
4208 Q_ENUM( AltitudeClamping )
4209
4210
4215 enum class AltitudeBinding : int
4216 {
4217 Vertex,
4218 Centroid,
4219 };
4220 Q_ENUM( AltitudeBinding )
4221
4222
4227 enum class RangeLimits : int
4228 {
4229 IncludeBoth = 0,
4230 IncludeLowerExcludeUpper,
4231 ExcludeLowerIncludeUpper,
4232 ExcludeBoth,
4233 };
4234 Q_ENUM( RangeLimits )
4235
4236
4241 enum class RasterElevationMode : int
4242 {
4243 FixedElevationRange = 0,
4244 RepresentsElevationSurface = 1,
4245 FixedRangePerBand = 2,
4246 DynamicRangePerBand = 3,
4247 };
4248 Q_ENUM( RasterElevationMode )
4249
4250
4255 enum class MeshElevationMode : int
4256 {
4257 FixedElevationRange = 0,
4258 FromVertices = 1,
4259 FixedRangePerGroup = 2,
4260 };
4261 Q_ENUM( MeshElevationMode )
4262
4263
4269 {
4270 NoConstraint,
4271 Perpendicular,
4272 Parallel
4273 };
4274 Q_ENUM( BetweenLineConstraint )
4275
4276
4281 enum class LineExtensionSide : int
4282 {
4283 BeforeVertex,
4284 AfterVertex,
4285 NoVertex,
4286 };
4287 Q_ENUM( LineExtensionSide )
4288
4289
4290
4294 enum class CadConstraintType : int
4295 {
4296 Generic,
4297 Angle,
4298 Distance,
4299 XCoordinate,
4300 YCoordinate,
4301 ZValue,
4302 MValue,
4303 };
4304 Q_ENUM( CadConstraintType )
4305
4306
4311 {
4312 Hidden,
4313 Cartesian,
4314 Ellipsoidal,
4315 };
4316 Q_ENUM( CadMeasurementDisplayType )
4317
4318
4323 enum class ProjectFlag : int SIP_ENUM_BASETYPE( IntFlag )
4324 {
4325 EvaluateDefaultValuesOnProviderSide = 1 << 0,
4326 TrustStoredLayerStatistics
4327 = 1 << 1,
4328 RememberLayerEditStatusBetweenSessions = 1 << 2,
4329 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
4330 };
4331 Q_ENUM( ProjectFlag )
4332 Q_DECLARE_FLAGS( ProjectFlags, ProjectFlag )
4333 Q_FLAG( ProjectFlags )
4334
4340 enum class PlotToolFlag : int SIP_ENUM_BASETYPE( IntFlag )
4341 {
4342 ShowContextMenu = 1 << 0,
4343 };
4344 Q_ENUM( PlotToolFlag )
4345 Q_DECLARE_FLAGS( PlotToolFlags, PlotToolFlag )
4346 Q_FLAG( PlotToolFlags )
4347
4355 enum class Map3DDebugFlag : int SIP_ENUM_BASETYPE( IntFlag )
4356 {
4357 ShowTerrainBoundingBoxes = 1 << 0,
4358 ShowTerrainTileInfo = 1 << 1,
4359 ShowCameraViewCenter = 1 << 2,
4360 ShowCameraRotationCenter = 1 << 3,
4361 ShowLightSourceOrigins = 1 << 4,
4362 ShowFPS = 1 << 5,
4363 ShowDebugPanel = 1 << 6,
4364 };
4365 Q_ENUM( Map3DDebugFlag )
4367 Q_FLAG( Map3DDebugFlags )
4368
4374 enum class Map3DProjectionType : int
4375 {
4376 Orthographic = 0,
4377 Perspective = 1,
4378 };
4379 Q_ENUM( Map3DProjectionType )
4380
4381
4388 enum class Point3DShape : int
4389 {
4390 Cylinder,
4391 Sphere,
4392 Cone,
4393 Cube,
4394 Torus,
4395 Plane,
4396 ExtrudedText,
4397 Model,
4398 Billboard,
4399 };
4400 Q_ENUM( Point3DShape )
4401
4402
4411 {
4412 Triangles,
4413 Lines,
4414 InstancedPoints,
4415 Points,
4416 TrianglesWithFixedTexture,
4417 TrianglesFromModel,
4418 TrianglesDataDefined,
4419 Billboards,
4420 };
4421 Q_ENUM( MaterialRenderingTechnique )
4422
4423
4428 enum class InstancedMaterialFlag : int SIP_ENUM_BASETYPE( IntFlag )
4429 {
4430 DataDefinedScale = 1 << 0,
4431 DataDefinedRotation = 1 << 1,
4432 };
4433 Q_ENUM( InstancedMaterialFlag )
4435 Q_FLAG( InstancedMaterialFlags )
4436
4442 enum class BillboardScaleMode : int
4443 {
4444 ViewIndependent,
4445 Perspective
4446 };
4447 Q_ENUM( BillboardScaleMode )
4448
4449
4454 enum class TextureFilterQuality : int
4455 {
4456 Trilinear,
4457 Anisotropic2x,
4458 Anisotropic4x,
4459 Anisotropic8x,
4460 Anisotropic16x,
4461 };
4462 Q_ENUM( TextureFilterQuality )
4463
4464
4469 enum class ShadowQuality : int
4470 {
4471 Low,
4472 Medium,
4473 High,
4474 VeryHigh,
4475 Extreme,
4476 };
4477 Q_ENUM( ShadowQuality )
4478
4479
4484 enum class LightSourceType : int
4485 {
4486 Point,
4487 Directional,
4488 Sun,
4489 };
4490 Q_ENUM( LightSourceType )
4491
4492
4496 enum class Map3DBackgroundType : int
4497 {
4498 NoBackground,
4499 FixedGradientBackground,
4500 DistinctTextureSkybox,
4501 };
4502 Q_ENUM( Map3DBackgroundType )
4503
4504
4509 enum class SkyboxCubeMapping : int
4510 {
4511 NativeZUp,
4512 OpenGLYUp,
4513 GodotYUp,
4514 UnrealEngineZUp,
4515 LeftHandedYUpMirrored,
4516 };
4517 Q_ENUM( SkyboxCubeMapping )
4518
4519
4524 enum class NavigationMode : int
4525 {
4526 TerrainBased,
4527 Walk,
4528 GlobeTerrainBased
4529 };
4530 Q_ENUM( NavigationMode )
4531
4532
4537 enum class SceneMode : int
4538 {
4539 Local,
4540 Globe
4541 };
4542 Q_ENUM( SceneMode )
4543
4544
4549 enum class VerticalAxisInversion : int SIP_ENUM_BASETYPE( IntFlag )
4550 {
4551 WhenRotatingDragging = 1 << 0,
4552 WhenRotatingCaptured = 1 << 1,
4553 WhenPivoting = 1 << 2,
4554
4555 // Legacy aliases for old flying-only enum:
4556
4557 Never = WhenRotatingDragging | WhenRotatingCaptured | WhenPivoting,
4558 WhenDragging = WhenRotatingCaptured | WhenPivoting,
4559 Always = WhenPivoting,
4560 };
4561 Q_ENUM( VerticalAxisInversion )
4564
4571 enum class ToneMappingMethod : int
4572 {
4573 Clamp,
4574 Aces,
4575 };
4576 Q_ENUM( ToneMappingMethod )
4577
4578
4583 enum class Export3DSceneFormat : int
4584 {
4585 Obj,
4586 StlAscii
4587 };
4588 Q_ENUM( Export3DSceneFormat )
4589
4590
4596 {
4597 Line,
4598 FillBelow,
4599 FillAbove,
4600 };
4602
4608 enum class VectorProfileType : int
4609 {
4610 IndividualFeatures,
4611 ContinuousSurface,
4612 };
4614
4620 enum class PointCloudProfileType : int
4621 {
4622 IndividualPoints,
4623 TriangulatedSurface,
4624 };
4626
4632 enum class ProfileGeneratorFlag : int SIP_ENUM_BASETYPE( IntFlag )
4633 {
4634 RespectsMaximumErrorMapUnit = 1 << 0,
4635 RespectsDistanceRange = 1 << 1,
4636 RespectsElevationRange = 1 << 2,
4637 };
4638 Q_ENUM( ProfileGeneratorFlag )
4640 Q_FLAG( ProfileGeneratorFlags )
4641
4647 enum class ProfileExportType : int
4648 {
4649 Features3D,
4650 Profile2D,
4651 DistanceVsElevationTable,
4652 };
4654
4661 {
4662 Square,
4663 Circle,
4664 };
4665 Q_ENUM( PointCloudSymbol )
4666
4667
4673 {
4674 Default,
4675 BottomToTop,
4676 TopToBottom,
4677 };
4678 Q_ENUM( PointCloudDrawOrder )
4679
4680
4688 {
4689 AllowIntersections,
4690 AvoidIntersectionsCurrentLayer,
4691 AvoidIntersectionsLayers,
4692 };
4693 Q_ENUM( AvoidIntersectionsMode )
4694
4695
4703 {
4704 Qgz,
4705 Qgs,
4706 };
4707 Q_ENUM( ProjectFileFormat )
4708
4709
4717 {
4718 DontResolveLayers SIP_MONKEYPATCH_COMPAT_NAME( FlagDontResolveLayers )
4719 = 1 << 0,
4720 DontLoadLayouts SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoadLayouts )
4721 = 1 << 1,
4722 TrustLayerMetadata SIP_MONKEYPATCH_COMPAT_NAME( FlagTrustLayerMetadata )
4723 = 1 << 2,
4724 DontStoreOriginalStyles SIP_MONKEYPATCH_COMPAT_NAME( FlagDontStoreOriginalStyles ) = 1 << 3,
4725 DontLoad3DViews SIP_MONKEYPATCH_COMPAT_NAME( FlagDontLoad3DViews ) = 1 << 4,
4726 DontLoadProjectStyles = 1 << 5,
4727 ForceReadOnlyLayers = 1 << 6,
4728 DontUpgradeAnnotations = 1 << 7,
4729 };
4730 Q_ENUM( ProjectReadFlag )
4731
4732
4740 Q_FLAG( ProjectReadFlags )
4741
4750 enum class ProjectCapability : int SIP_ENUM_BASETYPE( IntFlag )
4751 {
4752 ProjectStyles = 1 << 0,
4753 };
4754 Q_ENUM( ProjectCapability )
4755
4756
4762 Q_FLAG( ProjectCapabilities )
4763
4770 {
4771 Vector,
4772 Raster,
4773 RasterDem,
4774 GeoJson,
4775 Image,
4776 Video,
4777 Unknown,
4778 };
4779 Q_ENUM( MapBoxGlStyleSourceType )
4780
4781
4789 {
4790 FeatureServer SIP_MONKEYPATCH_COMPAT_NAME( FeatureService ),
4791 MapServer SIP_MONKEYPATCH_COMPAT_NAME( MapService ),
4792 ImageServer SIP_MONKEYPATCH_COMPAT_NAME( ImageService ),
4793 GlobeServer,
4794 GPServer,
4795 GeocodeServer,
4796 Unknown,
4797 SceneServer,
4798 };
4799 Q_ENUM( ArcGisRestServiceType )
4800
4801
4810 {
4811 Map = 1 << 0,
4812 Query = 1 << 1,
4813 Update = 1 << 2,
4814 Delete = 1 << 3,
4815 Create = 1 << 4,
4816 Image = 1 << 5,
4817 TilesOnly = 1 << 6,
4818 };
4819 Q_ENUM( ArcGisRestServiceCapability )
4820
4821
4828
4837 {
4838 Normal,
4839 Generated,
4840 };
4841 Q_ENUM( RelationshipType )
4842
4843
4851 {
4852 Association,
4853 Composition,
4854 };
4855 Q_ENUM( RelationshipStrength )
4856
4857
4863 {
4864 OneToOne,
4865 OneToMany,
4866 ManyToOne,
4867 ManyToMany,
4868 };
4869 Q_ENUM( RelationshipCardinality )
4870
4871
4876 enum class RelationshipCapability : int SIP_ENUM_BASETYPE( IntFlag )
4877 {
4878 MultipleFieldKeys = 1 << 0,
4879 ForwardPathLabel = 1 << 1,
4880 BackwardPathLabel = 1 << 2,
4881 };
4882 Q_ENUM( RelationshipCapability )
4883
4884
4890 Q_FLAG( RelationshipCapabilities )
4891
4897 enum class CoordinateDisplayType : int
4898 {
4899 MapCrs,
4900 MapGeographic,
4901 CustomCrs,
4902 };
4903 Q_ENUM( CoordinateDisplayType )
4904
4905
4910 enum class SettingsOrigin : int
4911 {
4912 Any,
4913 Global,
4914 Local,
4915 };
4916 Q_ENUM( SettingsOrigin )
4917
4918
4923 enum class ScriptLanguage : int
4924 {
4925 Css,
4926 QgisExpression,
4927 Html,
4928 JavaScript,
4929 Json,
4930 Python,
4931 R,
4932 Sql,
4933 Batch,
4934 Bash,
4935 Unknown,
4936 };
4937 Q_ENUM( ScriptLanguage )
4938
4939
4947 {
4948 Reformat = 1 << 0,
4949 CheckSyntax = 1 << 1,
4950 ToggleComment = 1 << 2,
4951 };
4952 Q_ENUM( ScriptLanguageCapability )
4953
4954
4961
4968 {
4969 AboveInsertionPoint,
4970 TopOfTree,
4971 OptimalInInsertionGroup,
4972 };
4973 Q_ENUM( LayerTreeInsertionMethod )
4974
4975
4981 {
4982 LayerProperties = 0,
4983 AttributeTable = 1,
4984 LayerStyling = 2,
4985 };
4986 Q_ENUM( LegendLayerDoubleClickAction )
4987
4988
4993 enum class LayerTreeFilterFlag : int SIP_ENUM_BASETYPE( IntFlag )
4994 {
4995 SkipVisibilityCheck = 1 << 0,
4996 };
4997 Q_ENUM( LayerTreeFilterFlag )
4998
4999
5005 Q_FLAG( LayerTreeFilterFlags )
5006
5012 enum class MapLayerLegendFlag : int SIP_ENUM_BASETYPE( IntFlag )
5013 {
5014 ExcludeByDefault = 1 << 0,
5015 };
5016 Q_ENUM( MapLayerLegendFlag )
5017
5018
5024 Q_FLAG( MapLayerLegendFlags )
5025
5034 {
5035 Undefined,
5036 Hidden,
5037 Title,
5038 Group,
5039 Subgroup,
5040 Symbol,
5041 SymbolLabel,
5042 };
5043 // !!! WARNING: If adding new values to this enum, make sure you update QgsLegendSettings constructor accordingly!!
5044 Q_ENUM( LegendComponent )
5045
5046
5051 enum class LegendSyncMode : int
5052 {
5053 AllProjectLayers,
5054 VisibleLayers,
5055 Manual,
5056 };
5057 Q_ENUM( LegendSyncMode )
5058
5059
5066 enum class LegendJsonRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
5067 {
5068 ShowRuleDetails = 1 << 0,
5069 };
5070 Q_ENUM( LegendJsonRenderFlag )
5072 Q_FLAG( LegendJsonRenderFlags )
5073
5079 enum class GeoJsonProfile : int
5080 {
5081 Legacy,
5082 Rfc7946,
5083 JsonFg,
5084 JsonFgPlus,
5085 };
5086 Q_ENUM( GeoJsonProfile )
5087
5088
5095 enum class ActionType : int
5096 {
5097 Invalid,
5098 MapLayerAction,
5099 AttributeAction
5100 };
5101 Q_ENUM( ActionType )
5102
5103
5110 enum class MapLayerActionTarget : int SIP_ENUM_BASETYPE( IntFlag )
5111 {
5112 Layer = 1 << 0,
5113 SingleFeature = 1 << 1,
5114 MultipleFeatures = 1 << 2,
5115 AllActions = Layer | SingleFeature | MultipleFeatures
5116 };
5117 Q_ENUM( MapLayerActionTarget )
5118
5119
5127 Q_FLAG( MapLayerActionTargets )
5128
5136 enum class MapLayerActionFlag : int SIP_ENUM_BASETYPE( IntFlag )
5137 {
5138 EnabledOnlyWhenEditable = 1 << 1,
5139 EnableOnlyWhenHasGeometry = 1 << 2,
5140 };
5141 Q_ENUM( MapLayerActionFlag )
5142
5143
5151 Q_FLAG( MapLayerActionFlags )
5152
5161 {
5162 Generic,
5163 GenericPython,
5164 Mac,
5165 Windows,
5166 Unix,
5167 OpenUrl,
5168 SubmitUrlEncoded,
5169 SubmitUrlMultipart,
5170 };
5171 Q_ENUM( AttributeActionType )
5172
5173
5179 {
5180 Created,
5181 Published,
5182 Revised,
5183 Superseded,
5184 };
5185 Q_ENUM( MetadataDateType )
5186
5187
5191 enum class AcademicReferenceType : int
5192 {
5193 Unknown,
5194 Book,
5195 JournalArticle,
5196 Presentation,
5197 WebPage,
5198 Preprint
5199 };
5200 Q_ENUM( AcademicReferenceType )
5201
5202
5211
5213 {
5214 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedColorInterpretation ) = 0,
5215 GrayIndex = 1,
5216 PaletteIndex = 2,
5217 RedBand = 3,
5218 GreenBand = 4,
5219 BlueBand = 5,
5220 AlphaBand = 6,
5221 HueBand = 7,
5222 SaturationBand = 8,
5223 LightnessBand = 9,
5224 CyanBand = 10,
5225 MagentaBand = 11,
5226 YellowBand = 12,
5227 BlackBand = 13,
5228 YCbCr_YBand = 14,
5229 YCbCr_CbBand = 15,
5230 YCbCr_CrBand = 16,
5231 ContinuousPalette = 17,
5232
5233 // Note: values between PanBand and SAR_P_Band match additions done in
5234 // GDAL 3.10, except that the numeric values of the constant don't match GDAL ones
5235
5236 PanBand = 18,
5237 CoastalBand = 19,
5238 RedEdgeBand = 20,
5239 NIRBand = 21,
5240 SWIRBand = 22,
5241 MWIRBand = 23,
5242 LWIRBand = 24,
5243 TIRBand = 25,
5244 OtherIRBand = 26,
5245 SAR_Ka_Band = 27,
5246 SAR_K_Band = 28,
5247 SAR_Ku_Band = 30,
5248 SAR_X_Band = 31,
5249 SAR_C_Band = 32,
5250 SAR_S_Band = 33,
5251 SAR_L_Band = 34,
5252 SAR_P_Band = 35,
5253 };
5254 Q_ENUM( RasterColorInterpretation )
5255
5256
5264 {
5265 GrayOrUndefined,
5266 Palette,
5267 MultiBand SIP_MONKEYPATCH_COMPAT_NAME( Multiband ),
5268 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( ColorLayer ),
5269 };
5270 Q_ENUM( RasterLayerType )
5271
5272
5280 {
5281 Undefined SIP_MONKEYPATCH_COMPAT_NAME( UndefinedDrawingStyle ),
5282 SingleBandGray,
5283 SingleBandPseudoColor,
5284 PalettedColor,
5285 PalettedSingleBandGray,
5286 PalettedSingleBandPseudoColor,
5287 PalettedMultiBandColor,
5288 MultiBandSingleBandGray,
5289 MultiBandSingleBandPseudoColor,
5290 MultiBandColor,
5291 SingleBandColorData SIP_MONKEYPATCH_COMPAT_NAME( SingleBandColorDataStyle ),
5292 };
5293 Q_ENUM( RasterDrawingStyle )
5294
5295
5302 enum class RasterPyramidFormat SIP_MONKEYPATCH_SCOPEENUM_UNNEST( QgsRaster, RasterPyramidsFormat ) : int
5303 {
5304 GeoTiff SIP_MONKEYPATCH_COMPAT_NAME( PyramidsGTiff ) = 0,
5305 Internal SIP_MONKEYPATCH_COMPAT_NAME( PyramidsInternal ) = 1,
5306 Erdas SIP_MONKEYPATCH_COMPAT_NAME( PyramidsErdas ) = 2
5307 };
5308 Q_ENUM( RasterPyramidFormat )
5309
5310
5318 {
5319 No SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagNo ) = 0,
5320 Yes SIP_MONKEYPATCH_COMPAT_NAME( PyramidsFlagYes ) = 1,
5321 CopyExisting SIP_MONKEYPATCH_COMPAT_NAME( PyramidsCopyExisting ) = 2
5322 };
5323 Q_ENUM( RasterBuildPyramidOption )
5324
5325
5333 {
5334 Undefined SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatUndefined ) = 0,
5335 Value SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatValue ) = 1,
5336 Text SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatText ) = 1 << 1,
5337 Html SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatHtml ) = 1 << 2,
5338 Feature SIP_MONKEYPATCH_COMPAT_NAME( IdentifyFormatFeature ) = 1 << 3,
5339 };
5340 Q_ENUM( RasterIdentifyFormat )
5341
5342 // TODO QGIS 5 -- remove NoCapabilities and rely on RasterInterfaceCapabilities() instead
5343 // remove deprecated members
5344 // Remove "Identify" member, and replace with combinations of IdentifyValue/IdentifyText/etc
5345
5346
5354 {
5355 NoCapabilities = 0,
5356 Size = 1 << 1,
5357 Create = 1 << 2,
5358 Remove = 1 << 3,
5359 BuildPyramids = 1 << 4,
5360 Identify = 1 << 5,
5361 IdentifyValue = 1 << 6,
5362 IdentifyText = 1 << 7,
5363 IdentifyHtml = 1 << 8,
5364 IdentifyFeature = 1 << 9,
5365 Prefetch = 1 << 10,
5366 };
5367 Q_ENUM( RasterInterfaceCapability )
5368
5369
5376
5377 // TODO QGIS 5 -- remove NoProviderCapabilities and rely on RasterProviderCapabilities() instead
5378
5387 {
5388 NoProviderCapabilities = 0,
5389 ReadLayerMetadata = 1 << 1,
5390 WriteLayerMetadata = 1 << 2,
5391 ProviderHintBenefitsFromResampling = 1 << 3,
5392 ProviderHintCanPerformProviderResampling = 1 << 4,
5393 ReloadData = 1 << 5,
5394 DpiDependentData = 1 << 6,
5395 NativeRasterAttributeTable = 1 << 7,
5396 BuildPyramids = 1 << 8,
5397 };
5398 Q_ENUM( RasterProviderCapability )
5399
5400
5409
5416 {
5417 HighestElevation,
5418 NewerElevation,
5419 };
5420 Q_ENUM( ElevationMapCombineMethod )
5421
5422
5431 {
5432 Normal SIP_MONKEYPATCH_COMPAT_NAME( BlendNormal ),
5433 Lighten SIP_MONKEYPATCH_COMPAT_NAME( BlendLighten ),
5434 Screen SIP_MONKEYPATCH_COMPAT_NAME( BlendScreen ),
5435 Dodge SIP_MONKEYPATCH_COMPAT_NAME( BlendDodge ),
5436 Addition SIP_MONKEYPATCH_COMPAT_NAME( BlendAddition ),
5437 Darken SIP_MONKEYPATCH_COMPAT_NAME( BlendDarken ),
5438 Multiply SIP_MONKEYPATCH_COMPAT_NAME( BlendMultiply ),
5440 Overlay SIP_MONKEYPATCH_COMPAT_NAME( BlendOverlay ),
5441 SoftLight SIP_MONKEYPATCH_COMPAT_NAME( BlendSoftLight ),
5442 HardLight SIP_MONKEYPATCH_COMPAT_NAME( BlendHardLight ),
5443 Difference SIP_MONKEYPATCH_COMPAT_NAME( BlendDifference ),
5444 Subtract SIP_MONKEYPATCH_COMPAT_NAME( BlendSubtract ),
5445 Source SIP_MONKEYPATCH_COMPAT_NAME( BlendSource ),
5446 DestinationOver SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOver ),
5447 Clear SIP_MONKEYPATCH_COMPAT_NAME( BlendClear ),
5448 Destination SIP_MONKEYPATCH_COMPAT_NAME( BlendDestination ),
5449 SourceIn SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceIn ),
5450 DestinationIn SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationIn ),
5451 SourceOut SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceOut ),
5452 DestinationOut SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationOut ),
5453 SourceAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendSourceAtop ),
5454 DestinationAtop SIP_MONKEYPATCH_COMPAT_NAME( BlendDestinationAtop ),
5456 };
5457 Q_ENUM( BlendMode )
5458
5459
5467 {
5468 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownSystem ) = 0,
5469 Metric SIP_MONKEYPATCH_COMPAT_NAME( MetricSystem ),
5470 Imperial SIP_MONKEYPATCH_COMPAT_NAME( ImperialSystem ),
5471 USCS SIP_MONKEYPATCH_COMPAT_NAME( USCSSystem ),
5472 };
5473 Q_ENUM( SystemOfMeasurement )
5474
5475
5482 {
5483 Layer SIP_MONKEYPATCH_COMPAT_NAME( LayerUnits ),
5484 Pixels,
5485 Project SIP_MONKEYPATCH_COMPAT_NAME( ProjectUnits )
5486 };
5487 Q_ENUM( MapToolUnit )
5488
5489
5497 {
5498 Distance SIP_MONKEYPATCH_COMPAT_NAME( TypeDistance ) = 0,
5500 Volume SIP_MONKEYPATCH_COMPAT_NAME( TypeVolume ),
5501 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TypeUnknown ),
5502 Temporal SIP_MONKEYPATCH_COMPAT_NAME( TypeTemporal ),
5503 };
5504 Q_ENUM( UnitType )
5505
5506
5514 {
5515 Meters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMeters ),
5516 Kilometers SIP_MONKEYPATCH_COMPAT_NAME( DistanceKilometers ),
5517 Feet SIP_MONKEYPATCH_COMPAT_NAME( DistanceFeet ),
5518 NauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( DistanceNauticalMiles ),
5519 Yards SIP_MONKEYPATCH_COMPAT_NAME( DistanceYards ),
5520 Miles SIP_MONKEYPATCH_COMPAT_NAME( DistanceMiles ),
5521 Degrees SIP_MONKEYPATCH_COMPAT_NAME( DistanceDegrees ),
5522 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceCentimeters ),
5523 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( DistanceMillimeters ),
5524 Inches,
5525 ChainsInternational,
5526 ChainsBritishBenoit1895A,
5527 ChainsBritishBenoit1895B,
5528 ChainsBritishSears1922Truncated,
5529 ChainsBritishSears1922,
5530 ChainsClarkes,
5531 ChainsUSSurvey,
5532 FeetBritish1865,
5533 FeetBritish1936,
5534 FeetBritishBenoit1895A,
5535 FeetBritishBenoit1895B,
5536 FeetBritishSears1922Truncated,
5537 FeetBritishSears1922,
5538 FeetClarkes,
5539 FeetGoldCoast,
5540 FeetIndian,
5541 FeetIndian1937,
5542 FeetIndian1962,
5543 FeetIndian1975,
5544 FeetUSSurvey,
5545 LinksInternational,
5546 LinksBritishBenoit1895A,
5547 LinksBritishBenoit1895B,
5548 LinksBritishSears1922Truncated,
5549 LinksBritishSears1922,
5550 LinksClarkes,
5551 LinksUSSurvey,
5552 YardsBritishBenoit1895A,
5553 YardsBritishBenoit1895B,
5554 YardsBritishSears1922Truncated,
5555 YardsBritishSears1922,
5556 YardsClarkes,
5557 YardsIndian,
5558 YardsIndian1937,
5559 YardsIndian1962,
5560 YardsIndian1975,
5561 MilesUSSurvey,
5562 Fathoms,
5563 MetersGermanLegal,
5564 Unknown SIP_MONKEYPATCH_COMPAT_NAME( DistanceUnknownUnit ),
5565 };
5566 Q_ENUM( DistanceUnit )
5567
5568
5576 {
5577 Standard,
5578 Geographic,
5579 Unknown SIP_MONKEYPATCH_COMPAT_NAME( UnknownType ),
5580 };
5581 Q_ENUM( DistanceUnitType )
5582
5583
5591 {
5592 SquareMeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMeters ),
5593 SquareKilometers SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareKilometers ),
5594 SquareFeet SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareFeet ),
5595 SquareYards SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareYards ),
5596 SquareMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMiles ),
5597 Hectares SIP_MONKEYPATCH_COMPAT_NAME( AreaHectares ),
5598 Acres SIP_MONKEYPATCH_COMPAT_NAME( AreaAcres ),
5599 SquareNauticalMiles SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareNauticalMiles ),
5600 SquareDegrees SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareDegrees ),
5601 SquareCentimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareCentimeters ),
5602 SquareMillimeters SIP_MONKEYPATCH_COMPAT_NAME( AreaSquareMillimeters ),
5603 SquareInches,
5604 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AreaUnknownUnit ),
5605 };
5606 Q_ENUM( AreaUnit )
5607
5608
5616 {
5617 CubicMeters SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicMeters ),
5618 CubicFeet SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicFeet ),
5619 CubicYards SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicYards ),
5620 Barrel SIP_MONKEYPATCH_COMPAT_NAME( VolumeBarrel ),
5621 CubicDecimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDecimeter ),
5622 Liters SIP_MONKEYPATCH_COMPAT_NAME( VolumeLiters ),
5623 GallonUS SIP_MONKEYPATCH_COMPAT_NAME( VolumeGallonUS ),
5624 CubicInch SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicInch ),
5625 CubicCentimeter SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicCentimeter ),
5626 CubicDegrees SIP_MONKEYPATCH_COMPAT_NAME( VolumeCubicDegrees ),
5627 Unknown SIP_MONKEYPATCH_COMPAT_NAME( VolumeUnknownUnit ),
5628 };
5629 Q_ENUM( VolumeUnit )
5630
5631
5639 {
5640 Degrees SIP_MONKEYPATCH_COMPAT_NAME( AngleDegrees ),
5641 Radians SIP_MONKEYPATCH_COMPAT_NAME( AngleRadians ),
5643 MinutesOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleMinutesOfArc ),
5644 SecondsOfArc SIP_MONKEYPATCH_COMPAT_NAME( AngleSecondsOfArc ),
5646 MilliradiansSI SIP_MONKEYPATCH_COMPAT_NAME( AngleMilliradiansSI ),
5647 MilNATO SIP_MONKEYPATCH_COMPAT_NAME( AngleMilNATO ),
5648 Unknown SIP_MONKEYPATCH_COMPAT_NAME( AngleUnknownUnit ),
5649 };
5650 Q_ENUM( AngleUnit )
5651
5652
5662 {
5663 MetersPerSecond = 0,
5664 KilometersPerHour,
5665 Knots,
5666 MilesPerHour,
5667 FeetPerSecond,
5668 OtherUnit
5669 };
5670 Q_ENUM( WindSpeedUnit )
5671
5672
5680 {
5681 Milliseconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalMilliseconds ),
5682 Seconds SIP_MONKEYPATCH_COMPAT_NAME( TemporalSeconds ),
5683 Minutes SIP_MONKEYPATCH_COMPAT_NAME( TemporalMinutes ),
5684 Hours SIP_MONKEYPATCH_COMPAT_NAME( TemporalHours ),
5685 Days SIP_MONKEYPATCH_COMPAT_NAME( TemporalDays ),
5686 Weeks SIP_MONKEYPATCH_COMPAT_NAME( TemporalWeeks ),
5687 Months SIP_MONKEYPATCH_COMPAT_NAME( TemporalMonths ),
5688 Years SIP_MONKEYPATCH_COMPAT_NAME( TemporalYears ),
5689 Decades SIP_MONKEYPATCH_COMPAT_NAME( TemporalDecades ),
5690 Centuries SIP_MONKEYPATCH_COMPAT_NAME( TemporalCenturies ),
5691 IrregularStep SIP_MONKEYPATCH_COMPAT_NAME( TemporalIrregularStep ),
5692 Unknown SIP_MONKEYPATCH_COMPAT_NAME( TemporalUnknownUnit )
5693 };
5694 Q_ENUM( TemporalUnit )
5695
5696
5704 {
5705 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( RenderMillimeters ),
5706 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMapUnits ),
5707 Pixels SIP_MONKEYPATCH_COMPAT_NAME( RenderPixels ),
5708 Percentage SIP_MONKEYPATCH_COMPAT_NAME( RenderPercentage ),
5709 Points SIP_MONKEYPATCH_COMPAT_NAME( RenderPoints ),
5710 Inches SIP_MONKEYPATCH_COMPAT_NAME( RenderInches ),
5711 Unknown SIP_MONKEYPATCH_COMPAT_NAME( RenderUnknownUnit ),
5712 MetersInMapUnits SIP_MONKEYPATCH_COMPAT_NAME( RenderMetersInMapUnits ),
5713 };
5714 Q_ENUM( RenderUnit )
5715
5716
5724 {
5725 Millimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMillimeters ),
5726 Centimeters SIP_MONKEYPATCH_COMPAT_NAME( LayoutCentimeters ),
5727 Meters SIP_MONKEYPATCH_COMPAT_NAME( LayoutMeters ),
5728 Inches SIP_MONKEYPATCH_COMPAT_NAME( LayoutInches ),
5729 Feet SIP_MONKEYPATCH_COMPAT_NAME( LayoutFeet ),
5730 Points SIP_MONKEYPATCH_COMPAT_NAME( LayoutPoints ),
5731 Picas SIP_MONKEYPATCH_COMPAT_NAME( LayoutPicas ),
5732 Pixels SIP_MONKEYPATCH_COMPAT_NAME( LayoutPixels )
5733 };
5734 Q_ENUM( LayoutUnit )
5735
5736
5744 {
5745 PaperUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutPaperUnits ),
5746 ScreenUnits SIP_MONKEYPATCH_COMPAT_NAME( LayoutScreenUnits )
5747 };
5748 Q_ENUM( LayoutUnitType )
5749
5750
5758 {
5759 Debug SIP_MONKEYPATCH_COMPAT_NAME( FlagDebug ) = 1 << 1,
5760 OutlineOnly SIP_MONKEYPATCH_COMPAT_NAME( FlagOutlineOnly ) = 1 << 2,
5761 Antialiasing SIP_MONKEYPATCH_COMPAT_NAME( FlagAntialiasing ) = 1 << 3,
5762 UseAdvancedEffects SIP_MONKEYPATCH_COMPAT_NAME( FlagUseAdvancedEffects ) = 1 << 4,
5763 ForceVectorOutput SIP_MONKEYPATCH_COMPAT_NAME( FlagForceVectorOutput )
5764 = 1 << 5,
5765 HideCoverageLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagHideCoverageLayer ) = 1 << 6,
5766 DrawSelection SIP_MONKEYPATCH_COMPAT_NAME( FlagDrawSelection ) = 1 << 7,
5767 DisableTiledRasterLayerRenders SIP_MONKEYPATCH_COMPAT_NAME( FlagDisableTiledRasterLayerRenders )
5768 = 1 << 8,
5769 RenderLabelsByMapLayer SIP_MONKEYPATCH_COMPAT_NAME( FlagRenderLabelsByMapLayer )
5770 = 1 << 9,
5771 LosslessImageRendering SIP_MONKEYPATCH_COMPAT_NAME( FlagLosslessImageRendering )
5772 = 1 << 10,
5773 SynchronousLegendGraphics SIP_MONKEYPATCH_COMPAT_NAME( FlagSynchronousLegendGraphics ) = 1 << 11,
5774 AlwaysUseGlobalMasks SIP_MONKEYPATCH_COMPAT_NAME( FlagAlwaysUseGlobalMasks )
5775 = 1 << 12,
5776 LimitCoverageLayerRenderToCurrentFeature = 1 << 13,
5777 };
5778 Q_ENUM( LayoutRenderFlag )
5779
5780
5788 Q_FLAG( LayoutRenderFlags )
5789
5798 {
5799 SVG SIP_MONKEYPATCH_COMPAT_NAME( FormatSVG ) = 0,
5800 Raster SIP_MONKEYPATCH_COMPAT_NAME( FormatRaster ),
5801 Unknown SIP_MONKEYPATCH_COMPAT_NAME( FormatUnknown ),
5802 };
5803 Q_ENUM( PictureFormat )
5804
5805
5810 enum class ScaleCalculationMethod : int
5811 {
5812 HorizontalTop = 0,
5813 HorizontalMiddle,
5814 HorizontalBottom,
5815 HorizontalAverage,
5816 AtEquator,
5817 };
5818 Q_ENUM( ScaleCalculationMethod )
5819
5820
5833 Q_ENUM( ScaleBarAlignment )
5834
5835
5843 {
5844 Fixed SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFixed ) = 0,
5845 FitWidth SIP_MONKEYPATCH_COMPAT_NAME( SegmentSizeFitWidth ) = 1
5846 };
5847 Q_ENUM( ScaleBarSegmentSizeMode )
5848
5849
5857 {
5858 AboveSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelAboveSegment ) = 0,
5859 BelowSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelBelowSegment ),
5860 };
5861 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
5862
5863
5871 {
5872 CenteredEdge SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredEdge ) = 0,
5873 CenteredSegment SIP_MONKEYPATCH_COMPAT_NAME( LabelCenteredSegment ),
5874 };
5875 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
5876
5877
5878
5886 {
5887 MapUnits SIP_MONKEYPATCH_COMPAT_NAME( MapUnit ),
5890 DynamicPageSizeBased,
5891 };
5892 Q_ENUM( MapGridUnit )
5893
5894
5902 {
5903 Lines SIP_MONKEYPATCH_COMPAT_NAME( Solid ) = 0,
5904 LineCrosses SIP_MONKEYPATCH_COMPAT_NAME( Cross ),
5905 Markers,
5906 FrameAndAnnotationsOnly SIP_MONKEYPATCH_COMPAT_NAME( FrameAnnotationsOnly )
5907 };
5908 Q_ENUM( MapGridStyle )
5909
5910
5918 {
5919 ShowAll = 0,
5920 LatitudeOnly,
5921 LongitudeOnly,
5922 HideAll
5923 };
5924 Q_ENUM( MapGridComponentVisibility )
5925
5926
5934 {
5935 InsideMapFrame = 0,
5936 OutsideMapFrame,
5937 };
5938 Q_ENUM( MapGridAnnotationPosition )
5939
5940
5948 {
5949 Horizontal = 0,
5950 Vertical,
5951 VerticalDescending,
5952 BoundaryDirection,
5953 AboveTick,
5954 OnTick,
5955 UnderTick,
5956 };
5957 Q_ENUM( MapGridAnnotationDirection )
5958
5959
5967 {
5968 Decimal = 0,
5969 DegreeMinute,
5970 DegreeMinuteSecond,
5971 DecimalWithSuffix,
5972 DegreeMinuteNoSuffix,
5973 DegreeMinutePadded,
5974 DegreeMinuteSecondNoSuffix,
5975 DegreeMinuteSecondPadded,
5976 CustomFormat
5977 };
5978 Q_ENUM( MapGridAnnotationFormat )
5979
5980
5994 Q_ENUM( MapGridBorderSide )
5995
5996
6004 {
6005 NoFrame = 0,
6006 Zebra,
6007 InteriorTicks,
6008 ExteriorTicks,
6009 InteriorExteriorTicks,
6010 LineBorder,
6011 LineBorderNautical,
6012 ZebraNautical,
6013 };
6014 Q_ENUM( MapGridFrameStyle )
6015
6016
6024 {
6025 OrthogonalTicks = 0,
6026 NormalizedTicks,
6027 };
6028 Q_ENUM( MapGridTickLengthMode )
6029
6030
6031
6039 {
6040 Left SIP_MONKEYPATCH_COMPAT_NAME( FrameLeft ) = 0x01,
6041 Right SIP_MONKEYPATCH_COMPAT_NAME( FrameRight ) = 0x02,
6042 Top SIP_MONKEYPATCH_COMPAT_NAME( FrameTop ) = 0x04,
6043 Bottom SIP_MONKEYPATCH_COMPAT_NAME( FrameBottom ) = 0x08
6044 };
6045 Q_ENUM( MapGridFrameSideFlag )
6046
6047
6055 Q_FLAG( MapGridFrameSideFlags )
6056
6065 {
6066 Longitude = 0,
6067 Latitude
6068 };
6069 Q_ENUM( MapGridAnnotationType )
6070
6071
6076 enum class InputControllerType : int
6077 {
6078 Map2D,
6079 Map3D
6080 };
6082
6089 {
6090 NotSet,
6091 Unknown,
6092 OrdinaryTable,
6093 Index,
6094 Sequence,
6095 View,
6096 MaterializedView,
6097 CompositeType,
6098 ToastTable,
6099 ForeignTable,
6100 PartitionedTable,
6101 };
6102 Q_ENUM( PostgresRelKind )
6103
6104
6110 {
6111 SetFieldComment = 1 << 0,
6112 SetFieldAlias = 1 << 1,
6113 SetTableComment = 1 << 2,
6114 EditFieldDomain = 1 << 3,
6115 DeleteFieldDomain = 1 << 4,
6116 };
6117 Q_ENUM( DatabaseProviderConnectionCapability2 )
6120
6127 {
6128 SetGeometryColumnName = 1 << 0,
6129 SetPrimaryKeyName = 1 << 1,
6130 };
6131 Q_ENUM( DatabaseProviderTableImportCapability )
6134
6141 {
6142 SaveToDatabase = 1 << 1,
6143 LoadFromDatabase = 1 << 2,
6144 DeleteFromDatabase = 1 << 3
6145 };
6149
6150
6156 {
6157 LastProfile,
6158 DefaultProfile,
6159 AskUser,
6160 };
6161 Q_ENUM( UserProfileSelectionPolicy )
6162
6163
6171 {
6172 Container SIP_MONKEYPATCH_COMPAT_NAME( AeTypeContainer ),
6173 Field SIP_MONKEYPATCH_COMPAT_NAME( AeTypeField ),
6174 Relation SIP_MONKEYPATCH_COMPAT_NAME( AeTypeRelation ),
6175 QmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeQmlElement ),
6176 HtmlElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeHtmlElement ),
6177 Action SIP_MONKEYPATCH_COMPAT_NAME( AeTypeAction ),
6178 TextElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeTextElement ),
6179 SpacerElement SIP_MONKEYPATCH_COMPAT_NAME( AeTypeSpacerElement ),
6180 Invalid SIP_MONKEYPATCH_COMPAT_NAME( AeTypeInvalid ),
6181 };
6182 Q_ENUM( AttributeEditorType )
6183
6184
6190 {
6191 GroupBox,
6192 Tab,
6193 Row,
6194 };
6195 Q_ENUM( AttributeEditorContainerType )
6196
6197
6205 {
6206 AutoGenerated SIP_MONKEYPATCH_COMPAT_NAME( GeneratedLayout ) = 0,
6207 DragAndDrop SIP_MONKEYPATCH_COMPAT_NAME( TabLayout ) = 1,
6208 UiFile SIP_MONKEYPATCH_COMPAT_NAME( UiFileLayout ) = 2
6209 };
6210 Q_ENUM( AttributeFormLayout )
6211
6212
6220 {
6221 Default SIP_MONKEYPATCH_COMPAT_NAME( SuppressDefault ) = 0,
6222 On SIP_MONKEYPATCH_COMPAT_NAME( SuppressOn ) = 1,
6223 Off SIP_MONKEYPATCH_COMPAT_NAME( SuppressOff ) = 2
6224 };
6225 Q_ENUM( AttributeFormSuppression )
6226
6227
6235 {
6236 NoSource SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceNone ) = 0,
6237 File SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceFile ) = 1,
6238 Dialog SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceDialog ) = 2,
6239 Environment SIP_MONKEYPATCH_COMPAT_NAME( CodeSourceEnvironment ) = 3
6240 };
6241 Q_ENUM( AttributeFormPythonInitCodeSource )
6242
6243
6249 {
6250 NotAllowed = 0,
6251 AllowedDefaultOn = 1,
6252 AllowedDefaultOff = 2,
6253 };
6254 Q_ENUM( AttributeFormReuseLastValuePolicy )
6255
6256
6262 {
6264 PointCloud,
6265 RasterCalculator,
6266 };
6267 Q_ENUM( ExpressionType )
6268
6269
6277 {
6278 NoSymbology = 0,
6279 PerFeature SIP_MONKEYPATCH_COMPAT_NAME( FeatureSymbology ),
6280 PerSymbolLayer SIP_MONKEYPATCH_COMPAT_NAME( SymbolLayerSymbology )
6281 };
6282 Q_ENUM( FeatureSymbologyExport )
6283
6284
6289 enum class VectorTileProviderFlag : int SIP_ENUM_BASETYPE( IntFlag )
6290 {
6291 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
6292 };
6293 Q_ENUM( VectorTileProviderFlag )
6294
6295
6301 Q_FLAG( VectorTileProviderFlags )
6302
6308 {
6309 ReadLayerMetadata = 1 << 1,
6310 };
6311 Q_ENUM( VectorTileProviderCapability )
6312
6313
6320
6327 {
6328 Available,
6329 NotAvailable,
6330 AvailableNoChildren,
6331 UseLowerZoomLevelTile,
6332 };
6333 Q_ENUM( TileAvailability )
6334
6335
6341 {
6342 ReadLayerMetadata = 1 << 1,
6343 };
6344 Q_ENUM( TiledSceneProviderCapability )
6345
6346
6353
6360 {
6361 Region,
6362 OrientedBox,
6363 Sphere,
6364 };
6365 Q_ENUM( TiledSceneBoundingVolumeType )
6366
6367
6376 {
6377 Replacement,
6378 Additive,
6379 };
6380 Q_ENUM( TileRefinementProcess )
6381
6382
6388 {
6389 NoChildren,
6390 Available,
6391 NeedFetching,
6392 };
6393 Q_ENUM( TileChildrenAvailability )
6394
6395
6400 enum class TiledSceneRequestFlag : int SIP_ENUM_BASETYPE( IntFlag )
6401 {
6402 NoHierarchyFetch = 1 << 0,
6403 };
6404 Q_ENUM( TiledSceneRequestFlag )
6405
6406
6412 Q_FLAG( TiledSceneRequestFlags )
6413
6419 enum class TiledSceneRendererFlag : int SIP_ENUM_BASETYPE( IntFlag )
6420 {
6421 RequiresTextures = 1 << 0,
6422 ForceRasterRender = 1 << 1,
6423 RendersTriangles = 1 << 2,
6424 RendersLines = 1 << 3,
6425 };
6426 Q_ENUM( TiledSceneRendererFlag )
6427
6428
6434 Q_FLAG( TiledSceneRendererFlags )
6435
6441 enum class GdalResampleAlgorithm : int
6442 {
6443 RA_NearestNeighbour = 0,
6444 RA_Bilinear = 1,
6445 RA_Cubic = 2,
6446 RA_CubicSpline = 3,
6447 RA_Lanczos = 4,
6448 RA_Average = 5,
6449 RA_Mode = 6,
6450 RA_Max = 8,
6451 RA_Min = 9,
6452 RA_Median = 10,
6453 RA_Q1 = 11,
6454 RA_Q3 = 12,
6455 };
6456 Q_ENUM( GdalResampleAlgorithm )
6457
6458
6463 enum class VsiHandlerType : int
6464 {
6465 Invalid,
6466 Archive,
6467 Network,
6468 Cloud,
6469 Memory,
6470 Other,
6471 };
6472 Q_ENUM( VsiHandlerType )
6473
6474 // TODO QGIS 5: make All include all values (we can't do this before 4.0, as we need to keep
6475 // compatibility with code which expects all these statistics to give numeric results)
6476
6477
6482 enum class ZonalStatistic : int SIP_ENUM_BASETYPE( IntFlag )
6483 {
6484 Count = 1 << 0,
6485 Sum = 1 << 1,
6486 Mean = 1 << 2,
6487 Median = 1 << 3,
6488 StDev = 1 << 4,
6489 Min = 1 << 5,
6490 Max = 1 << 6,
6491 Range = 1 << 7,
6492 Minority = 1 << 8,
6493 Majority = 1 << 9,
6494 Variety = 1 << 10,
6495 Variance = 1 << 11,
6496 MinimumPoint = 1 << 12,
6497 MaximumPoint = 1 << 13,
6498 // clang-format off
6499 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6500 // clang-format on
6501 AllNumeric = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6502 Default = Count | Sum | Mean,
6503 };
6504 Q_ENUM( ZonalStatistic )
6505
6506
6512 Q_FLAG( ZonalStatistics )
6513
6519 enum class ZonalStatisticResult : int
6520 {
6522 LayerTypeWrong = 1,
6523 LayerInvalid,
6524 RasterInvalid,
6525 RasterBandInvalid,
6526 FailedToCreateField = 8,
6527 Canceled = 9
6528 };
6529 Q_ENUM( ZonalStatisticResult )
6530
6531
6538 {
6539 Count,
6540 CountDistinct,
6541 CountMissing,
6542 Min,
6543 Max,
6544 Sum,
6545 Mean,
6546 Median,
6547 StDev,
6548 StDevSample,
6549 Range,
6550 Minority,
6551 Majority,
6552 FirstQuartile,
6553 ThirdQuartile,
6554 InterQuartileRange,
6555 StringMinimumLength,
6556 StringMaximumLength,
6557 StringConcatenate,
6558 GeometryCollect,
6559 ArrayAggregate,
6560 StringConcatenateUnique
6561 };
6562 Q_ENUM( Aggregate )
6563
6564
6570 {
6571 Count = 1 << 0,
6572 CountMissing = 1 << 15,
6573 Sum = 1 << 1,
6574 Mean = 1 << 2,
6575 Median = 1 << 3,
6576 StDev = 1 << 4,
6577 StDevSample = 1 << 5,
6578 Min = 1 << 6,
6579 Max = 1 << 7,
6580 Range = 1 << 8,
6581 Minority = 1 << 9,
6582 Majority = 1 << 10,
6583 Variety = 1 << 11,
6584 FirstQuartile = 1 << 12,
6585 ThirdQuartile = 1 << 13,
6586 InterQuartileRange = 1 << 14,
6587 First = 1 << 16,
6588 Last = 1 << 17,
6589 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
6590 };
6591 Q_ENUM( Statistic )
6592
6593
6599 Q_FLAG( Statistics )
6600
6607 {
6608 Count = 1,
6609 CountDistinct = 2,
6610 CountMissing = 4,
6611 Min = 8,
6612 Max = 16,
6613 Range = 32,
6614 All = Count | CountDistinct | CountMissing | Min | Max | Range,
6615 };
6616 Q_ENUM( DateTimeStatistic )
6617
6618
6624 Q_FLAG( DateTimeStatistics )
6625
6632 {
6633 Count = 1,
6634 CountDistinct = 2,
6635 CountMissing = 4,
6636 Min = 8,
6637 Max = 16,
6638 MinimumLength = 32,
6639 MaximumLength = 64,
6640 MeanLength = 128,
6641 Minority = 256,
6642 Majority = 512,
6643 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
6644 };
6645 Q_ENUM( StringStatistic )
6646
6647
6653 Q_FLAG( StringStatistics )
6654
6661 {
6662 NoStatistic = 0,
6663 Min = 1,
6664 Max = 1 << 1,
6665 Range = 1 << 2,
6666 Sum = 1 << 3,
6667 Mean = 1 << 4,
6668 StdDev = 1 << 5,
6669 SumOfSquares = 1 << 6,
6670 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
6671 };
6672 Q_ENUM( RasterBandStatistic )
6673
6674
6680 Q_FLAG( RasterBandStatistics )
6681
6688 {
6689 Points,
6690 StructureLines,
6691 BreakLines,
6692 };
6693 Q_ENUM( InterpolationSourceType )
6694
6695
6701 {
6702 Attribute,
6703 Z,
6704 M,
6705 };
6706 Q_ENUM( InterpolationValueSource )
6707
6708
6713 enum class SensorThingsVersion : int
6714 {
6715 Version1_1,
6716 Version2_0,
6717 };
6719
6725 enum class SensorThingsExtension : int SIP_ENUM_BASETYPE( IntFlag )
6726 {
6727 MultiDatastream = 1 << 0,
6728 SensingExtensionObservationsMeasurements = 1 << 1,
6729 SensingExtensionSampling = 1 << 2,
6730 SensingExtensionRelations = 1 << 3,
6731 };
6733
6740 Q_FLAG( SensorThingsExtensions )
6741
6742
6747 enum class SensorThingsEntity : int
6748 {
6749 Invalid,
6750 Thing,
6751 Location,
6752 HistoricalLocation,
6753 Datastream,
6754 Sensor,
6755 ObservedProperty,
6756 Observation,
6757 FeatureOfInterest,
6758 MultiDatastream,
6759 // version 2.0
6760 Feature,
6761 FeatureType,
6762 Deployment,
6763 ObservingProcedure,
6764 Sampling,
6765 SamplingProcedure,
6766 Sampler,
6767 PreparationStep,
6768 PreparationProcedure,
6769 ThingRelation,
6770 RelationRole,
6771 FeatureRelation,
6772 DatastreamRelation,
6773 ObservationRelation,
6774 };
6775 Q_ENUM( SensorThingsEntity )
6776
6777
6782 enum class ColorModel : int
6783 {
6784 Rgb,
6785 Cmyk,
6786 };
6787 Q_ENUM( ColorModel )
6788
6789
6794 enum class DocumentationApi : int
6795 {
6796 PyQgis,
6797 PyQgisSearch,
6798 CppQgis,
6799 Qt,
6800 };
6801 Q_ENUM( DocumentationApi )
6802
6803
6808 enum class DocumentationBrowser : int
6809 {
6810 DeveloperToolsPanel,
6811 SystemWebBrowser,
6812 };
6813 Q_ENUM( DocumentationBrowser )
6814
6815
6820 enum class MouseHandlesAction : int
6821 {
6822 MoveItem,
6823 ResizeUp,
6824 ResizeDown,
6825 ResizeLeft,
6826 ResizeRight,
6827 ResizeLeftUp,
6828 ResizeRightUp,
6829 ResizeLeftDown,
6830 ResizeRightDown,
6831 RotateTopLeft,
6832 RotateTopRight,
6833 RotateBottomLeft,
6834 RotateBottomRight,
6835 SelectItem,
6836 NoAction
6837 };
6838 Q_ENUM( MouseHandlesAction )
6839
6840
6844 enum class MeshRangeLimit : int
6845 {
6846 NotSet,
6847 MinimumMaximum,
6848 };
6849 Q_ENUM( MeshRangeLimit )
6850
6851
6856 enum class MeshRangeExtent : int
6857 {
6858 WholeMesh,
6859 FixedCanvas,
6860 UpdatedCanvas,
6861 };
6862 Q_ENUM( MeshRangeExtent )
6863
6864
6870 enum class PointCloudAccessType : int
6871 {
6872 Local,
6873 Remote
6874 };
6875 Q_ENUM( PointCloudAccessType )
6876
6877
6882 {
6883 RenderExtents,
6884 RenderOverview,
6885 RenderOverviewAndExtents
6886 };
6887 Q_ENUM( PointCloudZoomOutRenderBehavior )
6888
6889
6894 {
6895 Standard = 0,
6896 Adaptive,
6897 AreaError,
6898 ConstantDensity
6899 };
6900 Q_ENUM( SegmentCalculationMethod )
6901
6902
6906 enum class StacObjectType : int
6907 {
6908 Unknown,
6909 Catalog,
6910 Collection,
6911 Item,
6912 };
6913 Q_ENUM( StacObjectType )
6914
6915
6920 {
6921 WmsScale = 1 << 0,
6922 WmsDpi = 1 << 1,
6923 };
6924 Q_ENUM( RasterProcessingParameterCapability )
6925
6926
6932
6938 {
6939 Status = Qt::UserRole + 1,
6940 Id,
6941 ElapsedTime,
6942 MaximumTime,
6943 Sort,
6944 };
6945 Q_ENUM( DevToolsNodeRole )
6946
6947
6952 enum class ExtrusionFace : int SIP_ENUM_BASETYPE( IntFlag )
6953 {
6954 NoFace = 0,
6955 Walls = 1 << 0,
6956 Roof = 1 << 1,
6957 Floor = 1 << 2
6958 };
6959 Q_ENUM( ExtrusionFace )
6960
6961
6965 Q_DECLARE_FLAGS( ExtrusionFaces, ExtrusionFace )
6966 Q_FLAG( ExtrusionFaces )
6967
6972 enum class TriangulationAlgorithm : int SIP_ENUM_BASETYPE( IntFlag )
6973 {
6974 ConstrainedDelaunay = 0,
6975 Earcut = 1 << 0
6976 };
6977 Q_ENUM( TriangulationAlgorithm )
6978
6979
6990 enum class WmsGroupRequestMode : int
6991 {
6992 Normal,
6993 Opaque,
6994 };
6995 Q_ENUM( WmsGroupRequestMode )
6996
6997
7003 {
7004 RestorePreviousState,
7005 ForceDocked,
7006 ForceDialog,
7007 };
7008 Q_ENUM( DockableWidgetInitialState )
7009
7010
7016 {
7017 LongestBorder = 0,
7018 MaximumArea = 1,
7019 MinimumArea = 2,
7020 MinimumIndex = 3,
7021 };
7022 Q_ENUM( CoverageCleanOverlapMergeStrategy )
7023
7024
7029 enum class PdfRenderFlag : int SIP_ENUM_BASETYPE( IntFlag )
7030 {
7031 RenderTextAsText = 1 << 0,
7032 };
7033 Q_ENUM( PdfRenderFlag )
7034
7035
7040 Q_DECLARE_FLAGS( PdfRenderFlags, PdfRenderFlag )
7041 Q_FLAG( PdfRenderFlags )
7042
7043
7052 {
7053 AllValues = 0,
7054 MinValue = 1,
7055 MaxValue = 2,
7056 ReferenceValue = 3,
7057 };
7058 Q_ENUM( WmsDimensionDefaultDisplay )
7059
7060
7065 enum class RubberBandIconType : int
7066 {
7067 NoIcon,
7068 CrossPlus,
7069 CrossX,
7070 Box,
7071 Circle,
7072 BoxFilled,
7073 Diamond,
7074 DiamondFilled,
7075 SVG
7076 };
7077 Q_ENUM( RubberBandIconType )
7078
7079
7084 enum class RubberBandComponent : int SIP_ENUM_BASETYPE( IntFlag )
7085 {
7086 Symbol = 1 << 0,
7087 PreviewItems = 1 << 1,
7088 };
7089 Q_ENUM( RubberBandComponent )
7090
7091
7097 Q_FLAG( RubberBandComponents )
7098
7104 enum class UserInterfaceIconType : int
7105 {
7106 MainWindowToolbar,
7107 DockedToolbar,
7108 };
7109 Q_ENUM( UserInterfaceIconType )
7110
7111
7119 {
7120 MinMax = 0,
7121 Scaled,
7122 Fixed
7123 };
7124 Q_ENUM( VectorFieldArrowScalingMethod )
7125
7126
7134 {
7135 Arrows = 0,
7136 Streamlines,
7137 Traces,
7138 WindBarbs
7139 };
7140 Q_ENUM( VectorFieldSymbology )
7141
7142
7150 {
7151 Gridded SIP_MONKEYPATCH_COMPAT_NAME( MeshGridded ) = 0,
7152 Random
7153 };
7154 Q_ENUM( VectorFieldSeedingMethod )
7155
7156
7161 enum class LinearMatrixMethod : int
7162 {
7163 Lu = 0,
7164 Svd = 1,
7165 LuWithSvdFallback = 2
7166 };
7167 Q_ENUM( LinearMatrixMethod )
7168
7169
7172 static const double DEFAULT_SEARCH_RADIUS_MM;
7173
7176
7182 static const QColor DEFAULT_HIGHLIGHT_COLOR;
7183
7187 static const double DEFAULT_HIGHLIGHT_BUFFER_MM;
7188
7193
7201 Q_DECL_DEPRECATED static const double SCALE_PRECISION;
7202
7207 static const double DEFAULT_Z_COORDINATE;
7208
7214 static const double DEFAULT_M_COORDINATE;
7215
7220 static const double UI_SCALE_FACTOR;
7221
7225 static const double DEFAULT_SNAP_TOLERANCE;
7226
7231
7235 static const int USER_CRS_START_ID;
7236
7238 static const double DEFAULT_POINT_SIZE;
7239
7241 static const double DEFAULT_LINE_WIDTH;
7242
7244 static const double DEFAULT_SEGMENT_EPSILON;
7245
7248
7251
7257 static QString defaultProjectScales();
7258
7264 static int geosVersionInt();
7265
7271 static int geosVersionMajor();
7272
7278 static int geosVersionMinor();
7279
7285 static int geosVersionPatch();
7286
7292 static QString geosVersion();
7293
7299 static bool hasSfcgal();
7300
7307 static int sfcgalVersionInt();
7308
7314 static bool hasGeographicLib();
7315
7322 static int geographicLibVersion();
7323
7329 Q_DECL_DEPRECATED static bool hasQtWebkit();
7330
7336 static QString geoNone() { return u"NONE"_s; }
7337
7343 static QString geographicCrsAuthId() { return u"EPSG:4326"_s; }
7344
7349 Q_DECL_DEPRECATED static QString geoWkt()
7350 {
7351 return QStringLiteral(
7352 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]] )"""
7353 );
7354 }
7355
7360 Q_DECL_DEPRECATED static QString geoProj4() { return u"+proj=longlat +datum=WGS84 +no_defs"_s; }
7361};
7362
7365
7466Q_DECLARE_METATYPE( QTimeZone )
7467
7468// hack to workaround warnings when casting void pointers
7469// retrieved from QLibrary::resolve to function pointers.
7470// It's assumed that this works on all systems supporting
7471// QLibrary
7472#define cast_to_fptr( f ) f
7473
7474
7482// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7483template<class Object> class QgsSignalBlocker SIP_SKIP SIP_SKIP // clazy:exclude=rule-of-three
7484{
7485 public:
7490 explicit QgsSignalBlocker( Object *object )
7491 : mObject( object )
7492 , mPreviousState( object->blockSignals( true ) )
7493 {}
7494
7495 ~QgsSignalBlocker() { mObject->blockSignals( mPreviousState ); }
7496
7498 Object *operator->() { return mObject; }
7499
7500 private:
7501 Object *mObject = nullptr;
7502 bool mPreviousState;
7503};
7504
7517// based on Boojum's code from http://stackoverflow.com/questions/3556687/prevent-firing-signals-in-qt
7518template<class Object> inline QgsSignalBlocker<Object> whileBlocking( Object *object ) SIP_SKIP SIP_SKIP
7519{
7520 return QgsSignalBlocker<Object>( object );
7521}
7522
7524CORE_EXPORT size_t qHash( const QVariant &variant );
7525
7531inline QString qgsDoubleToString( double a, int precision = 17 )
7532{
7533 QString str;
7534 if ( precision )
7535 {
7536 if ( precision < 0 )
7537 {
7538 const double roundFactor = std::pow( 10, -precision );
7539 str = QString::number( static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
7540 }
7541 else
7542 {
7543 str = QString::number( a, 'f', precision );
7544 if ( str.contains( '.'_L1 ) )
7545 {
7546 // remove ending 0s
7547 int idx = str.length() - 1;
7548 while ( str.at( idx ) == '0' && idx > 1 )
7549 {
7550 idx--;
7551 }
7552 if ( idx < str.length() - 1 )
7553 str.truncate( str.at( idx ) == '.' ? idx : idx + 1 );
7554 }
7555 }
7556 }
7557 else
7558 {
7559 str = QString::number( a, 'f', precision );
7560 }
7561 // avoid printing -0
7562 // see https://bugreports.qt.io/browse/QTBUG-71439
7563 if ( str == "-0"_L1 )
7564 {
7565 return "0"_L1;
7566 }
7567 return str;
7568}
7569
7576inline bool qgsNanCompatibleEquals( double a, double b )
7577{
7578 if ( a == b )
7579 return true;
7580
7581 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7582 return true;
7583
7584 return false;
7585}
7586
7587#ifndef SIP_RUN
7588
7596template<typename T> inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
7597{
7598 static_assert( std::is_floating_point<T>::value, "qgsNumberNear requires floating-point types" );
7599
7600 if ( a == b )
7601 return true;
7602
7603 // if either 'a' or 'b' is NaN, 'diff' becomes NaN.
7604 // comparisons (>= or <=) against NaN evaluate to false, which will fallback
7605 // to the nan related logic at the end of this function
7606 const T diff = a - b;
7607 if ( diff >= -epsilon && diff <= epsilon )
7608 return true;
7609
7610 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7611 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7612 return true;
7613
7614 return false;
7615}
7616#endif
7617
7624inline bool qgsDoubleNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7625{
7626 return qgsNumberNear<double>( a, b, epsilon );
7627}
7628
7637inline bool qgsDoubleLessThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7638{
7639 // fast check first
7640 if ( a <= b )
7641 return true;
7642
7643 // => a > b
7644 // => a - b > 0
7645 // we only need to check the upper epsilon bound for the fuzzy equality
7646 if ( a - b <= epsilon )
7647 return true;
7648
7649 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7650 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7651 return true;
7652
7653 return false;
7654}
7655
7664inline bool qgsDoubleGreaterThanOrNear( double a, double b, double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7665{
7666 // fast check first
7667 if ( a >= b )
7668 return true;
7669
7670 // => a < b
7671 // => b - a > 0
7672 // we only need to check the upper epsilon bound for the fuzzy equality
7673 if ( b - a <= epsilon )
7674 return true;
7675
7676 // defer expensive nan checks to last -- calling std::isnan is NOT cheap!
7677 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7678 return true;
7679
7680 return false;
7681}
7682
7689inline bool qgsFloatNear( float a, float b, float epsilon = 4 * FLT_EPSILON )
7690{
7691 return qgsNumberNear<float>( a, b, epsilon );
7692}
7693
7695inline bool qgsDoubleNearSig( double a, double b, int significantDigits = 10 )
7696{
7697 const bool aIsNan = std::isnan( a );
7698 const bool bIsNan = std::isnan( b );
7699 if ( aIsNan || bIsNan )
7700 return aIsNan && bIsNan;
7701
7702 // The most simple would be to print numbers as %.xe and compare as strings
7703 // but that is probably too costly
7704 // Then the fastest would be to set some bits directly, but little/big endian
7705 // has to be considered (maybe TODO)
7706 // Is there a better way?
7707 int aexp, bexp;
7708 const double ar = std::frexp( a, &aexp );
7709 const double br = std::frexp( b, &bexp );
7710
7711 return aexp == bexp && std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
7712}
7713
7718inline double qgsRound( double number, int places )
7719{
7720 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
7721 const double scaleFactor = std::pow( 10.0, places );
7722 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
7723}
7724
7725#ifndef SIP_RUN
7726
7733template<class Key, class Value> QString qgsMapJoinKeys( const QMap<Key, Value> &map, const QString &separator )
7734{
7735 QString result;
7736 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7737 result += QString( "%1%2" ).arg( it.key() ).arg( separator );
7738
7739 result.chop( separator.size() );
7740 return result;
7741}
7742
7749template<class Key, class Value> QString qgsMapJoinValues( const QMap<Key, Value> &map, const QString &separator )
7750{
7751 QString result;
7752 for ( auto it = map.constBegin(); it != map.constEnd(); it++ )
7753 result += QString( "%1%2" ).arg( it.value() ).arg( separator );
7754
7755 result.chop( separator.size() );
7756 return result;
7757}
7758
7765template<class T> QString qgsSetJoin( const QSet<T> &set, const QString &separator )
7766{
7767 QString result;
7768 for ( auto it = set.constBegin(); it != set.constEnd(); it++ )
7769 result += QString( "%1%2" ).arg( *it ).arg( separator );
7770
7771 result.chop( separator.size() );
7772 return result;
7773}
7774
7776
7786namespace qgis
7787{
7788
7801 template<typename To, typename From> inline To down_cast( From *f )
7802 {
7803 static_assert( ( std::is_base_of<From, typename std::remove_pointer<To>::type>::value ), "target type not derived from source type" );
7804 Q_ASSERT( f == nullptr || dynamic_cast<To>( f ) != nullptr );
7805 return static_cast<To>( f );
7806 }
7807
7808 template<class T> QSet<T> listToSet( const QList<T> &list )
7809 {
7810 return QSet<T>( list.begin(), list.end() );
7811 }
7812
7813 template<class T> QList<T> setToList( const QSet<T> &set )
7814 {
7815 return QList<T>( set.begin(), set.end() );
7816 }
7817
7826 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_static_cast( std::unique_ptr<From> f )
7827 {
7828 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
7829 Q_ASSERT( !f || dynamic_cast<To *>( f.get() ) != nullptr );
7830 return std::unique_ptr<To>( static_cast<To *>( f.release() ) );
7831 }
7832
7840 template<typename To, typename From> inline std::unique_ptr<To> unique_ptr_dynamic_cast( std::unique_ptr<From> &&f )
7841 {
7842 static_assert( ( std::is_base_of<From, To>::value ), "target type not derived from source type" );
7843 if ( To *casted = dynamic_cast<To *>( f.get() ) )
7844 {
7845 return std::unique_ptr< To >( dynamic_cast<To *>( f.release() ) );
7846 }
7847 else
7848 {
7849 //could not cast
7850 return nullptr;
7851 }
7852 }
7853
7854
7855} //namespace qgis
7856
7858#endif
7859
7864template<class T> const QList<T> qgsEnumList() SIP_SKIP
7865{
7866 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7867 Q_ASSERT( metaEnum.isValid() );
7868 QList<T> enumList;
7869 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
7870 {
7871 enumList.append( static_cast<T>( metaEnum.value( idx ) ) );
7872 }
7873 return enumList;
7874}
7875
7881template<class T> const QMap<T, QString> qgsEnumMap() SIP_SKIP
7882{
7883 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7884 Q_ASSERT( metaEnum.isValid() );
7885 QMap<T, QString> enumMap;
7886 for ( int idx = 0; idx < metaEnum.keyCount(); ++idx )
7887 {
7888 enumMap.insert( static_cast<T>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
7889 }
7890 return enumMap;
7891}
7892
7898template<class T> QString qgsEnumValueToKey( const T &value, bool *returnOk = nullptr ) SIP_SKIP
7899{
7900 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7901 Q_ASSERT( metaEnum.isValid() );
7902 const char *key = metaEnum.valueToKey( static_cast<int>( value ) );
7903 if ( returnOk )
7904 {
7905 *returnOk = key ? true : false;
7906 }
7907 return QString::fromUtf8( key );
7908}
7909
7917template<class T> T qgsEnumKeyToValue( const QString &key, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
7918{
7919 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7920 Q_ASSERT( metaEnum.isValid() );
7921 bool ok = false;
7922 T v = static_cast<T>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
7923 if ( returnOk )
7924 {
7925 *returnOk = ok;
7926 }
7927 if ( ok )
7928 {
7929 return v;
7930 }
7931 else
7932 {
7933 // if conversion has failed, try with conversion from int value
7934 if ( tryValueAsKey )
7935 {
7936 bool canConvert = false;
7937 const int intValue = key.toInt( &canConvert );
7938 if ( canConvert && metaEnum.valueToKey( intValue ) )
7939 {
7940 if ( returnOk )
7941 {
7942 *returnOk = true;
7943 }
7944 return static_cast<T>( intValue );
7945 }
7946 }
7947 }
7948 return defaultValue;
7949}
7950
7956template<class T> QString qgsFlagValueToKeys( const T &value, bool *returnOk = nullptr ) SIP_SKIP
7957{
7958 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7959 Q_ASSERT( metaEnum.isValid() );
7960 int intValue = static_cast<int>( value );
7961 if ( intValue == 0 )
7962 {
7963 if ( returnOk )
7964 *returnOk = true;
7965 return u"0"_s;
7966 }
7967
7968 const QByteArray ba = metaEnum.valueToKeys( intValue );
7969 // check that the int value does correspond to a flag
7970 // see https://stackoverflow.com/a/68495949/1548052
7971 const int intValueCheck = metaEnum.keysToValue( ba );
7972 bool ok = intValue == intValueCheck;
7973 if ( returnOk )
7974 *returnOk = ok;
7975 return ok ? QString::fromUtf8( ba ) : QString();
7976}
7977
7985template<class T> T qgsFlagKeysToValue( const QString &keys, const T &defaultValue, bool tryValueAsKey = true, bool *returnOk = nullptr ) SIP_SKIP
7986{
7987 if ( keys.isEmpty() )
7988 {
7989 if ( returnOk )
7990 {
7991 *returnOk = false;
7992 }
7993 return defaultValue;
7994 }
7995 else if ( keys == "0"_L1 )
7996 {
7997 if ( returnOk )
7998 {
7999 *returnOk = true;
8000 }
8001 return T();
8002 }
8003 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8004 Q_ASSERT( metaEnum.isValid() );
8005 bool ok = false;
8006 T v = static_cast<T>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
8007 if ( returnOk )
8008 {
8009 *returnOk = ok;
8010 }
8011 if ( ok )
8012 {
8013 return v;
8014 }
8015 else
8016 {
8017 // if conversion has failed, try with conversion from int value
8018 if ( tryValueAsKey )
8019 {
8020 bool canConvert = false;
8021 const int intValue = keys.toInt( &canConvert );
8022 if ( canConvert )
8023 {
8024 const QByteArray keyArray = metaEnum.valueToKeys( intValue );
8025 const int intValueCheck = metaEnum.keysToValue( keyArray );
8026 if ( !keyArray.isEmpty() && intValue == intValueCheck )
8027 {
8028 if ( returnOk )
8029 {
8030 *returnOk = true;
8031 }
8032 return T( intValue );
8033 }
8034 }
8035 }
8036 }
8037 return defaultValue;
8038}
8039
8040
8049CORE_EXPORT double qgsPermissiveToDouble( QString string, bool &ok );
8050
8059CORE_EXPORT int qgsPermissiveToInt( QString string, bool &ok );
8060
8070CORE_EXPORT qlonglong qgsPermissiveToLongLong( QString string, bool &ok );
8071
8091CORE_EXPORT int qgsVariantCompare( const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck = false );
8092
8103CORE_EXPORT bool qgsVariantLessThan( const QVariant &lhs, const QVariant &rhs );
8104
8113CORE_EXPORT bool qgsVariantEqual( const QVariant &lhs, const QVariant &rhs );
8114
8123CORE_EXPORT bool qgsVariantGreaterThan( const QVariant &lhs, const QVariant &rhs );
8124
8136inline bool operator>( const QVariant &v1, const QVariant &v2 )
8137{
8138 return qgsVariantCompare( v1, v2, true ) > 0;
8139}
8140
8152inline bool operator<( const QVariant &v1, const QVariant &v2 )
8153{
8154 return qgsVariantCompare( v1, v2, true ) < 0;
8155}
8156
8163Q_DECL_DEPRECATED CORE_EXPORT QString qgsVsiPrefix( const QString &path ) SIP_DEPRECATED;
8164
8170void CORE_EXPORT *qgsMalloc( size_t size ) SIP_SKIP;
8171
8176void CORE_EXPORT qgsFree( void *ptr ) SIP_SKIP;
8177
8178#ifndef SIP_RUN
8179
8181class ScopedIntIncrementor
8182{
8183 public:
8184 ScopedIntIncrementor( int *variable )
8185 : mVariable( variable )
8186 {
8187 ( *mVariable )++;
8188 }
8189
8190 ScopedIntIncrementor( const ScopedIntIncrementor &other ) = delete;
8191 ScopedIntIncrementor &operator=( const ScopedIntIncrementor &other ) = delete;
8192
8193 void release()
8194 {
8195 if ( mVariable )
8196 ( *mVariable )--;
8197
8198 mVariable = nullptr;
8199 }
8200
8201 ~ScopedIntIncrementor() { release(); }
8202
8203 private:
8204 int *mVariable = nullptr;
8205};
8207
8208#endif
8209
8215Q_DECL_DEPRECATED const long GEOSRID = 4326;
8216
8222Q_DECL_DEPRECATED const long GEOCRS_ID = 3452;
8223
8229Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID = 4326;
8230
8231typedef QMap<QString, QString> QgsStringMap SIP_SKIP;
8232
8241typedef unsigned long long qgssize;
8242
8243#ifndef SIP_RUN
8244#if ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) ) || defined( __clang__ )
8245
8246#define Q_NOWARN_DEPRECATED_PUSH _Pragma( "GCC diagnostic push" ) _Pragma( "GCC diagnostic ignored \"-Wdeprecated-declarations\"" );
8247#define Q_NOWARN_DEPRECATED_POP _Pragma( "GCC diagnostic pop" );
8248#define Q_NOWARN_UNREACHABLE_PUSH
8249#define Q_NOWARN_UNREACHABLE_POP
8250
8251#elif defined( _MSC_VER )
8252
8253#define Q_NOWARN_DEPRECATED_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4996 ) )
8254#define Q_NOWARN_DEPRECATED_POP __pragma( warning( pop ) )
8255#define Q_NOWARN_UNREACHABLE_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4702 ) )
8256#define Q_NOWARN_UNREACHABLE_POP __pragma( warning( pop ) )
8257#else
8258
8259#define Q_NOWARN_DEPRECATED_PUSH
8260#define Q_NOWARN_DEPRECATED_POP
8261#define Q_NOWARN_UNREACHABLE_PUSH
8262#define Q_NOWARN_UNREACHABLE_POP
8263
8264#endif
8265#endif
8266
8267#ifndef QGISEXTERN
8268#ifdef Q_OS_WIN
8269#define QGISEXTERN extern "C" __declspec( dllexport )
8270#else
8271#if defined( __GNUC__ ) || defined( __clang__ )
8272#define QGISEXTERN extern "C" __attribute__( ( visibility( "default" ) ) )
8273#else
8274#define QGISEXTERN extern "C"
8275#endif
8276#endif
8277#endif
8278#endif
8279
8280#ifndef SIP_RUN
8281#ifdef _MSC_VER
8282#define BUILTIN_UNREACHABLE __assume( false );
8283#elif defined( __GNUC__ ) && !defined( __clang__ )
8284// Workaround a GCC bug where a -Wreturn-type warning is emitted in constructs
8285// like:
8286// switch( mVariableThatCanOnlyBeXorY )
8287// {
8288// case X:
8289// return "foo";
8290// case Y:
8291// return "foo";
8292// }
8293// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87951
8294#define BUILTIN_UNREACHABLE __builtin_unreachable();
8295#else
8296#define BUILTIN_UNREACHABLE
8297#endif
8298#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:6024
DistanceUnitType
Types of distance units.
Definition qgis.h:5576
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:4633
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:7230
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:6054
DataItemProviderCapability
Capabilities for data item providers.
Definition qgis.h:1057
ProcessingFileParameterBehavior
Flags which dictate the behavior of QgsProcessingParameterFile.
Definition qgis.h:4009
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:4717
QFlags< DatabaseProviderTableImportCapability > DatabaseProviderTableImportCapabilities
Definition qgis.h:6132
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:5482
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:7241
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
Definition qgis.h:4084
QFlags< GpsInformationComponent > GpsInformationComponents
GPS information component.
Definition qgis.h:2134
ScaleBarDistanceLabelHorizontalPlacement
Scale bar distance label horizontal placement.
Definition qgis.h:5871
PointCloudSymbol
Rendering symbols for point cloud points.
Definition qgis.h:4661
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:7192
QFlags< PdfRenderFlag > PdfRenderFlags
PDF rendering flags.
Definition qgis.h:7040
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:5407
ExpressionType
Expression types.
Definition qgis.h:6262
MapLayerActionFlag
Map layer action flags.
Definition qgis.h:5137
ScaleBarDistanceLabelVerticalPlacement
Scale bar distance label vertical placement.
Definition qgis.h:5857
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:6920
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:6991
VectorFieldSeedingMethod
Method used to define start points that are used to draw streamlines.
Definition qgis.h:7150
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
Definition qgis.h:5126
VectorTileProviderCapability
Enumeration with capabilities that vector tile data providers might implement.
Definition qgis.h:6308
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:4203
static const int PREVIEW_JOB_DELAY_MS
Delay between the scheduling of 2 preview jobs.
Definition qgis.h:7247
VectorTileProviderFlag
Flags for vector tile data providers.
Definition qgis.h:6290
VectorFieldSymbology
Defines the symbology of vector field rendering.
Definition qgis.h:7134
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:4761
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:4898
ProcessingParameterTypeFlag
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:3957
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:6688
static const double DEFAULT_Z_COORDINATE
Default Z coordinate value.
Definition qgis.h:7207
CoverageCleanOverlapMergeStrategy
Merge strategies for coverage cleaning operations.
Definition qgis.h:7016
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:6701
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:5497
ContentStatus
Status for fetched or stored content.
Definition qgis.h:1995
UserInterfaceIconType
Icon types for icons shown in the user interface.
Definition qgis.h:7105
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:4497
LayoutUnit
Layout measurement units.
Definition qgis.h:5724
Q_ENUM(GpsFixStatus)
RelationshipStrength
Relationship strength.
Definition qgis.h:4851
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:4739
LegendComponent
Component of legends which can be styled.
Definition qgis.h:5034
Point3DShape
3D point shape types.
Definition qgis.h:4389
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:6652
BrowserItemState
Browser item states.
Definition qgis.h:1000
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:6190
QFlags< TiledSceneProviderCapability > TiledSceneProviderCapabilities
Tiled scene data provider capabilities.
Definition qgis.h:6351
QFlags< SensorThingsExtension > SensorThingsExtensions
OGC SensorThings extensions.
Definition qgis.h:6739
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:6249
RenderSubcomponentProperty
Rendering subcomponent properties.
Definition qgis.h:3258
ProcessingTinInputLayerType
Defines the type of input layer for a Processing TIN input.
Definition qgis.h:4099
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
Definition qgis.h:2481
TextureFilterQuality
Texture filtering qualities.
Definition qgis.h:4455
Statistic
Available generic statistics.
Definition qgis.h:6570
TriangulationAlgorithm
Triangulation algorithms.
Definition qgis.h:6973
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
Definition qgis.h:810
AngleUnit
Units of angles.
Definition qgis.h:5639
ToneMappingMethod
Defines the method used to map High Dynamic Range (HDR) scene colors to the Standard Dynamic Range (S...
Definition qgis.h:4572
MapGridAnnotationPosition
Position for map grid annotations.
Definition qgis.h:5934
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:6220
QFlags< AuthConfigurationStorageCapability > AuthConfigurationStorageCapabilities
Authentication configuration storage capabilities.
Definition qgis.h:152
QFlags< LayerTreeFilterFlag > LayerTreeFilterFlags
Layer tree filter flags.
Definition qgis.h:5004
LayerTreeInsertionMethod
Layer tree insertion methods.
Definition qgis.h:4968
RasterProviderCapability
Raster data provider capabilities.
Definition qgis.h:5387
DatabaseProviderTableImportCapability
Represents capabilities of a database provider connection when importing table data.
Definition qgis.h:6127
LineClipMode
Line clipping modes.
Definition qgis.h:3481
static const double DEFAULT_SNAP_TOLERANCE
Default snapping distance tolerance.
Definition qgis.h:7225
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:6464
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:6110
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:4639
QFlags< MapLayerLegendFlag > MapLayerLegendFlags
Map layer legend flags.
Definition qgis.h:5023
MapGridUnit
Units for map grid values.
Definition qgis.h:5886
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:5264
static const double DEFAULT_M_COORDINATE
Default M coordinate value.
Definition qgis.h:7214
QFlags< VectorLayerTypeFlag > VectorLayerTypeFlags
Vector layer type flags.
Definition qgis.h:440
ScaleBarAlignment
Scalebar alignment.
Definition qgis.h:5828
LegendLayerDoubleClickAction
Action performed when double-clicking a layer in the legend.
Definition qgis.h:4981
RasterPyramidFormat
Raster pyramid formats.
Definition qgis.h:5303
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:4470
PdfRenderFlag
PDF rendering flags.
Definition qgis.h:7030
DistanceUnit
Units of distance.
Definition qgis.h:5514
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:6845
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:5052
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:6930
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:4295
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:6235
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:7187
MapCanvasFlag
Flags controlling behavior of map canvases.
Definition qgis.h:3676
LayerTreeFilterFlag
Layer tree filter flags.
Definition qgis.h:4994
TextAnchorPoint
Anchor point of label text.
Definition qgis.h:1475
ExtrusionFace
Extrusion face types for the QgsTessellator.
Definition qgis.h:6953
AttributeFormLayout
Available form types for layout of the attribute form editor.
Definition qgis.h:6205
FeatureRequestFlag
Flags for controlling feature requests.
Definition qgis.h:2358
Map3DDebugFlag
Flags that control debug options for 3D maps.
Definition qgis.h:4356
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:6442
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:4190
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:7182
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
Definition qgis.h:5416
static Q_DECL_DEPRECATED const double SCALE_PRECISION
Fudge factor used to compare two scales.
Definition qgis.h:7201
RasterDrawingStyle
Raster drawing styles.
Definition qgis.h:5280
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:7250
QFlags< RubberBandComponent > RubberBandComponents
Rubber band components.
Definition qgis.h:7096
MeshRangeExtent
Describes the extent used to compute mesh ranges (min/max values).
Definition qgis.h:6857
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:4751
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:5374
Q_ENUM(VectorProfileType)
AttributeActionType
Attribute action types.
Definition qgis.h:5161
TemporalNavigationMode
Temporal navigation modes.
Definition qgis.h:2721
ProcessingFieldParameterDataType
Processing field parameter data types.
Definition qgis.h:4037
AreaUnit
Units of area.
Definition qgis.h:5591
StringStatistic
Available string statistics.
Definition qgis.h:6632
SelectiveMaskSourceType
Selective masking source types.
Definition qgis.h:3272
FieldDomainMergePolicy
Merge policy for field domains.
Definition qgis.h:4144
ZonalStatistic
Statistics to be calculated during a zonal statistics operation.
Definition qgis.h:6483
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:5988
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:7349
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:6039
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:6360
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:6965
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:5918
SensorThingsEntity
OGC SensorThings API entity types.
Definition qgis.h:6748
MeshEditingErrorType
Type of error that can occur during mesh frame editing.
Definition qgis.h:1809
FieldDomainSplitPolicy
Split policy for field domains.
Definition qgis.h:4127
ArcGisRestServiceType
Available ArcGIS REST service types.
Definition qgis.h:4789
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:5080
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:5096
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:6726
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:6141
AvoidIntersectionsMode
Flags which control how intersections of pre-existing feature are handled when digitizing new feature...
Definition qgis.h:4688
MarkerShape
Marker shapes.
Definition qgis.h:3298
StacObjectType
Available types of stac objects.
Definition qgis.h:6907
LegendJsonRenderFlag
Legend JSON export flags.
Definition qgis.h:5067
BlendMode
Blending modes defining the available composition modes that can be used when painting.
Definition qgis.h:5431
RasterElevationMode
Raster layer elevation modes.
Definition qgis.h:4242
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:5798
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:4345
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:5680
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:4112
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:5787
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:3972
TileAvailability
Possible availability states for a tile within a tile matrix.
Definition qgis.h:6327
ProjectFlag
Flags which control the behavior of QgsProjects.
Definition qgis.h:4324
MapGridStyle
Map grid drawing styles.
Definition qgis.h:5902
SensorThingsVersion
OGC SensorThings API versions.
Definition qgis.h:6714
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:7360
AcademicReferenceType
Type of academic reference.
Definition qgis.h:5192
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:7066
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:4837
ScriptLanguageCapability
Script language capabilities.
Definition qgis.h:4947
RasterInterfaceCapability
Raster interface capabilities.
Definition qgis.h:5354
JoinStyle
Join styles for buffers.
Definition qgis.h:2273
PointCloudDrawOrder
Pointcloud rendering order for 2d views.
Definition qgis.h:4673
QFlags< RasterBandStatistic > RasterBandStatistics
Statistics to be calculated for raster bands.
Definition qgis.h:6679
CadMeasurementDisplayType
Advanced digitizing measurement display types.
Definition qgis.h:4311
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3837
TextCharacterVerticalAlignment
Text vertical alignment for characters.
Definition qgis.h:3182
FieldDuplicatePolicy
Duplicate policy for fields.
Definition qgis.h:4164
UserProfileSelectionPolicy
User profile selection policy.
Definition qgis.h:6156
static const float DEFAULT_MAPTOPIXEL_THRESHOLD
Default threshold between map coordinates and device coordinates for map2pixel simplification.
Definition qgis.h:7175
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:4216
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:6420
MapLayerActionTarget
Map layer action targets.
Definition qgis.h:5111
ShaderClassificationMethod
Color ramp shader classification methods.
Definition qgis.h:1589
MapLayerLegendFlag
Map layer legend flags.
Definition qgis.h:5013
ZonalStatisticResult
Zonal statistics result codes.
Definition qgis.h:6520
ScriptLanguage
Scripting languages.
Definition qgis.h:4924
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:4584
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:6341
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:4621
RasterBandStatistic
Available raster band statistics.
Definition qgis.h:6661
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
Definition qgis.h:6318
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:6511
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:6809
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:5467
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:4550
QFlags< CoordinateTransformationFlag > CoordinateTransformationFlags
Coordinate transformation flags.
Definition qgis.h:2887
RelationshipCapability
Relationship capabilities.
Definition qgis.h:4877
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
Definition qgis.h:4510
RasterBuildPyramidOption
Raster pyramid building options.
Definition qgis.h:5318
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
Definition qgis.h:564
NavigationMode
The navigation mode used by 3D cameras.
Definition qgis.h:4525
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:6388
WindSpeedUnit
Wind speed units.
Definition qgis.h:5662
PointCloudZoomOutRenderBehavior
Point cloud zoom out options.
Definition qgis.h:6882
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:4443
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:6598
PlotToolFlag
Flags that control the way the QgsPlotTools operate.
Definition qgis.h:4341
RenderUnit
Rendering size units.
Definition qgis.h:5704
QFlags< ArcGisRestServiceCapability > ArcGisRestServiceCapabilities
Available ArcGIS REST service capabilities.
Definition qgis.h:4826
static QString geographicCrsAuthId()
Geographic coordinate system auth:id string for a default geographic CRS (EPSG:4326).
Definition qgis.h:7343
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:5811
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
Definition qgis.h:6411
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:5150
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:4562
FieldDomainType
Types of field domain.
Definition qgis.h:4177
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:5843
Aggregate
Available aggregates to calculate.
Definition qgis.h:6538
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:7172
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:4770
LayoutUnitType
Types of layout units.
Definition qgis.h:5744
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:6065
TiledSceneRequestFlag
Flags which control how tiled scene requests behave.
Definition qgis.h:6401
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:7244
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:4863
GradientType
Gradient types.
Definition qgis.h:3410
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
Definition qgis.h:4959
VectorProfileType
Types of elevation profiles to generate for vector sources.
Definition qgis.h:4609
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:4366
RangeLimits
Describes how the limits of a range are handled.
Definition qgis.h:4228
QFlags< ProjectFlag > ProjectFlags
Definition qgis.h:4332
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:3998
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:4375
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:4889
ArcGisRestServiceCapability
Available ArcGIS REST service capabilities.
Definition qgis.h:4810
QFlags< SymbolRenderHint > SymbolRenderHints
Symbol render hints.
Definition qgis.h:818
VolumeUnit
Units of volume.
Definition qgis.h:5616
CurvedTextFlag
Flags controlling behavior of curved text generation.
Definition qgis.h:3195
AttributeEditorType
Attribute editor types.
Definition qgis.h:6171
QFlags< LegendJsonRenderFlag > LegendJsonRenderFlags
Definition qgis.h:5071
QFlags< ProviderStyleStorageCapability > ProviderStyleStorageCapabilities
Definition qgis.h:6147
RubberBandComponent
Rubber band components.
Definition qgis.h:7085
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:3920
MapGridFrameStyle
Style for map grid frames.
Definition qgis.h:6004
PointCloudAccessType
The access type of the data, local is for local files and remote for remote files (over HTTP).
Definition qgis.h:6871
ProfileExportType
Types of export for elevation profiles.
Definition qgis.h:4648
MeshElevationMode
Mesh layer elevation modes.
Definition qgis.h:4256
ProjectFileFormat
Flags which control project read behavior.
Definition qgis.h:4703
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:5213
static const int USER_CRS_START_ID
Minimum ID number for a user-defined projection.
Definition qgis.h:7235
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
Definition qgis.h:4596
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:4411
ColorModel
Color model types.
Definition qgis.h:6783
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:6089
SegmentCalculationMethod
brief Method used to calculate the number of segments for circle approximation
Definition qgis.h:6894
WmsDimensionDefaultDisplay
QGIS Server WMS Dimension default display types.
Definition qgis.h:7052
GpsConnectionType
GPS connection types.
Definition qgis.h:2010
Q_ENUM(InputControllerType)
QFlags< DatabaseProviderConnectionCapability2 > DatabaseProviderConnectionCapabilities2
Definition qgis.h:6118
MouseHandlesAction
Action to be performed by the mouse handles.
Definition qgis.h:6821
ProcessingFeatureSourceDefinitionFlag
Flags which control behavior for a Processing feature source.
Definition qgis.h:3905
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:7336
DevToolsNodeRole
Dev tools node custom data roles.
Definition qgis.h:6938
LoadStyleFlag
Flags for loading layer styles.
Definition qgis.h:252
BetweenLineConstraint
Between line constraints which can be enabled.
Definition qgis.h:4269
QFlags< VectorTileProviderFlag > VectorTileProviderFlags
Vector tile data provider flags.
Definition qgis.h:6300
SymbolConverterCapability
Symbol converter capabilities.
Definition qgis.h:827
MetadataDateType
Date types for metadata.
Definition qgis.h:5179
QFlags< RasterTemporalCapabilityFlag > RasterTemporalCapabilityFlags
Flags for raster layer temporal capabilities.
Definition qgis.h:2853
ProcessingFeatureSourceFlag
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3931
RasterIdentifyFormat
Raster identify formats.
Definition qgis.h:5333
MapGridAnnotationDirection
Direction of grid annotations.
Definition qgis.h:5948
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:4282
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:6376
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
Definition qgis.h:6623
SelectionRenderingMode
Specifies how a selection should be rendered.
Definition qgis.h:1908
InputControllerType
Input controller types.
Definition qgis.h:6077
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:4068
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:6433
MapGridAnnotationFormat
Format for displaying map grid annotations.
Definition qgis.h:5967
DocumentationApi
Documentation API.
Definition qgis.h:6795
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:4434
SceneMode
The 3D scene mode used in 3D map views.
Definition qgis.h:4538
InstancedMaterialFlag
Optional per-instance properties of instanced materials.
Definition qgis.h:4429
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:4911
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:7119
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:3983
LabelOverlapHandling
Label overlap handling.
Definition qgis.h:1248
static const double UI_SCALE_FACTOR
UI scaling factor.
Definition qgis.h:7220
FeatureSymbologyExport
Options for exporting features considering their symbology.
Definition qgis.h:6277
QFlags< LayerFilter > LayerFilters
Definition qgis.h:243
ProcessingDateTimeParameterDataType
Processing date time parameter data types.
Definition qgis.h:4055
DockableWidgetInitialState
Dockable widget initial states.
Definition qgis.h:7003
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:6607
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:4485
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
Definition qgis.h:3943
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:7162
static const double DEFAULT_POINT_SIZE
The default size (in millimeters) for point marker symbols.
Definition qgis.h:7238
DeviceConnectionStatus
GPS connection status.
Definition qgis.h:2024
ProcessingNumberParameterType
Processing numeric parameter data types.
Definition qgis.h:4023
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:5758
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:7484
Object * operator->()
Returns pointer to blocked QObject.
Definition qgis.h:7498
QgsSignalBlocker(Object *object)
Constructor for QgsSignalBlocker.
Definition qgis.h:7490
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:8222
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:8136
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:8215
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:7917
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
Definition qgis.h:7531
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:7749
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
Definition qgis.h:7898
QString qgsFlagValueToKeys(const T &value, bool *returnOk=nullptr)
Returns the value for the given keys of a flag.
Definition qgis.h:7956
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:7733
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:7985
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:8241
const QMap< T, QString > qgsEnumMap()
Returns a map of all enum entries.
Definition qgis.h:7881
bool qgsFloatNear(float a, float b, float epsilon=4 *FLT_EPSILON)
Compare two floats (but allow some difference).
Definition qgis.h:7689
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:7765
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:7864
double qgsRound(double number, int places)
Returns a double number, rounded (as close as possible) to the specified number of places.
Definition qgis.h:7718
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference).
Definition qgis.h:7624
bool qgsNanCompatibleEquals(double a, double b)
Compare two doubles, treating nan values as equal.
Definition qgis.h:7576
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Definition qgis.h:7518
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:8231
Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system.
Definition qgis.h:8229
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
Compare two doubles using specified number of significant digits.
Definition qgis.h:7695
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:7596
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:7664
#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:7637
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:8152
#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