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
Nicolas Godet
5c803b120e
Report GRASS warnings with pushWarning instead of reportError and check translated warning or error
2024-10-25 11:52:18 +10:00
mazano
6ca60b7502
[ogr2ogr] Fix promote to multipart logic and add makevalid option ( #58440 )
2024-10-18 07:45:43 +10:00
gisn8
45d40ad071
Set raise error to DbError
...
Thanks! Much more user-friendly.
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-10-18 06:47:16 +10:00
gisn8
92fcb86be6
Fix: clean up whitespace and formatting issues caught by Flake8
2024-10-18 06:47:16 +10:00
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