Nyall Dawson
f3b72608a1
Add message bar to QgsSymbolWidgetContext
2018-12-06 14:31:49 +10:00
Nyall Dawson
b95400806a
[FEATURE][processing] Native "split lines by maximum length" algorithm
...
This algorithm takes an input (multi)line (or curve) layer, and splits
each feature into multiple parts such that no part is longer then
the specified maximum length.
Supports data-defined maximum length property, and edit in place operation.
Credit to @NathanW2 for the inspiration!
2018-12-06 10:01:31 +10:00
Nyall Dawson
9d28a9699c
Add a new widget QgsImageSourceLineEdit, based on QgsSvgSourceLineEdit
...
Allows images to be set to base64 embedded images, remote urls, etc
when used alongside QgsImageCache
2018-12-06 09:22:50 +10:00
Nyall Dawson
cce5c4e802
[console] Correctly save settings when exiting app
...
The closeEvent approach which was previously used is not reliable
on application exit, so manually force a settings save in this case too.
Avoids loss of command history when closing QGIS
Also remove the manual "Save" history action, as it's redundant
2018-12-06 05:42:47 +10:00
Nyall Dawson
1f1bbbaeb6
[console] Fix saving scripts sometimes defaults to QGIS bin folder
2018-12-06 05:42:47 +10:00
nirvn
c6425338ee
[FEATURE] Raster image marker
2018-12-05 15:44:44 +07:00
nirvn
60442980dd
Add dox comment, fix travis
2018-12-05 11:14:13 +07:00
nirvn
ad4b876866
Add opacity parameter to image cache
2018-12-05 11:14:13 +07:00
Nyall Dawson
c1df802769
Add method to QgsImageCache to retrieve original image size
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
ff786f2223
Add group method to QgsSettings
...
Is present in the QSettings API, but missing from QgsSettings
2018-12-05 04:46:58 +10: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
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
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
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
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
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
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
Alessandro Pasotti
1672d434ce
Raster calc: refresh layers list if a layer is renamed or added/removed
...
Fixes #20601 - bug: Raster calculator produces empty results layer and no error message if input layer is one that has been renamed in QGIS layers panel
2018-11-29 18:30:01 +01:00
Denis Rouzaud
c13b419d21
fix python bindings
2018-11-29 12:50:48 -04:00
Denis Rouzaud
e03537a4cf
fix typo
2018-11-29 08:27:15 -04:00
Denis Rouzaud
f24daa2b69
allow to use icons too
2018-11-29 08:15:12 -04:00
Denis Rouzaud
d272f3cf2a
do not use qaction in the result, build context menu in the widget
2018-11-29 08:02:37 -04:00
Alessandro Pasotti
49da1c3be9
Return a vector instead of a list and deprecate rasterEntries
2018-11-29 12:46:30 +01:00
Alessandro Pasotti
80c12b590a
Extend documentation
2018-11-29 12:35:09 +01:00
Alessandro Pasotti
18854dc7b6
Do not add duplicates in raster calc layers list
...
Related to #20601
2018-11-29 12:26:57 +01:00
Alessandro Pasotti
0fde410a58
Merge pull request #8564 from elpaso/rastercalculator-fast-track
...
Rastercalculator memory efficient track
2018-11-29 09:32:24 +01:00
Nyall Dawson
f10b62c380
[processing] Fix crash on closing batch processing dialog
...
Refs #20650
2018-11-29 10:57:07 +10:00
Nyall Dawson
d207251251
[processing] Fix run as batch mode doesn't execute
...
Fixes #20650
2018-11-29 10:57:07 +10:00
Alessandro Pasotti
81723586f5
Update reference hashes for calculator processing test
2018-11-28 22:43:28 +01:00
nirvn
cdda581819
[processing] Add test & adjust handling of negative distance value
...
for multi ring (constant) algorithm
2018-11-28 22:47:39 +07:00
Alessandro Pasotti
55017d7800
Fix rounding error while calculating output raster dimensions
...
This was creating artifacts in some situations (missing line
in the middle).
2018-11-28 14:46:21 +01:00
Denis Rouzaud
c48a706e49
use int as IDs to recognize context menu entries
2018-11-28 08:34:09 -04:00
Denis Rouzaud
91736fd9f6
fix doc
2018-11-28 07:46:24 -04:00
Denis Rouzaud
1bc0fbf9d4
[locator] allow to have context menu entries for results
2018-11-28 07:46:24 -04:00
Alessandro Pasotti
e01cb7c46f
Fix docstring for findNodes
2018-11-28 11:07:33 +01:00