64725 Commits

Author SHA1 Message Date
Nyall Dawson
7cfa476a2d [layouts] Save table editor panel state to avoid having to constantly
resize formatting panel on reopen
2020-07-27 11:12:58 +10:00
Håvard Tveite
d096dfd9c4 Update src/ui/qgisapp.ui 2020-07-27 08:15:27 +10:00
Håvard Tveite
6ea6952ad5 Fix correct case for qgisapp.ui tooltips
While documenting, I found some inconsistencies in the first letter case for words in GUI tooltips.
I have tried to use the "correct" case for the words in the tooltips ("important" words have an uppercase first letter, and "insignificant" words are lowercase).
2020-07-27 08:15:27 +10:00
Nyall Dawson
51d8ad75c5 Don't modify text format paint effects in place
Avoids race conditions when multiple threads are rendering the same
text format which contains paint effects

Fixes #37938
2020-07-27 07:36:50 +10:00
Nyall Dawson
95bd7b296b [feature][processing] New algorithm "Align points to features"
This algorithm calculates the rotation required to align point features
with their nearest feature from another reference layer. A new field is
added to the output layer which is filled with the angle (in degrees,
clockwise) to the nearest reference feature.

Optionally, the output layer's symbology can be set to automatically
use the calculated rotation field to rotate marker symbols.

If desired, a maximum distance to use when aligning points can be set,
to avoid aligning isolated points to distant features.

Designed for use cases like aligning building point symbols to follow
the nearest road direction!
2020-07-26 09:56:46 +10:00
Nyall Dawson
9b19e069b3 Allow symbol and color ramp visitors the ability to edit symbols/color ramps they visit 2020-07-26 09:56:46 +10:00
NEDJIMAbelgacem
db1ab7120f Fix documentation 2020-07-25 22:02:23 +01:00
NEDJIMAbelgacem
860be14c32 add SIP_FACTO to QgsAbstractMaterialSettings::toExportParameters 2020-07-25 21:51:59 +01:00
NEDJIMAbelgacem
4488739215 Merge master - adapt to QgsAbstractMaterialSettings implementation 2020-07-25 21:45:53 +01:00
NEDJIMAbelgacem
1a73f1de5a Add layer name to .obj file object name 2020-07-25 17:54:04 +01:00
NEDJIMAbelgacem
f7dde15a15 Added QgsImageTexture docs 2020-07-25 17:06:07 +01:00
Juergen E. Fischer
8b5dedf625 translation string fixes 2020-07-25 10:08:50 +02:00
Nyall Dawson
2bc84049d4 Fix ui build warning 2020-07-25 10:34:20 +10:00
Nyall Dawson
94e484f264 [FEATURE] Show related (child) features in identify results tree
Under each identified parent feature, new groups will show containing
any related child features, showing their attributes, actions, and
allowing the user to directly open the feature form for the child feature.

Fixes #18634
2020-07-25 06:39:10 +10:00
nirvn
aa05f7641a [processing] Fix python error when attempting to re-open generate XYZ tiles algorithm from the history dialog 2020-07-24 13:33:11 +07:00
Nyall Dawson
f2e4ac606e [3d] Abstract out material settings
Opens the possibilities for non-phong based materials for 3d symbols
2020-07-24 16:28:18 +10:00
Nyall Dawson
a345ae94a5
Merge pull request #37929 from nyalldawson/fix_37912_refactor_fields
Fix expression previews in Refactor Fields and Aggregate algorithms
2020-07-24 16:26:20 +10:00
Nyall Dawson
b6ae643304 Condense logic 2020-07-24 12:58:55 +10:00
Nyall Dawson
ea3eb7220c Dox 2020-07-24 12:58:55 +10:00
Nyall Dawson
452bb6a979 Use a more reliable method of reenabling antialiasing 2020-07-24 12:58:55 +10:00
Nyall Dawson
4bfa75af50 Fix restoration of painter antialiasing after rendering lines 2020-07-24 12:58:55 +10:00
Nyall Dawson
1f6e1b14e1 Flake 2020-07-24 12:58:55 +10:00
Nyall Dawson
e2a370fe3e Avoid repeating points when appending lines 2020-07-24 12:58:55 +10:00
Nyall Dawson
91931fedb2 Tests for dash pattern alignment 2020-07-24 12:58:55 +10:00
Nyall Dawson
75635dbf0b [FEATURE][symbology] Add options to dynamically tweak dash pattern
in simple line symbol layers

New options are:

- Align dash pattern to line length: If checked, the dash pattern lengths
will be subtely adjusted in order to ensure that when a line is rendered
it will end with a complete dash element, instead of a gap element or
partial dash element

- Tweak dash pattern at sharp corners: If checked, this option dynamically
adjusts the dash pattern placement so that sharp corners are represented
by a full dash element coming into and out of the sharp corner. It's designed
to better represent the underlying geometry while rendering dashed lines,
especially for jagged lines
2020-07-24 12:58:55 +10:00
Nyall Dawson
0641f3f8b8 Add utility function to detect sharp corners 2020-07-24 12:58:55 +10:00
Nyall Dawson
ca5901b336 Add utility function to slice a QPolygonF linestring 2020-07-24 12:58:55 +10:00
Nyall Dawson
6dbc1788b4 Better error message when no feature available for expression evaluation 2020-07-24 10:43:22 +10:00
Nyall Dawson
cc0cfbe02b [processing] Also fix expression preview results in Aggregate algorithm 2020-07-24 10:26:17 +10:00
Nyall Dawson
69f73e3a74 [processing] When running in toolbox mode, set the source layer for
the field expression widgets in the refactor fields widget so that
the expression editor can generate feature based previews

Fixes #37912
2020-07-24 10:26:17 +10:00
Nyall Dawson
d255af792e Ensure QgsFieldMappingModel uses correct source fields when generating contexts 2020-07-24 10:26:17 +10:00
Nyall Dawson
014498f3b6 [expressions] Fix misleading error string when fields are set but no feature is available 2020-07-24 10:26:17 +10:00
Nyall Dawson
2073790d0f Fix qt deprecation warning 2020-07-24 10:23:16 +10:00
Nyall Dawson
e859a0f846 Fix QgsFieldExpressionWidget generates an invalid expression if a
field name with a space is selected from the dropdown list and then
the expression editor button is clicked

Previously, the expression editor would open with an unquoted field
name, which was broken for field names containing spaces. Now, we
always ensure that the editor opens with a valid expression
2020-07-24 04:30:19 +10:00
Peter Petrik
ea74e863e3
update MDAL to 0.6.91 (#37937) 2020-07-23 10:09:20 +02:00
nirvn
d35f38b604 [decorations] Fix scale bar color not applied to division ticks 2020-07-23 14:24:40 +07:00
Vincent Cloarec
de68f83cc3
Virtual dataset groups for mesh layer (#37605)
[FEATURE] Introduces mesh virtual datasets

With the mesh calculator the user can choose to create those "virtual" dataset groups that will be added to the layer. Then, for these dataset groups, values are not stored in memory but each dataset is calculated when needed whit the formula entered in the mesh calculator.

Those virtual dataset groups are saved with the project.

If needed, the user can remove them or can persist them on files to make them persistent.

Co-authored-by: Étienne Trimaille <gustrimaille@yahoo.fr>
2020-07-23 07:39:28 +02:00
Vincent Cloarec
282d5f9b63
Multi identify for mesh layer (#37916)
[FEATURE] map tool identify for mesh layer with displaying the dataset value corresponding of the current time of the temporal controller for all dataset groups
2020-07-23 07:12:38 +02:00
Nyall Dawson
4988694ec0 Don't report legend filter by expression as enabled if the expression is empty
Can cause issues when opening very old projects, where the legend expression
builder will automatically open immediately upon selecting a layer
2020-07-23 13:52:45 +10:00
Nyall Dawson
ddb67fd46a Fix dox 2020-07-23 07:53:20 +10:00
Nyall Dawson
8ec0f94472 Fix test 2020-07-23 07:53:20 +10:00
Nyall Dawson
0ed6ff5906 Register 3d widgets on startup 2020-07-23 07:53:20 +10:00
Nyall Dawson
368a58bf5e Base class for 3d symbol widgets 2020-07-23 07:53:20 +10:00
Nyall Dawson
c3837359d6 Move feature handler creation responsibility to 3d symbol registry 2020-07-23 07:53:20 +10:00
Nyall Dawson
80e5d16511 Move method to create default 3d symbol for a geometry type to 3d symbol registry 2020-07-23 07:53:20 +10:00
Nyall Dawson
0528fe284c Populate 3D symbol registry, and use to create symbols 2020-07-23 07:53:20 +10:00
Nyall Dawson
c7b6a115df Better initialization of 3d framework, usable outside of app 2020-07-23 07:53:20 +10:00
Nyall Dawson
a34eabd1fb [api] Add a proper registry for 3D symbol types 2020-07-23 07:53:20 +10:00
Nyall Dawson
f60b79fcea Move QgsAbstract3DSymbol to core 2020-07-23 07:53:20 +10:00
Nyall Dawson
aa93872f0d Provide more descriptive error messages when converting a field value
fails

And fix Python exception handling in QgsField::convertCompatible to
avoid Python "returned an object with the error set" error message
and instead just use the proper ValueError exception with a descriptive
exception message
2020-07-23 07:52:28 +10:00