56354 Commits

Author SHA1 Message Date
Alexander Bruy
5709f84b2f [processing] add createByDefault argument to directory output
constructor
2019-07-15 08:51:01 +10:00
Alexander Bruy
9ed4d08d5b [processing] ignore hidden parameters when generating GDAL command (fix #30669) 2019-07-15 07:52:36 +10:00
Nyall Dawson
202af568cb [layouts] Avoid crash when layout map references a project layer
with a bad path
2019-07-15 06:36:34 +10:00
Nyall Dawson
e0093e1d11 [processing] Don't abort when an algorithm step fails in batch mode
Instead, record errors and report them all at the end of the batch
process. If we abort the remaining batch steps when encountering any
error, this blocks a useful use of the batch mode and prevents users
from running a batch process over a large number of input files, some
of which may be invalid.
2019-07-15 06:35:14 +10:00
Matthias Kuhn
94f8b65c56
Merge pull request #30620 from stev-0/clipboard-multiline
Add quotes around fields with linebreaks when copying to clipboard
2019-07-12 14:04:05 +02:00
Alessandro Pasotti
51ef42be15
Merge pull request #30676 from troopa81/fix_conditional_form
Emit valueChanged signal for value relation widget on setFeature
2019-07-11 17:59:29 +02:00
Julien Cabieces
540df6c0c0 fixes #30564 : Emit signal for value relation widget so other dependent widgets
could be updated
2019-07-11 16:00:52 +02:00
Juergen E. Fischer
73c96ee5c8 api doc: update release doc links 2019-07-11 13:12:44 +02:00
Nyall Dawson
956c6d694e Add python subclass code 2019-07-11 13:03:12 +10:00
Nyall Dawson
b84d294412 Dox++ 2019-07-11 13:03:12 +10:00
Nyall Dawson
b10fc70d37 Don't get distracted... 2019-07-11 13:03:12 +10:00
Nyall Dawson
22ae228a9d Dox 2019-07-11 13:03:12 +10:00
Nyall Dawson
837700a211 Fix travis build 2019-07-11 13:03:12 +10:00
Nyall Dawson
86facfb620 Unit tests for callouts 2019-07-11 13:03:12 +10:00
Nyall Dawson
9a506b5d29 Add configuration widget for manhattan lines style callout 2019-07-11 13:03:12 +10:00
Nyall Dawson
b944dd4d23 Ensure messagebar is available for use by callout widgets in dock mode 2019-07-11 13:03:12 +10:00
Nyall Dawson
7f33c6ef4d Remove leftover code 2019-07-11 13:03:12 +10:00
Nyall Dawson
7d02545dc0 Add callout classes to doxygen 2019-07-11 13:03:12 +10:00
Nyall Dawson
1aba19d8ba Add "draw callout" option to label property map tool dialog 2019-07-11 13:03:12 +10:00
Nyall Dawson
2cb8f72161 Data defined control over whether a callout is drawn 2019-07-11 13:03:12 +10:00
Nyall Dawson
a105f294cd Use registry to create correct callout widget 2019-07-11 13:03:12 +10:00
Nyall Dawson
1d2dfda254 Add minimum length property for callouts, setup framework for data
defined properties of callouts
2019-07-11 13:03:12 +10:00
Nyall Dawson
7308159b64 Ensure label expression context also has fields set 2019-07-11 13:03:12 +10:00
Nyall Dawson
af76025fe5 Unit tests for callout registry 2019-07-11 13:03:12 +10:00
Nyall Dawson
8575f95c89 Use a registry for callouts 2019-07-11 13:03:12 +10:00
Nyall Dawson
b298a197e7 Start on registry 2019-07-11 13:03:12 +10:00
Nyall Dawson
4cb31b0694 Experiment with a manhattan line callout style 2019-07-11 13:03:12 +10:00
Nyall Dawson
e885bbbd1e Gui work 2019-07-11 13:03:12 +10:00
Nyall Dawson
d9bffb0399 Only draw connectors for fixed labels (for now) 2019-07-11 13:03:12 +10:00
Nyall Dawson
fb1a610007 Early prototype of label callouts 2019-07-11 13:03:12 +10:00
Nyall Dawson
7833162ca0 [processing] Fix occasional crash in Processing gui unit test cleanup 2019-07-11 10:36:59 +10:00
Nyall Dawson
39f2121063 Fix initial flag values 2019-07-11 08:05:33 +10:00
Denis Rouzaud
2b9ee87b9b pyrcc5: remove obsolete parameter 2019-07-11 06:18:17 +10:00
Juergen E. Fischer
75f9e7c9a6 avoid checking whether base64 encoded embedded content is a file 2019-07-10 13:45:45 +02:00
Martin Dobias
3f5061599f Faster map rendering when using null symbol renderer
If we can skip the loop which fetches features altogether, let's do that
and save some time which would be otherwise spent getting geometries only
to delete them immediately afterwards.

This is practical especially for 3D scenes where it is useful
to set 2D renderer to null if 3D renderer is set.
2019-07-10 13:39:12 +02:00
nirvn
818f99674b Fix startup crasher due to auth. error calling non-initialized message bar
(fixes #30366)
2019-07-10 11:19:02 +07:00
Nyall Dawson
f859957ddd [FEATURE] Show 3D length for LineStringZ features in identify derived attributes
If a 3D linestring is identified, add the 3d length of this line
alongside the existing 2d cartesian and ellipsoidal lengths
2019-07-10 10:05:32 +10:00
Nyall Dawson
142308e712 Add a start/stopRender method to QgsPalLayerSettings
This allows us a chance to correctly call start/stopRender on all
symbols which are used as part of the labels and ensure they are
nicely prepared and cleaned up.

Also adapt labeling engine to add calls to startRender/stopRender where
appropriate.
2019-07-10 10:05:06 +10:00
Nyall Dawson
4f8ca98a06 Ensure the render context has the correct expression context available
(including original feature) when drawing labels as part of a map render
2019-07-10 10:05:06 +10:00
Nyall Dawson
be23525a5e Use a non-const QgsRenderContext& when preparing labeling providers,
for compatibility with symbology (which requires non-const context)
2019-07-10 10:05:06 +10:00
Nyall Dawson
6d02c93bd9 Adjust test result 2019-07-10 08:10:49 +10:00
Nyall Dawson
13be186b90 Use QgsMapLayer::providerType() instead of dataProvider()->name(),
as it's more robust in handling invalid layers
2019-07-10 08:10:49 +10:00
Nyall Dawson
cf22a8d3a2 Use fast project reading in some algorithms, browser project provider 2019-07-10 08:10:49 +10:00
Nyall Dawson
8aa9263413 Fix restoration of vector layer renderers when project has bad layer sources 2019-07-10 08:10:49 +10:00
Nyall Dawson
51ed8c95b2 Dox++ 2019-07-10 08:10:49 +10:00
Nyall Dawson
458a247997 Dox 2019-07-10 08:10:49 +10:00
Nyall Dawson
0cdad2307b Add api to allow reading a QgsProject file without loading any layers
This causes the project to be read, but no data providers created for
layers (i.e. the same result as loading a project in the app and
choosing to leave bad layers in the project).

It's intended for occasions when you want to efficiently access properties
of a project without the (often very expensive) cost of actually
loading layers. E.g. to just read project metadata, parse the
layer tree structure, extract print layouts or renderer properties, etc.
2019-07-10 08:10:49 +10:00
Stephen Knox
320c5349b3 Add quotes around fields with linebreaks when copying to clipboard
To fix #30580. Also add test coverage
2019-07-09 16:44:41 +01:00
Denis Rouzaud
549da3dddb
update error message, Qt 4 is goooone 2019-07-09 15:21:09 +02:00
Denis Rouzaud
47ad1e8ab0
add missing geos include (#30638) 2019-07-09 12:17:39 +02:00