6686 Commits

Author SHA1 Message Date
Andrea Giudiceandrea
d7e819de38 [Modeler] Fix algorithms help URL 2024-12-17 02:33:45 +01:00
Nyall Dawson
a9a74e9aed Fix heatmap algorithm on qt6 2024-12-15 09:10:18 +10:00
Nyall Dawson
3d2f37a756 Fix test which was never working, but just skipped on CI because too old GDAL 2024-12-14 10:22:12 +10:00
Nyall Dawson
05c269d61d Fix test on newer GEOS versions 2024-12-14 10:22:12 +10:00
Nyall Dawson
27253e1c21 Fix test on newer python 2024-12-13 13:54:19 +10:00
Harrissou Sant-anna
3ff6ca6556 Remove optional flag next to Processing algs Boolean parameters - fixes #59794 2024-12-12 09:40:29 +10:00
Jan Caha
f593da593a
New Algorithm - Mesh Surface to Polygon (#58941)
* new algorithm

* update feedback

* allow cancel during mesh face processing

* allow cancel during mesh faces processing

* fix file names

* fix the speed of the algorithm

* drop not needed imports

* fix issues

* more readable

* add mesh layer

* test case

* simplify to avoid warning

* fix issue

* fix data call

* fix call

* fix expected data

* handle meshes with holes

* add test case

* merge from master

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* Update src/analysis/processing/qgsalgorithmmeshsurfacetopolygon.cpp

fix translation

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix translation

* typo

* clone

* delete to avoid memory leak

---------

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-11 16:04:48 +02:00
Etienne Trimaille
6f4304bc0e Review the Processing script template : add annotations, remove self.tr 2024-12-11 10:59:00 +10:00
Florian Neukirchen
c763cf0cea Use createExpressionContext() to create context in a cleaner and safer way as suggested
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-12-10 06:45:43 +10:00
Florian Neukirchen
7b238cc931 Remove != "" as suggested in code review
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-12-10 06:45:43 +10:00
pre-commit-ci[bot]
4129a71797 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-12-10 06:45:43 +10:00
Florian Neukirchen
d552495eba Optional hover text from a expression 2024-12-10 06:45:43 +10:00
Nyall Dawson
c33b4e67dc Fix exception when loading processing plugin on Qt 6 builds on KDE
Something internal in KDE itself adds child QObjects to menus, so the
code which tries to find the last action in the menu fails and returns
a QObject instead of a QAction, leading to an exception in the
insertAction call.

This is all too fragile anyway, so avoid it by:

- Just creating the models menu directly in the ui
- Exposing this via interface for use in the processing plugin

Now there's no risk of this code breaking in future if the Project
menu is re-arranged.
2024-12-06 19:20:05 +10:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Nyall Dawson
c6da4345ef Update python/plugins/processing/algs/qgis/VectorLayerScatterplot3D.py 2024-11-29 11:19:46 +10:00
Florian Neukirchen
6a10b141d0 Add comment as suggested in code review 2024-11-29 11:19:46 +10:00
Florian Neukirchen
3b22009b1a Change strings as suggested in code review part 2 2024-11-29 11:19:46 +10:00
Florian Neukirchen
e6bfc5ab1e Change strings as suggested in code review 2024-11-29 11:19:46 +10:00
Florian Neukirchen
b719b09c5e Allow to show no axis titles by entering a single space 2024-11-29 11:19:46 +10:00
Florian Neukirchen
532b52dcfd Remove blank line 2024-11-29 11:19:46 +10:00
Florian Neukirchen
f75386909d Axis titles default to the names of the field instead of not showing axis titles 2024-11-29 11:19:46 +10:00
Florian Neukirchen
6fa5bcec3a Was setting the wrong axis titles to None 2024-11-29 11:19:46 +10:00
Florian Neukirchen
4fe35b2236 Add title, axis titles and option for log axis to Vector layer Scatterplot 2024-11-29 11:19:46 +10:00
Florian Neukirchen
9e29495462 Add title and axis titles to Vector layer Scatterplot3D 2024-11-29 11:19:46 +10:00
Florian Neukirchen
eb85601c44 Parameter value must be numeric 2024-11-29 11:19:46 +10:00
Florian Neukirchen
236007ef3f Add title, xaxis_title, yaxis_title to BoxPlot 2024-11-29 11:19:46 +10:00
Florian Neukirchen
e921e5caf0 Add title, xaxis_title, yaxis_title to BarPlot 2024-11-29 11:19:46 +10:00
AlisterH
7726067f87 Update Datasources2Vrt.py
Remove out-of-date statement from help.
2024-11-26 09:09:13 +10:00
Nyall Dawson
3e1c84e07e Finalize sinks to get proper error reporting when flushing features
Fixes #59237
2024-11-12 08:49:18 +01:00
Nyall Dawson
1a4bd44937 Rename field to extremum_type 2024-11-11 13:01:42 +10:00
Nyall Dawson
2890df089d [feature] Add raster zonal min/max algorithm
This algorithm extracts point features corresponding to the minimum
and maximum pixel values contained within polygon zones.

The output will contain one point feature for the minimum and one
for the maximum raster value for every individual zonal feature
from a polygon layer.
2024-11-11 13:01:42 +10:00
Nyall Dawson
a7bd4f3bf2 [processing] Add algorithm to extract min/max pixel from raster
This algorithm extracts extrema (minimum and maximum) values
from a given band of the raster layer.

The output is a vector layer containing point features for
the selected extrema, at the center of the associated pixel.

If multiple pixels in the raster share the minimum or maximum
value, then only one of these pixels will be included in the output.

The algorithm uses raster iterator to remain efficient on huge
rasters, and does not require reading the entire raster to
memory
2024-11-07 10:13:55 +11:00
signedav
774c5a913c Fix passing missing context to expression of select by expression algorithm 2024-11-01 11:44:44 +10:00
mazano
6ca60b7502
[ogr2ogr] Fix promote to multipart logic and add makevalid option (#58440) 2024-10-18 07:45:43 +10:00
Nyall Dawson
2c34056199 pyqt5_to_pyqt6.py run 2024-10-17 17:58:49 +10:00
Nyall Dawson
578aa207d0 Show warning when loading batch params for algs with security risk
If the algorithm has the security risk flag, warn the user before
they can open stored batch parameter files
2024-10-02 10:36:00 +10:00
Nyall Dawson
2fdb2cad80 Add processing algorithm flag for SecurityRisk
And add to "Advanced Python field calculator" algorithm, as that
algorithm uses the Python exec() function and is a security
risk if run with untrusted/unchecked inputs
2024-10-02 10:36:00 +10:00
Nyall Dawson
0d55518c24 [processing] Fix translation of elapsed strings
Fixes #58635
2024-10-01 20:30:39 +10:00
Nyall Dawson
6c1de7f70a [processing] Replace format for saving batch processing parameters
The older approach of storing parameters was insecure, and required
eval()ing the unchecked contents of the batch parameter file. This
is a security risk, as a malicious file could leak user information
or damage the system.

So,

- Switch to a newer ".batch" format which uses safe JSON objects
only for serializing parameter values.
- Allow loading the older .json files, but first show a warning
that they are a security risk and require to user to explicitly
agree to open the file
2024-10-01 19:35:51 +10:00
Nyall Dawson
95c9bb56b2 Remove unused code 2024-10-01 19:35:51 +10:00
Florian Neukirchen
dd4f71c1f3 Fix indentation 2024-10-01 08:36:59 +10:00
Florian Neukirchen
b8ca25da95 value field must be numeric 2024-10-01 08:36:59 +10:00
Florian Neukirchen
1fd614b0ef Fix AttributeError: module 'plotly.graph_objs' has no attribute 'Area': it is go.Barplot in recent plotly versions 2024-10-01 08:36:59 +10:00
Andrea Giudiceandrea
e688fb104e [gui][pocessing][modeler] Fix window's title 2024-09-24 06:40:50 +10:00
Andrea Giudiceandrea
016a33f43f [processing] Fix warning in postprocessing 2024-09-16 09:31:55 +10:00
Andrea Giudiceandrea
ab611a9a19 [pocessing] QVariant->QMetaType in "Select by attribute"
QgsField.type() returns QMetaType.Type
2024-09-16 08:48:01 +10:00
Andrea Giudiceandrea
81fb58f997 [processing] Fix deprecated QgsField constructor
Using QMetaType.Type in place of QVariant types for:
- "Check validity" qgis:checkvalidity
- "Climb along line" qgis:climbalongline
- "Add geometry attributes" qgis:exportaddgeometrycolumns
- "Advanced Python field calculator" qgis:advancedpythonfieldcalculator
- "Find projection" qgis:findprojection
- "Distance to nearest hub (line to hub)" qgis:distancetonearesthublinetohub
- "Distance to nearest hub (points)"  qgis:distancetonearesthubpoints
- "Concave hull (k-nearest neighbor)" qgis:knearestconcavehull
- "Minimum bounding geometry" qgis:minimumboundinggeometry
- "Distance matrix" qgis:distancematrix
- "Generate points (pixel centroids) along line" qgis:generatepointspixelcentroidsalongline
- "Random points along line" qgis:randompointsalongline
- "Random points in layer bounds" qgis:randompointsinlayerbounds
- "Random points inside polygons" qgis:randompointsinsidepolygons
- "Regular points" qgis:regularpoints
- "Statistics by categories" qgis:statisticsbycategories
- "Text to float" qgis:texttofloat
- "Topological coloring" qgis:topologicalcoloring
2024-09-16 08:48:01 +10:00
Harrissou Sant-anna
bb275d1188
Modeler - Show group in the algorithm dialog title 2024-08-27 18:41:52 +02:00
Nyall Dawson
626df694fa Avoid multiple doc strings copies, add comments 2024-08-17 19:59:17 +10:00
Nyall Dawson
532129abf7 Improve processing monkey patching
"forward declare" functions which will be patched when the processing
plugin starts, so that these are known and accessible during the PyQGIS
doc building. Also make these forward declared versions raise
QgsNotSupportedException, so that its clear why they aren't working
when the processing plugin hasn't started

Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/38
2024-08-17 19:59:17 +10:00