QGIS API Documentation 4.3.0-Master (52aa6503bed)
Loading...
Searching...
No Matches
qgsprocessingguiutils.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingguiutils.cpp
3 ------------------------
4 Date : June 2025
5 Copyright : (C) 2025 Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
17
18#include <QString>
19
20using namespace Qt::StringLiterals;
21
22
24{
25 return {
26 { static_cast< int >( Qgis::ProcessingMenu::VectorAnalysis ),
27 { "native:distancematrix",
28 "native:sumlinelengths",
29 "native:countpointsinpolygon",
30 "native:listuniquevalues",
31 "native:basicstatisticsforfields",
32 "native:nearestneighbouranalysis",
33 "native:meancoordinates",
34 "native:lineintersections" } },
35 { static_cast< int >( Qgis::ProcessingMenu::VectorResearch ),
36 { "native:creategrid",
37 "native:randomselection",
38 "native:randomselectionwithinsubsets",
39 "native:randompointsinextent",
40 "qgis:randompointsinlayerbounds",
41 "native:randompointsinpolygons",
42 "qgis:randompointsinsidepolygons",
43 "native:randompointsonlines",
44 "qgis:regularpoints",
45 "native:selectbylocation",
46 "native:selectwithindistance",
47 "native:polygonfromlayerextent" } },
48 { static_cast< int >( Qgis::ProcessingMenu::VectorGeoprocessing ),
49 { "native:buffer", "native:convexhull", "native:intersection", "native:union", "native:symmetricaldifference", "native:clip", "native:difference", "native:dissolve", "qgis:eliminateselectedpolygons" } },
50 { static_cast< int >( Qgis::ProcessingMenu::VectorGeometry ),
51 { "native:checkvalidity",
52 "native:exportaddgeometrycolumns",
53 "native:centroids",
54 "native:delaunaytriangulation",
55 "native:voronoipolygons",
56 "native:simplifygeometries",
57 "native:densifygeometries",
58 "native:multiparttosingleparts",
59 "native:collect",
60 "native:polygonstolines",
61 "qgis:linestopolygons",
62 "native:extractvertices" } },
63 { static_cast< int >( Qgis::ProcessingMenu::VectorDataManagement ),
64 { "native:reprojectlayer", "native:joinattributesbylocation", "native:splitvectorlayer", "native:mergevectorlayers", "native:createspatialindex" } },
65 { static_cast< int >( Qgis::ProcessingMenu::RasterProjections ), { "gdal:warpreproject", "gdal:extractprojection", "gdal:assignprojection" } },
66 { static_cast< int >( Qgis::ProcessingMenu::RasterConversion ), { "gdal:rasterize", "gdal:polygonize", "gdal:translate", "gdal:rgbtopct", "gdal:pcttorgb" } },
67 { static_cast< int >( Qgis::ProcessingMenu::RasterExtraction ), { "gdal:contour", "gdal:cliprasterbyextent", "gdal:cliprasterbymasklayer" } },
68 { static_cast< int >( Qgis::ProcessingMenu::RasterAnalysis ),
69 { "gdal:sieve",
70 "gdal:nearblack",
71 "gdal:fillnodata",
72 "gdal:proximity",
73 "gdal:griddatametrics",
74 "gdal:gridaverage",
75 "gdal:gridinversedistance",
76 "gdal:gridnearestneighbor",
77 "gdal:aspect",
78 "gdal:hillshade",
79 "gdal:roughness",
80 "gdal:slope",
81 "gdal:tpitopographicpositionindex",
82 "gdal:triterrainruggednessindex" } },
83 { static_cast< int >( Qgis::ProcessingMenu::RasterMiscellaneous ), { "gdal:buildvirtualraster", "gdal:merge", "gdal:gdalinfo", "gdal:overviews", "gdal:tileindex" } },
84 { static_cast< int >( Qgis::ProcessingMenu::RasterGeneral ), { "native:alignrasters" } }
85 };
86}
@ RasterExtraction
Raster Extraction menu.
Definition qgis.h:3932
@ VectorAnalysis
Vector Analysis menu.
Definition qgis.h:3924
@ VectorGeometry
Vector Geometry menu.
Definition qgis.h:3927
@ VectorResearch
Vector Research menu.
Definition qgis.h:3925
@ RasterAnalysis
Raster Analysis menu.
Definition qgis.h:3933
@ RasterGeneral
Raster (top-level) menu.
Definition qgis.h:3935
@ RasterConversion
Raster Conversion menu.
Definition qgis.h:3931
@ RasterMiscellaneous
Raster Miscellaneous menu.
Definition qgis.h:3934
@ VectorDataManagement
Vector Data Management menu.
Definition qgis.h:3928
@ RasterProjections
Raster Projections menu.
Definition qgis.h:3930
@ VectorGeoprocessing
Vector Geoprocessing menu.
Definition qgis.h:3926
static QMap< int, QStringList > defaultProcessingMenuEntries()
Returns the map of Processing menus to a list of algorithm IDs to include by default in that menu.