63 Commits

Author SHA1 Message Date
Tim Sutton
f6acf37637
Fix processing errors on startup and execution on MacOS (#5769) 2017-11-30 07:17:12 +02:00
Alexander Bruy
0059b2b692 [processing] remove Python 2 compatibility layer 2017-11-28 12:27:45 +02:00
Alexander Bruy
03e4756d26 [processing] don't throw error if GRASS not found on Mac (fix #17443) 2017-11-23 16:16:08 +02:00
Alexander Bruy
6063c83edf [processing] detect GRASS 7.4 on Mac 2017-11-23 16:16:08 +02:00
Giovanni Manghi
618ada7fc1 add support for GRASS 7.4 2017-11-15 14:39:58 +00:00
Juergen E. Fischer
150a64e9ac fix warnings and translation strings 2017-11-12 21:57:15 +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
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
65f483d613 Modify Grass7 detection 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
be78153427 (WIP) Grass algorithms can be opened and inputs are treated 2017-11-04 15:31:21 +01:00
Nyall Dawson
a87ca09e34 Move some temp file/folder utils to c++ 2017-06-22 06:48:25 +10: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
1bc3b28f94 Fix processing error when grass7 not available 2017-04-07 13:21:28 +10:00
Alexander Bruy
1a46ddbf28 [processing][API] rename runalg() and runandload() to improve
readability
2017-03-22 19:17:12 +02:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
01004d9f83 identation fix 2017-01-25 02:43:25 +01:00
Juergen E. Fischer
099e7a77f2 [processing] find grass >=7.0 2017-01-25 01:32:39 +01:00
Nyall Dawson
ede452be85 [processing] Port feedback object to c++
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
volaya
8ea5bc39b4 Merge pull request #3971 from alexbruy/processing-help
[processing] configurable help files location for GDAL and GRASS providers
2017-01-10 09:55:58 +01:00
Juergen E. Fischer
378212cf42 indentation update 2017-01-10 09:05:42 +01:00
Alexander Bruy
7cda002ba2 [processing] configurable help files location for GDAL and GRASS providers 2017-01-09 16:31:13 +02:00
Alexander Bruy
ce9c08f3f6 [processing] rename GdalOgr provider to Gdal provider
Show version numbers in providers descriptions
2016-12-31 09:09:07 +02:00
Médéric RIBREUX
c3ad30da34 Fix subprocess unclosed file 2016-11-28 09:54:27 +01:00
nirvn
4a4ffa4c1b [processing] fix grass/grass7 installation check 2016-11-15 09:27:22 +07:00
Alexander Bruy
85d1fd720b [processing] cleanup test data 2016-11-12 13:31:44 +02:00
Nyall Dawson
0484769b7d [processing] Use subprocess.DEVNULL instead of open(os.devnull) 2016-11-07 12:13:18 +10:00
Nyall Dawson
6a99017bf0 [processing] Use with ... when opening files 2016-11-07 11:36:38 +10:00
Alexander Bruy
d03d2069b9 [processing] correct GRASS 7 detection on Mac (fix #15645)
follow up e1ff6e896a
2016-10-04 17:08:18 +03:00
rldhont
37951baf45 [Processing] Uses os.path.join instead of + os.sep + (#3552) 2016-10-01 08:35:56 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Matthias Kuhn
f6710b0528 python3 fixes 2016-07-03 14:54:26 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Larry Shaffer
b3a0d9d146 Revert "[processing] Extra check to ensure GRASS folder setting not already None"
This reverts commit 36a820e51657bf0c3069e1fd287d6b452a3cd1e0.
2016-04-25 21:27:45 -06:00
Larry Shaffer
36a820e516 [processing] Extra check to ensure GRASS folder setting not already None
- Update to 5131e93; not sure why ProcessingConfig.getSetting returning
  None sets folder = None instead of '' (on the previous line on Win)
2016-04-25 18:52:44 -06:00
Alexander Bruy
e873540d14 [processing] fix path handling (fix #14432) 2016-04-11 18:52:27 +03:00
Alexander Bruy
525194dc0b [processing] don't ask for MSYS folder for GRASS7 (fix #14431) 2016-04-10 11:31:46 +03:00
volaya
5131e93e1f [processing] extra checks to avoid issues with previous versions values 2016-04-05 09:55:41 +02:00
Juergen E. Fischer
3bfe2f1467 really fix ab5f06b (ouch again - machine mixup) 2016-03-31 23:03:03 +02:00
Juergen E. Fischer
c6117e0d32 fix ab5f06b (ouch) 2016-03-31 22:57:24 +02:00
Juergen E. Fischer
ab5f06b9fb processing: base grass path on OSGEO4W_ROOT where available 2016-03-31 22:51:56 +02:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Giovanni Manghi
e1ff6e896a processing fix GRASS7 detection on osx: courtesy Martin Laloux 2016-03-06 10:32:06 +00:00
volaya
99b9a495b8 [processing] fixed autodetection of grass folder
Fix provided by Stefan Blumentrath
2016-01-26 19:43:06 +01:00
Alexander Bruy
75926f52aa [processing] include GRASS path in the error message to make it more informative (fix #13188) 2016-01-18 12:17:55 +02:00
volaya
87d8a12e79 [processing] GRASS: prevent exception when deleting GISBASE env variable 2015-10-01 09:57:45 +02:00
Markus Neteler
424d3d337e Update Grass7Utils.py
In batchjob, use GRASS_MESSAGE_FORMAT=plain
2015-08-20 10:36:22 +02:00
Juergen E. Fischer
d2282a77c7 processing: when using batch jobs remove GISBASE from environment when calling GRASS (fixes #13072) 2015-08-20 01:10:43 +02:00
Matthias Kuhn
9fc1b48bf3 Replace str() with unicode() and some PEP 8 2015-08-16 20:58:43 +02:00