Nyall Dawson
10789b12fc
Fix comparison sort order for points to path test
2021-01-20 09:08:35 +10:00
uclaros
9a2e9001a2
Fix failing test
...
Output feature order cannot be made backwards compatible so we're forced to modify the test to pass.
2021-01-19 05:09:48 +10:00
uclaros
43e673a143
Complete points to paths port
2021-01-19 05:09:48 +10:00
Nyall Dawson
814b65ba1c
Cleaner approach -- create expression contexts in modeler parameter
...
definition dialogs using expression context and processing context
generators
2021-01-14 16:15:06 +10:00
nirvn
8a85cae92c
[processing] Add 'thiessen' tag to QGIS' voronoi polygons algorithm
2021-01-13 15:42:06 +10:00
Julien Cabieces
579d55f286
[OTB] Fixes empty string parameters ( #40957 )
2021-01-13 11:16:18 +10:00
Nyall Dawson
3feda231b8
Update comment
2021-01-12 13:47:19 +10:00
Nyall Dawson
9cf44e4a66
Loosen grass test crs requirement to allow passing on proj < 6
2021-01-12 13:47:19 +10:00
Nyall Dawson
b295bd5803
[processing][grass] Export CRS definitions as WKT2 strings instead
...
of proj strings wherever possible
Because proj strings are lossy
Fixes #18596
2021-01-12 13:47:19 +10:00
Nyall Dawson
c703d81c9c
[processing] Fix exception after running algorithm in modeler
...
Fixes #40907
2021-01-12 13:38:01 +10:00
Nyall Dawson
9ee5e5646a
Update tests
2021-01-09 07:16:14 +10:00
Nyall Dawson
716e74c74a
[processing] Use correct means to escape " values in GDAL commands
2021-01-09 07:16:14 +10:00
Nyall Dawson
b14dc49c85
[processing] Catch the gdal process console progress report output
...
and show algorithm progress bars when running GDAL algorithms
2021-01-09 07:16:14 +10:00
Nyall Dawson
54ec5acf1f
[processing] GDAL algorithms can now be canceled!
...
Previously there was no way to terminate the GDAL process, so if you
accidently got some parameter values wrong it was very easy to end
up with a quasi-endless, non-cancelable gdal algorithm burning away cpu in the
background of a qgis session... ouch!
2021-01-09 07:16:14 +10:00
Nyall Dawson
50b5e563af
[processing] Use QgsBlockingProcess instead of subprocess to run GDAL algorithms
...
This gives us much more flexibility when running the process, as we can
now do things like report feedback messages directly without having
to resort to potentially unsafe event loops regardless of whether the
algorithm is run in the main or a background thread.
2021-01-09 07:16:14 +10:00
Nyall Dawson
e79922b2cc
[processing] Return log lines from GdalUtils.runGdal instead of storing
...
in a class member
The previous approach was NOT thread safe, and it's easy to avoid
2021-01-09 07:16:14 +10:00
Nyall Dawson
02f861c339
[processing] Translate some strings when running gdal algorithms
2021-01-09 07:16:14 +10:00
Julien Cabieces
5c19845d32
Keep only vector layer file path when calling an OTB algorithm
2021-01-06 07:58:17 +10:00
Julien Cabieces
454c4f6eba
Fix otbalgorithm when several band are selected
2021-01-06 07:58:17 +10:00
Julien Cabieces
52f2a4d7bc
Fix QGIS/OTB interface for field parameters
2021-01-06 07:58:17 +10:00
Julien Cabieces
bb3e1a554c
[processing][OTB] deal with parameter type Enum and Band
2021-01-06 07:58:17 +10:00
roya0045
d11d28ca3e
re-commit variable changes
2021-01-05 18:24:06 +10:00
roya0045
5920ded609
invert logic
2021-01-05 18:24:06 +10:00
roya0045
d45b6144e4
add skip kwarg
2021-01-05 18:24:06 +10:00
Alex
b3794cef32
Don't save defaults
2021-01-05 18:24:06 +10:00
Nyall Dawson
b740bf201a
[processing] Fix exception when calling "Select from Files" in batch mode
...
on a file parameter
Fixes #40705
2021-01-05 08:32:10 +10:00
Alex
b686336513
[bugfix] PTP check for output folder. ( #40488 )
...
Fixes #40486
2020-12-22 13:47:03 +10:00
Julien Cabieces
c66d36c16f
[processing][OTB] Don't remove parameter if its value is 0
2020-12-07 10:08:02 +10:00
Alex
50696f9936
[processing] fix exception when clicking help button in modeler
...
Fixes #40453
2020-12-07 09:26:17 +10:00
Alexander Bruy
7c1d29c363
override default value only when tool executed from GUI
2020-11-27 16:45:59 +02:00
Alexander Bruy
fe58d4956c
[processing] don't set any default value for optional NODATA parameter
...
in GDAL rastrize algorithm (fix #39752 ).
As this is optional parameter better to have it not set by default to
avoid unexpected conversion of valid values to nodata values.
2020-11-27 06:51:01 +02:00
Nyall Dawson
c0a579c719
Merge pull request #40223 from nyalldawson/vrt_separate
...
Don't default to placing each input file in a separate band in build vrt algorithm
2020-11-27 14:45:57 +10:00
Alexander Bruy
220cb56421
fix row number calculation when reporting errors in the Processing batch
...
mode (fix #39326 )
2020-11-26 11:27:48 +02:00
Nyall Dawson
347885b58c
Astyle
2020-11-24 13:14:08 +10:00
Nyall Dawson
b89d7fd088
[processing][gdal] Don't default to placing each input file in a separate
...
band in build vrt algorithm
Creating a multi-band vrt is much less common vs creating a mosaic
style vrt, so set the default to the most common use case
and most predictable outcome.
2020-11-24 13:11:37 +10:00
Nyall Dawson
b6ee3e66a3
[feature][processing] Add new algorithm to retain only selected fields
...
Allows users to select a list of fields to keep, and all other fields
will be dropped from the layer. Helps with making flexible models where
input datasets may have a range of different fields and you need to drop
all but a certain subset of these
2020-11-23 19:20:40 +10:00
Nyall Dawson
b07a58c028
[processing] Port delete fields algorithm to c++
...
1:1 port for speed/compile time safety, no user-facing changes
Also add tests
2020-11-23 19:20:40 +10:00
uclaros
72fea560ee
Add edit-in-place algorithms to locator fuzzy search
2020-11-15 15:02:15 +10:00
Giovanni Manghi
49f3fbded4
Fix SAGA Random Terrain tool
...
Fixes #39945
2020-11-13 05:53:56 +10:00
Andrea Giudiceandrea
40569f414e
Fix importlib util module import
...
to avoid "module 'importlib' has no attribute 'util'" error that prevent the load of user scripts in some circumstances
2020-11-12 10:18:04 +10:00
Denis Rouzaud
eddf6feb45
modernize CMakeLists.txt files
2020-11-12 07:14:46 +10:00
Vincent Cloarec
1fbba79a0f
Mesh export processes, first part : infrastructure and export vertices ( #39664 )
...
[processing] Infrastructure for QgsMeshLayer to add processing algorithms, dataset group paramater and dataset time parameter to allow the user to easily choose a dataset.
2020-11-03 06:05:28 +01:00
Alexander Bruy
bdce38bc0b
drop useless test
2020-11-02 09:47:29 +02:00
Alexander Bruy
9414e3f54a
test for DXF export algorithm
2020-11-02 09:47:29 +02:00
nirvn
f36701c4f8
[processing] Fix add (single) row tool button broken
2020-11-02 07:47:39 +10:00
Andrea Giudiceandrea
fa1b704a5c
[processing] fix method name in GUI wrapper
2020-11-02 07:44:51 +10:00
Alexander Bruy
554ce82c32
[processing] test for newly added parameter in Clip Raster by Extent
...
(followup 41dc20c2c1)
2020-10-28 18:35:29 +02:00
Alexander Bruy
41dc20c2c1
Merge pull request #38841 from rldhont/processing-gdal-clipbyextent
...
[Processing][GDAL] Clip Raster by extent - override CRS
2020-10-28 18:18:14 +02:00
Julien Cabieces
912dd770c0
[processing] Add missing parameter when reading QgsProcessingParameterField from string
2020-10-28 13:39:26 +10:00
Alexander Bruy
bfdb99fe65
[processing] correctly escape parentheses in GDAL command ( fix #39525 )
2020-10-28 06:07:27 +10:00