53087 Commits

Author SHA1 Message Date
Nyall Dawson
195d98f43a [needs-docs][processing] Port SAGA raster surface volume to native QGIS alg
The SAGA version of this algorithm is of limited use in QGIS, because the
volume calculated is embedded only in the SAGA terminal output. This prevents
it being saved to a file, or reused within a model as an input to a later
model step.

It's also very user-unfriendly, because users must know to manually scan
the algorithm log to find the SAGA output.

Given that the maths here is trivial, this commit ports the algorithm across
to be a native QGIS c++ algorithm. The algorithm duplicates the SAGA alg
1:1, but outputs the volume (and area) to either a HTML report, or a vector
table. Additionally, the outputs are exported as numeric outputs from the
algorithm, allowing them to be re-used within models.

(It's also considerably faster, because it avoids the forced conversion
to SAGA raster format)

Fixes #8607 (properly, even though that report is closed)
2019-01-21 12:33:54 +11:00
Matthias Kuhn
e3fda18aca
Merge pull request #8908 from neteler/patch-76
Complete grass76 support
2019-01-20 12:28:42 +01:00
Markus Neteler
8db3dead87
Complete grass76 support 2019-01-19 22:08:28 +01:00
Nyall Dawson
eb7dc59546 Fix connect to lamda missing context argument 2019-01-20 07:40:47 +11:00
Nyall Dawson
f3c92fab16 Constify 2019-01-20 07:40:47 +11:00
Nyall Dawson
c50d36c0ae Fix possible crash when unloading project 2019-01-20 07:40:47 +11:00
Nyall Dawson
7ad4b05112 Fix project loading task never completes when project has embedded layers
Fixes #21012
2019-01-20 07:40:47 +11:00
Matthias Kuhn
bfa93458e5
Merge pull request #8904 from qgis/3nids-patch-2
add type property to QgsGeometry
2019-01-19 08:49:21 +01:00
Denis Rouzaud
11def47d5c
add type property to QgsGeometry 2019-01-18 15:02:01 -05:00
Martin Dobias
8709ab61eb
Merge pull request #8893 from wonder-sk/rule-based-3d-renderer
Rule-based 3D renderer
2019-01-18 12:58:11 +01:00
Martin Dobias
de5c7cb60b Remove layout margins 2019-01-18 12:11:16 +01:00
Matthias Kuhn
008dfeed40 Rename json functions to postgres names 2019-01-18 17:45:12 +07:00
Matthias Kuhn
01e2b80cdc Fix compiler warning 2019-01-18 17:45:12 +07:00
Matthias Kuhn
6e0930ad79 Add tests for load_json and write_json 2019-01-18 17:45:12 +07:00
Matthias Kuhn
fc548795a8 Add function docs for load_json and write_json 2019-01-18 17:45:12 +07:00
Matthias Kuhn
0e5268b501 Add expression functions load_json and write_json [FEATURE] 2019-01-18 17:45:12 +07:00
Mathieu Pellerin
cb238720aa Add hyperlink to the download page in check QGIS version dialog 2019-01-18 17:35:09 +07:00
Martin Dobias
d1cc1ee440 Fix compilation for @nirvn 2019-01-18 11:33:06 +01:00
Martin Dobias
a01caa43fe De-Q_FOREACH-ification 2019-01-18 11:17:15 +01:00
Hugo Mercier
cd1f3162c6
Merge pull request #8852 from mhugo/fix_index_extent
IndexExtent fix
2019-01-18 10:53:09 +01:00
Nyall Dawson
eb256e9498 Fix doxygen warnings 2019-01-18 20:36:30 +11:00
Nyall Dawson
2df58932e6 Use the full available expression context when rendering symbols
in layout legends

This means the symbols will have access to variables like the
current atlas feature.
2019-01-18 20:36:30 +11:00
Nyall Dawson
fccb808c48 Indentation 2019-01-18 20:36:30 +11:00
Nyall Dawson
349946c669 Layer and layer node items have access to map layer expression context scope 2019-01-18 20:36:30 +11:00
Nyall Dawson
7ba5998db2 Calculate correct legend size when using expression based labels 2019-01-18 20:36:30 +11:00
Nyall Dawson
d70b60d48f [FEATURE][layouts] Allow expressions to be embedded inside legend item text
This feature allows for expressions to be embedded directly inside
legend item text (e.g. group, subgroup and item text). The expressions
are evaluated at render time, with full knowledge of the legend's
expression context (so can utilise variables from the layout/layout item/
etc)

There's no UI for this yet (that will come in 3.8), but expressions are
entered using the standard [% 1 + 2 %] format.

E.g. a legend item text of

    My layer (rendered at 1:[% @map_scale %])

will show in the output as

    My layer (renderer at 1:1000)
2019-01-18 20:36:30 +11:00
Nyall Dawson
b3d5f277d9 Constify 2019-01-18 20:36:30 +11:00
Mathieu Pellerin
c17dc43d5b Respect project selection color when saving map canvas as image/PDF 2019-01-18 16:01:45 +07:00
Martin Dobias
9875821b04 Review fixes, sip, doc fixes, icons, style panel fix 2019-01-18 09:32:53 +01:00
Mathieu Pellerin
4575547f65 Fix/improve visual look of new version notification
- Set a better background color (yellow feels like a negative warning)
- Set text color to black to play nice with themes
- Make the hyperlink clickable, we want people to update!
2019-01-18 11:35:59 +07:00
Alex
b43943a9b0 [FEATURE] New expression variables for legend items
Adds new variables for use in data defined expressions for layout legend items, including

- @legend_title
- @legend_column_count
- @legend_split_layers
- @legend_wrap_string
- @legend_filter_by_map
- @legend_filter_out_atlas

Additionally, if the legend is linked to a map, then expressions used in that legend will also have access to the linked variables, including @map_scale, @map_extent, etc.
2019-01-18 13:38:21 +11:00
Nyall Dawson
7c5dcd67ba Persist canvas expression context scope variables to project
and restore individual scope variables for each canvas on project
load.
2019-01-18 12:56:05 +11:00
Nyall Dawson
a0e91f3798 Add API to read/write QgsExpressionContextScope from/to XML 2019-01-18 12:56:05 +11:00
Nyall Dawson
4ff81e06ac Fix build warning 2019-01-18 11:05:05 +10:00
Ivan Ivanov
2488f71ddb Added test for 'gdal_rasterize -init 0' 2019-01-18 09:50:08 +11:00
Ivan Ivanov
36c821da34 Allow gdal_rasterize to accept -init with value of 0; changed default value to not introduce a breaking change 2019-01-18 09:50:08 +11:00
Martin Dobias
f069342b35 Rendering test for rule-based 3D renderer 2019-01-17 21:02:31 +01:00
Jonathan Willitts
0aae2c1d69 Add missing headings and remove table captions (#8892)
* Add missing headings and ToC anchors

Adds missing headings (and table of contents anchors) for 'Renamed Enum Values' and 'Renamed Methods' tables.

* Removed table captions

Which are redundant due to the headings that the tables sit under
2019-01-17 14:54:10 -05:00
Martin Dobias
42f157f7ca GUI for rule-based 3D renderer 2019-01-17 20:44:22 +01:00
Martin Dobias
5d05d467d6 [FEATURE] Add rule-based 3D renderer
Next to the "simple" vector layer 3D renderer that uses a single symbol
for all features, this new renderer allows definition of hierarchy
of rules with 3D symbols to define how a layer is rendered in 3D view,
similar to how 2D rule-based rendering or labeling works.

This commit does not add any GUI support yet.
2019-01-17 20:40:59 +01:00
rldhont
67938e5426
Merge pull request #8863 from rldhont/server-wmts-config-matrices
WMTS tile matrices configuration [Server][Feature]
2019-01-17 19:00:34 +01:00
Denis Rouzaud
00be400b02
add name to travis builds (#8889) 2019-01-17 10:00:47 -05:00
Denis Rouzaud
5fa5631bbd
add enum value to key and reverse helpers (#8879)
* add enum value to key and reverse helpers

* cast cont char* to QString

* use QStringLiteral
2019-01-17 09:40:13 -05:00
rldhont
81aa143923 [Server][Feature][needs-docs] WMTS tile matrices configuration
In QGIS Server 3.4, the WMTS API has been added in which the tile matrices are calculated except fro EPSG:3857 and EPSG:4326.

This commit adds the capability to select the tile matrices to use with the project and to configure the top-left corner and the last level of the tile matrix. In the case of EPSG:3857 and EPSG:4326, the user can only choose the last level of the tile matrices.

Funded by Ifremer.
2019-01-17 15:29:30 +01:00
Jonathan Willitts
68994adc1b Add missing api breaking change for setMapTipTemplate() to QgsVectorLayer (#8880)
* Add missing change for QgsVectorLayer

* Update, to include mention of setDisplayExpression
2019-01-17 08:42:30 -05:00
Marco Bernasocchi
6896ce9bab add /usr/share/qgis/python/plugins to PYTHONPATH (#8877)
this is needed to find the correct processing (and db_manager and metasearch)
2019-01-17 08:42:04 -05:00
Martin Dobias
2d56345c73 Use QgsFeature3DHandler implementation for line 3D symbols 2019-01-17 13:43:22 +01:00
Nyall Dawson
681707b51b Slightly nicer linked color icons 2019-01-17 16:48:29 +10:00
Mathieu Pellerin
689d4f7653 Ship better default polygon symbols using outline's simple line when appropriate 2019-01-17 13:34:32 +07:00
Nyall Dawson
572e2d5415 Unify code 2019-01-17 16:14:32 +11:00