1527 Commits

Author SHA1 Message Date
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
Ivan Ivanov
d32369f5ce Translate qgis::fieldcalculator to C++ (simplistic UI) 2020-09-11 10:55:12 +03: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
nirvn
d827faa2c8 [processing] Upgrade the sample raster value algorithm to native C++ 2020-08-17 12:59:34 +07: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
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
Peter Petrik
d9f18ccb9c
Fix spelling (#37849)
fix the spelling errors
2020-07-21 12:51:48 +02:00
Nyall Dawson
48c465e9b5 [processing] Port "Aggregate" algorithm to c++
No more silly breakages!

Refs #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
d5a340f886 [processing] Port aggregates widget wrapper to c++
And add a TON of tests

Fixes #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
4fdfa949cf [processing] Start porting Aggregates parameters to C++
Port parameter type to c++
2020-06-03 15:17:56 +10:00
Nyall Dawson
b4c3acd447 Remove unused file 2020-06-02 08:43:54 +10:00
Nyall Dawson
f0bb647c61 [processing] Add a stable way to get processing widgets to stretch vertically 2020-06-02 08:43:54 +10:00
Nyall Dawson
146094f6b2 [processing] Port field mapper wrapper and widget to c++
Fixes #36706
2020-06-02 08:43:54 +10:00
Nyall Dawson
dbe9aa0902 [processing] Port Refactor Fields to c++
Having this core algorithm in Python has proved just too unreliable

Refs #36706, refs #36843
2020-06-02 08:43:54 +10:00
Nyall Dawson
191e362ed4 Move FieldMapper parameter type to c++
Fixes sip "forgeting" about Python overrides for the type definition

Refs #36706
2020-06-02 08:43:54 +10:00
Alexander Bruy
072c76747c fix calculating raster size in the TIN and IDW algorithms to maintain
accurate pixel size (fix #31970)
2020-05-29 11:26:22 +03:00
Alexander Bruy
5d03f2bb99 check return value from the QgsRelief and notify user (fix #17452) 2020-05-26 08:37:13 +03:00
Nyall Dawson
5cc0f0964b Fix resetting fields in Refactor Fields algorithm dialog 2020-05-22 07:14:14 +10:00
Nyall Dawson
169ca650fe [processing] Fix exception when changing layer in Refactor Fields algorithm
Fixes #36582
2020-05-22 07:14:14 +10:00
Nyall Dawson
c6690c2ee8 Create runtime profiles for various startup/provider initialisation
tasks in processing

Attempting to diagnose occasional very slow QGIS startup times
2020-05-19 04:35:34 +10:00
sshuair
b32d68ef34
fix translate text spell error 2020-05-18 13:55:44 +08:00
Alexander Bruy
8591950349 [processing] port Snap Geometries algorithm to C++ 2020-05-12 13:40:35 +03:00
Alexander Bruy
b4a52d38c2 [processing] port Polygonize algorithm to C++ 2020-05-11 15:19:36 +03:00
Alexander Bruy
c0e8178366 [processing] port SpatiaLite Execute SQL algorithm to C++ 2020-05-11 13:11:28 +03:00
Alexander Bruy
e91b6c615e [processing] port PostGIS Execute SQL algorithm to C++ 2020-05-11 12:35:05 +03:00
Alexander Bruy
072d27dfd8 [processing] port Split vector layer algorithm to C++ 2020-05-11 12:17:50 +03:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Alexander Bruy
4d5a8a391c [processing] rename Graphics group to Plots as this better reflects
purpose of the algorithms inside it (fix #33310)
2020-05-07 03:31:22 +10:00
Matthias Kuhn
841328e0a7 Remove unused code 2020-05-06 00:06:23 +02:00
Matthias Kuhn
a5f557f085 Fix escaping issues 2020-05-05 23:22:12 +02:00
Matthias Kuhn
9eae0caa09 Add missing imports 2020-05-05 22:39:16 +02:00
Matthias Kuhn
a7e0831dcf Code style 2020-05-05 22:38:37 +02:00
Juergen E. Fischer
2e7bebcf20 add code_layout test to verify that UIs either have a non-default window title or are not marked for translation 2020-04-24 16:30:45 +02:00
Alessandro Pasotti
a21800cf3e Adress PR review + model test + QgsExpression -> QString 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
4a33c75bc9 Mapping panel: fix initial loading of source fields 2020-04-03 21:21:14 +10:00
Alessandro Pasotti
e1044d87f1 Use QgsFieldMappingWigdet in processing UI 2020-04-03 21:21:14 +10:00