17274 Commits

Author SHA1 Message Date
David Signer
d6a038b700 getter for handledFeatures in DeleteContext 2020-05-11 10:09:23 +02:00
David Signer
3c963abfc9 docs 2020-05-11 10:02:15 +02:00
David Signer
87de7de01c fix type in parametername deletedCount 2020-05-08 11:37:07 +02:00
David Signer
652cc99798 get all the child and join features of the first level to create the warning text to inform the user that there is a cascade delete or a composition relation 2020-05-08 11:16:28 +02:00
David Signer
0b64a83995 docs 2020-05-08 07:51:47 +02:00
David Signer
013b935c9a On delete, checks if there are referncing or joined layers where the delete could have an impact (compositions on relations or cascade delete on joins).
This is a general message checking the layer, not checking if the delete of the current feature will have impact. This to avoid long time on a big selection of features.
2020-05-08 07:43:44 +02:00
David Signer
aa8224716c Not using reference for QgsFeatureIds since the given value could maybe be changed on recursive delete.
Recursions are usualy not used with compositions, but to be save, this change has been made.
2020-05-07 23:10:37 +02:00
David Signer
79d86012ae DeleteContext instead of having cascade parameter in delete functions and QMap for response 2020-05-07 23:10:37 +02:00
David Signer
c4154b1ca5 use handledFeatures as context in join buffer functions as well to avoid recursions and use it for feedback 2020-05-07 23:10:37 +02:00
David Signer
023f16f696 the function to delete without updating the extent and deleting cascade is called deleteFeatureCascade
handledFeatures is given to store all the layers and features affected by the delete operation
recursion is blocked by checking handled features
2020-05-07 23:10:37 +02:00
David Signer
f352793b83 on deleting a feature, it deletes the relating children, when "cascade" parameter is true, the relation strength is a composition.
"cascade" parameter is true on every "normal" delete fired by the user interface. It's not true, on functions like merge feature or offline editing synchronization etc.
2020-05-07 23:10:37 +02:00
Nyall Dawson
7a6220a77f [FEATURE][layouts] Allow overriding the default symbol for a legend node
This allows users to (optionally!) customise the symbol appearance
for a legend node, e.g. to tweak the colors or symbol sizes to better
provide a "representative" patch symbol compared with how those
corresponding features actually appear on the map.

It's useful for exaggerating symbol widths, or for manually tweaking
the colors of semi-transparent symbols so that the colors represent
the actual appearance of the symbols when rendered on top of the map
content. Or to tweak the marker interval/offset in marker lines so that the
markers are nicely spaced in the legend patch.

Fixes #14077
2020-05-05 11:49:05 +10:00
vcloarec
aa6d23d540 disable transparency for QgsInterpolatedLineRenderer 2020-05-05 05:53:25 +10:00
Martin Dobias
ac8b956640 Allow relative paths to vector tile layers in projects (fixes #36023) 2020-05-04 13:05:19 +02:00
Matthias Kuhn
768d68f2bf Remove garbage
Pretty sure that was never put here on purpose
2020-05-04 16:12:29 +10:00
Germap
5623229f8c
[processing] Set distanceArea CRS properly in SumLineLengths algorithm
Fix #36135
2020-05-04 06:26:56 +10:00
Nyall Dawson
66a3b090da Maybe even LESS enum classes will help? 2020-05-04 05:38:48 +10:00
Nyall Dawson
6ec369e6b7 Travis says no to enum class 2020-05-04 05:38:48 +10:00
Nyall Dawson
d0ca4f31f8 Since 2020-05-04 05:38:48 +10:00
Nyall Dawson
e10c9f3b19 [labeling][FEATURE] Add a dedicated polygon placement mode for "outside"
When selected, labels will always be placed outside of polygons for the
layer

Sponsored by QGIS Swiss user group
2020-05-04 05:38:48 +10:00
Nyall Dawson
9fb85d3bc8 [FEATURE][labeling] Permit data defined control over placing labels outside
polygons

Options are:
- 'yes': allow placing outside the polygon if needed
- 'no': don't allow outside placements
- 'force': only ever put this label outside the polygon
2020-05-04 05:38:48 +10:00
Nyall Dawson
51820badc1 [FEATURE][labeling] Add option to allow polygon labels to be placed
outside of polygon features when required

When a label can't be placed inside the polygon and this option is checked,
then it will be automatically placed at a nicely selected location
just outside of the polygon

Sponsored by QGIS Swiss user group!
2020-05-04 05:38:48 +10:00
Germán Carrillo
a6db48151b Missing dockwidget object name (useful for addTabifiedDockWidget) 2020-05-03 15:34:46 +10:00
Germán Carrillo
76a8f8270a Expose addTabifiedDockWidget through QgisInterface 2020-05-03 15:34:46 +10:00
Denis Rouzaud
dd560f49b3
move the logic to save line edit state to QgsLineEdit (#36117) 2020-05-01 14:17:58 +02:00
Alexander Bruy
dc023e6cdb
Merge pull request #36032 from alexbruy/service-area-units
[processing] use hours as cost units for service area algorithms (fix #30464)
2020-04-30 21:07:58 +03:00
Alexander Bruy
5d7871fa0c fix tests 2020-04-30 18:52:35 +03:00
Denis Rouzaud
578ab8596d
Merge pull request #36089 from 3nids/expression-preview
Feature browser for preview in expression builder
2020-04-30 17:50:10 +02:00
Denis Rouzaud
3fd45ecaff add browsing buttons 2020-04-30 09:41:05 +02:00
Denis Rouzaud
9488f06025 code layout 2020-04-30 06:52:22 +02:00
Alexander Bruy
9a53837946 add new parameter and hide old one 2020-04-30 07:46:05 +03:00
uclaros
b6f890ec11 fix typo 2020-04-30 09:03:18 +10:00
Nyall Dawson
17c8a59e4e Refactor QgsLineString::interpolatePoint to extract segment traversal
to a separate visitor function

This allows other code paths to utilise this same logic in an efficient
way
2020-04-30 08:23:43 +10:00
Alessandro Pasotti
909dd31108
Merge pull request #36087 from Samweli/provider_metadata_bool_params
Functions for adding a variant of bool params in provider metadata
2020-04-29 18:47:22 +02:00
Denis Rouzaud
0119bb52e1 add setting for fetch limit 2020-04-29 15:54:16 +02:00
Denis Rouzaud
3090824cbf add a property to determine if geometry is fetched 2020-04-29 15:54:15 +02:00
Denis Rouzaud
ae5988cbb1 do not use template since they cannot be mixed with Q_OBJECT 2020-04-29 15:54:15 +02:00
Denis Rouzaud
780b581f03 use a template approach 2020-04-29 15:54:15 +02:00
Denis Rouzaud
01516d75e2 reintroduce reload current feature 2020-04-29 15:54:15 +02:00
Denis Rouzaud
82da0fd962 rename QgsFeatureChooser to QgsFeaturePicker 2020-04-29 15:54:15 +02:00
Denis Rouzaud
3cd237eca7 more work 2020-04-29 15:54:15 +02:00
Denis Rouzaud
97dafe1fe9 move the expression preview to a dedicated class 2020-04-29 15:54:15 +02:00
Samweli
0cbb4dbb5b add setting of bool params in provider metadata 2020-04-29 14:05:08 +02:00
obrix
44fec550d5 Invert th meaning of min scale and max scale to be coherent with other qgis feature. Minimum scale is the most zoomed out scale, maximum scale the most zoomed in. Enrich the tooltip to be more explicit. Should fix issue #35786. 2020-04-29 13:00:39 +02:00
Nyall Dawson
69e841a256 Allow specifying hidden parameter values when setting initial parameter values for an algorithm dialog 2020-04-29 17:10:52 +10:00
vcloarec
d28e3013f9 fix sip doc 2020-04-29 08:53:26 +10:00
vcloarec
56916581e1 fix sip 2020-04-29 08:53:26 +10:00
rldhont
19d2dc5b96
Merge pull request #35939 from Gustry/project_title
check project root name in the server validator
2020-04-28 18:51:46 +02:00
Nyall Dawson
e89b7283fe Fix exception when editing certain model algorithms
Fixes #36036
2020-04-28 19:21:24 +10:00
Nyall Dawson
40db7f9efd [processing] Fix subset string is ignored for vector layers when
running GDAL algorithms

If a subset string is set, we must export the subset of the layer
for use by the GDAL command*

Fixes #35981

* well, we probably **should** just build the gdal command to include
the SQL definition of the subset filter, but that's non-trivial, so
this fix is a good simple solution for now
2020-04-28 19:21:00 +10:00