64608 Commits

Author SHA1 Message Date
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
Nyall Dawson
c912564452 [processing] Better error reporting when features fail to be added to an output
Use a descriptive error message which explains why the feature addition failed,
instead of a generic error message
2020-07-23 07:51:58 +10:00
Nyall Dawson
3eec9a47f0 Add a lastError() getter to QgsFeatureSink for retrieving the last error
encountered by the sink (e.g. after adding a feature fails)
2020-07-23 07:51:58 +10:00
Nyall Dawson
262a193497 [processing] Remove restrictive length limitations on created fields 2020-07-23 07:51:39 +10:00
NEDJIMAbelgacem
2108231586 Added QgsImageTexture documentations 2020-07-22 18:55:53 +01:00
NEDJIMAbelgacem
752a271674 qDebug & QString cleanup 2020-07-22 17:46:57 +01:00
NEDJIMAbelgacem
e13619e8c9 Fixed highlight lines export bug 2020-07-22 17:33:30 +01:00
NEDJIMAbelgacem
4290dde749 vecctor layer texture export 2020-07-22 15:23:41 +01:00
nirvn
518cc16e87 Add additional output strings to help model making 2020-07-22 19:11:50 +07:00
nirvn
8c61a803fc [FEATURE][processing] Add a save features to file algorithm 2020-07-22 19:11:50 +07:00
Nyall Dawson
05be43da55 [ogr] Automatically set QGIS field alias if OGR is able to read one
from the underlying datasource

Supported on GDAL >= 3.2, for the file geodatabase driver only
2020-07-22 15:39:27 +10:00
Matthias Kuhn
dac3f008c2
Merge pull request #37901 from mitya57/sip5
Add support for SIP v5 to the build system
2020-07-22 07:26:43 +02:00
Nyall Dawson
ee4797973d Fix ellipse symbol layer doesn't reflect feature selection state
Fixes #37893
2020-07-22 13:08:16 +10:00
nirvn
c8c0dcdf0b [vector file writer] LIBKML driver also requires coordinates to be in wgs84 2020-07-22 08:37:13 +10:00
DiGro
f0b62fb001 Corrected description Minority and Majority
Line 68 : "   <li>Minority (most frequent value)</li>"  should probably be "   <li>Minority (least frequent value)</li>"
Line 69 : "   <li>Majority (least frequent value)</li>"   should probably be "   <li>Majority (most frequent value)</li>"
2020-07-22 08:36:41 +10:00
Nyall Dawson
0d944fb314 Fix flexible aspect ratio is ignored when rendering marker svg symbols 2020-07-22 06:47:00 +10:00
Dmitry Shachnev
0506895753 Make FindPyQt5.py compatible with SIP v5 2020-07-21 21:49:46 +03:00