15122 Commits

Author SHA1 Message Date
vcloarec
109049ea86 Implementation of QgsMeshLayer::reload() and QgsMdalProvider::reloadData()
Implementation of this override method permit to reload mesh end dataset groups when the data changed outside of the QGIS application.
2019-05-03 15:26:22 +02:00
Marcel Dancak
9820bb4fa9 [processing] updated test files - tiles with transparent background 2019-05-03 13:43:15 +02:00
Marcel Dancak
b1106b9f1e [processing] fix #21958 used sqlite3 module instead of GDAL/ORG's SQLite driver 2019-05-03 13:43:15 +02:00
Nyall Dawson
1d258d53c6 Nicer behaviour of QgsCharacterSelectorDialog 2019-05-02 20:38:21 +10:00
Nyall Dawson
243acb328f Dynamically set number of columns to show in character widget
based on widget width, and avoid unnecessary horizontal scroll bar
2019-05-02 15:13:38 +10:00
Nyall Dawson
ffe02c37b6 Allow QgsScrollArea to maintain horizontal width of area for
child widgets, and apply scroll area to vertical contents only
2019-05-02 15:13:38 +10:00
Matthias Kuhn
ac6ed1a18c Doxygen for QgsSymbolLayer::setRenderingPass 2019-05-02 07:16:14 +10:00
nirvn
3747cf7870 [FEATURE][symbology] Unlock string as character for font markers 2019-04-30 18:32:03 +07:00
nirvn
dc7bfc5cd3 [FEATURE][ui] Add a line edit to type character for the font marker
The line edit also supports pasting of unicode code in decimal or
hexadecimal format (i.e. 123 or 0x2713).

In addition, the character widget now grabs the keyboard
focus and will change the selected character based on
key stroke.
2019-04-30 15:42:20 +07:00
Nyall Dawson
38ef62e1cc Fix incorrect annotation scaling when exporting layouts
Previously, annotation size and position always used pixel units. This
did not work well when exporting layouts, resulting in tiny annotations
(it also caused issues when moving projects between hidpi/non hidpi
displays).

Instead, use millimeters for annotation size and position so that the
appearance is consistent across displays and works correctly in layout
exports.

Add lots of unit tests covering this.

Fixes #18373
2019-04-30 15:21:39 +10:00
Nyall Dawson
070de69e30 [processing] Fix incorrect columns hidden when toggling advanced params in batch mode 2019-04-30 14:43:58 +10:00
Nyall Dawson
1d80fe8a19 Review comments 2019-04-30 14:43:58 +10:00
Nyall Dawson
c12fd877ed [processing] Remove selected rows from batch table, not always last row 2019-04-30 14:43:58 +10:00
Nyall Dawson
ec4cfed694 Fix broken see link 2019-04-30 14:43:58 +10:00
Nyall Dawson
9f43f2f608 [FEATURE][processing] New "Add values by expression" option for
populating batch processing dialog

This option adds news rows using the values from an expression
which returns an array. (As opposed to "Calculate by Expression",
which works only on existing rows).

The intended use case is to allow populating the batch dialog
using complex numeric series, e.g. those created by the "generate_series"
expression function.

For example, adding rows for a batch buffer using the expression

    generate_series(100, 1000, 50)

(results in new rows with values 100, 150, 200, .... 1000)
2019-04-30 14:43:58 +10:00
Nyall Dawson
ee7daa8db7 [FEATURE][processing] Add option to calculate parameter values by expression in batch dialog
This new option is available under the Autofill menu for a column. Selecting it allows users
to create a new QGIS expression to use to update the value inside that column. Existing
parameter values (including those from other columns) are available for use inside
the expression via @variables.

E.g. this allows setting output file names to complex expressions like
'/home/me/stuff/buffer_' || left(@input, 30) || '_' || @distance || '.shp'
2019-04-30 14:43:58 +10:00
Nyall Dawson
185172a946 Refactor creation of batch dialog row algorithm parameters 2019-04-30 14:43:58 +10:00
Nyall Dawson
e6e39173b2 [FEATURE][processing] In batch mode, allow population of file/layer
input columns by searching for files matching a specified pattern

With optional recursive search!
2019-04-30 14:43:58 +10:00
Nyall Dawson
3f4c3d0722 Add widget and dialog for finding files by pattern match, with an
optional recursive search
2019-04-30 14:43:58 +10:00
Nyall Dawson
5edf06a5bc [processing][needs-docs] Move batch execution double-click-to-fill-down
to an explicit widget in the table

The double-click-header action is very hidden, and many users will
not stumble upon this. By moving it to an explicit "Autofill" widget at the
top of the table, we make this important action much more user
discoverable.

It also gives the possibility of other, parameter specific, autofill
actions (e.g. fill by expression, fill by file pattern)
2019-04-30 14:43:58 +10:00
Nyall Dawson
8d180c1e8a [needs-docs] Tweak custom dash button appearance
- remove "Change" label and replace with larger dash preview icon.
The "change" text is unnecessary and adds to dialog clutter, better
to use the space for a wider preview icon (especially given that
the previous narrow icon never really showed enough of the pattern
to be useful!)

- don't offset the line in the preview if the symbol has an offset
set

- respond correctly to dash pattern, line width unit changes, cap
style changes

- show a nice big preview tooltip on hover
2019-04-30 12:29:31 +10:00
Luigi Pirelli
c0ec79ef05
Merge pull request #9172 from luipir/fix_19731
try to reset script path pointing to the current setting path
2019-04-29 10:48:24 +02:00
Mathieu Pellerin
cd5642aca0 [FEATURE] Make the custom dash pattern dialog a style dock widget 2019-04-28 15:33:48 +07:00
epifanio
841b191ea8 [processing] Add r.geomorphon grass command and module in grass core plugin (#9625)
* Create r.geomorphon.qgm

* Add files via upload

* Update default.qgc

* Create r.geomorphon.txt

Adding the description file to add the `r.geomorphon` command into `QGIS.Processing.GRASS`

* Update grass7_algorithms_raster_tests.yaml

Adding test for `r.geomorphon`

* fixing wrong spelling

thanks trevis

* Update grass7_algorithms_raster_tests.yaml

adding corrected unit test

* Create r.geomorphon.qgm

* Add files via upload

* Update default.qgc

* Create r.geomorphon.txt

Adding the description file to add the `r.geomorphon` command into `QGIS.Processing.GRASS`

* Update grass7_algorithms_raster_tests.yaml

Adding test for `r.geomorphon`

* fixing wrong spelling

thanks trevis

* Delete CTestCostData.txt

* Delete CTestCostData.txt

* Delete CTestCostData.txt

* Delete CTestCostData.txt
2019-04-27 10:37:43 +02:00
Matthias Kuhn
f26ca3649f
Merge pull request #9649 from NaturalGIS/fix_grass7_v_voronoi_again
Fix grass7 v.voronoi again
2019-04-27 10:37:11 +02:00
Nyall Dawson
149b35ead2 Indentation 2019-04-27 07:27:54 +10:00
Nyall Dawson
b0ad13fbbd Remove some unused code 2019-04-27 07:27:54 +10:00
Nyall Dawson
0ff5820573 [processing] Correctly reset progress bar after completing batch execution 2019-04-27 07:27:54 +10:00
Nyall Dawson
66eabdd40c [processing] Fix exception on completion of batch execution of
algorithm which has string or numeric outputs
2019-04-27 07:27:54 +10:00
Nyall Dawson
c0105bdfcf Fix exception when reloading plugins 2019-04-26 16:56:30 +10:00
Martin Dobias
5e4ea73399
Merge pull request #9857 from marcel-dancak/tiles_xyz
New Processing Algorithm to generate raster XYZ tiles
2019-04-26 08:41:30 +02:00
Nyall Dawson
ebab2e128b Add missing /Transfer/ annotation 2019-04-26 12:59:26 +10:00
Martin Dobias
e6ff7e00ef Raise an exception if the necessary parameter was not specified 2019-04-25 23:25:05 +02:00
Martin Dobias
fdb6a2b79a Add test for XYZ Tiles algorithm 2019-04-25 22:14:08 +02:00
Martin Dobias
285d4e0da0 Remove NAME parameter, use OUTPUT_FILE instead
For output to directory, OUTPUT_DIRECTORY destination parameter is used.
For output to MBTiles file, OUTPUT_FILE destimation parameter is used.
2019-04-25 22:10:37 +02:00
Martin Dobias
ee63cffd88 [processing] Add 'project' to test definition and 'directory' output test
- for algorithms that produce directory output, it is possible to test
  that directory contents are exactly the same (recursively)
- added possibility to have a project file loaded before an algorithm is run
- documented the new additions (+ few existing ones)
2019-04-25 21:40:31 +02:00
rldhont
3c8a9e6f65
Merge pull request #9851 from dmarteau/fix-unload-plugin-path
Remove plugin module path  when unloading
2019-04-25 16:58:28 +02:00
Marcel Dancak
0bb701a649 Added help text 2019-04-25 14:09:41 +02:00
Marcel Dancak
e0d6694a12 Adjusted min/max/default values of parameters, moved some code into 'prepareAlgorithm' 2019-04-25 12:15:52 +02:00
Marcel Dancak
83f35617f3 MBTilesWriter can write tiles in any order, proper transforming of extents 2019-04-25 09:43:33 +02:00
nirvn
cb9b3b458d Add forgotten since tags on new point pattern fill functions 2019-04-25 09:53:40 +07:00
David Marteau
6af744da82 Remove plugin module path when unloading
Unloading plugin must remove added module path
    in order to prevent wrong package import when reloading
2019-04-24 16:09:09 +02:00
Marcel Dancak
efdd52cb2f Commented out code for debugging (saving of metatiles), fixed python formatting 2019-04-24 15:23:56 +02:00
Blottiere Paul
dc0877c1b4
Merge pull request #9858 from signedav/default_symbol_scale
Fix "\since" comment because of backporting
2019-04-24 15:10:43 +02:00
David Signer
450e193c85 fix comment since 3.4 2019-04-24 14:22:39 +02:00
Marcel Dancak
4ab9bb6175 Registration of TilesXYZ algorithm 2019-04-24 13:11:36 +02:00
Marcel Dancak
73a5a6adc1 Initial version of xyz tiles export (processing tool) 2019-04-24 12:25:58 +02:00
nirvn
756964620a [FEATURE][symbology] Add offset settings for point pattern fill symbol layer 2019-04-24 16:53:40 +07:00
Martin Dobias
1106f6ab23
Merge pull request #9839 from wonder-sk/fix-3d-extra-terrain-updates
[3d] Fix unnecessary terrain map updates when changing 3D renderer
2019-04-23 16:27:19 +02:00
Martin Dobias
60572ac4d4 [3d] Fix unnecessary terrain map updates when changing 3D renderer
When using layer styling dock, every change in 3D rendering configuration
was also triggering update of 2D map which also forces update of all
terrain tile textures with a new 2D map which wasn't really needed.
The fix makes the triggerRefresh() call on layer optional - each layer
styling dock config widget can tell whether its updates require 2D map
refresh (true by default).
2019-04-21 21:01:01 +02:00