33using namespace Qt::StringLiterals;
42int QgisEvent = QEvent::User + 1;
50#define QHASH_FOR_CLASS_ENUM( T ) \
51 inline size_t qHash( const T &t, size_t seed ) \
53 return ::qHash( static_cast<typename std::underlying_type<T>::type>( t ), seed ); \
64 Q_CLASSINFO(
"RegisterEnumClassesUnscoped",
"false" )
108 ClearStorage = 1 << 0,
110 ReadConfiguration = 1 << 1,
111 UpdateConfiguration = 1 << 2,
112 DeleteConfiguration = 1 << 3,
113 CreateConfiguration = 1 << 4,
115 ReadCertificateIdentity = 1 << 5,
116 UpdateCertificateIdentity = 1 << 6,
117 DeleteCertificateIdentity = 1 << 7,
118 CreateCertificateIdentity = 1 << 8,
120 ReadSslCertificateCustomConfig = 1 << 9,
121 UpdateSslCertificateCustomConfig = 1 << 10,
122 DeleteSslCertificateCustomConfig = 1 << 11,
123 CreateSslCertificateCustomConfig = 1 << 12,
125 ReadCertificateAuthority = 1 << 13,
126 UpdateCertificateAuthority = 1 << 14,
127 DeleteCertificateAuthority = 1 << 15,
128 CreateCertificateAuthority = 1 << 16,
130 ReadCertificateTrustPolicy = 1 << 17,
131 UpdateCertificateTrustPolicy = 1 << 18,
132 DeleteCertificateTrustPolicy = 1 << 19,
133 CreateCertificateTrustPolicy = 1 << 20,
135 ReadMasterPassword = 1 << 21,
136 UpdateMasterPassword = 1 << 22,
137 DeleteMasterPassword = 1 << 23,
138 CreateMasterPassword = 1 << 24,
140 ReadSetting = 1 << 25,
141 UpdateSetting = 1 << 26,
142 DeleteSetting = 1 << 27,
143 CreateSetting = 1 << 28,
146 Q_ENUM( AuthConfigurationStorageCapability )
167 Q_ENUM( MessageLevel )
179 Q_ENUM( StringFormat )
188 DisableMessageLogging = 1 << 0,
190 Q_ENUM( NetworkRequestFlag )
231 HasGeometry = PointLayer | LineLayer | PolygonLayer,
232 VectorLayer = NoGeometry | HasGeometry,
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
254 AddComments = 1 << 0,
256 Q_ENUM( LayerItemCapability )
273 IgnoreMissingStyleErrors
276 Q_ENUM( LoadStyleFlag )
323 GeometryCollection = 7,
329 PolyhedralSurface = 15,
338 MultiLineStringZ = 1005,
339 MultiPolygonZ = 1006,
340 GeometryCollectionZ = 1007,
341 CircularStringZ = 1008,
342 CompoundCurveZ = 1009,
343 CurvePolygonZ = 1010,
345 MultiSurfaceZ = 1012,
346 PolyhedralSurfaceZ = 1015,
354 MultiLineStringM = 2005,
355 MultiPolygonM = 2006,
356 GeometryCollectionM = 2007,
357 CircularStringM = 2008,
358 CompoundCurveM = 2009,
359 CurvePolygonM = 2010,
361 MultiSurfaceM = 2012,
362 PolyhedralSurfaceM = 2015,
369 MultiLineStringZM = 3005,
370 MultiPolygonZM = 3006,
371 GeometryCollectionZM = 3007,
372 CircularStringZM = 3008,
373 CompoundCurveZM = 3009,
374 CurvePolygonZM = 3010,
376 MultiSurfaceZM = 3012,
377 PolyhedralSurfaceZM = 3015,
381 Point25D = 0x80000001,
406 Q_ENUM( GeometryType )
428 ARGB32_Premultiplied = 13
446 Q_ENUM( CaptureTechnique )
458 Q_ENUM( VectorLayerTypeFlag )
473 NotForThisSession = 4,
476 Q_ENUM( EmbeddedScriptMode )
485 ExpressionFunction = 1,
489 Q_ENUM( EmbeddedScriptType )
501 Q_ENUM( ProjectTrustStatus )
514 SkipFeatureCount = 1 << 1,
516 SkipGetExtent = 1 << 3,
517 SkipFullScan = 1 << 4,
518 ForceReadOnly = 1 << 5,
519 SkipCredentialsRequest
521 ParallelThreadLoading = 1 << 7,
523 Q_ENUM( DataProviderReadFlag )
548 DeleteFeatures = 1 << 1,
549 ChangeAttributeValues = 1 << 2,
550 AddAttributes = 1 << 3,
551 DeleteAttributes = 1 << 4,
552 CreateSpatialIndex = 1 << 6,
554 ChangeGeometries = 1 << 8,
555 SelectEncoding = 1 << 13,
556 CreateAttributeIndex = 1 << 12,
557 SimplifyGeometries = 1 << 14,
558 SimplifyGeometriesWithTopologicalValidation = 1 << 15,
559 TransactionSupport = 1 << 16,
560 CircularGeometries = 1 << 17,
561 ChangeFeatures = 1 << 18,
562 RenameAttributes = 1 << 19,
563 FastTruncate = 1 << 20,
564 ReadLayerMetadata = 1 << 21,
565 WriteLayerMetadata = 1 << 22,
566 CancelSupport = 1 << 23,
567 CreateRenderer = 1 << 24,
568 CreateLabeling = 1 << 25,
569 ReloadData = 1 << 26,
570 FeatureSymbology = 1 << 27,
572 ReadFieldDomains = 1 << 29,
573 EditingCapabilities = AddFeatures | DeleteFeatures | ChangeAttributeValues | ChangeGeometries | AddAttributes | DeleteAttributes | RenameAttributes,
575 Q_ENUM( VectorProviderCapability )
595 CreateOrOverwriteFile,
596 CreateOrOverwriteLayer,
598 Q_ENUM( CreateLayerActionOnExisting )
610 Q_ENUM( FeatureCountState )
624 Q_ENUM( SpatialIndexPresence )
639 NoFeaturesAvailable = 0,
641 FeaturesMaybeAvailable
643 Q_ENUM( FeatureAvailability )
653 EditComment = 1 << 1,
656 Q_ENUM( VectorDataProviderAttributeEditCapability )
689 Q_ENUM( ScaleMethod )
708 Q_ENUM( SettingsType )
720 Q_ENUM( SettingsTreeNodeType )
728 NamedListSelectedItemSetting = 1 << 0,
731 Q_ENUM( SettingsTreeNodeOption )
749 Q_ENUM( PropertyType )
762 Q_ENUM( SldExportOption )
773 NoVendorExtension = 0,
774 GeoServerVendorExtension = 1 << 1,
775 DeegreeVendorExtension = 1 << 2,
777 Q_ENUM( SldExportVendorExtension )
786 SaveFormerValue = 1 << 1,
787 SaveEnumFlagAsInt = 1 << 2,
789 Q_ENUM( SettingsOption )
801 AdvancedConfiguration = 3,
803 Q_ENUM( SnappingMode )
819 Q_ENUM( SnappingType )
831 DynamicRotation = 1 << 1,
832 IsSymbolLayerSubSymbol = 1 << 2,
833 ForceVectorRendering = 1 << 3,
834 ExcludeSymbolBuffers = 1 << 4,
836 Q_ENUM( SymbolRenderHint )
849 WriteSymbol = 1 << 1,
852 Q_ENUM( SymbolConverterCapability )
872 Q_ENUM( SymbolRotationMode )
887 Q_ENUM( HorizontalAnchorPoint )
902 Q_ENUM( VerticalAnchorPoint )
911 AffectsLabeling = 1 << 0,
913 Q_ENUM( FeatureRendererFlag )
930 RendererShouldUseSymbolLevels = 1 << 0,
931 AffectsLabeling = 1 << 1,
945 FlagIncludeCrosshairsForMarkerSymbols = 1 << 0,
947 Q_ENUM( SymbolPreviewFlag )
963 DisableFeatureClipping = 1 << 0,
964 CanCalculateMaskGeometryPerFeature = 1 << 1,
965 AffectsLabeling = 1 << 2,
967 Q_ENUM( SymbolLayerFlag )
983 DisableSelectionRecoloring = 1 << 0,
985 Q_ENUM( SymbolLayerUserFlag )
1012 Q_ENUM( BrowserItemType )
1025 Q_ENUM( BrowserItemState )
1041 ItemRepresentsFile = 1 << 6,
1042 RefreshChildrenWhenItemIsRefreshed = 1 << 7,
1045 Q_ENUM( BrowserItemCapability )
1057 HideWhenNotFilteringByLayerType = 1 << 0,
1059 Q_ENUM( BrowserItemFilterFlag )
1084 Q_ENUM( DataItemProviderCapability )
1118 Q_ENUM( BrowserLayerType )
1131 Q_ENUM( BrowserDirectoryMonitoring )
1146 Q_ENUM( HttpMethod )
1168 Q_ENUM( VectorExportResult )
1176 FieldAliases = 1 << 0,
1177 FieldComments = 1 << 2,
1179 Q_ENUM( VectorFileWriterCapability )
1194 SubsetStringFilter = 1 << 1,
1195 GeometryColumn = 1 << 2,
1196 PrimaryKeys = 1 << 3,
1197 UnstableFeatureIds = 1 << 4
1199 Q_ENUM( SqlLayerDefinitionCapability )
1221 Q_ENUM( SqlKeywordCategory )
1249 Q_ENUM( ActionStart )
1258 FollowEngineSetting,
1261 Q_ENUM( UnplacedLabelVisibility )
1271 AllowOverlapIfRequired,
1272 AllowOverlapAtNoCost,
1274 Q_ENUM( LabelOverlapHandling )
1283 TreatWhitespaceAsCollision,
1284 IgnoreWhitespaceCollisions,
1286 Q_ENUM( LabelWhitespaceCollisionHandling )
1296 PreferPositionOrdering,
1298 Q_ENUM( LabelPrioritization )
1315 OrderedPositionsAroundPoint,
1319 Q_ENUM( LabelPlacement )
1329 PlaceCharactersAtVertices,
1330 StretchCharacterSpacingToFitLine,
1331 StretchWordSpacingToFitLine,
1333 Q_ENUM( CurvedLabelMode )
1354 BottomSlightlyRight,
1358 Q_ENUM( LabelPredefinedPointPosition )
1367 LabelLargestPartOnly,
1368 LabelEveryPartWithEntireLabel,
1369 SplitLabelTextLinesOverParts,
1371 Q_ENUM( MultiPartLabelingBehavior )
1386 Q_ENUM( LabelOffsetType )
1407 Q_ENUM( LabelQuadrantPosition )
1422 Q_ENUM( LabelLinePlacementFlag )
1442 AllowPlacementOutsideOfPolygon = 1 << 0,
1443 AllowPlacementInsideOfPolygon = 1 << 1,
1445 Q_ENUM( LabelPolygonPlacementFlag )
1469 Q_ENUM( UpsideDownLabelHandling )
1486 Q_ENUM( LabelMultiLineAlignment )
1502 Q_ENUM( TextAnchorPoint )
1520 Q_ENUM( FileFilterType )
1529 RemoveCredentials = 1 << 0,
1530 RedactCredentials = 1 << 1,
1532 Q_ENUM( UriCleaningFlag )
1553 Q_ENUM( SourceHierarchyLevel )
1563 ResolveGeometryType = 1 << 1,
1564 CountFeatures = 1 << 2,
1565 IncludeSystemTables = 1 << 3,
1566 OpenLayersToResolveDescriptions = 1 << 4,
1580 SystemTable = 1 << 0,
1600 Q_ENUM( ShaderInterpolationMethod )
1615 Q_ENUM( ShaderClassificationMethod )
1633 Q_ENUM( RasterPipeInterfaceRole )
1644 Q_ENUM( RasterResamplingStage )
1664 Q_ENUM( RasterResamplingMethod )
1673 InternalLayerOpacityHandling = 1 << 0,
1674 UseNoDataForOutOfRangePixels
1695 UsesMultipleBands = 1 << 0,
1697 Q_ENUM( RasterRendererCapability )
1721 Q_ENUM( RasterRangeLimit )
1736 Q_ENUM( RasterRangeExtent )
1750 Q_ENUM( RasterRangeAccuracy )
1779 Q_ENUM( RasterAttributeTableFieldUsage )
1791 Q_ENUM( RasterAttributeTableType )
1804 Q_ENUM( RasterExportType )
1815 SourceProviderError = 1,
1817 CreateDatasourceError = 3,
1822 Q_ENUM( RasterFileWriterResult )
1833 TooManyVerticesInFace,
1839 Q_ENUM( MeshEditingErrorType )
1851 Q_ENUM( FilePathType )
1861 AskExcludingRasterBands,
1865 Q_ENUM( SublayerPromptMode )
1882 Q_ENUM( FieldOrigin )
1894 NotSearchable = 1 << 1,
1895 HideFromWms = 1 << 2,
1896 HideFromWfs = 1 << 3,
1898 Q_ENUM( FieldConfigurationFlag )
1917 GeometryCrs = 0x1000,
1918 GeometryWkbType = 0x1001,
1919 CustomProperty = 0x100000,
1921 Q_ENUM( FieldMetadataProperty )
1934 Q_ENUM( SelectionRenderingMode )
1946 RemoveFromSelection,
1948 Q_ENUM( SelectBehavior )
1960 Q_ENUM( SelectGeometryRelationship )
1969 SingleFeatureSelection = 1 << 0,
1970 ToggleSelection = 1 << 1,
1993 FetchFeatureFailed = 3,
1996 Q_ENUM( VectorEditResult )
2005 SemiTransparentCircle,
2009 Q_ENUM( VertexMarkerType )
2023 Q_ENUM( ContentStatus )
2037 Q_ENUM( GpsConnectionType )
2050 Q_ENUM( DeviceConnectionStatus )
2105 Q_ENUM( GpsQualityIndicator )
2130 GroundSpeed = 1 << 2,
2132 TotalTrackLength = 1 << 4,
2133 TrackDistanceFromStart = 1 << 5,
2137 HorizontalAccuracy = 1 << 9,
2138 VerticalAccuracy = 1 << 10,
2139 HvAccuracy = 1 << 11,
2140 SatellitesUsed = 1 << 12,
2141 Timestamp = 1 << 13,
2142 TrackStartTime = 1 << 14,
2143 TrackEndTime = 1 << 15,
2144 TrackDistanceSinceLastPoint = 1 << 16,
2145 TrackTimeSinceLastPoint = 1 << 17,
2146 GeoidalSeparation = 1 << 18,
2147 EllipsoidAltitude = 1 << 19,
2185 QuoteFilePaths = 1 << 0,
2203 Q_ENUM( GpsFeatureType )
2215 NothingHappened = 1000,
2216 InvalidBaseGeometry,
2217 InvalidInputGeometryType,
2219 SelectionIsGreaterThanOne,
2220 GeometryEngineError,
2223 AddPartSelectedGeometryNotFound,
2224 AddPartNotMultiGeometry,
2228 AddRingCrossesExistingRings,
2229 AddRingNotInExistingFeature,
2231 SplitCannotSplitPoint,
2232 GeometryTypeHasChanged,
2234 Q_ENUM( GeometryOperationResult )
2261 Q_ENUM( GeometryValidationEngine )
2273 Q_ENUM( BufferSide )
2286 Q_ENUM( EndCapStyle )
2310 CylindersAndSpheres,
2312 Q_ENUM( JoinStyle3D )
2324 Q_ENUM( GeometryBackend )
2333 RejectOnInvalidSubGeometry = 1 << 0,
2334 SkipEmptyInteriorRings = 1 << 1,
2336 Q_ENUM( GeosCreationFlag )
2357 Q_ENUM( CoverageValidityResult )
2370 Q_ENUM( CoverageEdgeType )
2382 Q_ENUM( MakeValidMethod )
2396 SubsetOfAttributes = 2,
2398 IgnoreStaticNodesDuringExpressionCompilation
2400 EmbeddedSymbols = 16,
2402 Q_ENUM( FeatureRequestFlag )
2428 Q_ENUM( FeatureRequestFilterType )
2443 Q_ENUM( InvalidGeometryCheck )
2456 Q_ENUM( SpatialFilterType )
2465 IncludeMetadataFile = 1 << 0,
2466 IncludeStyleFile = 1 << 1,
2480 UsersCannotToggleEditing
2482 IsBasemapLayer = 1 << 1,
2483 Is3DBasemapLayer = 1 << 2,
2501 Q_ENUM( AutoRefreshMode )
2510 IsBasemapSource = 1 << 1,
2511 FastExtent2D = 1 << 2,
2512 FastExtent3D = 1 << 3,
2513 Is3DBasemapSource = 1 << 4,
2595 Q_ENUM( CrsAxisDirection )
2608 Q_ENUM( CoordinateOrder )
2623 Q_ENUM( CrsIdentifierType )
2640 WKT2_2015_SIMPLIFIED
2648 = Wkt2_2019Simplified,
2651 Q_ENUM( CrsWktVariant )
2661 PromptUserForCrs = 1,
2665 Q_ENUM( UnknownLayerCrsBehavior )
2687 ScaleDependentBoundingBox = 1 << 0,
2688 SupportsReferenceScale = 1 << 1,
2689 SupportsCallouts = 1 << 2,
2707 Q_ENUM( AnnotationPlacementMode )
2716 FlagNoCreationTools = 1 << 0,
2733 Q_ENUM( AnnotationItemNodeType )
2746 Q_ENUM( AnnotationItemEditOperationResult )
2762 Q_ENUM( TemporalNavigationMode )
2777 Q_ENUM( AnimationState )
2794 Q_ENUM( PlaybackOperation )
2812 Q_ENUM( VectorTemporalMode )
2821 IncludeBeginExcludeEnd = 0,
2822 IncludeBeginIncludeEnd,
2824 Q_ENUM( VectorTemporalLimitMode )
2837 Q_ENUM( VectorDataProviderTemporalMode )
2850 FixedRangePerBand = 3,
2851 RepresentsTemporalValues = 4,
2854 Q_ENUM( RasterTemporalMode )
2863 MatchUsingWholeRange,
2864 MatchExactUsingStartOfRange,
2865 MatchExactUsingEndOfRange,
2866 FindClosestMatchToStartOfRange,
2867 FindClosestMatchToEndOfRange
2869 Q_ENUM( TemporalIntervalMatchMethod )
2878 RequestedTimesMustExactlyMatchAllAvailableTemporalRanges
2881 Q_ENUM( RasterTemporalCapabilityFlag )
2901 Q_ENUM( TransformDirection )
2910 BallparkTransformsAreAppropriate
2912 IgnoreImpossibleTransformations
2915 Q_ENUM( CoordinateTransformationFlag )
2936 Q_ENUM( RasterizedRenderingPolicy )
2948 Q_ENUM( RenderFormat )
2957 Antialiasing = 0x01,
2958 DrawEditingInfo = 0x02,
2959 ForceVectorOutput = 0x04,
2960 UseAdvancedEffects = 0x08,
2961 DrawLabeling = 0x10,
2962 UseRenderingOptimization = 0x20,
2963 DrawSelection = 0x40,
2964 DrawSymbolBounds = 0x80,
2965 RenderMapTile = 0x100,
2966 RenderPartialOutput = 0x200,
2967 RenderPreviewJob = 0x400,
2968 RenderBlocking = 0x800,
2969 LosslessImageRendering
2971 Render3DMap = 0x2000,
2972 HighQualityImageTransforms = 0x4000,
2973 SkipSymbolRendering = 0x8000,
2974 ForceRasterMasks = 0x10000,
2975 RecordProfile = 0x20000,
2976 AlwaysUseGlobalMasks
2978 DrawLabelSelection = 0x80000
2992 DrawEditingInfo = 0x01,
2993 ForceVectorOutput = 0x02,
2994 UseAdvancedEffects = 0x04,
2995 UseRenderingOptimization = 0x08,
2996 DrawSelection = 0x10,
2997 DrawSymbolBounds = 0x20,
2998 RenderMapTile = 0x40,
2999 Antialiasing = 0x80,
3000 RenderPartialOutput = 0x100,
3001 RenderPreviewJob = 0x200,
3002 RenderBlocking = 0x400,
3003 RenderSymbolPreview = 0x800,
3004 LosslessImageRendering = 0x1000,
3005 ApplyScalingWorkaroundForTextRendering = 0x2000,
3006 Render3DMap = 0x4000,
3007 ApplyClipAfterReprojection = 0x8000,
3008 RenderingSubSymbol = 0x10000,
3009 HighQualityImageTransforms = 0x20000,
3010 SkipSymbolRendering = 0x40000,
3011 RecordProfile = 0x80000,
3012 AlwaysUseGlobalMasks = 0x100000,
3013 DisableSymbolClippingToExtent = 0x200000,
3014 RenderLayerTree = 0x400000,
3015 DrawLabelSelection = 0x800000
3029 RenderPartialOutputs = 1 << 0,
3030 RenderPartialOutputOverPreviousCachedImage = 1 << 1,
3031 AffectsLabeling = 1 << 2,
3033 Q_ENUM( MapLayerRendererFlag )
3050 RequiresRasterization = 1 << 0,
3052 Q_ENUM( PaintEffectFlag )
3072 TextFormatAlwaysOutlines
3075 TextFormatAlwaysText
3079 Q_ENUM( TextRenderFormat )
3090 UseAllLabels = 1 << 1,
3091 UsePartialCandidates = 1 << 2,
3093 RenderOutlineLabels = 1 << 3,
3094 DrawLabelRectOnly = 1 << 4,
3095 DrawCandidates = 1 << 5,
3096 DrawUnplacedLabels = 1 << 6,
3097 CollectUnplacedLabels = 1 << 7,
3098 DrawLabelMetrics = 1 << 8,
3099 IgnoreObstacles = 1 << 9,
3100 SingleCandidateOnly = 1 << 10,
3101 IgnoreOverlaps = 1 << 11,
3102 DisableSearchTree = 1 << 12,
3104 Q_ENUM( LabelingFlag )
3128 Q_ENUM( LabelPlacementEngineVersion )
3143 Q_ENUM( TextOrientation )
3157 RectangleCapHeightBased,
3158 RectangleAscentBased,
3160 Q_ENUM( TextLayoutMode )
3173 Background = 1 << 2,
3176 Q_ENUM( TextComponent )
3200 Q_ENUM( TextHorizontalAlignment )
3218 Q_ENUM( TextVerticalAlignment )
3234 Q_ENUM( TextCharacterVerticalAlignment )
3243 TruncateStringWhenLineIsTooShort = 1 << 0,
3244 UseBaselinePlacement = 1 << 1,
3245 UprightCharactersOnly = 1 << 2,
3246 ExtendLineToFitText = 1 << 3,
3248 Q_ENUM( CurvedTextFlag )
3269 SnappedToGridGlobal = 3,
3271 Q_ENUM( VectorSimplificationAlgorithm )
3282 NoSimplification = 0,
3283 GeometrySimplification = 1,
3284 AntialiasingSimplification = 2,
3285 FullSimplification = 3,
3287 Q_ENUM( VectorRenderingSimplificationFlag )
3311 Q_ENUM( RenderSubcomponentProperty )
3323 Q_ENUM( SelectiveMaskSourceType )
3335 Q_ENUM( VertexType )
3351 EquilateralTriangle,
3384 Q_ENUM( MarkerShape )
3397 LastVertex = 1 << 2,
3398 FirstVertex = 1 << 3,
3399 CentralPoint = 1 << 4,
3400 CurvePoint = 1 << 5,
3401 SegmentCenter = 1 << 6,
3402 InnerVertices = 1 << 7,
3404 Q_ENUM( MarkerLinePlacement )
3415 IntervalCartesian2D = 1 << 0,
3420 Q_ENUM( LinearReferencingPlacement )
3429 CartesianDistance2D,
3433 Q_ENUM( LinearReferencingLabelSource )
3447 Q_ENUM( GradientColorSource )
3462 Q_ENUM( GradientType )
3476 Q_ENUM( SymbolCoordinateReference )
3492 Q_ENUM( GradientSpread )
3506 Q_ENUM( PointCountMethod )
3520 Q_ENUM( MarkerClipMode )
3533 Q_ENUM( LineClipMode )
3548 Q_ENUM( DashPatternLineEndingRule )
3557 ScaleBothDashAndGap,
3561 Q_ENUM( DashPatternSizeAdjustment )
3575 Q_ENUM( GraduatedMethod )
3590 Q_ENUM( PlotAxisSuffixPlacement )
3603 Q_ENUM( PlotAxisType )
3616 Q_ENUM( PieChartLabelType )
3642 Q_ENUM( TilePixelRatio )
3658 ForceFirstLetterToCapital = 4,
3661 UpperCamelCase = 1005,
3662 AllSmallCaps = 1006,
3664 Q_ENUM( Capitalization )
3675 Q_ENUM( TextRendererFlag )
3702 Q_ENUM( AngularDirection )
3715 Q_ENUM( RendererUsage )
3724 ShowMainAnnotationLayer = 1 << 0,
3726 Q_ENUM( MapCanvasFlag )
3743 Sync3DTo2D = 1 << 0,
3744 Sync2DTo3D = 1 << 1,
3746 Q_ENUM( ViewSyncModeFlag )
3757 WhenOutsideVisibleExtent,
3760 Q_ENUM( MapRecenteringMode )
3769 LocalProfile = 1 << 0,
3772 Q_ENUM( HistoryProviderBackend )
3786 Q_ENUM( QueryStorageBackend )
3812 Q_ENUM( ProcessingSourceType )
3863 SecurityRisk = 1 << 15,
3885 RegeneratesPrimaryKey = 1 << 0,
3886 RegeneratesPrimaryKeyInSomeScenarios = 1 << 1,
3887 RespectsEllipsoid = 1 << 2,
3889 Q_ENUM( ProcessingAlgorithmDocumentationFlag )
3912 Q_ENUM( ProcessingPropertyAvailability )
3927 Q_ENUM( ProcessingLogLevel )
3942 Q_ENUM( ProcessingMode )
3953 VectorGeoprocessing,
3955 VectorDataManagement,
3961 RasterMiscellaneous,
3964 Q_ENUM( ProcessingMenu )
3980 Q_ENUM( ProcessingFeatureSourceDefinitionFlag )
4003 Q_ENUM( ProcessingFeatureSourceFlag )
4029 Q_ENUM( ProcessingParameterTypeFlag )
4058 Q_ENUM( ProcessingParameterFlag )
4082 Q_ENUM( ProcessingFileParameterBehavior )
4096 Q_ENUM( ProcessingNumberParameterType )
4114 Q_ENUM( ProcessingFieldParameterDataType )
4129 Q_ENUM( ProcessingDateTimeParameterDataType )
4145 Q_ENUM( ProcessingModelChildParameterSource )
4158 Q_ENUM( ProcessingModelChildAlgorithmExecutionStatus )
4173 Q_ENUM( ProcessingTinInputLayerType )
4185 Q_ENUM( CrsDefinitionFormat )
4202 Q_ENUM( FieldDomainSplitPolicy )
4223 Q_ENUM( FieldDomainMergePolicy )
4238 Q_ENUM( FieldDuplicatePolicy )
4251 Q_ENUM( FieldDomainType )
4261 AutomaticGroups = 1,
4264 Q_ENUM( TransactionMode )
4277 Q_ENUM( AltitudeClamping )
4289 Q_ENUM( AltitudeBinding )
4299 IncludeLowerExcludeUpper,
4300 ExcludeLowerIncludeUpper,
4303 Q_ENUM( RangeLimits )
4312 FixedElevationRange = 0,
4313 RepresentsElevationSurface = 1,
4314 FixedRangePerBand = 2,
4315 DynamicRangePerBand = 3,
4317 Q_ENUM( RasterElevationMode )
4326 FixedElevationRange = 0,
4328 FixedRangePerGroup = 2,
4330 Q_ENUM( MeshElevationMode )
4343 Q_ENUM( BetweenLineConstraint )
4356 Q_ENUM( LineExtensionSide )
4373 Q_ENUM( CadConstraintType )
4385 Q_ENUM( CadMeasurementDisplayType )
4394 EvaluateDefaultValuesOnProviderSide = 1 << 0,
4395 TrustStoredLayerStatistics
4397 RememberLayerEditStatusBetweenSessions = 1 << 2,
4398 RememberAttributeTableWindowsBetweenSessions = 1 << 3,
4400 Q_ENUM( ProjectFlag )
4411 ShowContextMenu = 1 << 0,
4413 Q_ENUM( PlotToolFlag )
4426 ShowTerrainBoundingBoxes = 1 << 0,
4427 ShowTerrainTileInfo = 1 << 1,
4428 ShowCameraViewCenter = 1 << 2,
4429 ShowCameraRotationCenter = 1 << 3,
4430 ShowLightSourceOrigins = 1 << 4,
4432 ShowDebugPanel = 1 << 6,
4434 Q_ENUM( Map3DDebugFlag )
4448 Q_ENUM( Map3DProjectionType )
4469 Q_ENUM( Point3DShape )
4485 TrianglesWithFixedTexture,
4487 TrianglesDataDefined,
4490 Q_ENUM( MaterialRenderingTechnique )
4502 Q_ENUM( MaterialWidgetMode )
4511 DataDefinedScale = 1 << 0,
4512 DataDefinedRotation = 1 << 1,
4514 Q_ENUM( InstancedMaterialFlag )
4528 Q_ENUM( BillboardScaleMode )
4543 Q_ENUM( TextureFilterQuality )
4558 Q_ENUM( ShadowQuality )
4571 Q_ENUM( LightSourceType )
4580 FixedGradientBackground,
4581 DistinctTextureSkybox,
4583 Q_ENUM( Map3DBackgroundType )
4596 LeftHandedYUpMirrored,
4598 Q_ENUM( SkyboxCubeMapping )
4611 Q_ENUM( NavigationMode )
4632 WhenRotatingDragging = 1 << 0,
4633 WhenRotatingCaptured = 1 << 1,
4634 WhenPivoting = 1 << 2,
4638 Never = WhenRotatingDragging | WhenRotatingCaptured | WhenPivoting,
4639 WhenDragging = WhenRotatingCaptured | WhenPivoting,
4640 Always = WhenPivoting,
4642 Q_ENUM( VerticalAxisInversion )
4657 Q_ENUM( ToneMappingMethod )
4669 Q_ENUM( Export3DSceneFormat )
4704 TriangulatedSurface,
4715 RespectsMaximumErrorMapUnit = 1 << 0,
4716 RespectsDistanceRange = 1 << 1,
4717 RespectsElevationRange = 1 << 2,
4719 Q_ENUM( ProfileGeneratorFlag )
4732 DistanceVsElevationTable,
4746 Q_ENUM( PointCloudSymbol )
4759 Q_ENUM( PointCloudDrawOrder )
4771 AvoidIntersectionsCurrentLayer,
4772 AvoidIntersectionsLayers,
4774 Q_ENUM( AvoidIntersectionsMode )
4788 Q_ENUM( ProjectFileFormat )
4807 DontLoadProjectStyles = 1 << 5,
4808 ForceReadOnlyLayers = 1 << 6,
4809 DontUpgradeAnnotations = 1 << 7,
4811 Q_ENUM( ProjectReadFlag )
4833 ProjectStyles = 1 << 0,
4835 Q_ENUM( ProjectCapability )
4860 Q_ENUM( MapBoxGlStyleSourceType )
4880 Q_ENUM( ArcGisRestServiceType )
4900 Q_ENUM( ArcGisRestServiceCapability )
4922 Q_ENUM( RelationshipType )
4936 Q_ENUM( RelationshipStrength )
4950 Q_ENUM( RelationshipCardinality )
4959 MultipleFieldKeys = 1 << 0,
4960 ForwardPathLabel = 1 << 1,
4961 BackwardPathLabel = 1 << 2,
4963 Q_ENUM( RelationshipCapability )
4984 Q_ENUM( CoordinateDisplayType )
4997 Q_ENUM( SettingsOrigin )
5018 Q_ENUM( ScriptLanguage )
5030 CheckSyntax = 1 << 1,
5031 ToggleComment = 1 << 2,
5033 Q_ENUM( ScriptLanguageCapability )
5050 AboveInsertionPoint,
5052 OptimalInInsertionGroup,
5054 Q_ENUM( LayerTreeInsertionMethod )
5063 LayerProperties = 0,
5067 Q_ENUM( LegendLayerDoubleClickAction )
5076 SkipVisibilityCheck = 1 << 0,
5078 Q_ENUM( LayerTreeFilterFlag )
5095 ExcludeByDefault = 1 << 0,
5097 Q_ENUM( MapLayerLegendFlag )
5125 Q_ENUM( LegendComponent )
5138 Q_ENUM( LegendSyncMode )
5149 ShowRuleDetails = 1 << 0,
5151 Q_ENUM( LegendJsonRenderFlag )
5167 Q_ENUM( GeoJsonProfile )
5182 Q_ENUM( ActionType )
5194 SingleFeature = 1 << 1,
5195 MultipleFeatures = 1 << 2,
5196 AllActions = Layer | SingleFeature | MultipleFeatures
5198 Q_ENUM( MapLayerActionTarget )
5219 EnabledOnlyWhenEditable = 1 << 1,
5220 EnableOnlyWhenHasGeometry = 1 << 2,
5222 Q_ENUM( MapLayerActionFlag )
5252 Q_ENUM( AttributeActionType )
5266 Q_ENUM( MetadataDateType )
5281 Q_ENUM( AcademicReferenceType )
5312 ContinuousPalette = 17,
5335 Q_ENUM( RasterColorInterpretation )
5351 Q_ENUM( RasterLayerType )
5364 SingleBandPseudoColor,
5366 PalettedSingleBandGray,
5367 PalettedSingleBandPseudoColor,
5368 PalettedMultiBandColor,
5369 MultiBandSingleBandGray,
5370 MultiBandSingleBandPseudoColor,
5374 Q_ENUM( RasterDrawingStyle )
5389 Q_ENUM( RasterPyramidFormat )
5404 Q_ENUM( RasterBuildPyramidOption )
5421 Q_ENUM( RasterIdentifyFormat )
5440 BuildPyramids = 1 << 4,
5442 IdentifyValue = 1 << 6,
5443 IdentifyText = 1 << 7,
5444 IdentifyHtml = 1 << 8,
5445 IdentifyFeature = 1 << 9,
5448 Q_ENUM( RasterInterfaceCapability )
5469 NoProviderCapabilities = 0,
5470 ReadLayerMetadata = 1 << 1,
5471 WriteLayerMetadata = 1 << 2,
5472 ProviderHintBenefitsFromResampling = 1 << 3,
5473 ProviderHintCanPerformProviderResampling = 1 << 4,
5474 ReloadData = 1 << 5,
5475 DpiDependentData = 1 << 6,
5476 NativeRasterAttributeTable = 1 << 7,
5477 BuildPyramids = 1 << 8,
5479 Q_ENUM( RasterProviderCapability )
5501 Q_ENUM( ElevationMapCombineMethod )
5554 Q_ENUM( SystemOfMeasurement )
5568 Q_ENUM( MapToolUnit )
5606 ChainsInternational,
5607 ChainsBritishBenoit1895A,
5608 ChainsBritishBenoit1895B,
5609 ChainsBritishSears1922Truncated,
5610 ChainsBritishSears1922,
5615 FeetBritishBenoit1895A,
5616 FeetBritishBenoit1895B,
5617 FeetBritishSears1922Truncated,
5618 FeetBritishSears1922,
5627 LinksBritishBenoit1895A,
5628 LinksBritishBenoit1895B,
5629 LinksBritishSears1922Truncated,
5630 LinksBritishSears1922,
5633 YardsBritishBenoit1895A,
5634 YardsBritishBenoit1895B,
5635 YardsBritishSears1922Truncated,
5636 YardsBritishSears1922,
5647 Q_ENUM( DistanceUnit )
5662 Q_ENUM( DistanceUnitType )
5710 Q_ENUM( VolumeUnit )
5744 MetersPerSecond = 0,
5751 Q_ENUM( WindSpeedUnit )
5775 Q_ENUM( TemporalUnit )
5795 Q_ENUM( RenderUnit )
5815 Q_ENUM( LayoutUnit )
5829 Q_ENUM( LayoutUnitType )
5857 LimitCoverageLayerRenderToCurrentFeature = 1 << 13,
5859 Q_ENUM( LayoutRenderFlag )
5884 Q_ENUM( PictureFormat )
5899 Q_ENUM( ScaleCalculationMethod )
5914 Q_ENUM( ScaleBarAlignment )
5928 Q_ENUM( ScaleBarSegmentSizeMode )
5942 Q_ENUM( ScaleBarDistanceLabelVerticalPlacement )
5956 Q_ENUM( ScaleBarDistanceLabelHorizontalPlacement )
5970 CenteredAbove = 1 << 4,
5971 RightAbove = 1 << 5,
5973 CenteredBelow = 1 << 7,
5974 RightBelow = 1 << 8,
5975 BeforeFirstDistanceLabel = 1 << 9,
5976 AfterLastDistanceLabel = 1 << 10,
5977 OnBarAfterFirstDivision = 1 << 11,
5978 BeforeEveryDistanceLabel = 1 << 12,
5979 AfterEveryDistanceLabel = 1 << 13,
5981 Q_ENUM( ScaleBarUnitLabelPlacement )
6005 DynamicPageSizeBased,
6007 Q_ENUM( MapGridUnit )
6023 Q_ENUM( MapGridStyle )
6039 Q_ENUM( MapGridComponentVisibility )
6053 Q_ENUM( MapGridAnnotationPosition )
6072 Q_ENUM( MapGridAnnotationDirection )
6087 DegreeMinuteNoSuffix,
6089 DegreeMinuteSecondNoSuffix,
6090 DegreeMinuteSecondPadded,
6093 Q_ENUM( MapGridAnnotationFormat )
6109 Q_ENUM( MapGridBorderSide )
6124 InteriorExteriorTicks,
6129 Q_ENUM( MapGridFrameStyle )
6140 OrthogonalTicks = 0,
6143 Q_ENUM( MapGridTickLengthMode )
6160 Q_ENUM( MapGridFrameSideFlag )
6184 Q_ENUM( MapGridAnnotationType )
6196 Q_ENUM( ElevationProfileRangeMethod )
6229 Q_ENUM( PostgresRelKind )
6238 SetFieldComment = 1 << 0,
6239 SetFieldAlias = 1 << 1,
6240 SetTableComment = 1 << 2,
6241 EditFieldDomain = 1 << 3,
6242 DeleteFieldDomain = 1 << 4,
6243 StyleStorage = 1 << 5,
6245 Q_ENUM( DatabaseProviderConnectionCapability2 )
6256 SetGeometryColumnName = 1 << 0,
6257 SetPrimaryKeyName = 1 << 1,
6259 Q_ENUM( DatabaseProviderTableImportCapability )
6270 SaveToDatabase = 1 << 1,
6271 LoadFromDatabase = 1 << 2,
6272 DeleteFromDatabase = 1 << 3
6289 Q_ENUM( UserProfileSelectionPolicy )
6310 Q_ENUM( AttributeEditorType )
6323 Q_ENUM( AttributeEditorContainerType )
6338 Q_ENUM( AttributeFormLayout )
6353 Q_ENUM( AttributeFormSuppression )
6369 Q_ENUM( AttributeFormPythonInitCodeSource )
6379 AllowedDefaultOn = 1,
6380 AllowedDefaultOff = 2,
6382 Q_ENUM( AttributeFormReuseLastValuePolicy )
6395 Q_ENUM( ExpressionType )
6410 Q_ENUM( FeatureSymbologyExport )
6419 AlwaysUseTileMatrixSetFromProvider = 1 << 1,
6421 Q_ENUM( VectorTileProviderFlag )
6437 ReadLayerMetadata = 1 << 1,
6439 Q_ENUM( VectorTileProviderCapability )
6458 AvailableNoChildren,
6459 UseLowerZoomLevelTile,
6461 Q_ENUM( TileAvailability )
6470 ReadLayerMetadata = 1 << 1,
6472 Q_ENUM( TiledSceneProviderCapability )
6493 Q_ENUM( TiledSceneBoundingVolumeType )
6508 Q_ENUM( TileRefinementProcess )
6521 Q_ENUM( TileChildrenAvailability )
6530 NoHierarchyFetch = 1 << 0,
6532 Q_ENUM( TiledSceneRequestFlag )
6549 RequiresTextures = 1 << 0,
6550 ForceRasterRender = 1 << 1,
6551 RendersTriangles = 1 << 2,
6552 RendersLines = 1 << 3,
6554 Q_ENUM( TiledSceneRendererFlag )
6571 RA_NearestNeighbour = 0,
6584 Q_ENUM( GdalResampleAlgorithm )
6600 Q_ENUM( VsiHandlerType )
6624 MinimumPoint = 1 << 12,
6625 MaximumPoint = 1 << 13,
6627 All = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6629 AllNumeric = Count | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | Variance,
6630 Default = Count | Sum | Mean,
6632 Q_ENUM( ZonalStatistic )
6654 FailedToCreateField = 8,
6657 Q_ENUM( ZonalStatisticResult )
6683 StringMinimumLength,
6684 StringMaximumLength,
6688 StringConcatenateUnique
6700 CountMissing = 1 << 15,
6705 StDevSample = 1 << 5,
6712 FirstQuartile = 1 << 12,
6713 ThirdQuartile = 1 << 13,
6714 InterQuartileRange = 1 << 14,
6717 All = Count | CountMissing | Sum | Mean | Median | StDev | Max | Min | Range | Minority | Majority | Variety | FirstQuartile | ThirdQuartile | InterQuartileRange | First | Last
6742 All = Count | CountDistinct | CountMissing | Min | Max | Range,
6744 Q_ENUM( DateTimeStatistic )
6771 All = Count | CountDistinct | CountMissing | Min | Max | MinimumLength | MaximumLength | MeanLength | Minority | Majority,
6773 Q_ENUM( StringStatistic )
6797 SumOfSquares = 1 << 6,
6798 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
6800 Q_ENUM( RasterBandStatistic )
6821 Q_ENUM( InterpolationSourceType )
6834 Q_ENUM( InterpolationValueSource )
6855 MultiDatastream = 1 << 0,
6856 SensingExtensionObservationsMeasurements = 1 << 1,
6857 SensingExtensionSampling = 1 << 2,
6858 SensingExtensionRelations = 1 << 3,
6896 PreparationProcedure,
6901 ObservationRelation,
6903 Q_ENUM( SensorThingsEntity )
6915 Q_ENUM( ColorModel )
6929 Q_ENUM( DocumentationApi )
6938 DeveloperToolsPanel,
6941 Q_ENUM( DocumentationBrowser )
6966 Q_ENUM( MouseHandlesAction )
6977 Q_ENUM( MeshRangeLimit )
6990 Q_ENUM( MeshRangeExtent )
7003 Q_ENUM( PointCloudAccessType )
7013 RenderOverviewAndExtents
7015 Q_ENUM( PointCloudZoomOutRenderBehavior )
7028 Q_ENUM( SegmentCalculationMethod )
7041 Q_ENUM( StacObjectType )
7052 Q_ENUM( RasterProcessingParameterCapability )
7067 Status = Qt::UserRole + 1,
7073 Q_ENUM( DevToolsNodeRole )
7087 Q_ENUM( ExtrusionFace )
7102 ConstrainedDelaunay = 0,
7105 Q_ENUM( TriangulationAlgorithm )
7123 Q_ENUM( WmsGroupRequestMode )
7132 RestorePreviousState,
7136 Q_ENUM( DockableWidgetInitialState )
7150 Q_ENUM( CoverageCleanOverlapMergeStrategy )
7159 RenderTextAsText = 1 << 0,
7161 Q_ENUM( PdfRenderFlag )
7186 Q_ENUM( WmsDimensionDefaultDisplay )
7205 Q_ENUM( RubberBandIconType )
7215 PreviewItems = 1 << 1,
7217 Q_ENUM( RubberBandComponent )
7237 Q_ENUM( UserInterfaceIconType )
7252 Q_ENUM( VectorFieldArrowScalingMethod )
7268 Q_ENUM( VectorFieldSymbology )
7282 Q_ENUM( VectorFieldSeedingMethod )
7291 CartesianComponents = 0,
7294 Q_ENUM( RasterVectorFieldSourceMode )
7310 Q_ENUM( RasterDirectionEncoding )
7321 LuWithSvdFallback = 2
7323 Q_ENUM( LinearMatrixMethod )
7341 Q_ENUM( AttributeTableFilterMode )
7353 Q_ENUM( PointCloudOutputsTypes )
7365 Q_ENUM( SaveStyleFormat )
7551 return QStringLiteral(
7552 R
"""(GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]] )"""
7560 Q_DECL_DEPRECATED
static QString
geoProj4() {
return u
"+proj=longlat +datum=WGS84 +no_defs"_s; }
7674#define cast_to_fptr( f ) f
7694 , mPreviousState( object->blockSignals( true ) )
7703 Object *mObject =
nullptr;
7704 bool mPreviousState;
7726CORE_EXPORT
size_t qHash(
const QVariant &variant );
7738 if ( precision < 0 )
7740 const double roundFactor = std::pow( 10, -precision );
7741 str = QString::number(
static_cast< long long >( std::round( a / roundFactor ) * roundFactor ) );
7745 str = QString::number( a,
'f', precision );
7746 if ( str.contains(
'.'_L1 ) )
7749 int idx = str.length() - 1;
7750 while ( str.at( idx ) ==
'0' && idx > 1 )
7754 if ( idx < str.length() - 1 )
7755 str.truncate( str.at( idx ) ==
'.' ? idx : idx + 1 );
7761 str = QString::number( a,
'f', precision );
7765 if ( str ==
"-0"_L1 )
7783 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7798template<
typename T>
inline bool qgsNumberNear( T a, T b, T epsilon = std::numeric_limits<T>::epsilon() * 4 )
7800 static_assert( std::is_floating_point<T>::value,
"qgsNumberNear requires floating-point types" );
7808 const T diff = a - b;
7809 if ( diff >= -epsilon && diff <= epsilon )
7813 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7826inline bool qgsDoubleNear(
double a,
double b,
double epsilon = 4 * std::numeric_limits<double>::epsilon() )
7848 if ( a - b <= epsilon )
7852 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7875 if ( b - a <= epsilon )
7879 if ( std::isnan( a ) && std::isnan( b ) ) [[unlikely]]
7891inline bool qgsFloatNear(
float a,
float b,
float epsilon = 4 * FLT_EPSILON )
7899 const bool aIsNan = std::isnan( a );
7900 const bool bIsNan = std::isnan( b );
7901 if ( aIsNan || bIsNan )
7902 return aIsNan && bIsNan;
7910 const double ar = std::frexp( a, &aexp );
7911 const double br = std::frexp( b, &bexp );
7913 return aexp == bexp && std::round( ar * std::pow( 10.0, significantDigits ) ) == std::round( br * std::pow( 10.0, significantDigits ) );
7922 const double m = ( number < 0.0 ) ? -1.0 : 1.0;
7923 const double scaleFactor = std::pow( 10.0, places );
7924 return ( std::round( number * m * scaleFactor ) / scaleFactor ) * m;
7935template<
class Key,
class Value> QString
qgsMapJoinKeys(
const QMap<Key, Value> &map,
const QString &separator )
7938 for (
auto it = map.constBegin(); it != map.constEnd(); it++ )
7939 result += QString(
"%1%2" ).arg( it.key() ).arg( separator );
7941 result.chop( separator.size() );
7951template<
class Key,
class Value> QString
qgsMapJoinValues(
const QMap<Key, Value> &map,
const QString &separator )
7954 for (
auto it = map.constBegin(); it != map.constEnd(); it++ )
7955 result += QString(
"%1%2" ).arg( it.value() ).arg( separator );
7957 result.chop( separator.size() );
7967template<
class T> QString
qgsSetJoin(
const QSet<T> &set,
const QString &separator )
7970 for (
auto it = set.constBegin(); it != set.constEnd(); it++ )
7971 result += QString(
"%1%2" ).arg( *it ).arg( separator );
7973 result.chop( separator.size() );
8003 template<
typename To,
typename From>
inline To down_cast( From *f )
8005 static_assert( ( std::is_base_of<From, typename std::remove_pointer<To>::type>::value ),
"target type not derived from source type" );
8006 Q_ASSERT( f ==
nullptr ||
dynamic_cast<To
>( f ) !=
nullptr );
8007 return static_cast<To
>( f );
8010 template<
class T> QSet<T> listToSet(
const QList<T> &list )
8012 return QSet<T>( list.begin(), list.end() );
8015 template<
class T> QList<T> setToList(
const QSet<T> &set )
8017 return QList<T>( set.begin(), set.end() );
8028 template<
typename To,
typename From>
inline std::unique_ptr<To> unique_ptr_static_cast( std::unique_ptr<From> f )
8030 static_assert( ( std::is_base_of<From, To>::value ),
"target type not derived from source type" );
8031 Q_ASSERT( !f ||
dynamic_cast<To *
>( f.get() ) !=
nullptr );
8032 return std::unique_ptr<To>(
static_cast<To *
>( f.release() ) );
8042 template<
typename To,
typename From>
inline std::unique_ptr<To> unique_ptr_dynamic_cast( std::unique_ptr<From> &&f )
8044 static_assert( ( std::is_base_of<From, To>::value ),
"target type not derived from source type" );
8045 if ( To *casted =
dynamic_cast<To *
>( f.get() ) )
8047 return std::unique_ptr< To >(
dynamic_cast<To *
>( f.release() ) );
8068 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8069 Q_ASSERT( metaEnum.isValid() );
8071 for (
int idx = 0; idx < metaEnum.keyCount(); ++idx )
8073 enumList.append(
static_cast<T
>( metaEnum.value( idx ) ) );
8085 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8086 Q_ASSERT( metaEnum.isValid() );
8087 QMap<T, QString> enumMap;
8088 for (
int idx = 0; idx < metaEnum.keyCount(); ++idx )
8090 enumMap.insert(
static_cast<T
>( metaEnum.value( idx ) ), QString( metaEnum.key( idx ) ) );
8102 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8103 Q_ASSERT( metaEnum.isValid() );
8104 const char *key = metaEnum.valueToKey(
static_cast<int>( value ) );
8107 *returnOk = key ? true :
false;
8109 return QString::fromUtf8( key );
8119template<
class T> T
qgsEnumKeyToValue(
const QString &key,
const T &defaultValue,
bool tryValueAsKey =
true,
bool *returnOk =
nullptr )
SIP_SKIP
8121 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8122 Q_ASSERT( metaEnum.isValid() );
8124 T v =
static_cast<T
>( metaEnum.keyToValue( key.toUtf8().data(), &ok ) );
8136 if ( tryValueAsKey )
8138 bool canConvert =
false;
8139 const int intValue = key.toInt( &canConvert );
8140 if ( canConvert && metaEnum.valueToKey( intValue ) )
8146 return static_cast<T
>( intValue );
8150 return defaultValue;
8160 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8161 Q_ASSERT( metaEnum.isValid() );
8162 int intValue =
static_cast<int>( value );
8163 if ( intValue == 0 )
8170 const QByteArray ba = metaEnum.valueToKeys( intValue );
8173 const int intValueCheck = metaEnum.keysToValue( ba );
8174 bool ok = intValue == intValueCheck;
8177 return ok ? QString::fromUtf8( ba ) : QString();
8187template<
class T> T
qgsFlagKeysToValue(
const QString &keys,
const T &defaultValue,
bool tryValueAsKey =
true,
bool *returnOk =
nullptr )
SIP_SKIP
8189 if ( keys.isEmpty() )
8195 return defaultValue;
8197 else if ( keys ==
"0"_L1 )
8205 const QMetaEnum metaEnum = QMetaEnum::fromType<T>();
8206 Q_ASSERT( metaEnum.isValid() );
8208 T v =
static_cast<T
>( metaEnum.keysToValue( keys.toUtf8().constData(), &ok ) );
8220 if ( tryValueAsKey )
8222 bool canConvert =
false;
8223 const int intValue = keys.toInt( &canConvert );
8226 const QByteArray keyArray = metaEnum.valueToKeys( intValue );
8227 const int intValueCheck = metaEnum.keysToValue( keyArray );
8228 if ( !keyArray.isEmpty() && intValue == intValueCheck )
8234 return T( intValue );
8239 return defaultValue;
8293CORE_EXPORT
int qgsVariantCompare(
const QVariant &lhs,
const QVariant &rhs,
bool strictTypeCheck =
false );
8315CORE_EXPORT
bool qgsVariantEqual(
const QVariant &lhs,
const QVariant &rhs );
8338inline bool operator>(
const QVariant &v1,
const QVariant &v2 )
8354inline bool operator<(
const QVariant &v1,
const QVariant &v2 )
8383class ScopedIntIncrementor
8386 ScopedIntIncrementor(
int *variable )
8387 : mVariable( variable )
8392 ScopedIntIncrementor(
const ScopedIntIncrementor &other ) =
delete;
8393 ScopedIntIncrementor &operator=(
const ScopedIntIncrementor &other ) =
delete;
8400 mVariable =
nullptr;
8403 ~ScopedIntIncrementor() { release(); }
8406 int *mVariable =
nullptr;
8446#if ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) ) || defined( __clang__ )
8448#define Q_NOWARN_DEPRECATED_PUSH _Pragma( "GCC diagnostic push" ) _Pragma( "GCC diagnostic ignored \"-Wdeprecated-declarations\"" );
8449#define Q_NOWARN_DEPRECATED_POP _Pragma( "GCC diagnostic pop" );
8450#define Q_NOWARN_UNREACHABLE_PUSH
8451#define Q_NOWARN_UNREACHABLE_POP
8453#elif defined( _MSC_VER )
8455#define Q_NOWARN_DEPRECATED_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4996 ) )
8456#define Q_NOWARN_DEPRECATED_POP __pragma( warning( pop ) )
8457#define Q_NOWARN_UNREACHABLE_PUSH __pragma( warning( push ) ) __pragma( warning( disable : 4702 ) )
8458#define Q_NOWARN_UNREACHABLE_POP __pragma( warning( pop ) )
8461#define Q_NOWARN_DEPRECATED_PUSH
8462#define Q_NOWARN_DEPRECATED_POP
8463#define Q_NOWARN_UNREACHABLE_PUSH
8464#define Q_NOWARN_UNREACHABLE_POP
8471#define QGISEXTERN extern "C" __declspec( dllexport )
8473#if defined( __GNUC__ ) || defined( __clang__ )
8474#define QGISEXTERN extern "C" __attribute__( ( visibility( "default" ) ) )
8476#define QGISEXTERN extern "C"
8484#define BUILTIN_UNREACHABLE __assume( false );
8485#elif defined( __GNUC__ ) && !defined( __clang__ )
8496#define BUILTIN_UNREACHABLE __builtin_unreachable();
8498#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.
AttributeTableFilterMode
Defines how rows in attribute tables should be filtered.
ProfileGeneratorFlag
Flags that control the way the QgsAbstractProfileGenerator operate.
GeometryBackend
Geometry backend for QgsGeometry.
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.
QFlags< PdfRenderFlag > PdfRenderFlags
PDF rendering flags.
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.
WmsGroupRequestMode
Request mode of groups in a WMS context.
VectorFieldSeedingMethod
Method used to define start points that are used to draw streamlines.
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.
VectorFieldSymbology
Defines the symbology of vector field rendering.
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.
InterpolationSourceType
Interpolation source types.
static const double DEFAULT_Z_COORDINATE
Default Z coordinate value.
CoverageCleanOverlapMergeStrategy
Merge strategies for coverage cleaning operations.
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.
InterpolationValueSource
Source for interpolated values from features.
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.
UserInterfaceIconType
Icon types for icons shown in the user interface.
QFlags< SelectionFlag > SelectionFlags
Flags which control feature selection behavior.
SnappingType
SnappingTypeFlag defines on what object the snapping is performed.
Map3DBackgroundType
Background types for 3D map view.
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.
QFlags< SensorThingsExtension > SensorThingsExtensions
OGC SensorThings extensions.
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.
TextureFilterQuality
Texture filtering qualities.
Statistic
Available generic statistics.
TriangulationAlgorithm
Triangulation algorithms.
SymbolRenderHint
Flags controlling behavior of symbols during rendering.
SaveStyleFormat
Style save format.
AngleUnit
Units of angles.
ToneMappingMethod
Defines the method used to map High Dynamic Range (HDR) scene colors to the Standard Dynamic Range (S...
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.
LayerItemCapability
Flags for layer item capabilities.
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.
PointCloudOutputsTypes
Point cloud output formats allowed for a point cloud destination.
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.
LegendLayerDoubleClickAction
Action performed when double-clicking a layer in the legend.
RasterPyramidFormat
Raster pyramid formats.
ProcessingMode
Types of modes which Processing widgets can be created for.
VectorExportResult
Vector layer export result codes.
ShadowQuality
Shadow texture quality.
PdfRenderFlag
PDF rendering flags.
DistanceUnit
Units of distance.
ScaleBarUnitLabelPlacement
Available placement options for a scale bar's unit label.
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.
RasterVectorFieldSourceMode
Defines how a raster vector field renderer reads the vectors from the raster bands.
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.
TextAnchorPoint
Anchor point of label text.
ExtrusionFace
Extrusion face types for the QgsTessellator.
AttributeFormLayout
Available form types for layout of the attribute form editor.
FeatureRequestFlag
Flags for controlling feature requests.
Map3DDebugFlag
Flags that control debug options for 3D maps.
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.
Q_ENUM(SensorThingsExtension)
static const int MAXIMUM_LAYER_PREVIEW_TIME_MS
Maximum rendering time for a layer of a preview job.
QFlags< RubberBandComponent > RubberBandComponents
Rubber band components.
MeshRangeExtent
Describes the extent used to compute mesh ranges (min/max values).
GpsInformationComponent
GPS information component.
Q_ENUM(PointCloudProfileType)
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.
SelectiveMaskSourceType
Selective masking source types.
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...
GeoJsonProfile
GeoJson export Profile according to OGC Features and Geometries JSON - Part 1: Core https://docs....
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
SensorThingsExtension
OGC SensorThings extensions.
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.
CoverageEdgeType
Coverage edge types.
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.
QFlags< SaveStyleFormat > SaveStyleFormats
ProjectFlag
Flags which control the behavior of QgsProjects.
MapGridStyle
Map grid drawing styles.
SensorThingsVersion
OGC SensorThings API versions.
FeatureRendererFlag
Flags controlling behavior of vector feature renderers.
static Q_DECL_DEPRECATED QString geoProj4()
PROJ4 string that represents a geographic coord system.
AcademicReferenceType
Type of academic reference.
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.
RubberBandIconType
Rubber band icon type.
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.
CadMeasurementDisplayType
Advanced digitizing measurement display types.
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
ProcessingMenu
Standard menu groups for Processing tools.
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.
StringFormat
Format of log message.
Q_ENUM(ProcessingProviderFlag)
TiledSceneRendererFlag
Flags which control how tiled scene 2D renderers behave.
MaterialWidgetMode
Modes for material settings widgets.
MapLayerActionTarget
Map layer action targets.
ShaderClassificationMethod
Color ramp shader classification methods.
QFlags< ScaleBarUnitLabelPlacement > ScaleBarUnitLabelPlacements
Available placement options for a scale bar's unit label.
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.
Export3DSceneFormat
The file format used when exporting a 3D scene.
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.
PointCloudProfileType
Types of elevation profiles to generate for point cloud sources.
RasterBandStatistic
Available raster band statistics.
QFlags< VectorTileProviderCapability > VectorTileProviderCapabilities
Vector tile data provider capabilities.
Q_ENUM(SensorThingsVersion)
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.
SkyboxCubeMapping
Skybox texture cube mapping for distinct texture skyboxes.
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.
WindSpeedUnit
Wind speed units.
RenderFormat
Rendering formats.
PointCloudZoomOutRenderBehavior
Point cloud zoom out options.
QFlags< SymbolConverterCapability > SymbolConverterCapabilities
Symbol converter capabilities.
LayerType
Types of layers that can be added to a map.
QFlags< AnnotationItemFlag > AnnotationItemFlags
Annotation item flags.
BillboardScaleMode
3D billboard scaling modes.
LinearReferencingLabelSource
Defines what quantity to use for the labels shown in a linear referencing symbol layer.
QFlags< BrowserItemFilterFlag > BrowserItemFilterFlags
Browser item filter flags.
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.
QFlags< ArcGisRestServiceCapability > ArcGisRestServiceCapabilities
Available ArcGIS REST service capabilities.
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.
QFlags< VerticalAxisInversion > VerticalAxisInversionFlags
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.
UnknownLayerCrsBehavior
Behavior to use when encountering a layer with an unknown (invalid) CRS.
BrowserItemFilterFlag
Browser item filter flags.
QFlags< LayerItemCapability > LayerItemCapabilities
Flags for layer item capabilities.
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.
SourceHierarchyLevel
Defines the structural levels within a data source hierarchy.
VectorLayerTypeFlag
Vector layer type flags.
MakeValidMethod
Algorithms to use when repairing invalid geometries.
QFlags< Map3DDebugFlag > Map3DDebugFlags
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.
Map3DProjectionType
3D map projection type
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
QFlags< RelationshipCapability > RelationshipCapabilities
Relationship capabilities.
ArcGisRestServiceCapability
Available ArcGIS REST service 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
RubberBandComponent
Rubber band components.
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.
MaterialRenderingTechnique
Material rendering techniques.
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
WmsDimensionDefaultDisplay
QGIS Server WMS Dimension default display types.
GpsConnectionType
GPS connection types.
RasterDirectionEncoding
Schemes used to encode a compass direction as an integer raster value.
Q_ENUM(InputControllerType)
ElevationProfileRangeMethod
Elevation profile range calculation methods.
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.
SymbolConverterCapability
Symbol converter capabilities.
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.
QFlags< InstancedMaterialFlag > InstancedMaterialFlags
SceneMode
The 3D scene mode used in 3D map views.
InstancedMaterialFlag
Optional per-instance properties of instanced materials.
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.
VectorFieldArrowScalingMethod
Algorithm to transform vector magnitude to length of arrow on the device in pixels.
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.
DockableWidgetInitialState
Dockable widget initial states.
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.
LinearMatrixMethod
Mathematical methods to use for solving linear matrix equations.
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.
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.
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.
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.
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.
CreateLayerActionOnExisting
Actions to take when attempting to create a layer on an existing datasource.
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...
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.
CORE_EXPORT size_t qHash(const QVariant &variant)
Hash for QVariant.
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.
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.
#define QHASH_FOR_CLASS_ENUM(T)
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.
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.