2904 Commits

Author SHA1 Message Date
nirvn
5e0fd15570 [FEATURE][processing] Add concatenate_unique support to the aggregate alg 2019-04-05 12:01:06 +07:00
Juergen E. Fischer
f1dbcc3c53 processing: fix grass' r.quantile parameter (fixes #21751) 2019-04-04 16:46:37 +02:00
Nyall Dawson
39a255c1b9 [processing] Use null instead of nan for invalid stat values in join by location summary 2019-04-02 06:17:56 +10:00
Nyall Dawson
7bf9279a53 [processing] Fix invalid reprojection in join by location (summary) 2019-04-02 06:17:56 +10:00
volaya
165ab8b25f [processing] do not export input sdat files 2019-03-30 11:02:25 +10:00
Nyall Dawson
f5a3485eae Fix some Python warnings, avoid accidently hiding all deprecation warnings 2019-03-28 11:47:23 +10:00
Nyall Dawson
ac651ee0d9 Followup 8d51a693, fix broken plugins 2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1 missing changes of QgsMapLayer::Type => QgsMapLayerType 2019-03-26 14:09:19 -05:00
Juergen E. Fischer
0c23e94a29 fix translation string 2019-03-23 20:53:31 +01:00
Víctor Olaya
e0a990d997 [processing] Add 'call' statements to SAGA batch file 2019-03-22 12:15:50 +10:00
Giovanni Manghi
10a542ebdf fixes GRASS r.mapcalc tool 2019-03-22 07:29:53 +10:00
Rashad Kanavath
91d430a0cb fix travis code_layout test 2019-03-21 04:44:59 +10:00
Rashad Kanavath
0b86110ccd report warnings as non fatal errors through Feedback 2019-03-21 04:44:59 +10:00
Rashad Kanavath
c763b9229b fix #21373 #21374: handle update optional status based on user-input
Parameters are marked required in descriptor file for certian
applications but they are only required if a parent parameter has a
"certain" value. So initial idea was to make all of those parameters
optional from OTB part. So that qgis can work correctly and was a easy
fix. But.. we (me and Antonie) decided not to take that route and
found a better fix.

`OtbParameterChoice` and its wrapper will update optional status of
all sub-parameters depending on the value of a choice parameter.

A test has been added to check this issue and will be available in
next commit.
2019-03-21 04:44:59 +10:00
Rashad Kanavath
f1cc8aa108 bug: check for empty string in parameter values 2019-03-21 04:44:59 +10:00
Rashad Kanavath
d3a1c65368 Remove OtbSettings class and put constants for key names in OtbUtils 2019-03-21 04:44:59 +10:00
Rashad Kanavath
07d17a0f17 This commits fixes encoding issue on windows.
getWindowsCodePage is taken from Grass7Utils.py

Instead of writing a cli_file at startup, provider now pass all
required env_variables directly to subprocess.popen. This has known to
cause issues when handling with windows path names. subprocess.Popen
handles it correctly depending on platform

Logging of output from otbalgorithm and updating progress bar is
slightly updated.
Algoirthm is now launched directly using otbApplicationLauncherCommandLine
`encoding` (on windows) and env arguments passed to subprocess is
logged in QgsMessageLog
2019-03-21 04:44:59 +10:00
Nyall Dawson
a38e9e66fc [processing] Fix layerName= suffix is incorrectly passed to SAGA algorithms
Fixes #21569
2019-03-18 18:24:02 +10:00
Nyall Dawson
95930ed68c [processing] Fix IDW parameter value creation 2019-03-15 08:38:01 +10:00
Nyall Dawson
c24f51ece8 [processing] Fix exception in IDW interpolation
Fixes #21578
2019-03-15 08:38:01 +10:00
Etienne Trimaille
fa843f8705 drop old processing provider example which is not compatible QGIS 3 2019-03-11 09:38:23 +10:00
Giovanni Manghi
7aa7248b97 Better GRASS r.series description to help workaround a limitation of Processing 2019-03-11 09:22:02 +10:00
Alexander Bruy
8b621b6997 [feature][processing] expose GDAL pansharpening tool in the Processing 2019-03-11 08:48:02 +10:00
Matthias Kuhn
7ceb97aec6
Merge pull request #9456 from Gustry/pyqt
replace some PyQt5 to qgis.PyQt
2019-03-10 12:08:07 +01:00
Etienne Trimaille
2076ca4fe0
replace some PyQt5 to qgis.PyQt 2019-03-09 22:45:51 -04:00
Giovanni Manghi
78cc5b2bf5 Fixes/improves the GDAL clip by mask layer tool: removes a an option (-te) that does not make sense for the clip by mask, and adds the option to allow choose the output resolution 2019-03-09 11:46:26 +00:00
Nyall Dawson
cccf974211 [processing] Port enum widget wrapper to new API
Fixes:
- enum parameters set to "allow multiple" only allow a single
value selection when used in modeler
- optional enum parameters cannot be set to no value when
used outside of modeler

Fixes #20406
2019-03-08 15:46:59 +10:00
lbartoletti
f87c447d34 Add FreeBSD for SagaUtils 2019-03-07 08:48:23 +10:00
Juergen E. Fischer
be6c0738a4 fix 9f1fcb72d4 2019-03-05 23:14:43 +01:00
Nyall Dawson
8bef710cea [processing][saga] Difference and symmetric difference algorithms have known issues in SAGA LTR 2019-03-06 06:33:06 +10:00
Juergen E. Fischer
9f1fcb72d4 processing: enable translation for parameter descriptions 2019-03-05 20:16:23 +01:00
Nyall Dawson
5fca18c4ae [processing][GRASS] Fix exceptions on Python < 3.6
Fixes #21173
2019-03-05 17:09:36 +10:00
Nyall Dawson
2ff0d5919c [processing] Avoid more deprecation warnings from external libraries 2019-03-05 14:44:02 +10:00
Nyall Dawson
ce5faa1524 [processing] Force regeneration of primary key for more algorithms
Fixes #21445
2019-03-05 07:06:30 +10:00
Nyall Dawson
9d509e7f4c [processing] Fix outdated Find Projection docs
Fixes #21404
2019-03-05 07:06:08 +10:00
AnikaBettge
972e7a474d Fix default setting for ew_step and ns_step parameter
Fix default setting for ew_step and ns_step parameter which must be "none" rather than 1.5 (which leads to wrong default values in GRASS GIS)
2019-03-04 21:00:30 +10:00
AnikaBettge
819f275ba4 Fix default setting for gauss parameter
Fix default setting for gauss parameter which must be "none" rather than 0 (which leads to empty maps as gauss=0 is unhelpful)
2019-03-02 06:09:04 +10:00
Nyall Dawson
3f735368f6 astyle 2019-02-27 09:41:11 +10:00
Juergen E. Fischer
5aecf74e9a saga help fix 2019-02-26 23:17:50 +01:00
Juergen E. Fischer
2f431bc1f3 i18n:
* include processing algorithm descriptions from yaml (with yaml fixes)
* create ui instead of cpp where possible and use -no-ui-lines to avoid
  artificial ever changing line numbers in ts files
* drop old used scripts: create_new_ts.sh, create_new_ts.sh and
  integrate_function_help.pl, update_ts_files.sh
2019-02-26 22:38:53 +01:00
Nyall Dawson
49742c302a [needs-docs][processing] Add option to check validity alg to ignore self-intersection
causing rings errors

By default the algorithm now uses the strict OGC definition of polygon validity, where
a polygon is marked as invalid if a self-intersecting ring causes an interior hole.
If the "Ignore ring self intersections" option is checked, then this rule will be
ignored and a more lenient validity check will be performed.

Refs #16418, refs #21336
2019-02-27 06:05:26 +10:00
volaya
2f305c560e [processing] fixed finding grass folder 2019-02-25 08:49:57 +01:00
Nyall Dawson
ec1218314d [processing] Fix "Add geometry attributes" handling of multipoint geom
For multipoints, export the count of geometries only
2019-02-25 07:50:48 +10:00
Víctor Olaya
13bff9620c [processing] do not allow using unsupported file formats
Show warning message if user selects incompatible output file format

fixes #21089
2019-02-23 05:24:56 +10:00
Rashad Kanavath
08b4c1ae9c check for layer providers and authid
OTB only supports gdal and ogr providers for now. Maybe memory
provider can be easily supported using some conversion on the fly.
For the moment, we can go with this method. IO Formats in OTB not
using GDAL/OGR (LUM, ONERA) are not supported by QGis. Those can be
treated as simple files.

nyalldawson,  pointed that AUTHORITY id can have types not starting
with 'EPSG:'. Current otb takes just EPSG number and run with it. The
algorithm doesn't know what to with a number which is not EPSG because
it uses Gdal's 'ImportFromEpsg' method AFAIR.

QgsProecessing Exception is raised in both the above invalid cases.
2019-02-23 05:20:17 +10:00
Rashad Kanavath
9a6a70a0c0 Reset outputpixeltype parameter options 2019-02-23 05:20:17 +10:00
Rashad Kanavath
e7ce84cb22 Use parameterAs methods in OtbAlgorithm
This will accept stuff other than string type if needed by a user.
2019-02-23 05:20:17 +10:00
Rashad Kanavath
5666db2871 pass file names with quotes to otb 2019-02-23 05:20:17 +10:00
Rashad Kanavath
be52385ef2 using parameterAs from qgis api 2019-02-23 05:20:17 +10:00
Rashad Kanavath
0c1de0407a [review] fix issues from code review 2019-02-23 05:20:17 +10:00