8871 Commits

Author SHA1 Message Date
gisn8
cad4759212 Handle invalid view names with more than one period
I've updated the code as recommended and added an error message should there there be too many periods. Thanks for the suggestion!
2024-10-18 06:47:16 +10:00
gisn8
70e9694a12 Addressing Issue #35767 to allow for view creation into specified schema from [ Create a view ] in DBManager 2024-10-18 06:47:16 +10:00
Nyall Dawson
2c34056199 pyqt5_to_pyqt6.py run 2024-10-17 17:58:49 +10:00
Tom Kralidis
afb31e66a5 do not translate log messages 2024-10-03 12:40:51 +10:00
Tom Kralidis
e9695d8007 update string translation 2024-10-03 12:40:51 +10:00
Tom Kralidis
e421f08331 add default 2024-10-03 12:40:51 +10:00
Tom Kralidis
f0d9167455 add default 2024-10-03 12:40:51 +10:00
Tom Kralidis
ee2c16c50b MetaSearch: add logging 2024-10-03 12:40:51 +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
Julien Cabieces
b264c34245 fix(ColorProject): Add new methods in sql_dictionary 2024-10-01 14:03:55 +10:00
Julien Cabieces
6c2c9b7750 feat(Expression): Add project_color_object function
Which contrary to project_color doesn't return a string
representation there is no rgb conversion involved
2024-10-01 14:03:55 +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
Andrea Giudiceandrea
5a70c3c1b4 [processing][grass] Make some strings translatable 2024-09-11 05:59:12 +10:00
Jeroen Ticheler
99e9d57dfd
Update search_backend.py (#58621)
Change the request parameter name to offset
2024-09-09 15:03:21 -04:00
Björn
6aeda2a29e [metasearch] Fix missing import
fix https://github.com/qgis/QGIS/issues/47823
2024-09-05 16:49:52 +10:00
Harrissou Sant-anna
bb275d1188
Modeler - Show group in the algorithm dialog title 2024-08-27 18:41:52 +02:00
pathmapper
4de4f7c3bc Fix deprecation warning 2024-08-23 06:11:10 +10: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
Mathieu Pellerin
26b7c1ed7d [processing] Fix script editor dialog flagging opened files as immediately modified 2024-08-16 15:05:37 +07:00
Mathieu Pellerin
26308050c4 [processing] Fix script editor dialog wrongly jumping back to line 1 and setting changed to true after saving file 2024-08-16 14:53:53 +07:00
Andrea Giudiceandrea
b80bd0afa0 [processing][grass] Fix r.colors (color or rules or raster parameter)
Allow to use either the color parameter or the rules parameter or the raster parameter
2024-08-07 13:30:38 +10:00
Björn
38e955291a [metasearch] Fix load connections 2024-08-05 08:29:45 +10:00
pathmapper
0ab1197200 [metasearch] Improve empty field handling 2024-07-21 08:44:05 +10:00
pathmapper
c2660e273a Add additionally scheme / protocol where appropriate 2024-07-16 08:29:34 +10:00
pathmapper
7a8e20d572 [metasearch] Consider also name and description for link text
They should be more informative than scheme, protocol or the static string "Access Link".
2024-07-16 08:29:34 +10:00
Nyall Dawson
a42fdd8f68 Update python/plugins/grassprovider/grass_provider.py
Co-authored-by: Alexander Bruy <alexander.bruy@gmail.com>
2024-07-16 04:08:53 +10:00
Nyall Dawson
eb66f88ac9 Update python/plugins/grassprovider/grass_provider.py
Co-authored-by: Loïc Bartoletti <lbartoletti@users.noreply.github.com>
2024-07-16 04:08:53 +10:00
Nyall Dawson
c9d0d29d69 Fix comment grammar 2024-07-16 04:08:53 +10:00
Nyall Dawson
b9f6293bc7 [grass] Drop custom defaultVectorFileExtension implementation
This fixes the GRASS provider ignoring the "default output
vector layer extension" setting for processing. The override
in the grass provider is NOT required as the base class method
already applies the logic for falling back to shp when gpkg
is not available (which was added here in 2e92dabd), and
also correctly respects the default format setting.

Fixes #43988
2024-07-16 04:08:53 +10:00
Nyall Dawson
7c0c56b96b Add flag to a few more algorithms 2024-07-15 14:33:21 +10:00
Nyall Dawson
b0aab23d0f [grass] Ensure vector inputs respect layer filters
Fixes #55155
2024-07-13 05:00:14 +10:00
Nyall Dawson
495a193036 Show GRASS version info in Processing logs
Fixes #55163
2024-07-12 22:18:26 +10:00
Andrea Giudiceandrea
5f85a82caa [processing][feature] Add tests for gdal:ogrinfo and gdal:ogrinfojson 2024-07-11 08:58:22 +10:00
Andrea Giudiceandrea
3d8a7a7a80 [processing][feature] Enhance gdal:ogrinfo - Add gdal:ogrinfojson 2024-07-11 08:58:22 +10:00
uclaros
22895e6b6f Allow postgresraster layers as gdal processing tools input 2024-07-11 08:37:02 +10:00
Alexander Bruy
3ab7ace523
Merge pull request #58027 from nyalldawson/grass_inputs
Allow running processing tools on grass vector layers
2024-07-09 08:54:57 +01:00
Nyall Dawson
4c2983189f
When an OGR algorithm is run on a GRASS provider vector layer,
export the layer to an OGR compatible source first

Use the same logic we use eg for auto-exporting memory layers
so that GDAL tools "just work" with GRASS provider vector
layers
2024-07-09 09:53:52 +10:00
Nyall Dawson
ace84affb6
Don't try to translate boolean object
Fix #58025
2024-07-09 08:42:11 +10:00
Alexander Bruy
5e53e183a5 address review comments 2024-07-05 05:18:25 +10:00