55127 Commits

Author SHA1 Message Date
Matthias Kuhn
ac6ed1a18c Doxygen for QgsSymbolLayer::setRenderingPass 2019-05-02 07:16:14 +10:00
Juergen E. Fischer
4ee40991a8 query builder: fix #21805 & #21966 & #21967 2019-05-01 21:21:47 +02:00
nirvn
107c7a8d54 [ui] Fix broken text annotation background color 2019-05-01 09:55:58 +07:00
nirvn
3747cf7870 [FEATURE][symbology] Unlock string as character for font markers 2019-04-30 18:32:03 +07:00
Luigi Pirelli
0f01359b90
Merge pull request #9880 from troopa81/fix_pointpick_precision
Fix point picking precision for point parameters in processing dialog
2019-04-30 12:33:11 +02:00
nirvn
a665eac175 Follow up dc7bfc5 : QString::back() too recent to use 2019-04-30 16:11:15 +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
Alessandro Pasotti
f70acf260b
Merge pull request #9901 from nyalldawson/invalid_qlr
Allow loading QLR files with invalid sources
2019-04-30 09:11:53 +02:00
Julien Cabieces
9cfaf10c42 Never use scientific notation 2019-04-30 09:08:39 +02:00
Nyall Dawson
78ccd4171e Disable some layer context menu actions for invalid layers 2019-04-30 16:34:31 +10:00
Nyall Dawson
72febb35e9 Allow loading QLR files with invalid sources
E.g. if the layer path has moved, we still should allow these
files to be read, so that the layer path can be fixed by the user
manually.
2019-04-30 16:34:31 +10:00
Nyall Dawson
fa60a7ecbf Avoid ugly super-narrow annotation balloon callout lines at some angles 2019-04-30 15:21:39 +10: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
Peter Petrik
4aaa523977 fix #21931 Mesh calculator crash when used with face dataset 2019-04-29 13:36:52 +02:00
nirvn
cc37e702cc [themes] Set highlight text color palette for themes 2019-04-29 17:59:13 +07:00
nirvn
c25782a57b [themes] Tweak palette values to better match designated roles 2019-04-29 17:46:36 +07:00
nirvn
405efd8ac9 [ui] Improvements to the font marker character widget
- Declare a minimum height to avoid narrow selection area
- Use application color palette instead of hardcoded values
- Decrease number of columns to better fit in the style dock
2019-04-29 17:26:03 +07:00
nirvn
c0b2ba19b1 [themes] Add minimum scrollbar dimension to Night Mapping 2019-04-29 16:54:10 +07: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
nirvn
b48ae67826 [ui] Use system color for custom dash pattern preview symbol 2019-04-29 11:13:11 +07:00
nirvn
da011375a7 Followup cd5642a: Add dialog title, connect dialog ok/cancel buttons 2019-04-29 11:13:02 +07:00
Mathieu Pellerin
cd5642aca0 [FEATURE] Make the custom dash pattern dialog a style dock widget 2019-04-28 15:33:48 +07:00
Nyall Dawson
5a088bfa2b Fix expression function examples 2019-04-28 15:47:35 +10:00
Mathieu Pellerin
5fa9e2f02e Add simple line custom dash pattern tests 2019-04-28 12:19:27 +07:00
Alessandro Pasotti
4d2a8dd9da
Merge pull request #9873 from elpaso/bugfix-21839-postgresql-check-pk-unicity
[postgresql] Fix checkPrimaryKeyUnicity option
2019-04-27 19:00:43 +02:00
Alessandro Pasotti
ffaa64ee1a
Merge pull request #9879 from elpaso/bugfix-21735-gfi-json
Fix identify for WMS client with json format
2019-04-27 18:25:09 +02:00
Alessandro Pasotti
6fa56635b3
Merge pull request #9878 from elpaso/bugfix-21917-server-root-layer-order
[server] Respect custom layer order for groups in GetMap
2019-04-27 17:36:07 +02:00
Luigi Pirelli
3a1f6d7774
Update tests/src/python/test_provider_postgres.py
Co-Authored-By: elpaso <elpaso@itopen.it>
2019-04-27 17:20:07 +02: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
762b2a423b [FEATURE] Expression functions which return file info
base_file_name: Returns the base name of the file without the directory or file suffix.
file_exists: Returns true if a file exists
file_name: Returns the file name from a full path
file_path: Returns the directory/path from a full file path
file_size: Returns a file size
file_suffix: Returns a files suffix/extension
is_directory: Returns true if a file path is a directory
is_file: Returns true if a file path is a file
2019-04-27 17:24:37 +10:00
nirvn
7e5f906327 [symbology] Fix custom dash pattern for line with an hairline (i.e. 0) width 2019-04-27 09:36:37 +07: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
Julien Cabieces
b7772d407d Fix point picking precision for point parameters in processing dialog 2019-04-26 15:38:51 +02:00
Alessandro Pasotti
a8844483d8 Respect number formatting in identify raster results 2019-04-26 15:14:46 +02:00
Alessandro Pasotti
c87833c807 Fix identify for WMS client with json format
Fixes #21735
2019-04-26 15:11:50 +02:00