33using namespace Qt::StringLiterals;
41int QgisEvent = QEvent::User + 1;
48#define QHASH_FOR_CLASS_ENUM(T) \
49 inline uint qHash(const T &t, uint seed) { \
50 return ::qHash(static_cast<typename std::underlying_type<T>::type>(t), seed); \
61 Q_CLASSINFO(
"RegisterEnumClassesUnscoped",
"false" )
106 ClearStorage = 1 << 0,
108 ReadConfiguration = 1 << 1,
109 UpdateConfiguration = 1 << 2,
110 DeleteConfiguration = 1 << 3,
111 CreateConfiguration = 1 << 4,
113 ReadCertificateIdentity = 1 << 5,
114 UpdateCertificateIdentity = 1 << 6,
115 DeleteCertificateIdentity = 1 << 7,
116 CreateCertificateIdentity = 1 << 8,
118 ReadSslCertificateCustomConfig = 1 << 9,
119 UpdateSslCertificateCustomConfig = 1 << 10,
120 DeleteSslCertificateCustomConfig = 1 << 11,
121 CreateSslCertificateCustomConfig = 1 << 12,
123 ReadCertificateAuthority = 1 << 13,
124 UpdateCertificateAuthority = 1 << 14,
125 DeleteCertificateAuthority = 1 << 15,
126 CreateCertificateAuthority = 1 << 16,
128 ReadCertificateTrustPolicy = 1 << 17,
129 UpdateCertificateTrustPolicy = 1 << 18,
130 DeleteCertificateTrustPolicy = 1 << 19,
131 CreateCertificateTrustPolicy = 1 << 20,
133 ReadMasterPassword = 1 << 21,
134 UpdateMasterPassword = 1 << 22,
135 DeleteMasterPassword = 1 << 23,
136 CreateMasterPassword = 1 << 24,
138 ReadSetting = 1 << 25,
139 UpdateSetting = 1 << 26,
140 DeleteSetting = 1 << 27,
141 CreateSetting = 1 << 28,
144 Q_ENUM( AuthConfigurationStorageCapability )
166 Q_ENUM( MessageLevel )
175 DisableMessageLogging = 1 << 0,
177 Q_ENUM( NetworkRequestFlag )
218 HasGeometry = PointLayer | LineLayer | PolygonLayer,
219 VectorLayer = NoGeometry | HasGeometry,
223 VectorTileLayer = 256,
224 PointCloudLayer = 512,
225 AnnotationLayer = 1024,
226 TiledSceneLayer = 2048,
227 All = RasterLayer | VectorLayer | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer,
228 SpatialLayer = RasterLayer | HasGeometry | PluginLayer | MeshLayer | VectorTileLayer | PointCloudLayer | AnnotationLayer | TiledSceneLayer
240 IgnoreMissingStyleErrors = 1 << 0,
242 Q_ENUM( LoadStyleFlag )
289 GeometryCollection = 7,
295 PolyhedralSurface = 15,
304 MultiLineStringZ = 1005,
305 MultiPolygonZ = 1006,
306 GeometryCollectionZ = 1007,
307 CircularStringZ = 1008,
308 CompoundCurveZ = 1009,
309 CurvePolygonZ = 1010,
311 MultiSurfaceZ = 1012,
312 PolyhedralSurfaceZ = 1015,
320 MultiLineStringM = 2005,
321 MultiPolygonM = 2006,
322 GeometryCollectionM = 2007,
323 CircularStringM = 2008,
324 CompoundCurveM = 2009,
325 CurvePolygonM = 2010,
327 MultiSurfaceM = 2012,
328 PolyhedralSurfaceM = 2015,
335 MultiLineStringZM = 3005,
336 MultiPolygonZM = 3006,
337 GeometryCollectionZM = 3007,
338 CircularStringZM = 3008,
339 CompoundCurveZM = 3009,
340 CurvePolygonZM = 3010,
342 MultiSurfaceZM = 3012,
343 PolyhedralSurfaceZM = 3015,
347 Point25D = 0x80000001,
372 Q_ENUM( GeometryType )
394 ARGB32_Premultiplied = 13
411 Q_ENUM( CaptureTechnique )
433 Q_ENUM( VectorLayerTypeFlag )
448 NotForThisSession = 4,
451 Q_ENUM( EmbeddedScriptMode )
460 ExpressionFunction = 1,
464 Q_ENUM( EmbeddedScriptType )
476 Q_ENUM( ProjectTrustStatus )
488 SkipFeatureCount = 1 << 1,
490 SkipGetExtent = 1 << 3,
491 SkipFullScan = 1 << 4,
492 ForceReadOnly = 1 << 5,
493 SkipCredentialsRequest = 1 << 6,
494 ParallelThreadLoading = 1 << 7,
496 Q_ENUM( DataProviderReadFlag )
521 DeleteFeatures = 1 << 1,
522 ChangeAttributeValues = 1 << 2,
523 AddAttributes = 1 << 3,
524 DeleteAttributes = 1 << 4,
525 CreateSpatialIndex = 1 << 6,
527 ChangeGeometries = 1 << 8,
528 SelectEncoding = 1 << 13,
529 CreateAttributeIndex = 1 << 12,
530 SimplifyGeometries = 1 << 14,
531 SimplifyGeometriesWithTopologicalValidation = 1 << 15,
532 TransactionSupport = 1 << 16,
533 CircularGeometries = 1 << 17,
534 ChangeFeatures = 1 << 18,
535 RenameAttributes = 1 << 19,
536 FastTruncate = 1 << 20,
537 ReadLayerMetadata = 1 << 21,
538 WriteLayerMetadata = 1 << 22,
539 CancelSupport = 1 << 23,
540 CreateRenderer = 1 << 24,
541 CreateLabeling = 1 << 25,
542 ReloadData = 1 << 26,
543 FeatureSymbology = 1 << 27,
544 EditingCapabilities = AddFeatures | DeleteFeatures | ChangeAttributeValues | ChangeGeometries | AddAttributes | DeleteAttributes | RenameAttributes,
546 Q_ENUM( VectorProviderCapability )
568 Q_ENUM( FeatureCountState )
582 Q_ENUM( SpatialIndexPresence )
597 NoFeaturesAvailable = 0,
599 FeaturesMaybeAvailable
601 Q_ENUM( FeatureAvailability )
611 EditComment = 1 << 1,
614 Q_ENUM( VectorDataProviderAttributeEditCapability )
647 Q_ENUM( ScaleMethod )
666 Q_ENUM( SettingsType )
678 Q_ENUM( SettingsTreeNodeType )
686 NamedListSelectedItemSetting = 1 << 0,
689 Q_ENUM( SettingsTreeNodeOption )
707 Q_ENUM( PropertyType )
720 Q_ENUM( SldExportOption )
731 NoVendorExtension = 0,
732 GeoServerVendorExtension = 1 << 1,
733 DeegreeVendorExtension = 1 << 2,
735 Q_ENUM( SldExportVendorExtension )
744 SaveFormerValue = 1 << 1,
745 SaveEnumFlagAsInt = 1 << 2,
747 Q_ENUM( SettingsOption )
759 AdvancedConfiguration = 3,
761 Q_ENUM( SnappingMode )
777 Q_ENUM( SnappingType )
789 DynamicRotation = 1 << 1,
790 IsSymbolLayerSubSymbol = 1 << 2,
791 ForceVectorRendering = 1 << 3,
792 ExcludeSymbolBuffers = 1 << 4,
794 Q_ENUM( SymbolRenderHint )
809 Q_ENUM( SymbolRotationMode )
824 Q_ENUM( HorizontalAnchorPoint )
839 Q_ENUM( VerticalAnchorPoint )
848 AffectsLabeling = 1 << 0,
850 Q_ENUM( FeatureRendererFlag )
867 RendererShouldUseSymbolLevels = 1 << 0,
868 AffectsLabeling = 1 << 1,
882 FlagIncludeCrosshairsForMarkerSymbols = 1 << 0,
884 Q_ENUM( SymbolPreviewFlag )
900 DisableFeatureClipping = 1 << 0,
901 CanCalculateMaskGeometryPerFeature = 1 << 1,
902 AffectsLabeling = 1 << 2,
904 Q_ENUM( SymbolLayerFlag )
920 DisableSelectionRecoloring = 1 << 0,
922 Q_ENUM( SymbolLayerUserFlag )
949 Q_ENUM( BrowserItemType )
962 Q_ENUM( BrowserItemState )
978 ItemRepresentsFile = 1 << 6,
979 RefreshChildrenWhenItemIsRefreshed = 1 << 7,
982 Q_ENUM( BrowserItemCapability )
1002 Q_ENUM( DataItemProviderCapability )
1036 Q_ENUM( BrowserLayerType )
1049 Q_ENUM( BrowserDirectoryMonitoring )
1063 Q_ENUM( HttpMethod )
1085 Q_ENUM( VectorExportResult )
1093 FieldAliases = 1 << 0,
1094 FieldComments = 1 << 2,
1096 Q_ENUM( VectorFileWriterCapability )
1111 SubsetStringFilter = 1 << 1,
1112 GeometryColumn = 1 << 2,
1113 PrimaryKeys = 1 << 3,
1114 UnstableFeatureIds = 1 << 4
1116 Q_ENUM( SqlLayerDefinitionCapability )
1138 Q_ENUM( SqlKeywordCategory )
1166 Q_ENUM( ActionStart )
1175 FollowEngineSetting,
1178 Q_ENUM( UnplacedLabelVisibility )
1188 AllowOverlapIfRequired,
1189 AllowOverlapAtNoCost,
1191 Q_ENUM( LabelOverlapHandling )
1200 TreatWhitespaceAsCollision,
1201 IgnoreWhitespaceCollisions,
1203 Q_ENUM( LabelWhitespaceCollisionHandling )
1213 PreferPositionOrdering,
1215 Q_ENUM( LabelPrioritization )
1232 OrderedPositionsAroundPoint,
1236 Q_ENUM( LabelPlacement )
1246 PlaceCharactersAtVertices,
1247 StretchCharacterSpacingToFitLine,
1248 StretchWordSpacingToFitLine,
1250 Q_ENUM( CurvedLabelMode )
1271 BottomSlightlyRight,
1275 Q_ENUM( LabelPredefinedPointPosition )
1284 LabelLargestPartOnly,
1285 LabelEveryPartWithEntireLabel,
1286 SplitLabelTextLinesOverParts,
1288 Q_ENUM( MultiPartLabelingBehavior )
1303 Q_ENUM( LabelOffsetType )
1324 Q_ENUM( LabelQuadrantPosition )
1339 Q_ENUM( LabelLinePlacementFlag )
1359 AllowPlacementOutsideOfPolygon = 1 << 0,
1360 AllowPlacementInsideOfPolygon = 1 << 1,
1362 Q_ENUM( LabelPolygonPlacementFlag )
1386 Q_ENUM( UpsideDownLabelHandling )
1403 Q_ENUM( LabelMultiLineAlignment )
1421 Q_ENUM( FileFilterType )
1430 RemoveCredentials = 1 << 0,
1431 RedactCredentials = 1 << 1,
1433 Q_ENUM( UriCleaningFlag )
1451 ResolveGeometryType = 1 << 1,
1452 CountFeatures = 1 << 2,
1453 IncludeSystemTables = 1 << 3,
1454 OpenLayersToResolveDescriptions = 1 << 4,
1468 SystemTable = 1 << 0,
1488 Q_ENUM( ShaderInterpolationMethod )
1503 Q_ENUM( ShaderClassificationMethod )
1521 Q_ENUM( RasterPipeInterfaceRole )
1532 Q_ENUM( RasterResamplingStage )
1552 Q_ENUM( RasterResamplingMethod )
1561 InternalLayerOpacityHandling = 1 << 0,
1562 UseNoDataForOutOfRangePixels = 1 << 1,
1582 UsesMultipleBands = 1 << 0,
1584 Q_ENUM( RasterRendererCapability )
1608 Q_ENUM( RasterRangeLimit )
1623 Q_ENUM( RasterRangeExtent )
1637 Q_ENUM( RasterRangeAccuracy )
1666 Q_ENUM( RasterAttributeTableFieldUsage )
1678 Q_ENUM( RasterAttributeTableType )
1691 Q_ENUM( RasterExportType )
1702 SourceProviderError = 1,
1704 CreateDatasourceError = 3,
1709 Q_ENUM( RasterFileWriterResult )
1720 TooManyVerticesInFace,
1726 Q_ENUM( MeshEditingErrorType )
1738 Q_ENUM( FilePathType )
1748 AskExcludingRasterBands,
1752 Q_ENUM( SublayerPromptMode )
1769 Q_ENUM( FieldOrigin )
1781 NotSearchable = 1 << 1,
1782 HideFromWms = 1 << 2,
1783 HideFromWfs = 1 << 3,
1785 Q_ENUM( FieldConfigurationFlag )
1804 GeometryCrs = 0x1000,
1805 GeometryWkbType = 0x1001,
1806 CustomProperty = 0x100000,
1808 Q_ENUM( FieldMetadataProperty )
1821 Q_ENUM( SelectionRenderingMode )
1833 RemoveFromSelection,
1835 Q_ENUM( SelectBehavior )
1847 Q_ENUM( SelectGeometryRelationship )
1856 SingleFeatureSelection = 1 << 0,
1857 ToggleSelection = 1 << 1,
1880 FetchFeatureFailed = 3,
1883 Q_ENUM( VectorEditResult )
1892 SemiTransparentCircle,
1896 Q_ENUM( VertexMarkerType )
1910 Q_ENUM( ContentStatus )
1924 Q_ENUM( GpsConnectionType )
1937 Q_ENUM( DeviceConnectionStatus )
1992 Q_ENUM( GpsQualityIndicator )
2017 GroundSpeed = 1 << 2,
2019 TotalTrackLength = 1 << 4,
2020 TrackDistanceFromStart = 1 << 5,
2024 HorizontalAccuracy = 1 << 9,
2025 VerticalAccuracy = 1 << 10,
2026 HvAccuracy = 1 << 11,
2027 SatellitesUsed = 1 << 12,
2028 Timestamp = 1 << 13,
2029 TrackStartTime = 1 << 14,
2030 TrackEndTime = 1 << 15,
2031 TrackDistanceSinceLastPoint = 1 << 16,
2032 TrackTimeSinceLastPoint = 1 << 17,
2033 GeoidalSeparation = 1 << 18,
2034 EllipsoidAltitude = 1 << 19,
2072 QuoteFilePaths = 1 << 0,
2090 Q_ENUM( GpsFeatureType )
2102 NothingHappened = 1000,
2103 InvalidBaseGeometry,
2104 InvalidInputGeometryType,
2106 SelectionIsGreaterThanOne,
2107 GeometryEngineError,
2110 AddPartSelectedGeometryNotFound,
2111 AddPartNotMultiGeometry,
2115 AddRingCrossesExistingRings,
2116 AddRingNotInExistingFeature,
2118 SplitCannotSplitPoint,
2119 GeometryTypeHasChanged,
2121 Q_ENUM( GeometryOperationResult )
2146 Q_ENUM( GeometryValidationEngine )
2158 Q_ENUM( BufferSide )
2171 Q_ENUM( EndCapStyle )
2195 CylindersAndSpheres,
2197 Q_ENUM( JoinStyle3D )
2206 RejectOnInvalidSubGeometry = 1 << 0,
2207 SkipEmptyInteriorRings = 1 << 1,
2209 Q_ENUM( GeosCreationFlag )
2230 Q_ENUM( CoverageValidityResult )
2242 Q_ENUM( MakeValidMethod )
2255 SubsetOfAttributes = 2,
2257 IgnoreStaticNodesDuringExpressionCompilation = 8,
2258 EmbeddedSymbols = 16,
2260 Q_ENUM( FeatureRequestFlag )
2286 Q_ENUM( FeatureRequestFilterType )
2301 Q_ENUM( InvalidGeometryCheck )
2314 Q_ENUM( SpatialFilterType )
2323 IncludeMetadataFile = 1 << 0,
2324 IncludeStyleFile = 1 << 1,
2338 UsersCannotToggleEditing = 1 << 0,
2339 IsBasemapLayer = 1 << 1,
2340 Is3DBasemapLayer = 1 << 2,
2358 Q_ENUM( AutoRefreshMode )
2367 IsBasemapSource = 1 << 1,
2368 FastExtent2D = 1 << 2,
2369 FastExtent3D = 1 << 3,
2370 Is3DBasemapSource = 1 << 4,
2452 Q_ENUM( CrsAxisDirection )
2465 Q_ENUM( CoordinateOrder )
2480 Q_ENUM( CrsIdentifierType )
2501 Q_ENUM( CrsWktVariant )
2523 ScaleDependentBoundingBox = 1 << 0,
2524 SupportsReferenceScale = 1 << 1,
2525 SupportsCallouts = 1 << 2,
2543 Q_ENUM( AnnotationPlacementMode )
2552 FlagNoCreationTools = 1 << 0,
2569 Q_ENUM( AnnotationItemNodeType )
2582 Q_ENUM( AnnotationItemEditOperationResult )
2598 Q_ENUM( TemporalNavigationMode )
2613 Q_ENUM( AnimationState )
2630 Q_ENUM( PlaybackOperation )
2646 Q_ENUM( VectorTemporalMode )
2655 IncludeBeginExcludeEnd = 0,
2656 IncludeBeginIncludeEnd,
2658 Q_ENUM( VectorTemporalLimitMode )
2671 Q_ENUM( VectorDataProviderTemporalMode )
2683 FixedRangePerBand = 3,
2684 RepresentsTemporalValues = 4,
2687 Q_ENUM( RasterTemporalMode )
2696 MatchUsingWholeRange,
2697 MatchExactUsingStartOfRange,
2698 MatchExactUsingEndOfRange,
2699 FindClosestMatchToStartOfRange,
2700 FindClosestMatchToEndOfRange
2702 Q_ENUM( TemporalIntervalMatchMethod )
2711 RequestedTimesMustExactlyMatchAllAvailableTemporalRanges = 1 << 0,
2713 Q_ENUM( RasterTemporalCapabilityFlag )
2733 Q_ENUM( TransformDirection )
2742 BallparkTransformsAreAppropriate = 1 << 0,
2743 IgnoreImpossibleTransformations = 1 << 1,
2745 Q_ENUM( CoordinateTransformationFlag )
2766 Q_ENUM( RasterizedRenderingPolicy )
2775 Antialiasing = 0x01,
2776 DrawEditingInfo = 0x02,
2777 ForceVectorOutput = 0x04,
2778 UseAdvancedEffects = 0x08,
2779 DrawLabeling = 0x10,
2780 UseRenderingOptimization = 0x20,
2781 DrawSelection = 0x40,
2782 DrawSymbolBounds = 0x80,
2783 RenderMapTile = 0x100,
2784 RenderPartialOutput = 0x200,
2785 RenderPreviewJob = 0x400,
2786 RenderBlocking = 0x800,
2787 LosslessImageRendering = 0x1000,
2788 Render3DMap = 0x2000,
2789 HighQualityImageTransforms = 0x4000,
2790 SkipSymbolRendering = 0x8000,
2791 ForceRasterMasks = 0x10000,
2792 RecordProfile = 0x20000,
2793 AlwaysUseGlobalMasks = 0x40000,
2807 DrawEditingInfo = 0x01,
2808 ForceVectorOutput = 0x02,
2809 UseAdvancedEffects = 0x04,
2810 UseRenderingOptimization = 0x08,
2811 DrawSelection = 0x10,
2812 DrawSymbolBounds = 0x20,
2813 RenderMapTile = 0x40,
2814 Antialiasing = 0x80,
2815 RenderPartialOutput = 0x100,
2816 RenderPreviewJob = 0x200,
2817 RenderBlocking = 0x400,
2818 RenderSymbolPreview = 0x800,
2819 LosslessImageRendering = 0x1000,
2820 ApplyScalingWorkaroundForTextRendering = 0x2000,
2821 Render3DMap = 0x4000,
2822 ApplyClipAfterReprojection = 0x8000,
2823 RenderingSubSymbol = 0x10000,
2824 HighQualityImageTransforms = 0x20000,
2825 SkipSymbolRendering = 0x40000,
2826 RecordProfile = 0x80000,
2827 AlwaysUseGlobalMasks = 0x100000,
2828 DisableSymbolClippingToExtent = 0x200000,
2829 RenderLayerTree = 0x400000
2843 RenderPartialOutputs = 1 << 0,
2844 RenderPartialOutputOverPreviousCachedImage = 1 << 1,
2845 AffectsLabeling = 1 << 2,
2847 Q_ENUM( MapLayerRendererFlag )
2864 RequiresRasterization = 1 << 0,
2866 Q_ENUM( PaintEffectFlag )
2889 Q_ENUM( TextRenderFormat )
2900 UseAllLabels = 1 << 1,
2901 UsePartialCandidates = 1 << 2,
2903 RenderOutlineLabels = 1 << 3,
2904 DrawLabelRectOnly = 1 << 4,
2905 DrawCandidates = 1 << 5,
2906 DrawUnplacedLabels = 1 << 6,
2907 CollectUnplacedLabels = 1 << 7,
2908 DrawLabelMetrics = 1 << 8,
2910 Q_ENUM( LabelingFlag )
2934 Q_ENUM( LabelPlacementEngineVersion )
2949 Q_ENUM( TextOrientation )
2963 RectangleCapHeightBased,
2964 RectangleAscentBased,
2966 Q_ENUM( TextLayoutMode )
2979 Background = 1 << 2,
2982 Q_ENUM( TextComponent )
3006 Q_ENUM( TextHorizontalAlignment )
3024 Q_ENUM( TextVerticalAlignment )
3040 Q_ENUM( TextCharacterVerticalAlignment )
3049 TruncateStringWhenLineIsTooShort = 1 << 0,
3050 UseBaselinePlacement = 1 << 1,
3051 UprightCharactersOnly = 1 << 2,
3052 ExtendLineToFitText = 1 << 3,
3054 Q_ENUM( CurvedTextFlag )
3075 SnappedToGridGlobal = 3,
3077 Q_ENUM( VectorSimplificationAlgorithm )
3088 NoSimplification = 0,
3089 GeometrySimplification = 1,
3090 AntialiasingSimplification = 2,
3091 FullSimplification = 3,
3093 Q_ENUM( VectorRenderingSimplificationFlag )
3117 Q_ENUM( RenderSubcomponentProperty )
3129 Q_ENUM( VertexType )
3145 EquilateralTriangle,
3178 Q_ENUM( MarkerShape )
3191 LastVertex = 1 << 2,
3192 FirstVertex = 1 << 3,
3193 CentralPoint = 1 << 4,
3194 CurvePoint = 1 << 5,
3195 SegmentCenter = 1 << 6,
3196 InnerVertices = 1 << 7,
3198 Q_ENUM( MarkerLinePlacement )
3209 IntervalCartesian2D = 1 << 0,
3214 Q_ENUM( LinearReferencingPlacement )
3223 CartesianDistance2D,
3227 Q_ENUM( LinearReferencingLabelSource )
3241 Q_ENUM( GradientColorSource )
3256 Q_ENUM( GradientType )
3270 Q_ENUM( SymbolCoordinateReference )
3286 Q_ENUM( GradientSpread )
3300 Q_ENUM( PointCountMethod )
3314 Q_ENUM( MarkerClipMode )
3327 Q_ENUM( LineClipMode )
3342 Q_ENUM( DashPatternLineEndingRule )
3351 ScaleBothDashAndGap,
3355 Q_ENUM( DashPatternSizeAdjustment )
3369 Q_ENUM( GraduatedMethod )
3384 Q_ENUM( PlotAxisSuffixPlacement )
3397 Q_ENUM( PlotAxisType )
3410 Q_ENUM( PieChartLabelType )
3436 Q_ENUM( TilePixelRatio )
3452 ForceFirstLetterToCapital = 4,
3455 UpperCamelCase = 1005,
3456 AllSmallCaps = 1006,
3458 Q_ENUM( Capitalization )
3469 Q_ENUM( TextRendererFlag )
3496 Q_ENUM( AngularDirection )
3509 Q_ENUM( RendererUsage )
3518 ShowMainAnnotationLayer = 1 << 0,
3520 Q_ENUM( MapCanvasFlag )
3537 Sync3DTo2D = 1 << 0,
3538 Sync2DTo3D = 1 << 1,
3540 Q_ENUM( ViewSyncModeFlag )
3551 WhenOutsideVisibleExtent,
3554 Q_ENUM( MapRecenteringMode )
3563 LocalProfile = 1 << 0,
3566 Q_ENUM( HistoryProviderBackend )
3580 Q_ENUM( QueryStorageBackend )
3606 Q_ENUM( ProcessingSourceType )
3656 SecurityRisk = 1 << 15,
3678 RegeneratesPrimaryKey = 1 << 0,
3679 RegeneratesPrimaryKeyInSomeScenarios = 1 << 1,
3680 RespectsEllipsoid = 1 << 2,
3682 Q_ENUM( ProcessingAlgorithmDocumentationFlag )
3705 Q_ENUM( ProcessingPropertyAvailability )
3720 Q_ENUM( ProcessingLogLevel )
3735 Q_ENUM( ProcessingMode )
3749 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
3772 Q_ENUM( ProcessingFeatureSourceFlag )
3798 Q_ENUM( ProcessingParameterTypeFlag )
3827 Q_ENUM( ProcessingParameterFlag )
3851 Q_ENUM( ProcessingFileParameterBehavior )
3865 Q_ENUM( ProcessingNumberParameterType )
3883 Q_ENUM( ProcessingFieldParameterDataType )
3898 Q_ENUM( ProcessingDateTimeParameterDataType )
3914 Q_ENUM( ProcessingModelChildParameterSource )
3927 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
3942 Q_ENUM( ProcessingTinInputLayerType )
3954 Q_ENUM( CrsDefinitionFormat )
3971 Q_ENUM( FieldDomainSplitPolicy )
3992 Q_ENUM( FieldDomainMergePolicy )
4007 Q_ENUM( FieldDuplicatePolicy )
4020 Q_ENUM( FieldDomainType )
4030 AutomaticGroups = 1,
4033 Q_ENUM( TransactionMode )
4046 Q_ENUM( AltitudeClamping )
4058 Q_ENUM( AltitudeBinding )
4068 IncludeLowerExcludeUpper,
4069 ExcludeLowerIncludeUpper,
4072 Q_ENUM( RangeLimits )
4081 FixedElevationRange = 0,
4082 RepresentsElevationSurface = 1,
4083 FixedRangePerBand = 2,
4084 DynamicRangePerBand = 3,
4086 Q_ENUM( RasterElevationMode )
4095 FixedElevationRange = 0,
4097 FixedRangePerGroup = 2,
4099 Q_ENUM( MeshElevationMode )
4112 Q_ENUM( BetweenLineConstraint )
4125 Q_ENUM( LineExtensionSide )
4142 Q_ENUM( CadConstraintType )
4152 EvaluateDefaultValuesOnProviderSide = 1 << 0,
4153 TrustStoredLayerStatistics = 1 << 1,
4154 RememberLayerEditStatusBetweenSessions = 1 << 2,
4155 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
4157 Q_ENUM( ProjectFlag )
4168 ShowContextMenu = 1 << 0,
4170 Q_ENUM( PlotToolFlag )
4194 Q_ENUM( Point3DShape )
4206 Q_ENUM( LightSourceType )
4219 Q_ENUM( NavigationMode )
4244 Q_ENUM( VerticalAxisInversion )
4278 RespectsMaximumErrorMapUnit = 1 << 0,
4279 RespectsDistanceRange = 1 << 1,
4280 RespectsElevationRange = 1 << 2,
4282 Q_ENUM( ProfileGeneratorFlag )
4295 DistanceVsElevationTable,
4309 Q_ENUM( PointCloudSymbol )
4322 Q_ENUM( PointCloudDrawOrder )
4334 AvoidIntersectionsCurrentLayer,
4335 AvoidIntersectionsLayers,
4337 Q_ENUM( AvoidIntersectionsMode )
4351 Q_ENUM( ProjectFileFormat )
4367 DontLoadProjectStyles = 1 << 5,
4368 ForceReadOnlyLayers = 1 << 6,
4369 DontUpgradeAnnotations = 1 << 7,
4371 Q_ENUM( ProjectReadFlag )
4393 ProjectStyles = 1 << 0,
4395 Q_ENUM( ProjectCapability )
4420 Q_ENUM( MapBoxGlStyleSourceType )
4440 Q_ENUM( ArcGisRestServiceType )
4454 Q_ENUM( RelationshipType )
4468 Q_ENUM( RelationshipStrength )
4482 Q_ENUM( RelationshipCardinality )
4491 MultipleFieldKeys = 1 << 0,
4492 ForwardPathLabel = 1 << 1,
4493 BackwardPathLabel = 1 << 2,
4495 Q_ENUM( RelationshipCapability )
4516 Q_ENUM( CoordinateDisplayType )
4529 Q_ENUM( SettingsOrigin )
4550 Q_ENUM( ScriptLanguage )
4562 CheckSyntax = 1 << 1,
4563 ToggleComment = 1 << 2,
4565 Q_ENUM( ScriptLanguageCapability )
4582 AboveInsertionPoint,
4584 OptimalInInsertionGroup,
4586 Q_ENUM( LayerTreeInsertionMethod )
4595 SkipVisibilityCheck = 1 << 0,
4597 Q_ENUM( LayerTreeFilterFlag )
4614 ExcludeByDefault = 1 << 0,
4616 Q_ENUM( MapLayerLegendFlag )
4644 Q_ENUM( LegendComponent )
4657 Q_ENUM( LegendSyncMode )
4668 ShowRuleDetails = 1 << 0,
4670 Q_ENUM( LegendJsonRenderFlag )
4687 Q_ENUM( ActionType )
4699 SingleFeature = 1 << 1,
4700 MultipleFeatures = 1 << 2,
4701 AllActions = Layer | SingleFeature | MultipleFeatures
4703 Q_ENUM( MapLayerActionTarget )
4724 EnabledOnlyWhenEditable = 1 << 1,
4725 EnableOnlyWhenHasGeometry = 1 << 2,
4727 Q_ENUM( MapLayerActionFlag )
4757 Q_ENUM( AttributeActionType )
4771 Q_ENUM( MetadataDateType )
4802 ContinuousPalette = 17,
4825 Q_ENUM( RasterColorInterpretation )
4841 Q_ENUM( RasterLayerType )
4854 SingleBandPseudoColor,
4856 PalettedSingleBandGray,
4857 PalettedSingleBandPseudoColor,
4858 PalettedMultiBandColor,
4859 MultiBandSingleBandGray,
4860 MultiBandSingleBandPseudoColor,
4864 Q_ENUM( RasterDrawingStyle )
4879 Q_ENUM( RasterPyramidFormat )
4894 Q_ENUM( RasterBuildPyramidOption )
4911 Q_ENUM( RasterIdentifyFormat )
4930 BuildPyramids = 1 << 4,
4932 IdentifyValue = 1 << 6,
4933 IdentifyText = 1 << 7,
4934 IdentifyHtml = 1 << 8,
4935 IdentifyFeature = 1 << 9,
4938 Q_ENUM( RasterInterfaceCapability )
4959 NoProviderCapabilities = 0,
4960 ReadLayerMetadata = 1 << 1,
4961 WriteLayerMetadata = 1 << 2,
4962 ProviderHintBenefitsFromResampling = 1 << 3,
4963 ProviderHintCanPerformProviderResampling = 1 << 4,
4964 ReloadData = 1 << 5,
4965 DpiDependentData = 1 << 6,
4966 NativeRasterAttributeTable = 1 << 7,
4967 BuildPyramids = 1 << 8,
4969 Q_ENUM( RasterProviderCapability )
4991 Q_ENUM( ElevationMapCombineMethod )
5044 Q_ENUM( SystemOfMeasurement )
5058 Q_ENUM( MapToolUnit )
5096 ChainsInternational,
5097 ChainsBritishBenoit1895A,
5098 ChainsBritishBenoit1895B,
5099 ChainsBritishSears1922Truncated,
5100 ChainsBritishSears1922,
5105 FeetBritishBenoit1895A,
5106 FeetBritishBenoit1895B,
5107 FeetBritishSears1922Truncated,
5108 FeetBritishSears1922,
5117 LinksBritishBenoit1895A,
5118 LinksBritishBenoit1895B,
5119 LinksBritishSears1922Truncated,
5120 LinksBritishSears1922,
5123 YardsBritishBenoit1895A,
5124 YardsBritishBenoit1895B,
5125 YardsBritishSears1922Truncated,
5126 YardsBritishSears1922,
5137 Q_ENUM( DistanceUnit )
5152 Q_ENUM( DistanceUnitType )
5200 Q_ENUM( VolumeUnit )
5245 Q_ENUM( TemporalUnit )
5265 Q_ENUM( RenderUnit )
5285 Q_ENUM( LayoutUnit )
5299 Q_ENUM( LayoutUnitType )
5322 LimitCoverageLayerRenderToCurrentFeature = 1 << 13,
5324 Q_ENUM( LayoutRenderFlag )
5349 Q_ENUM( PictureFormat )
5364 Q_ENUM( ScaleCalculationMethod )
5379 Q_ENUM( ScaleBarAlignment )
5393 Q_ENUM( ScaleBarSegmentSizeMode )
5407 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
5421 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
5436 DynamicPageSizeBased,
5438 Q_ENUM( MapGridUnit )
5454 Q_ENUM( MapGridStyle )
5470 Q_ENUM( MapGridComponentVisibility )
5484 Q_ENUM( MapGridAnnotationPosition )
5503 Q_ENUM( MapGridAnnotationDirection )
5518 DegreeMinuteNoSuffix,
5520 DegreeMinuteSecondNoSuffix,
5521 DegreeMinuteSecondPadded,
5524 Q_ENUM( MapGridAnnotationFormat )
5540 Q_ENUM( MapGridBorderSide )
5555 InteriorExteriorTicks,
5560 Q_ENUM( MapGridFrameStyle )
5571 OrthogonalTicks = 0,
5574 Q_ENUM( MapGridTickLengthMode )
5591 Q_ENUM( MapGridFrameSideFlag )
5615 Q_ENUM( MapGridAnnotationType )
5648 Q_ENUM( PostgresRelKind )
5657 SetFieldComment = 1 << 0,
5658 SetFieldAlias = 1 << 1,
5659 SetTableComment = 1 << 2,
5660 EditFieldDomain = 1 << 3,
5661 DeleteFieldDomain = 1 << 4,
5663 Q_ENUM( DatabaseProviderConnectionCapability2 )
5674 SetGeometryColumnName = 1 << 0,
5675 SetPrimaryKeyName = 1 << 1,
5677 Q_ENUM( DatabaseProviderTableImportCapability )
5688 SaveToDatabase = 1 << 1,
5689 LoadFromDatabase = 1 << 2,
5690 DeleteFromDatabase = 1 << 3
5707 Q_ENUM( UserProfileSelectionPolicy )
5728 Q_ENUM( AttributeEditorType )
5741 Q_ENUM( AttributeEditorContainerType )
5756 Q_ENUM( AttributeFormLayout )
5771 Q_ENUM( AttributeFormSuppression )
5787 Q_ENUM( AttributeFormPythonInitCodeSource )
5797 AllowedDefaultOn = 1,
5798 AllowedDefaultOff = 2,
5800 Q_ENUM( AttributeFormReuseLastValuePolicy )
5813 Q_ENUM( ExpressionType )
5828 Q_ENUM( FeatureSymbologyExport )
5837 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
5839 Q_ENUM( VectorTileProviderFlag )
5855 ReadLayerMetadata = 1 << 1,
5857 Q_ENUM( VectorTileProviderCapability )
5876 AvailableNoChildren,
5877 UseLowerZoomLevelTile,
5879 Q_ENUM( TileAvailability )
5888 ReadLayerMetadata = 1 << 1,
5890 Q_ENUM( TiledSceneProviderCapability )
5911 Q_ENUM( TiledSceneBoundingVolumeType )
5926 Q_ENUM( TileRefinementProcess )
5939 Q_ENUM( TileChildrenAvailability )
5948 NoHierarchyFetch = 1 << 0,
5950 Q_ENUM( TiledSceneRequestFlag )
5967 RequiresTextures = 1 << 0,
5968 ForceRasterRender = 1 << 1,
5969 RendersTriangles = 1 << 2,
5970 RendersLines = 1 << 3,
5972 Q_ENUM( TiledSceneRendererFlag )
5989 RA_NearestNeighbour = 0,
6002 Q_ENUM( GdalResampleAlgorithm )
6018 Q_ENUM( VsiHandlerType )
6042 MinimumPoint = 1 << 12,
6043 MaximumPoint = 1 << 13,
6044 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6045 AllNumeric = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6046 Default = Count | Sum | Mean,
6048 Q_ENUM( ZonalStatistic )
6070 FailedToCreateField = 8,
6073 Q_ENUM( ZonalStatisticResult )
6099 StringMinimumLength,
6100 StringMaximumLength,
6104 StringConcatenateUnique
6116 CountMissing = 1 << 15,
6121 StDevSample = 1 << 5,
6128 FirstQuartile = 1 << 12,
6129 ThirdQuartile = 1 << 13,
6130 InterQuartileRange = 1 << 14,
6133 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
6158 All = Count | CountDistinct | CountMissing | Min | Max | Range,
6160 Q_ENUM( DateTimeStatistic )
6187 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
6189 Q_ENUM( StringStatistic )
6213 SumOfSquares = 1 << 6,
6214 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
6216 Q_ENUM( RasterBandStatistic )
6244 Q_ENUM( SensorThingsEntity )
6256 Q_ENUM( ColorModel )
6270 Q_ENUM( DocumentationApi )
6279 DeveloperToolsPanel,
6282 Q_ENUM( DocumentationBrowser )
6307 Q_ENUM( MouseHandlesAction )
6318 Q_ENUM( MeshRangeLimit )
6331 Q_ENUM( MeshRangeExtent )
6344 Q_ENUM( PointCloudAccessType )
6354 RenderOverviewAndExtents
6356 Q_ENUM( PointCloudZoomOutRenderBehavior )
6369 Q_ENUM( SegmentCalculationMethod )
6382 Q_ENUM( StacObjectType )
6393 Q_ENUM( RasterProcessingParameterCapability )
6408 Status = Qt::UserRole + 1,
6414 Q_ENUM( DevToolsNodeRole )
6428 Q_ENUM( ExtrusionFace )
6443 ConstrainedDelaunay = 0,
6446 Q_ENUM( TriangulationAlgorithm )
6627 return u
"EPSG:4326"_s;
6636 return QStringLiteral(
6637 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]] )"""
6647 return u
"+proj=longlat +datum=WGS84 +no_defs"_s;
6752#define cast_to_fptr(f) f
6773 , mPreviousState( object->blockSignals( true ) )
6778 mObject->blockSignals( mPreviousState );
6786 Object *mObject =
nullptr;
6787 bool mPreviousState;
6810CORE_EXPORT uint
qHash(
const QVariant &variant );
6822 if ( precision < 0 )
6824 const double roundFactor = std::pow( 10, -precision );
6825 str = QString::number(
static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
6829 str = QString::number( a,
'f', precision );
6830 if ( str.contains(
'.'_L1 ) )
6833 int idx = str.length() - 1;
6834 while ( str.at( idx ) ==
'0' && idx > 1 )
6838 if ( idx < str.length() - 1 )
6839 str.truncate( str.at( idx ) ==
'.' ? idx : idx + 1 );
6845 str = QString::number( a,
'f', precision );
6849 if ( str ==
"-0"_L1 )
6864 const bool aIsNan = std::isnan( a );
6865 const bool bIsNan = std::isnan( b );
6866 if ( aIsNan || bIsNan )
6867 return aIsNan && bIsNan;
6882inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
6884 const bool aIsNan = std::isnan( a );
6885 const bool bIsNan = std::isnan( b );
6886 if ( aIsNan || bIsNan )
6887 return aIsNan && bIsNan;
6889 const T diff = a - b;
6890 return diff >= -epsilon && diff <= epsilon;
6900inline bool qgsDoubleNear(
double a,
double b,
double epsilon = 4 * std::numeric_limits<double>::epsilon() )
6911inline bool qgsFloatNear(
float a,
float b,
float epsilon = 4 * FLT_EPSILON )
6919 const bool aIsNan = std::isnan( a );
6920 const bool bIsNan = std::isnan( b );
6921 if ( aIsNan || bIsNan )
6922 return aIsNan && bIsNan;
6930 const double ar = std::frexp( a, &aexp );
6931 const double br = std::frexp( b, &bexp );
6933 return aexp == bexp &&
6934 std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
6943 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
6944 const double scaleFactor = std::pow( 10.0, places );
6945 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
6956template<
class Key,
class Value>
6960 for (
auto it = map.constBegin(); it != map.constEnd(); it++ )
6961 result += QString(
"%1%2" ).arg( it.key() ).arg( separator );
6963 result.chop( separator.size() );
6973template<
class Key,
class Value>
6977 for (
auto it = map.constBegin(); it != map.constEnd(); it++ )
6978 result += QString(
"%1%2" ).arg( it.value() ).arg( separator );
6980 result.chop( separator.size() );
6991QString
qgsSetJoin(
const QSet<T> &set,
const QString &separator )
6994 for (
auto it = set.constBegin(); it != set.constEnd(); it++ )
6995 result += QString(
"%1%2" ).arg( *it ).arg( separator );
6997 result.chop( separator.size() );
7027 template<
typename To,
typename From>
inline To down_cast( From *f )
7030 ( std::is_base_of<From,
7031 typename std::remove_pointer<To>::type>::value ),
7032 "target type not derived from source type" );
7033 Q_ASSERT( f ==
nullptr ||
dynamic_cast<To
>( f ) !=
nullptr );
7034 return static_cast<To
>( f );
7038 QSet<T> listToSet(
const QList<T> &list )
7040 return QSet<T>( list.begin(), list.end() );
7044 QList<T> setToList(
const QSet<T> &set )
7046 return QList<T>( set.begin(), set.end() );
7059 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7060 Q_ASSERT( metaEnum.isValid() );
7062 for (
int idx = 0; idx < metaEnum.keyCount(); ++idx )
7064 enumList.append(
static_cast<T
>( metaEnum.value( idx ) ) );
7076 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7077 Q_ASSERT( metaEnum.isValid() );
7078 QMap<T, QString> enumMap;
7079 for (
int idx = 0; idx < metaEnum.keyCount(); ++idx )
7081 enumMap.insert(
static_cast<T
>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
7093 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7094 Q_ASSERT( metaEnum.isValid() );
7095 const char *key = metaEnum.valueToKey(
static_cast<int>( value ) );
7098 *returnOk = key ? true :
false;
7100 return QString::fromUtf8( key );
7110template<
class T> T
qgsEnumKeyToValue(
const QString &key,
const T &defaultValue,
bool tryValueAsKey =
true,
bool *returnOk =
nullptr )
SIP_SKIP
7112 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7113 Q_ASSERT( metaEnum.isValid() );
7115 T v =
static_cast<T
>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
7127 if ( tryValueAsKey )
7129 bool canConvert =
false;
7130 const int intValue = key.toInt( &canConvert );
7131 if ( canConvert && metaEnum.valueToKey( intValue ) )
7137 return static_cast<T
>( intValue );
7141 return defaultValue;
7151 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7152 Q_ASSERT( metaEnum.isValid() );
7153 int intValue =
static_cast<int>( value );
7154 const QByteArray ba = metaEnum.valueToKeys( intValue );
7157 const int intValueCheck = metaEnum.keysToValue( ba );
7158 bool ok = intValue == intValueCheck;
7161 return ok ? QString::fromUtf8( ba ) : QString();
7171template<
class T> T
qgsFlagKeysToValue(
const QString &keys,
const T &defaultValue,
bool tryValueAsKey =
true,
bool *returnOk =
nullptr )
SIP_SKIP
7173 if ( keys.isEmpty() )
7179 return defaultValue;
7181 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
7182 Q_ASSERT( metaEnum.isValid() );
7184 T v =
static_cast<T
>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
7196 if ( tryValueAsKey )
7198 bool canConvert =
false;
7199 const int intValue = keys.toInt( &canConvert );
7202 const QByteArray keyArray = metaEnum.valueToKeys( intValue );
7203 const int intValueCheck = metaEnum.keysToValue( keyArray );
7204 if ( !keyArray.isEmpty() && intValue == intValueCheck )
7210 return T( intValue );
7215 return defaultValue;
7269CORE_EXPORT
int qgsVariantCompare(
const QVariant &lhs,
const QVariant &rhs,
bool strictTypeCheck =
false );
7291CORE_EXPORT
bool qgsVariantEqual(
const QVariant &lhs,
const QVariant &rhs );
7314inline bool operator> (
const QVariant &v1,
const QVariant &v2 )
7330inline bool operator< (
const QVariant &v1,
const QVariant &v2 )
7359class ScopedIntIncrementor
7363 ScopedIntIncrementor(
int *variable )
7364 : mVariable( variable )
7369 ScopedIntIncrementor(
const ScopedIntIncrementor &other ) =
delete;
7370 ScopedIntIncrementor &operator=(
const ScopedIntIncrementor &other ) =
delete;
7377 mVariable =
nullptr;
7380 ~ScopedIntIncrementor()
7386 int *mVariable =
nullptr;
7426#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
7428#define Q_NOWARN_DEPRECATED_PUSH \
7429 _Pragma("GCC diagnostic push") \
7430 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"");
7431#define Q_NOWARN_DEPRECATED_POP \
7432 _Pragma("GCC diagnostic pop");
7433#define Q_NOWARN_UNREACHABLE_PUSH
7434#define Q_NOWARN_UNREACHABLE_POP
7436#elif defined(_MSC_VER)
7438#define Q_NOWARN_DEPRECATED_PUSH \
7439 __pragma(warning(push)) \
7440 __pragma(warning(disable:4996))
7441#define Q_NOWARN_DEPRECATED_POP \
7442 __pragma(warning(pop))
7443#define Q_NOWARN_UNREACHABLE_PUSH \
7444 __pragma(warning(push)) \
7445 __pragma(warning(disable:4702))
7446#define Q_NOWARN_UNREACHABLE_POP \
7447 __pragma(warning(pop))
7450#define Q_NOWARN_DEPRECATED_PUSH
7451#define Q_NOWARN_DEPRECATED_POP
7452#define Q_NOWARN_UNREACHABLE_PUSH
7453#define Q_NOWARN_UNREACHABLE_POP
7460# define QGISEXTERN extern "C" __declspec( dllexport )
7462# if defined(__GNUC__) || defined(__clang__)
7463# define QGISEXTERN extern "C" __attribute__ ((visibility ("default")))
7465# define QGISEXTERN extern "C"
7473#define BUILTIN_UNREACHABLE \
7475#elif defined(__GNUC__) && !defined(__clang__)
7486#define BUILTIN_UNREACHABLE \
7487 __builtin_unreachable();
7489#define BUILTIN_UNREACHABLE
Provides global constants and enumerations for use throughout the application.
MapGridTickLengthMode
Map grid tick length mode (useful for rotated grids).
DistanceUnitType
Types of distance units.
PieChartLabelType
Pie chart label types.
GnssConstellation
GNSS constellation.
SettingsOption
Settings options.
EmbeddedScriptType
Type of Python Embedded in projects.
ProfileGeneratorFlag
Flags that control the way the QgsAbstractProfileGenerator operate.
ProcessingSourceType
Processing data source types.
static const Qgis::MapToolUnit DEFAULT_SNAP_UNITS
Default snapping distance units.
GpsQualityIndicator
GPS signal quality indicator.
QFlags< MapGridFrameSideFlag > MapGridFrameSideFlags
Flags for controlling which side of the map a frame is drawn on.
DataItemProviderCapability
Capabilities for data item providers.
ProcessingFileParameterBehavior
Flags which dictate the behavior of QgsProcessingParameterFile.
RasterizedRenderingPolicy
Policies controlling when rasterisation of content during renders is permitted.
QFlags< MapLayerRendererFlag > MapLayerRendererFlags
Flags which control how map layer renderers behave.
ProjectReadFlag
Flags which control project read behavior.
QFlags< DatabaseProviderTableImportCapability > DatabaseProviderTableImportCapabilities
QFlags< BabelCommandFlag > BabelCommandFlags
Babel command flags.
CurvedLabelMode
Modes which determine how curved labels are generated and placed.
MapToolUnit
Type of unit of tolerance value from settings.
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
static const double DEFAULT_LINE_WIDTH
The default width (in millimeters) for line symbols.
ProcessingModelChildAlgorithmExecutionStatus
Reflects the status of a child algorithm in a Processing model.
QFlags< GpsInformationComponent > GpsInformationComponents
GPS information component.
ScaleBarDistanceLabelHorizontalPlacement
Scale bar distance label horizontal placement.
PointCloudSymbol
Rendering symbols for point cloud points.
SymbolRotationMode
Modes for handling how symbol and text entity rotation is handled when maps are rotated.
static const double DEFAULT_HIGHLIGHT_MIN_WIDTH_MM
Default highlight line/stroke minimum width in mm.
static QString version()
Version string.
GeometryValidityFlag
Geometry validity check flags.
QFlags< RasterProviderCapability > RasterProviderCapabilities
Raster data provider capabilities.
ExpressionType
Expression types.
MapLayerActionFlag
Map layer action flags.
ScaleBarDistanceLabelVerticalPlacement
Scale bar distance label vertical placement.
MapLayerProperty
Generic map layer properties.
VectorProviderCapability
Vector data provider capabilities.
RasterProcessingParameterCapability
Capabilities of a raster layer processing parameter.
BufferSide
Side of line to buffer.
RasterResamplingStage
Stage at which raster resampling occurs.
QFlags< MapLayerActionTarget > MapLayerActionTargets
Map layer action targets.
VectorTileProviderCapability
Enumeration with capabilities that vector tile data providers might implement.
ProjectTrustStatus
Project trust status.
MultiPartLabelingBehavior
Behavior modifier for labeling features with multi-part geometries.
AltitudeClamping
Altitude clamping.
static const int PREVIEW_JOB_DELAY_MS
Delay between the scheduling of 2 preview jobs.
VectorTileProviderFlag
Flags for vector tile data providers.
VectorTemporalMode
Vector layer temporal feature modes.
SublayerFlag
Flags which reflect the properties of sublayers in a dataset.
QFlags< ProjectCapability > ProjectCapabilities
Flags which control project capabilities.
LabelLinePlacementFlag
Line placement flags, which control how candidates are generated for a linear feature.
QFlags< UriCleaningFlag > UriCleaningFlags
Flags for cleaning layer URIs.
CoordinateDisplayType
Formats for displaying coordinates.
ProcessingParameterTypeFlag
Flags which dictate the behavior of Processing parameter types.
QFlags< VectorRenderingSimplificationFlag > VectorRenderingSimplificationFlags
Simplification flags for vector feature rendering.
DashPatternSizeAdjustment
Dash pattern size adjustment options.
static const double DEFAULT_Z_COORDINATE
Default Z coordinate value.
GpsFixStatus
GPS fix status.
AnnotationItemNodeType
Annotation item node types.
static const char * QGIS_DEV_VERSION
The development version.
VectorFileWriterCapability
Capabilities supported by a QgsVectorFileWriter object.
QFlags< MapSettingsFlag > MapSettingsFlags
Map settings flags.
CrsIdentifierType
Available identifier string types for representing coordinate reference systems.
QFlags< RasterRendererFlag > RasterRendererFlags
Flags which control behavior of raster renderers.
AngularDirection
Angular directions.
ContentStatus
Status for fetched or stored content.
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
SnappingType
SnappingTypeFlag defines on what object the snapping is performed.
LayoutUnit
Layout measurement units.
RelationshipStrength
Relationship strength.
Q_ENUM(GnssConstellation)
PaintEffectFlag
Flags which control how paint effects behave.
MarkerLinePlacement
Defines how/where the symbols should be placed on a line.
QFlags< ProjectReadFlag > ProjectReadFlags
Project load flags.
LegendComponent
Component of legends which can be styled.
Point3DShape
3D point shape types.
GeometryOperationResult
Success or failure of a geometry operation.
QFlags< StringStatistic > StringStatistics
Statistics to be calculated for string values.
BrowserItemState
Browser item states.
AttributeEditorContainerType
Attribute editor container types.
QFlags< TiledSceneProviderCapability > TiledSceneProviderCapabilities
Tiled scene data provider capabilities.
FeatureRequestFilterType
Types of feature request filters.
MarkerClipMode
Marker clipping modes.
GpsNavigationStatus
GPS navigation status.
AnnotationItemFlag
Flags for annotation items.
AttributeFormReuseLastValuePolicy
Attribute form policy for reusing last entered values.
RenderSubcomponentProperty
Rendering subcomponent properties.
ProcessingTinInputLayerType
Defines the type of input layer for a Processing TIN input.
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
Statistic
Available generic statistics.
TriangulationAlgorithm
Triangulation algorithms.
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
AngleUnit
Units of angles.
MapGridAnnotationPosition
Position for map grid annotations.
CaptureTechnique
Capture technique.
static QString geosVersion()
GEOS string version linked.
SpatialIndexPresence
Enumeration of spatial index presence states.
BrowserItemCapability
Browser item capabilities.
AttributeFormSuppression
Available form types for layout of the attribute form editor.
QFlags< AuthConfigurationStorageCapability > AuthConfigurationStorageCapabilities
Authentication configuration storage capabilities.
QFlags< LayerTreeFilterFlag > LayerTreeFilterFlags
Layer tree filter flags.
LayerTreeInsertionMethod
Layer tree insertion methods.
RasterProviderCapability
Raster data provider capabilities.
DatabaseProviderTableImportCapability
Represents capabilities of a database provider connection when importing table data.
LineClipMode
Line clipping modes.
static const double DEFAULT_SNAP_TOLERANCE
Default snapping distance tolerance.
VectorRenderingSimplificationFlag
Simplification flags for vector feature rendering.
QFlags< GeometryValidityFlag > GeometryValidityFlags
Geometry validity flags.
BrowserDirectoryMonitoring
Browser directory item monitoring switches.
VsiHandlerType
GDAL VSI handler types.
NetworkRequestFlag
Flags controlling behavior of network requests.
static int geographicLibVersion()
Returns the version of the GeographicLib library if QGIS is built with GeographicLib support.
SettingsTreeNodeType
Type of tree node.
TilePixelRatio
DpiMode enum.
DatabaseProviderConnectionCapability2
The Capability enum represents the extended operations supported by the connection.
QFlags< PaintEffectFlag > PaintEffectFlags
Flags which control how paint effects behave.
LabelOffsetType
Behavior modifier for label offset and distance, only applies in some label placement modes.
QFlags< ProfileGeneratorFlag > ProfileGeneratorFlags
QFlags< MapLayerLegendFlag > MapLayerLegendFlags
Map layer legend flags.
MapGridUnit
Units for map grid values.
LabelPrioritization
Label prioritization.
GradientColorSource
Gradient color sources.
FileFilterType
Type of file filters.
LabelPlacement
Placement modes which determine how label candidates are generated for a feature.
RasterLayerType
Raster layer types.
static const double DEFAULT_M_COORDINATE
Default M coordinate value.
QFlags< VectorLayerTypeFlag > VectorLayerTypeFlags
Vector layer type flags.
ScaleBarAlignment
Scalebar alignment.
RasterPyramidFormat
Raster pyramid formats.
ProcessingMode
Types of modes which Processing widgets can be created for.
VectorExportResult
Vector layer export result codes.
DistanceUnit
Units of distance.
RasterTemporalCapabilityFlag
Flags for raster layer temporal capabilities.
SymbolLayerFlag
Flags controlling behavior of symbol layers.
MeshRangeLimit
Describes the limits used to compute mesh ranges (min/max values).
GradientSpread
Gradient spread options, which control how gradients are rendered outside of their start and end poin...
LegendSyncMode
Legend synchronization mode.
QFlags< AnnotationItemGuiFlag > AnnotationItemGuiFlags
Annotation item GUI flags.
LabelPolygonPlacementFlag
Polygon placement flags, which control how candidates are generated for a polygon feature.
RasterRangeLimit
Describes the limits used to compute raster ranges (min/max values).
ScaleMethod
Scale methods.
QFlags< RasterProcessingParameterCapability > RasterProcessingParameterCapabilities
Raster layer processing parameter capabilities.
SldExportOption
SLD export options.
VectorSimplificationAlgorithm
Simplification algorithms for vector features.
FilePathType
File path types.
CadConstraintType
Advanced digitizing constraint type.
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
PointCountMethod
Methods which define the number of points randomly filling a polygon.
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
static const double DEFAULT_HIGHLIGHT_BUFFER_MM
Default highlight buffer in mm.
MapCanvasFlag
Flags controlling behavior of map canvases.
LayerTreeFilterFlag
Layer tree filter flags.
ExtrusionFace
Extrusion face types for the QgsTessellator.
AttributeFormLayout
Available form types for layout of the attribute form editor.
FeatureRequestFlag
Flags for controlling feature requests.
VertexType
Types of vertex.
ShaderInterpolationMethod
Color ramp shader interpolation methods.
JoinStyle3D
Join styles for 3D buffers.
DataProviderFlag
Generic data provider flags.
Q_ENUM(GpsNavigationStatus)
GdalResampleAlgorithm
Resampling algorithm to be used (equivalent to GDAL's enum GDALResampleAlg).
RasterResamplingMethod
Resampling method for raster provider-level resampling.
GeometryValidationEngine
Available engines for validating geometries.
static int geosVersionPatch()
GEOS Patch version number linked.
TransactionMode
Transaction mode.
Q_ENUM(ScaleToTileZoomLevelMethod)
QFlags< FeatureRendererFlag > FeatureRendererFlags
Flags controlling behavior of vector feature renderers.
static const QColor DEFAULT_HIGHLIGHT_COLOR
Default highlight color.
ElevationMapCombineMethod
Methods used to select the elevation when two elevation maps are combined.
static Q_DECL_DEPRECATED const double SCALE_PRECISION
Fudge factor used to compare two scales.
RasterDrawingStyle
Raster drawing styles.
GeosCreationFlag
Flags which control geos geometry creation behavior.
static const int MAXIMUM_LAYER_PREVIEW_TIME_MS
Maximum rendering time for a layer of a preview job.
MeshRangeExtent
Describes the extent used to compute mesh ranges (min/max values).
GpsInformationComponent
GPS information component.
ViewSyncModeFlag
Synchronization of 2D map canvas and 3D view.
ProcessingProviderFlag
Flags indicating how and when an processing provider operates and should be exposed to users.
FileOperationFlag
File operation flags.
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
ProjectCapability
Flags which control project capabilities.
QFlags< BabelFormatCapability > BabelFormatCapabilities
Babel GPS format capabilities.
QFlags< SymbolLayerFlag > SymbolLayerFlags
Symbol layer flags.
QFlags< RasterInterfaceCapability > RasterInterfaceCapabilities
Raster interface capabilities.
Q_ENUM(VectorProfileType)
AttributeActionType
Attribute action types.
TemporalNavigationMode
Temporal navigation modes.
ProcessingFieldParameterDataType
Processing field parameter data types.
StringStatistic
Available string statistics.
FieldDomainMergePolicy
Merge policy for field domains.
ZonalStatistic
Statistics to be calculated during a zonal statistics operation.
MessageLevel
Level for messages This will be used both for message log and message bar in application.
@ Warning
Warning message.
@ Critical
Critical/error message.
@ Info
Information message.
@ Success
Used for reporting a successful operation.
MapGridBorderSide
Border sides for map grid annotations.
SqlKeywordCategory
SqlKeywordCategory enum represents the categories of the SQL keywords used by the SQL query editor.
QFlags< SnappingType > SnappingTypes
Snapping types.
static Q_DECL_DEPRECATED QString geoWkt()
WKT string that represents a geographic coord system.
static Q_DECL_DEPRECATED bool hasQtWebkit()
Returns false.
MapGridFrameSideFlag
Flags for controlling which side of the map a frame is drawn on.
GraduatedMethod
Methods for modifying symbols by range in a graduated symbol renderer.
QFlags< LabelLinePlacementFlag > LabelLinePlacementFlags
Line placement flags, which control how candidates are generated for a linear feature.
TiledSceneBoundingVolumeType
Tiled scene bounding volume types.
TextLayoutMode
Text layout modes.
PropertyType
Property types.
QFlags< RenderContextFlag > RenderContextFlags
Render context flags.
LayerFilter
Filter for layers.
Q_ENUM(ProviderStyleStorageCapability)
QFlags< SublayerFlag > SublayerFlags
Sublayer flags.
RasterRendererFlag
Flags which control behavior of raster renderers.
QFlags< ExtrusionFace > ExtrusionFaces
Tessellator extrusion face types.
static QString devVersion()
The development version.
CrsType
Coordinate reference system types.
QFlags< GeosCreationFlag > GeosCreationFlags
Geos geometry creation behavior flags.
MapGridComponentVisibility
Visibility display settings for map grid annotations and frames.
SensorThingsEntity
OGC SensorThings API entity types.
MeshEditingErrorType
Type of error that can occur during mesh frame editing.
FieldDomainSplitPolicy
Split policy for field domains.
ArcGisRestServiceType
Available ArcGIS REST service types.
UriCleaningFlag
Flags for cleaning layer URIs.
RasterFileWriterResult
Raster file export results.
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
ProcessingPropertyAvailability
Property availability, used for QgsProcessingAlgorithm::VectorProperties in order to determine if pro...
MapRecenteringMode
Modes for recentering map canvases.
RasterRangeAccuracy
Describes the accuracy used to compute raster ranges (min/max values).
ActionStart
Enum to determine when an operation would begin.
PlaybackOperation
Media playback operations.
QFlags< SymbolLayerUserFlag > SymbolLayerUserFlags
Symbol layer user flags.
QFlags< TextRendererFlag > TextRendererFlags
QueryStorageBackend
Stored query storage backends.
ProviderStyleStorageCapability
The StorageCapability enum represents the style storage operations supported by the provider.
AvoidIntersectionsMode
Flags which control how intersections of pre-existing feature are handled when digitizing new feature...
MarkerShape
Marker shapes.
StacObjectType
Available types of stac objects.
LegendJsonRenderFlag
Legend JSON export flags.
BlendMode
Blending modes defining the available composition modes that can be used when painting.
RasterElevationMode
Raster layer elevation modes.
Capitalization
String capitalization options.
TemporalIntervalMatchMethod
Method to use when resolving a temporal range to a data provider layer or band.
PictureFormat
Picture formats.
QFlags< LabelPolygonPlacementFlag > LabelPolygonPlacementFlags
Polygon placement flags, which control how candidates are generated for a polygon feature.
static QString releaseName()
Release name.
LabelQuadrantPosition
Label quadrant positions.
QFlags< PlotToolFlag > PlotToolFlags
ScaleToTileZoomLevelMethod
Available methods for converting map scales to tile zoom levels.
SublayerQueryFlag
Flags which control how data providers will scan for sublayers in a dataset.
QFlags< VectorFileWriterCapability > VectorFileWriterCapabilities
Capabilities supported by a QgsVectorFileWriter object.
TextOrientation
Text orientations.
TemporalUnit
Temporal units.
QFlags< RasterRendererCapability > RasterRendererCapabilities
Raster renderer capabilities.
QFlags< SymbolPreviewFlag > SymbolPreviewFlags
Symbol preview flags.
UnplacedLabelVisibility
Unplaced label visibility.
CrsDefinitionFormat
CRS definition formats.
SpatialFilterType
Feature request spatial filter types.
VerticalAnchorPoint
Marker symbol vertical anchor points.
QFlags< LayoutRenderFlag > LayoutRenderFlags
Flags for controlling how a layout is rendered.
static QString defaultProjectScales()
A string with default project scales.
QFlags< ProcessingParameterTypeFlag > ProcessingParameterTypeFlags
Flags which dictate the behavior of Processing parameter types.
TileAvailability
Possible availability states for a tile within a tile matrix.
ProjectFlag
Flags which control the behavior of QgsProjects.
MapGridStyle
Map grid drawing styles.
FeatureRendererFlag
Flags controlling behavior of vector feature renderers.
static Q_DECL_DEPRECATED QString geoProj4()
PROJ4 string that represents a geographic coord system.
BrowserItemType
Browser item types.
QFlags< FeatureRequestFlag > FeatureRequestFlags
Flags for controlling feature requests.
static bool hasGeographicLib()
Returns true if the QGIS build contains GeographicLib.
SettingsType
Types of settings entries.
QFlags< SettingsOption > SettingsOptions
RasterTemporalMode
Raster layer temporal modes.
RasterAttributeTableType
The RasterAttributeTableType enum represents the type of RAT.
LabelingFlag
Various flags that affect drawing and placement of labels.
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
RelationshipType
Relationship types.
ScriptLanguageCapability
Script language capabilities.
RasterInterfaceCapability
Raster interface capabilities.
JoinStyle
Join styles for buffers.
PointCloudDrawOrder
Pointcloud rendering order for 2d views.
QFlags< RasterBandStatistic > RasterBandStatistics
Statistics to be calculated for raster bands.
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
TextCharacterVerticalAlignment
Text vertical alignment for characters.
FieldDuplicatePolicy
Duplicate policy for fields.
UserProfileSelectionPolicy
User profile selection policy.
static const float DEFAULT_MAPTOPIXEL_THRESHOLD
Default threshold between map coordinates and device coordinates for map2pixel simplification.
QFlags< FileOperationFlag > FileOperationFlags
File operation flags.
Q_ENUM(ProfileExportType)
BrowserLayerType
Browser item layer types.
QFlags< ProcessingAlgorithmFlag > ProcessingAlgorithmFlags
Flags indicating how and when an algorithm operates and should be exposed to users.
AltitudeBinding
Altitude binding.
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
Q_ENUM(ProcessingProviderFlag)
TiledSceneRendererFlag
Flags which control how tiled scene 2D renderers behave.
MapLayerActionTarget
Map layer action targets.
ShaderClassificationMethod
Color ramp shader classification methods.
MapLayerLegendFlag
Map layer legend flags.
ZonalStatisticResult
Zonal statistics result codes.
ScriptLanguage
Scripting languages.
QFlags< BrowserItemCapability > BrowserItemCapabilities
Browser item capabilities.
QFlags< NetworkRequestFlag > NetworkRequestFlags
Flags controlling behavior of network requests.
FeatureAvailability
Possible return value for QgsFeatureSource::hasFeatures() to determine if a source is empty.
PlotAxisType
Plots axis types.
TiledSceneProviderCapability
Tiled scene data provider capabilities.
LabelMultiLineAlignment
Text alignment for multi-line labels.
RasterBandStatistic
Available raster band statistics.
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
AuthConfigurationStorageCapability
Authentication configuration storage capabilities.
QFlags< ZonalStatistic > ZonalStatistics
Statistics to be calculated during a zonal statistics operation.
VectorDataProviderTemporalMode
Vector data provider temporal handling modes.
TextRenderFormat
Options for rendering text.
DocumentationBrowser
Documentation API browser.
DataType
Raster data types.
Q_ENUM(ProfileSurfaceSymbology)
QFlags< ViewSyncModeFlag > ViewSyncModeFlags
QFlags< SublayerQueryFlag > SublayerQueryFlags
Sublayer query flags.
SystemOfMeasurement
Systems of unit measurement.
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
VerticalAxisInversion
Vertical axis inversion options for 3D views.
QFlags< CoordinateTransformationFlag > CoordinateTransformationFlags
Coordinate transformation flags.
RelationshipCapability
Relationship capabilities.
RasterBuildPyramidOption
Raster pyramid building options.
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
NavigationMode
The navigation mode used by 3D cameras.
static int geosVersionMajor()
GEOS Major version number linked.
LinearReferencingPlacement
Defines how/where the labels should be placed in a linear referencing symbol layer.
TileChildrenAvailability
Possible availability states for a tile's children.
PointCloudZoomOutRenderBehavior
Point cloud zoom out options.
LayerType
Types of layers that can be added to a map.
QFlags< AnnotationItemFlag > AnnotationItemFlags
Annotation item flags.
LinearReferencingLabelSource
Defines what quantity to use for the labels shown in a linear referencing symbol layer.
LabelWhitespaceCollisionHandling
Label whitespace collision handling.
RasterRangeExtent
Describes the extent used to compute raster ranges (min/max values).
QFlags< Statistic > Statistics
Statistics to be calculated for generic values.
PlotToolFlag
Flags that control the way the QgsPlotTools operate.
RenderUnit
Rendering size units.
static QString geographicCrsAuthId()
Geographic coordinate system auth:id string for a default geographic CRS (EPSG:4326).
CoordinateOrder
Order of coordinates.
SelectionFlag
Flags which control feature selection behavior.
QFlags< SettingsTreeNodeOption > SettingsTreeNodeOptions
EndCapStyle
End cap styles for buffers.
ScaleCalculationMethod
Scale calculation logic.
QFlags< TiledSceneRequestFlag > TiledSceneRequestFlags
Flags which control how tiled scene requests behave.
static bool hasSfcgal()
Returns true if the QGIS build contains SFCGAL.
QFlags< MapLayerActionFlag > MapLayerActionFlags
Map layer action flags.
QFlags< MapLayerProperty > MapLayerProperties
Map layer properties.
QFlags< LoadStyleFlag > LoadStyleFlags
Flags for loading layer styles.
BabelCommandFlag
Babel command flags, which control how commands and arguments are generated for executing GPSBabel pr...
QFlags< LabelingFlag > LabelingFlags
Flags that affect drawing and placement of labels.
FieldDomainType
Types of field domain.
MapLayerRendererFlag
Flags which control how map layer renderers behave.
RenderContextFlag
Flags which affect rendering operations.
RasterPipeInterfaceRole
Raster pipe interface roles.
CoverageValidityResult
Coverage validity results.
DataProviderReadFlag
Flags which control data provider construction.
ScaleBarSegmentSizeMode
Modes for setting size for scale bar segments.
Aggregate
Available aggregates to calculate.
static int sfcgalVersionInt()
Returns the version of the SFCGAL library if QGIS is built with SFCGAL.
SymbolPreviewFlag
Flags for controlling how symbol preview images are generated.
static const double DEFAULT_SEARCH_RADIUS_MM
Identify search radius in mm.
AnnotationItemGuiFlag
Flags for controlling how an annotation item behaves in the GUI.
MapBoxGlStyleSourceType
Available MapBox GL style source types.
LayoutUnitType
Types of layout units.
VectorDataProviderAttributeEditCapability
Attribute editing capabilities which may be supported by vector data providers.
DashPatternLineEndingRule
Dash pattern line ending rules.
FieldMetadataProperty
Standard field metadata values.
MapGridAnnotationType
Annotation coordinate type.
TiledSceneRequestFlag
Flags which control how tiled scene requests behave.
RasterRendererCapability
Raster renderer capabilities.
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
HistoryProviderBackend
History provider backends.
static const double DEFAULT_SEGMENT_EPSILON
Default snapping tolerance for segments.
RasterExportType
Raster file export types.
SublayerPromptMode
Specifies how to handle layer sources with multiple sublayers.
TextVerticalAlignment
Text vertical alignment.
RelationshipCardinality
Relationship cardinality.
GradientType
Gradient types.
QFlags< ScriptLanguageCapability > ScriptLanguageCapabilities
Script language capabilities.
VectorProfileType
Types of elevation profiles to generate for vector sources.
GpsFeatureType
GPS feature types.
VectorLayerTypeFlag
Vector layer type flags.
MakeValidMethod
Algorithms to use when repairing invalid geometries.
RangeLimits
Describes how the limits of a range are handled.
QFlags< ProjectFlag > ProjectFlags
VectorTemporalLimitMode
Mode for the handling of the limits of the filtering timeframe for vector features.
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
SqlLayerDefinitionCapability
SqlLayerDefinitionCapability enum lists the arguments supported by the provider when creating SQL que...
static int versionInt()
Version number used for comparing versions using the "Check QGIS Version" function.
VectorEditResult
Specifies the result of a vector layer edit operation.
QFlags< VectorDataProviderAttributeEditCapability > VectorDataProviderAttributeEditCapabilities
Attribute editing capabilities which may be supported by vector data providers.
NurbsMode
NURBS digitizing mode.
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
QFlags< RelationshipCapability > RelationshipCapabilities
Relationship capabilities.
QFlags< SymbolRenderHint > SymbolRenderHints
Symbol render hints.
VolumeUnit
Units of volume.
CurvedTextFlag
Flags controlling behavior of curved text generation.
AttributeEditorType
Attribute editor types.
QFlags< LegendJsonRenderFlag > LegendJsonRenderFlags
QFlags< ProviderStyleStorageCapability > ProviderStyleStorageCapabilities
EmbeddedScriptMode
Authorisation to run script embedded in projects.
SymbolLayerUserFlag
User-specified flags controlling behavior of symbol layers.
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
QFlags< SymbolFlag > SymbolFlags
Symbol flags.
QFlags< ProcessingFeatureSourceDefinitionFlag > ProcessingFeatureSourceDefinitionFlags
Flags which control behavior for a Processing feature source.
MapGridFrameStyle
Style for map grid frames.
PointCloudAccessType
The access type of the data, local is for local files and remote for remote files (over HTTP).
ProfileExportType
Types of export for elevation profiles.
MeshElevationMode
Mesh layer elevation modes.
ProjectFileFormat
Flags which control project read behavior.
SnappingMode
SnappingMode defines on which layer the snapping is performed.
RasterColorInterpretation
Raster color interpretation.
static const int USER_CRS_START_ID
Minimum ID number for a user-defined projection.
ProfileSurfaceSymbology
Surface symbology type for elevation profile plots.
LabelPlacementEngineVersion
Labeling placement engine version.
Q_ENUM(ProcessingAlgorithmFlag)
static int geosVersionMinor()
GEOS Minor version number linked.
ColorModel
Color model types.
RendererUsage
Usage of the renderer.
SettingsTreeNodeOption
Options for named list nodes.
BabelFormatCapability
Babel GPS format capabilities.
PostgresRelKind
Postgres database relkind options.
SegmentCalculationMethod
brief Method used to calculate the number of segments for circle approximation
GpsConnectionType
GPS connection types.
Q_ENUM(InputControllerType)
QFlags< DatabaseProviderConnectionCapability2 > DatabaseProviderConnectionCapabilities2
MouseHandlesAction
Action to be performed by the mouse handles.
ProcessingFeatureSourceDefinitionFlag
Flags which control behavior for a Processing feature source.
QFlags< TextComponent > TextComponents
Text components.
static QString geoNone()
Constant that holds the string representation for "No ellipse/No CRS".
DevToolsNodeRole
Dev tools node custom data roles.
LoadStyleFlag
Flags for loading layer styles.
BetweenLineConstraint
Between line constraints which can be enabled.
QFlags< VectorTileProviderFlag > VectorTileProviderFlags
Vector tile data provider flags.
MetadataDateType
Date types for metadata.
QFlags< RasterTemporalCapabilityFlag > RasterTemporalCapabilityFlags
Flags for raster layer temporal capabilities.
ProcessingFeatureSourceFlag
Flags which control how QgsProcessingFeatureSource fetches features.
RasterIdentifyFormat
Raster identify formats.
MapGridAnnotationDirection
Direction of grid annotations.
TextHorizontalAlignment
Text horizontal alignment.
SymbolFlag
Flags controlling behavior of symbols.
LineExtensionSide
Designates whether the line extension constraint is currently soft locked with the previous or next v...
HttpMethod
Different methods of HTTP requests.
WkbType
The WKB type describes the number of dimensions a geometry has.
QFlags< SldExportOption > SldExportOptions
SymbolCoordinateReference
Symbol coordinate reference modes.
QFlags< ProcessingProviderFlag > ProcessingProviderFlags
Flags indicating how and when an processing provider operates and should be exposed to users.
TileRefinementProcess
Tiled scene tile refinement processes.
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
SelectionRenderingMode
Specifies how a selection should be rendered.
InputControllerType
Input controller types.
TextRendererFlag
Flags which control the behavior of rendering text.
SelectGeometryRelationship
Geometry relationship test to apply for selecting features.
CrsAxisDirection
Coordinate reference system axis directions.
ProcessingModelChildParameterSource
Processing model child parameter sources.
static int geosVersionInt()
GEOS version number linked.
QFlags< MarkerLinePlacement > MarkerLinePlacements
QFlags< MapCanvasFlag > MapCanvasFlags
Flags controlling behavior of map canvases.
CrsWktVariant
Coordinate reference system WKT formatting variants.
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
MapGridAnnotationFormat
Format for displaying map grid annotations.
DocumentationApi
Documentation API.
AutoRefreshMode
Map layer automatic refresh modes.
AnnotationPlacementMode
Annotation item placement modes.
ProcessingAlgorithmFlag
Flags indicating how and when an algorithm operates and should be exposed to users.
SceneMode
The 3D scene mode used in 3D map views.
FieldConfigurationFlag
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
SettingsOrigin
The setting origin describes where a setting is stored.
HorizontalAnchorPoint
Marker symbol horizontal anchor points.
QFlags< CurvedTextFlag > CurvedTextFlags
Flags controlling behavior of curved text generation.
ProcessingParameterFlag
Flags which dictate the behavior of Processing parameters.
LabelOverlapHandling
Label overlap handling.
static const double UI_SCALE_FACTOR
UI scaling factor.
FeatureSymbologyExport
Options for exporting features considering their symbology.
QFlags< LayerFilter > LayerFilters
ProcessingDateTimeParameterDataType
Processing date time parameter data types.
CoordinateTransformationFlag
Flags which adjust the coordinate transformations behave.
TextComponent
Text components.
DateTimeStatistic
Available date/time statistics.
AnimationState
Animation states.
TransformDirection
Indicates the direction (forward or inverse) of a transform.
LightSourceType
Light source types for 3D scenes.
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
QFlags< HistoryProviderBackend > HistoryProviderBackends
LabelPredefinedPointPosition
Positions for labels when using the Qgis::LabelPlacement::OrderedPositionsAroundPoint placement mode.
QFlags< FieldConfigurationFlag > FieldConfigurationFlags
Configuration flags for fields These flags are meant to be user-configurable and are not describing a...
UpsideDownLabelHandling
Handling techniques for upside down labels.
static const double DEFAULT_POINT_SIZE
The default size (in millimeters) for point marker symbols.
DeviceConnectionStatus
GPS connection status.
ProcessingNumberParameterType
Processing numeric parameter data types.
MapSettingsFlag
Flags which adjust the way maps are rendered.
QFlags< SqlLayerDefinitionCapability > SqlLayerDefinitionCapabilities
SQL layer definition capabilities.
ProcessingLogLevel
Logging level for algorithms to use when pushing feedback messages.
SelectBehavior
Specifies how a selection should be applied.
LayoutRenderFlag
Flags for controlling how a layout is rendered.
Utility class that encapsulates an action based on vector attributes.
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).
Abstract base class for curved geometry type.
Base class for all items in the model.
Abstract base class for spatial data provider implementations.
Calculator for summary statistics and aggregates for a list of datetimes.
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.
A geometry is the spatial representation of a feature.
A fill symbol layer which draws a smooth color gradient over a polygon.
A vector feature renderer which uses numeric attributes to classify features into different ranges.
Stores global configuration for labeling engine.
Contains constants and enums relating to labeling.
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.
Contains configuration for rendering maps.
Abstract base class for marker symbol layers.
Registry for temporary fetched files.
Contains miscellaneous painting utility functions.
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.
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,...
A store for object properties.
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.
Represents a relationship between two vector layers.
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.
Object * operator->()
Returns pointer to blocked QObject.
QgsSignalBlocker(Object *object)
Constructor for QgsSignalBlocker.
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.
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.
FeatureCountState
Enumeration of feature count states.
@ Points
Point based rendering, requires point data.
@ Lines
Line based rendering, requires line data.
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.
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...
CORE_EXPORT uint qHash(const QVariant &variant)
Hash for QVariant.
bool operator>(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is greater than the second.
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...
Q_DECL_DEPRECATED const long GEOSRID
Numeric ID for the EPSG:4326 geographic coordinate system.
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.
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
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.
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
QString qgsFlagValueToKeys(const T &value, bool *returnOk=nullptr)
Returns the value for the given keys of a flag.
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.
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.
CORE_EXPORT bool qgsVariantGreaterThan(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether the first is greater than the second.
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...
const QMap< T, QString > qgsEnumMap()
Returns a map of all enum entries.
bool qgsFloatNear(float a, float b, float epsilon=4 *FLT_EPSILON)
Compare two floats (but allow some difference).
CORE_EXPORT int qgsVariantCompare(const QVariant &lhs, const QVariant &rhs, bool strictTypeCheck=false)
Compares two QVariant values.
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.
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...
const QList< T > qgsEnumList()
Returns a list all enum entries.
double qgsRound(double number, int places)
Returns a double number, rounded (as close as possible) to the specified number of places.
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference).
bool qgsNanCompatibleEquals(double a, double b)
Compare two doubles, treating nan values as equal.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
void CORE_EXPORT * qgsMalloc(size_t size)
Allocates size bytes and returns a pointer to the allocated memory.
QMap< QString, QString > QgsStringMap
Q_DECL_DEPRECATED const long GEO_EPSG_CRS_ID
Numeric ID for the EPSG:4326 geographic coordinate system.
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
Compare two doubles using specified number of significant digits.
void CORE_EXPORT qgsFree(void *ptr)
Frees the memory space pointed to by ptr.
bool qgsNumberNear(T a, T b, T epsilon=std::numeric_limits< T >::epsilon() *4)
Compare two numbers of type T (but allow some difference).
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...
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...
CORE_EXPORT bool qgsVariantLessThan(const QVariant &lhs, const QVariant &rhs)
Compares two QVariant values and returns whether the first is less than the second.
#define QHASH_FOR_CLASS_ENUM(T)
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.
#define SIP_ENUM_BASETYPE(type)
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_FLAGS_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_SCOPEENUM
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
Utility class for identifying a unique vertex within a geometry.