117 Commits

Author SHA1 Message Date
Médéric RIBREUX
5a3a0dab95 Remove broken algorithms and clean code 2017-12-30 17:16:16 +01:00
Médéric RIBREUX
486bcd6f24 Fix all i.* ext scripts 2017-12-29 17:13:30 +01:00
Médéric RIBREUX
14709f59f4 Fix nearly all v. ext scripts 2017-12-28 18:28:18 +01:00
Médéric RIBREUX
90bf630185 Fix all r algorithms ext scripts! 2017-12-27 20:13:05 +01:00
Médéric RIBREUX
9b6f98a31a Hidden output parameters are not used in the main command anymore 2017-12-27 12:08:21 +01:00
Médéric RIBREUX
feaecea44d Fix multiple ParameterField handling 2017-12-27 11:52:01 +01:00
Médéric RIBREUX
36311ff6af Fix multiple enum parameters handling and some ext scripts 2017-12-27 11:16:14 +01:00
Médéric RIBREUX
3fa9e3c9f8 Fix QgsProcessingParameterFile bad descriptions 2017-12-27 10:19:51 +01:00
Médéric RIBREUX
433d376c8a Fix optional None input parameters handling 2017-12-26 18:53:30 +01:00
Alexander Bruy
6f43954839 [processing] add group id to GRASS algorithms 2017-12-14 18:04:02 +02:00
Alexander Bruy
0059b2b692 [processing] remove Python 2 compatibility layer 2017-11-28 12:27:45 +02:00
Médéric RIBREUX
da90477121 Improve input detection and add new algorithms 2017-11-05 13:52:26 +01:00
Médéric RIBREUX
d10aaf4bd4 Support multiple output file raster formats:
* A new createopt textbox has been added to the parameters dialog for algorithms which exports to raster files.
* A new metaopt textbox has also been added to the Algorithm parameters dialog.
* Raster file format is detected from output filename extension.
* GdalUtils has been improved to correctly detect raster formats supported for creation.
* QFileDialog for output rasters now display only file filters for supported output raster file formats.
2017-11-05 13:18:24 +01:00
Médéric RIBREUX
aa17df1a55 * Add new GRASS 7.2 algorithms.
* Fix ParameterRange GUI.
* Fix Multiple values Enum support.
2017-11-04 18:34:25 +01:00
Médéric Ribreux
6c81895fb0 Improve GRASS provider:
- Improve GRASS detection for all OS.
- Use GRASS --exec command.
- Unified GRASS batch job method for all OS (easier to maintain).
- Handle MS-Windows codepages (for data only, if you have a username with special characters, it will not work).
- Better support for filepath normalization.
- add -m option to r.out.gdal.
2017-11-04 15:31:21 +01:00
Médéric RIBREUX
c63df209a8 Fix cz function 2017-11-04 15:31:21 +01:00
Médéric RIBREUX
74826dc1ea Support directory output via QgsProcessingParameterFolderDestination 2017-11-04 15:31:21 +01:00
Médéric RIBREUX
b46e969325 Fix indentation 2017-11-04 15:31:21 +01:00
Médéric RIBREUX
d6fb7181aa Fix layers loading... 2017-11-04 15:31:21 +01:00
Médéric RIBREUX
4b8b6a09c8 Massive conversion 2017-11-04 15:31:21 +01:00
Médéric RIBREUX
5827513c4b First work on ext mechanism factorisation 2017-11-04 15:31:21 +01:00
Médéric Ribreux
6bf8448bfb Improve cell size detection and FileDestinationOutput (but not perfect) 2017-11-04 15:31:21 +01:00
Médéric Ribreux
f32bba4456 (WIP) better cellsize suport 2017-11-04 15:31:21 +01:00
Médéric Ribreux
f0da7b0186 Improve MultiLayers and FileDestination support 2017-11-04 15:31:21 +01:00
Médéric Ribreux
9a52e344fd First working raster algorithm 2017-11-04 15:31:21 +01:00
Médéric Ribreux
483a4b9e8a First functional version (for single vector inputs/outputs) 2017-11-04 15:31:21 +01:00
Médéric Ribreux
be78153427 (WIP) Grass algorithms can be opened and inputs are treated 2017-11-04 15:31:21 +01:00
Médéric RIBREUX
a676db2c0f Handle parameters and update description files (WIP) 2017-11-04 15:31:21 +01:00
Médéric Ribreux
733218caca (WIP) enable Grass7 provider and start to work on QgsProcessing new framework 2017-11-04 15:31:21 +01:00
Nyall Dawson
a658135693 Remove global processing use selection setting 2017-06-06 07:41:20 +10:00
Nyall Dawson
937347582c Indentation 2017-06-06 07:41:20 +10:00
Nyall Dawson
87fc31d6de Adapt more python code to new API 2017-06-06 07:41:19 +10:00
Nyall Dawson
ba03f1a13a Move minimum layer extent calculation to c++ 2017-06-06 07:41:19 +10:00
Nyall Dawson
189f804714 Adapt more code to c++ API 2017-06-06 07:41:19 +10:00
Nyall Dawson
ef59d0c454 Port parameter checking to c++ 2017-06-06 07:41:19 +10:00
Nyall Dawson
4cb7d18b1c Push parameters into processAlgorithm and related functions 2017-06-06 07:41:19 +10:00
Nyall Dawson
2d1579d28a Port algorithm help to QgsProcessingAlgorithm 2017-06-06 07:41:19 +10:00
Nyall Dawson
fac8ca4d4f Move execution check to QgsProcessingAlgorithm 2017-06-06 07:41:19 +10:00
Nyall Dawson
03e40f7497 [processing] Remove all remaining algorithm copies
Algorithms are no longer copied - just a single const instance
of each algorithm is used
2017-06-06 07:41:19 +10:00
Nyall Dawson
49c688bbe4 Fix use of QgsProcessingUtils.mapLayerFromString 2017-05-02 13:40:49 +10:00
Nyall Dawson
f84d703234 Add method QgsProcessingUtils::mapLayerFromString
Algorithms and other processing code should use this method
(instead of dataobjects.getLayerFromString) to
retrieve layers from a string, as it considers the processing
context and allows resolving strings to temporarily stored layers.

This permits processing models to function correctly when
intermediate results are stored as memory layers. Subsequent
model algorithms can then access these temporary layers as inputs.
All temporary layers will be removed when the context object
is destroyed after the model algorithm is run.
2017-05-02 12:33:04 +10:00
Alexander Bruy
3f669140d5 [processing] fix GRASS commands logging 2017-04-30 14:31:52 +03:00
Nyall Dawson
e9f13d1ea3 Just use standard QgsMessageLog functionality instead of a dedicated
method for processing
2017-04-26 13:57:06 +10:00
Nyall Dawson
1394c28d13 [processing] Move some log handling to c++ class 2017-04-26 13:56:29 +10:00
Nyall Dawson
dd4f530cfb [processing] Pass context argument to processAlgorithm 2017-04-26 12:53:35 +10:00
Nyall Dawson
ff32054da6 Fix some breakage 2017-04-07 13:21:28 +10:00
Nyall Dawson
2a1a71574a Move algorithm id (previously commandLineName) to QgsProcessingAlgorithm 2017-04-07 13:21:28 +10:00
Nyall Dawson
b3142a0baf Move provider algorithm handling to QgsProcessingProvider 2017-04-07 13:21:28 +10:00
Nyall Dawson
377b181c4e Port more processing dataobjects methods to c++
Also
- simplify and add tests
- remove large memory leak (persistant store of all non-project layers)
- remove broken support for direct loading postgres/virtual layers
by string (Python version was very broken and would never match
a postgres/virtual layer)
2017-04-05 19:50:46 +10:00
Nyall Dawson
a0bd464232 Use formatted name for algorithm names
Avoids conversion of names later and gives clearer separation
between visible names and internal names
2017-04-03 21:17:45 +10:00