6044 Commits

Author SHA1 Message Date
Matthias Kuhn
d41e8e1d40 Rename count to __count 2020-09-15 06:48:37 +10:00
Matthias Kuhn
d2c60cca30 Add count to "tradition run in place execution" 2020-09-15 06:48:37 +10:00
Matthias Kuhn
656c533fa2 Show number of features affected by in place editing
Fixes #38680
2020-09-15 06:48:37 +10:00
Henry Walshaw
1312cfe599 Add square brackets around the saved expression
When saving a raster expression the generated expression didn't contain square brackets around the letters used for band identifiers. Sticking with the NDVI example:

```
("NIR@1" - "Red@1") / ("NIR@1" + "Red@1")
```

becomes

```
(a - b) / (a + b)
```

Due to the way the expression is parsed these would not be interactie parameters for the user to set as the parameters requre square brackets around the layer tags. This change simply updates the string replacement to include the square brackets so you would get instead:

```
([a] - [b]) / ([a] + [b])
```
2020-09-14 15:58:38 +10:00
Matthias Kuhn
d5350c618c
Merge pull request #37602 from rduivenvoorde/console_base_class
Add/use simple BaseClass to Python Console classes
2020-09-12 08:53:15 +02:00
Matthias Kuhn
3bea2e702e
Merge pull request #38695 from suricactus/alg_fieldcalc_cpp_simple
Translate qgis::fieldcalculator to C++
2020-09-11 15:41:24 +02:00
Ivan Ivanov
bd81e2f1ff Add tests and fix backwards compatibility 2020-09-11 12:27:41 +03:00
Ivan Ivanov
d32369f5ce Translate qgis::fieldcalculator to C++ (simplistic UI) 2020-09-11 10:55:12 +03:00
vcloarec
07714f3931 port alg to c++
and minor fixes
2020-09-10 14:03:11 -04:00
vcloarec
a95a40bfdd fixe typo and doc 2020-09-10 14:03:11 -04:00
vcloarec
d2f4c40f8a TIN Mesh creation 2020-09-10 14:03:11 -04:00
Matthias Kuhn
7fb1740725 Add test 2020-09-09 21:21:34 +02:00
Mathieu Pellerin
af81515831
[processing] Add a cluster size attribute to the kmean cluster algorithm 2020-08-27 13:08:42 +07:00
Mathieu Pellerin
5e25c06de5
[processing] Add a cluster size attribute to the dbscan cluster algorithm 2020-08-26 08:48:57 +07:00
DiGro
4aefe0d65b Typo corrected. Added one space
Line 120 :  "FieldPyculator code execute error.Global code block can't be executed!\n{0}\n{1}" " should probably be
                  "FieldPyculator code execute error. Global code block can't be executed!\n{0}\n{1}" "
Added one space bewteen "error." and "Gobal"
2020-08-20 06:59:48 +10:00
Alexander Bruy
476ac55a60
Merge pull request #38312 from alexbruy/ux-fixes
Various UX fixes
2020-08-17 10:51:29 +03:00
nirvn
d827faa2c8 [processing] Upgrade the sample raster value algorithm to native C++ 2020-08-17 12:59:34 +07:00
Alexander Bruy
de7de1e28e raise an assert if algorithm which should be added to the toolbar is not found 2020-08-17 08:44:41 +03:00
MrChebur
a9a850caf2
Add files via upload 2020-08-16 16:25:21 +05:00
MrChebur
f5e1abfe0f
Update qgis_algorithm_tests2.yaml 2020-08-16 16:24:28 +05:00
Alexander Bruy
1a76a0963e add Select By Location to the Selection toolbar (fix #20350) 2020-08-16 12:15:22 +03:00
Alexander Bruy
bacf779236 pick Vector menu title from the main QGIS window instead of using own
translation (fix #35028, #28474)
2020-08-16 12:15:22 +03:00
Matthias Kuhn
6124b5c01f
Apply suggestions from code review 2020-08-15 18:59:50 +02:00
Matthias Kuhn
1c6a0a8f6f
Apply suggestions from code review 2020-08-15 18:59:28 +02:00
MrChebur
92914c5339
Apply suggestions from code review
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2020-08-15 21:56:43 +05:00
Matthias Kuhn
a3c8d6dc29
Update python/plugins/processing/algs/qgis/PointsToPaths.py 2020-08-15 18:55:54 +02:00
MrChebur
e5246da109
Update PointsToPaths.py
spaces deleted
2020-08-15 21:50:47 +05:00
MrChebur
660703d696
Apply suggestions from code review
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2020-08-15 21:31:53 +05:00
MrChebur
be613409b4
Update PointsToPaths.py
"line" is replaced by "path"
2020-08-15 21:27:30 +05:00
MrChebur
a30635d71e
Update PointsToPaths.py
Returned missing spaces
2020-08-15 21:20:51 +05:00
MrChebur
dcc7ff921a
New option added: "Close line"
Now this algorithm can check and close the line if necessary.
2020-08-14 18:08:25 +05:00
nirvn
8fe4d3e793 [processing] Allow merging layers with mixed attribute type 2020-08-11 15:03:38 +07:00
vcloarec
a4c8f33e09 fix processing test and remove invisible char 2020-08-10 08:28:24 +10:00
Matthias Kuhn
2b3b88c515
Merge pull request #37595 from gacarrillor/pr_processing_results_group
Load processing results to layer group (optional)
2020-08-08 09:09:00 +02:00
Sylvain POULAIN
78cea71e00 Missing options for r.neighbors in processing
All options added : https://grass.osgeo.org/grass78/manuals/r.neighbors.html
2020-08-05 06:28:12 +10:00
Andrea Giudiceandrea
ef11ad32b1 Don't load GRASS algs if GRASS is not installed
Fixes qgis_process that incorrectly lists GRASS algorithms among the available processing algs even when GRASS is not installed in the system
2020-08-04 14:51:34 +10:00
rldhont
f5b819fc4c [Tests] Check that GDAL Assign Projection updates QgsRasterLayer info 2020-07-31 14:32:48 +02:00
rldhont
6c44073ff0 [Processing] Fix GDAL Assign Projection: update QgsRasterLayer crs
Even if the projection is assign, the QgsRasterLayer and the QgsRasterDataProvider was not updated.

The fix reloads the QgsRasterDataProvider's data and updates the QgsRasterLayer's crs.

Fixed #37920
2020-07-31 14:32:48 +02:00
Nyall Dawson
e19f27d289 [processing] Fix hidden column names show in batch processing dialog,
throwing the table contents out of sync with the headers

Also make code a bit more robust

Fixes #38054
2020-07-31 16:03:28 +10:00
Nyall Dawson
fd19167c0a [processing] Show some more warnings when spatial indexes are missing but desirable 2020-07-31 03:07:07 +10:00
Nyall Dawson
68c7cfb65f Use correct coordinate transform context in Raster Calculator algorithm 2020-07-30 08:26:40 +10:00
Nyall Dawson
0a556a8161 Gracefully handle no project available in context in algorithms
where a project is only required in some circumstances
2020-07-30 08:26:40 +10:00
Nyall Dawson
d57a638ec4 Add a processing algorithm flag to indicate that an algorithm requires
a valid project to be set in the context in order to execute

And flag a bunch of algorithms which require this
2020-07-30 08:26:40 +10:00
Nyall Dawson
687398415b [processing] Flag a bunch of algorithms to hide them from qgis_process 2020-07-30 08:26:40 +10:00
Nyall Dawson
b40bfbbf4c Use direct getters for ellipsoid/units in processing algs
Refs #37988
2020-07-30 08:26:40 +10:00
Nyall Dawson
19504adf55 Allow running "Add x/y fields" in place 2020-07-28 14:18:20 +10:00
Nyall Dawson
2104ae613a [processing] Add mechanism for algorithms to alter their core behavior
(e.g. parameters) when they are run in the "edit in-place" mode

This allows algorithms to dynamically adapt their behavior to make them compatible
with in-place mode. Previously, some useful algorithms could not be
run in-place because they alter a layer's structure (e.g. adding new
fields).

Now, these algorithms have a means to detect that they are being
run in-place and change their input parameters accordingly. E.g.
an algorithm which usually adds new fields to store calculated
values (such as "add xy fields to layer") could instead expose
field parameter choices to ask the user to pick from existing
fields in which to store the calculated values, thereby avoiding
the need to change the table structure and making them eligable
for running in-place mode.

Note that this needs to be handled algorithm-by-algorithm, it's
not automatic! It's just the raw api to allow this...
2020-07-28 14:18:20 +10:00
Nyall Dawson
6e2d1023f2 [processing] Fix loading batch settings with date/time values
Fixes #37838
2020-07-27 14:19:49 +10:00
Nyall Dawson
95bd7b296b [feature][processing] New algorithm "Align points to features"
This algorithm calculates the rotation required to align point features
with their nearest feature from another reference layer. A new field is
added to the output layer which is filled with the angle (in degrees,
clockwise) to the nearest reference feature.

Optionally, the output layer's symbology can be set to automatically
use the calculated rotation field to rotate marker symbols.

If desired, a maximum distance to use when aligning points can be set,
to avoid aligning isolated points to distant features.

Designed for use cases like aligning building point symbols to follow
the nearest road direction!
2020-07-26 09:56:46 +10:00
nirvn
aa05f7641a [processing] Fix python error when attempting to re-open generate XYZ tiles algorithm from the history dialog 2020-07-24 13:33:11 +07:00