59061 Commits

Author SHA1 Message Date
David Signer
d788d0ffe2 sip deprecated of forceReload and some doc improvements 2019-12-13 10:50:25 +01:00
David Signer
625d601e86 Deprecate forceReload() and merge it together with reloadData()
`reloadData()` implementations are set to private on `reloadProviderData()`

All calls of `forceReload()` or `reloadData()` target `QgsDataProvider::reloadData()` what calls the implemented `reloadProviderData()` of the provider and `dataChanged()` signal is called allways. That this signal is called changes the behavior of the `dataReload()` calls of all providers.
2019-12-12 15:59:07 +01:00
David Signer
e5b0c9d719 forceRelaod function including requesting feature reset 2019-12-06 07:27:55 +01:00
Matthias Kuhn
2f5d210b02
Merge pull request #33161 from m-kuhn/dxf_export_quadrant_based
Respect placement quadrant in DXF export
2019-12-05 08:46:18 +01:00
Matthias Kuhn
c01f8042f8
Merge pull request #33162 from m-kuhn/dxf_dash_beautify
DXF export preserve dashed line style
2019-12-05 08:46:00 +01:00
Peter Petrik
7df4ec7f4a fix issues from 2nd review 2019-12-05 07:08:50 +01:00
Peter Petrik
284abe074c add python directory to cache so can be modified by ccmake 2019-12-05 07:08:50 +01:00
Peter Petrik
d1dd68ae11 remove averaging settings class and expore averaging methods outside qgis core 2019-12-05 07:08:50 +01:00
Peter Petrik
8aa0c28070 update MDAL to 0.4.91 (alpha release of 0.5.0 for QGIS 3.12) - stacked meshes 3d 2019-12-05 07:08:50 +01:00
Peter Petrik
a30bda6c3d [FEATURE] Initial implementation of QEP 158: Support of 3d stacked meshes in QGIS.
Stacked 3D meshes store values on the volumes that are regularly stacked over base 2d mesh. User can select various 3d to 2d averaging/interpolation method to convert values on volumes (3d) to values on faces (2d) that can be shown in mesh layer. This is achieved by new tab in the mesh layer properties dialog.
2019-12-05 07:08:50 +01:00
Harrissou Sant-anna
c1acb01f62 Use generic container in title 2019-12-05 05:33:31 +10:00
Harrissou Sant-anna
6e7ff13ebd Use container instead of category 2019-12-05 05:33:31 +10:00
Harrissou Sant-anna
706a158b63 Replace label 2019-12-05 05:33:31 +10:00
Julien Cabieces
ba925bb36d Create child feature with geometry from the relation editor (#32528)
* [FEATURE][needs-docs] Create geometric child feature from relation editor
2019-12-04 14:46:32 +01:00
Martin Dobias
b5dd082ac3 Actually also don't evaluate right-hand side 2019-12-04 12:14:41 +01:00
Martin Dobias
11d527596c Skip right-hand side of AND/OR expression if we already know result 2019-12-04 12:14:41 +01:00
Denis Rouzaud
f341b34a66
do not limit the number of classes in logarithmic method (#33223)
this was preventing from setting enough classes
2019-12-04 11:11:08 +01:00
Nyall Dawson
7746061b46 [FEATURE][processing] New algorithm "Repair Shapefile"
Uses GDAL to repair shapefiles which have a broken or missing .SHX file
2019-12-04 19:58:02 +10:00
Nyall Dawson
b4bc7cbffd iface.newProject() should return False if a new project could not
be created (e.g. if the user opts to cancel when prompted to save the
current project)
2019-12-04 19:02:46 +10:00
rldhont
caf8cfafa4 [Tests] Update QgsVectorLayer readSld to test read label 2019-12-04 17:13:01 +10:00
rldhont
e6559ca69e [Bugfix] QgsVectorLayer: Read SLD Labeling
The error was:
* QgsRenderer did not exclude SLD TextSymbolzer as a rendering configuration.
* QgsVectorLayer did not well detect SLD Text Symbolizer
* QgsVectorLayer did not well read SLD Labeling produced by QgsVectorLayer

The QgsOgcUtils and QgsSymbolLayerUtils classes have to be enhanced for a better homogenized capabilities.
2019-12-04 17:13:01 +10:00
Sandro Santilli
66ba86f1f8 PointCloud is unavailable when you can't read its metadata
Fixes #32972
2019-12-04 16:59:24 +10:00
Sandro Santilli
30fe748469 Add test for pointcloud layers fetching and related permissions
This commit is expected to fail, lacking an actual fix

See #32972
2019-12-04 16:59:24 +10:00
Sandro Santilli
5ad7be5a7b Add pcpoint as a supported spatial type 2019-12-04 16:59:24 +10:00
Sandro Santilli
66ea653e16 Do not use pcpatch type name when not available 2019-12-04 16:59:24 +10:00
Nyall Dawson
9a710f2441 Fix wording 2019-12-04 16:50:52 +10:00
Nyall Dawson
2774df2f74 [FEATURE] Show "Open Document..." action when right clicking certain
files in the browser, allowing them to be opened with the default
application for that file type

E.g. PDFs will open with the default PDF viewer.

Works with PDF, ODS, XLS(X), CSV, TXT, PNG, JPEG, TIFF, SVG
(other types will likely need more work, since they aren't
currently shown in the browser)
2019-12-04 16:50:52 +10:00
Nyall Dawson
66456a30e7 [labeling] When a layer is set to "blocking" mode, expose the obstacle
settings widget to allow users to tweak the obstacle behavior

Previously these settings were stuck inside the disabled label settings
widget, which meant that to edit them you had to temporarily enable simple
labels, tweak the setting, and then set back to obstacle mode... woot.
2019-12-04 14:47:36 +10:00
Nyall Dawson
e70db922d0 Avoid fragile combo box index based logic 2019-12-04 14:47:36 +10:00
Nyall Dawson
d63714ae63 Fix spelling 2019-12-04 14:47:36 +10:00
Nyall Dawson
22ea01b0fb Add a helpful label explaining obstacle weight 2019-12-04 14:47:36 +10:00
Nyall Dawson
7e6c6e721b Fix build 2019-12-04 14:47:36 +10:00
Nyall Dawson
02fffdc64b [needs-docs] Move label obstacle settings to "placement" tab
and show detailed settings in a stacked panel widget

Because:

1. The settings belong next to the placement settings, because they
affect label placement directly (and are closely associated with the
label priority setting in this tab)

2. The label settings widget is ridiculously complex and overwhelming
even for experienced QGIS users. By moving detailed settings into
stacked panels we can avoid the initial complexity of the label settings
whilst also allowing us more flexibility to expose additional settings
in future without adding to the mess. So in future, I propose we move
all detailed settings to sub panels, and leave only the initial "enable"
setting at the top level (e.g. [x] "Repeat levels" -> click settings -> see
all repeat settings).
2019-12-04 14:47:36 +10:00
Nyall Dawson
cf43104806 Add some unit tests for label settings widgets 2019-12-04 14:47:36 +10:00
Nyall Dawson
ed93ebd91c Add QgsLabelObstacleSettingsWidget widget for customising label obstacle settings 2019-12-04 14:47:36 +10:00
Nyall Dawson
de2b60d7ef Hookup data defined properties support for QgsLabelSettingsWidgetBase 2019-12-04 14:47:36 +10:00
Nyall Dawson
060cfb4eeb [api] New class QgsLabelSettingsWidgetBase
Base class for widgets which allow customisation of label engine properties,
such as label placement settings.
2019-12-04 14:47:36 +10:00
vcloarec
14c0d2c668 adds guard to prevent crash with mesh vector renderer
If the vector renderer factory returns a null ptr, this prevents QGIS crashing
.
2019-12-04 13:31:19 +10:00
Nyall Dawson
b736bf9a44 Huge speedup when labels are set to "boundary" obstacle mode
Because GEOS prepared predicates are "stubbed out" for many relation types,
such as overlaps and touches, we can get a HUGE speedup by reworking
the obstacle boundary check to utilise an intersects and within check instead
(with the same results)
2019-12-04 13:25:21 +10:00
Denis Rouzaud
42685043ad
shorter commit messages for PyQGIS docs jobs (#33189) 2019-12-03 12:02:38 +01:00
Nyall Dawson
23460272d4 Fix warnings 2019-12-03 19:38:24 +10:00
Nyall Dawson
316fd50b73 Fix tests 2019-12-03 19:38:24 +10:00
Nyall Dawson
9f63f49230 Move label obstacle settings out to their own class, and monkey patch around
to maintain current API

QgsPalLayerSettings is way too heavy, and we need to start refactoring
this into smaller atomic components
2019-12-03 19:38:24 +10:00
Nyall Dawson
f145fa96c8 [labeling] Default polygon obstacle mode is now Boundary avoidance
(This works better with the new placement engine logic)
2019-12-03 19:38:24 +10:00
Nyall Dawson
b235d31b8f Move QgsPalLayerSettings default values to header 2019-12-03 19:38:24 +10:00
Nyall Dawson
964681f0c1 Fix capitalizationation 2019-12-03 19:38:24 +10:00
Vincent Cloarec
7f415ca7a7 [FEATURE] Static particle traces for rendering mesh vector dataset (#33165)
* [FEATURE] Static particle traces for rendering mesh vector dataset

This PR permits to display directly in QGIS static particle traces for vector datasets in mesh layer without any plugin.
The user can choose in the mesh layer properties window :
- the color
- the size of the traces (line width)
- the count of particles
- the maximum length of the particle's tail
2019-12-03 08:13:36 +01:00
Nyall Dawson
ea5b4234ab Default to label placement engine v2 for newly created projects (for QGIS 3.12) 2019-12-03 13:48:45 +10:00
Nyall Dawson
9904fe8621 Refine behavior of obstacle weight slider to match feature weight slider 2019-12-03 13:48:45 +10:00
Nyall Dawson
435287260c [labels] Ensure that we show labels where we've ripped away all the candidates
when showing "unplaced labels"
2019-12-03 13:48:45 +10:00