Nyall Dawson
e0a6a046b7
Ensure necessary updates happen when image cache is changed
2018-12-05 11:14:13 +07:00
Nyall Dawson
84838d1ec6
[FEATURE][API] Add a content cache for raster images
...
This new class QgsImageCache is the equivalent of QgsSvgCache
but for raster images.
QgsImageCache stores pre-rendered resampled versions of raster
image files, allowing efficient reuse without incurring the
cost of resampling on every render.
Additionally, it offers the other benefits QgsSvgCache has,
such as thread safety, ability to transparently download remote
images, and support for base64 encoded strings.
2018-12-05 11:14:13 +07:00
Nyall Dawson
cdba8f5621
Use QgsAbstractContentCache base class for QgsSvgCache
2018-12-05 11:14:13 +07:00
Nyall Dawson
22496dc139
Create a new abtract base class for file content caches (e.g. QgsSvgCache)
...
Generalise QgsSvgCache and split off into a common base class so
that we can re-use code with alternative similar caches, e.g. a
raster image cache.
2018-12-05 11:14:13 +07:00
Nyall Dawson
d79cee1fe1
[needs-docs][processing] Rename "remove duplicates by attribute" to
...
"delete duplicates by attribute"
for consistency with "delete duplicate geometries". Also add some
tags to delete duplicate geometries algorithm.
2018-12-05 07:36:13 +10:00
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