52354 Commits

Author SHA1 Message Date
Nyall Dawson
9c1653f00a [processing] Fix exception on launching refactor fields
(The logic with parameter widget_wrapper metadata is very gross -
but there's nothing we can do about it till 4.0!)

Fixes #20707
2018-12-05 04:47:55 +10:00
Nyall Dawson
0ba37fcb72 [processing][SAGA] Add unit test for RGB composite 2018-12-05 04:47:33 +10:00
Nyall Dawson
71b32f072c [processing][SAGA] Fix output type for RGB Composite should be tif, not sdat format 2018-12-05 04:47:33 +10:00
Nyall Dawson
5349f24cae [FEATURE] Allow deleting settings from the Advanced tab in options
This commit adds a new right click menu to the settings shown
in the "Advanced" tab in the settings dialog, which allows users
to remove that setting (or group of settings)
2018-12-05 04:46:58 +10:00
Nyall Dawson
ff786f2223 Add group method to QgsSettings
Is present in the QSettings API, but missing from QgsSettings
2018-12-05 04:46:58 +10:00
Denis Rouzaud
a5bad2d5f3
fix typo 2018-12-04 14:15:27 -04:00
iona5
61cdaad530 fix wrong padding of QgsFontButton on macOS 2018-12-05 04:01:09 +10:00
iona5
930c56f5b8 workaround broken QFontDialog on macOS with Qt5 (Fixes #20426)
QFontDialog using the native dialog is broken in some versions of
Qt5 on macOS, see
  - https://bugreports.qt.io/browse/QTBUG-69878
  - https://successfulsoftware.net/2018/11/02/qt-is-broken-on-macos-right-now/

this breaks QgsFontButton in ModeQFont. When opening the dialog it will
not change the format after accepting.

normally our code wouldn't use the native dialog on macOS anyway,
but due to using an outdated preprocessor check it was exhibiting
the broken behavior.

this patch restores the usage of a non-native font dialog on macOS.

discussions:
- https://issues.qgis.org/issues/20426
- https://github.com/qgis/QGIS/pull/8585
2018-12-04 15:14:58 +01:00
Nyall Dawson
a1dbb96110 Remove outdated comment 2018-12-04 15:14:58 +01:00
Denis Rouzaud
f09e640498
Merge pull request #8591 from 3nids/without_analysis
allow to build QGIS without analysis
2018-12-04 07:24:20 -04:00
Matthias Kuhn
774c890f9c
Merge pull request #8599 from m-kuhn/auth-manager-unique-ptr
Use std::unique_ptr
2018-12-04 12:09:03 +01:00
Luigi Pirelli
c39e2b83da
Merge pull request #8445 from NaturalGIS/add_te_paramater_in_gdal_clip_by_mask
add the -te and -te_srs and -multi parameters to the gdalwarp tool used to clip rasters by mask layers
2018-12-04 11:32:52 +01:00
Matthias Kuhn
f6164509e5
Use std::unique_ptr 2018-12-04 10:24:57 +01:00
Alessandro Pasotti
d4c62d17a9
Merge pull request #8592 from elpaso/opencl-remove-static-members
[opencl] Remove all static members
2018-12-04 08:17:13 +01:00
Giovanni Manghi
25bfca492f partial fix for SAGA RGB composite tool 2018-12-04 11:49:20 +10:00
Nyall Dawson
455e04ea66 [processing][SAGA] Fix definition of Patching algorithm
And add unit test

Fixes #20698
2018-12-04 10:36:38 +10:00
Denis Rouzaud
4b9a532f2c
be more verbose in var description 2018-12-03 14:56:27 -04:00
Alessandro Pasotti
868b04d829 [opencl] Remove all static members
and rely on the default() mechanism, this prevents
random crashes on exit when dtor is called on the
statics.
2018-12-03 17:51:36 +01:00
Denis Rouzaud
18abcb580a fix building without PyQt 2018-12-03 12:23:28 -04:00
Denis Rouzaud
efd1fd6d59 allow to build without analysis 2018-12-03 12:06:16 -04:00
Alessandro Pasotti
dcba25501f Silence warning in release mode 2018-12-03 15:40:30 +01:00
Peter Petrik
cafa652c02 fix build on MacOS 2018-12-03 11:44:18 +01:00
Alessandro Pasotti
1cc6bc1116
Merge pull request #8583 from elpaso/opencl-raster-calculator2
[opencl] Raster calculator goes opencl
2018-12-03 11:03:09 +01:00
Alessandro Pasotti
61dd729517 Move nodeCalc unique ptr to the GPU function
... and spare some CPU cycles
2018-12-03 10:05:10 +01:00
Nyall Dawson
4212deabe8 [processing][saga] Add unit test for point distances alg 2018-12-03 18:11:24 +10:00
Nyall Dawson
ef2fff0820 [processing][SAGA] Fix default output format for geometry-less tables 2018-12-03 18:11:24 +10:00
Nyall Dawson
4bca7838bf [processing] Add method for providers to specify a different list
of supported output formats when an output has no geometry
2018-12-03 18:11:24 +10:00
Nyall Dawson
583b602e76 [processing] Fix hasGeometry() method when output is a geometry-less vector table
From the dox for QgsProcessing.TypeVector: "When used for a sink this indicates
the sink has no geometry.". If an algorithm is using this value to indicate
"maybe has geometry" for an output, then that algorithm is incorrect and
should be using TypeVectorAnyGeometry instead.
2018-12-03 18:11:24 +10:00
Luigi Pirelli
e1b3524b5d
Merge pull request #8443 from NaturalGIS/fix_saga_point_distances
fix the SAGA Points Distances tool
2018-12-02 23:36:38 +01:00
Alessandro Pasotti
5ef87371aa Remove duplicated code
The input check was already done before entering
in the GPU branch
2018-12-01 17:31:45 +01:00
Alessandro Pasotti
e01c162fcd Fix build warnings 2018-12-01 11:02:15 +01:00
Alessandro Pasotti
6a1a581e7a [opencl] Raster calculator goes opencl 2018-12-01 10:42:10 +01:00
Alessandro Pasotti
9b9881d3da
Merge pull request #8581 from elpaso/bugfix-20682-form-toggle-editing
[attributeform] Do not reset feature on editing toggled
2018-12-01 09:43:05 +01:00
Alessandro Pasotti
dd309ccbe5 [attributeform] Do not reset feature on editing toggled
... just reset values

Fixes #20682 - form toggle editing
2018-11-30 21:14:26 +01:00
Juergen E. Fischer
d9a70d084b INSTALL: add note about git core.filemode on windows (superceeds PR#8578)
(oci-devel now dependency of qgis-dev-deps in OSGeo4W)
2018-11-30 19:44:27 +01:00
Alessandro Pasotti
fbcfe0e992
Merge pull request #8579 from elpaso/opencl-2
[opencl] Support for platforms > 1.1
2018-11-30 18:25:10 +01:00
Alessandro Pasotti
13eca562f6 Fix build warning again (on debian opencl headers do not support 2.2) 2018-11-30 17:22:35 +01:00
Alessandro Pasotti
a471934e56 Fix build warning and cl-std for 2.x builds 2018-11-30 16:14:28 +01:00
Alessandro Pasotti
e5b8645953 Remove TODO comment because it's now done 2018-11-30 13:58:19 +01:00
Alessandro Pasotti
6176159a00 [opencl] Support for platforms > 1.1 2018-11-30 13:41:35 +01:00
Alessandro Pasotti
0af1ce40a8
Merge pull request #8571 from elpaso/bugfix-20601-rastercalc-duplicated-layer-names
Fix rastercalc duplicated layer names
2018-11-30 10:17:38 +01:00
volaya
e546129f5c [processing] fixed update of MultipleInputPanel after alg is run
Fixes #20670
2018-11-30 09:17:07 +01:00
Alessandro Pasotti
50e5414232 Coding style and SIP_DEPRECATED 2018-11-30 09:03:28 +01:00
Nyall Dawson
3a66b92522 [processing] Fix crash when running model through modeler dialog
Fixes #20676
2018-11-30 10:02:52 +10:00
stra2da
0e4b0980d8 first example deleted, cause it is for combine function 2018-11-30 07:39:57 +10:00
Denis Rouzaud
dde309439c
Merge pull request #8560 from 3nids/locator_context
Add context menu for locator filter results
2018-11-29 15:28:30 -04:00
Nyall Dawson
7c43bcda76 Add new "allowVersionCheck" setting
If true, users may control whether the version check is enabled
or disabled through the QGIS settings dialog. (The default
check behavior is determined by the existing 'checkVersion' setting).

If false, no version checking will be performed AND users will NOT
have an option to enable this check in the settings dialog.

This setting is intended for use in enterprise installs where QGIS version
management is handled centrally.
2018-11-30 05:03:58 +10:00
Nyall Dawson
59d2c5301f [processing] Fix exception when parameter metadata is set to extend inbuilt wrapper type 2018-11-30 05:02:59 +10:00
Nyall Dawson
d72c4d001f [processing] Allow parameter metadata to set the number of decimal places
to show in numeric/distance widgets

E.g. to only show 2 decimal places:

  # only show two decimal places in parameter's widgets, not 6:
  param.setMetadata( {'widget_wrapper':
    { 'decimals': 2 }
  })
2018-11-30 05:02:59 +10:00
Denis Rouzaud
157c8f4987 more doc 2018-11-29 14:28:14 -04:00