49905 Commits

Author SHA1 Message Date
Nyall Dawson
56fd4e3b16 Add QgsGeometryUtils method for interpolating point between two points, with z/m handling 2018-08-15 14:01:59 +10:00
Nyall Dawson
0faa7ecdae [processing] Minor optimization for regular points algorithm 2018-08-15 10:23:02 +10:00
Nyall Dawson
9d6b5a7f53 [processing] Fix non-sequential ids in regular points algorithm 2018-08-15 10:23:02 +10:00
Matthias Kuhn
f769430419 Fix indentation 2018-08-15 10:23:02 +10:00
Jordan Feldstein
93ee06247d Count and report progress based on expected total
Algorithm appears to freeze without progress while `extent_engine.intersects(geom.constGet())` returns false. 

This keeps the progress bar continuous and smooth, even if the feature ends up not being added.

(noticed this because the algo hangs for 2 mins while processing a large dataset which I think is outside the extent somehow. None of the points going in. No apparent progress.)
2018-08-15 10:23:02 +10:00
Nyall Dawson
553090b17a Fix warning 2018-08-15 08:55:02 +10:00
Matthias Kuhn
546ecbe413
Merge pull request #7611 from PeterPetrik/translation_projects_missing_header
The qgstranslationcontext.h is missing in an install folder after build.
2018-08-14 21:45:59 +02:00
Martin Dobias
767a7b0f5c Travis fixes 2018-08-14 19:53:27 +02:00
Matthias Kuhn
da527be9a1 Fix sip bindings 2018-08-14 19:04:56 +02:00
Martin Dobias
90e764dfab Update test images for mesh layer renderer test
Before the mesh layer used by default QSettings-dependent color ramp
(and it was hot-to-cold rather than cold-to-hot)
2018-08-14 16:42:13 +02:00
Martin Dobias
d90729e7ae Write mesh rendering results into the report HTML file 2018-08-14 16:42:13 +02:00
Martin Dobias
358d12946b Read/write mesh styling from/to project files 2018-08-14 16:42:13 +02:00
Martin Dobias
9fc2e3e148 Make scalar/vector rendering settings per dataset group
Until now there was just one scalar and vector configuration
for a mesh layer. It is however most useful to have different
rendering settings for each dataset group (quantity).
2018-08-14 16:42:13 +02:00
Alessandro Pasotti
a8bc941252 [test] Add a test for QgsSQLiteExpressionCompiler 2018-08-14 16:37:09 +02:00
Martin Dobias
feddb3d3e6 Encapsulate all mesh renderer stuff in one class + fix legend updates 2018-08-14 16:36:09 +02:00
Alessandro Pasotti
3ea67af6e2 [bugfix] Create a b-tree expr when rule based renderer has more than 50 rules
Fixes #19441 Layers with 80+ rule-based symbology do not render
2018-08-14 16:33:25 +02:00
Martin Dobias
545eb9785a Generation of legend items for mesh layers 2018-08-14 16:30:09 +02:00
Martin Dobias
d093455725 Save extra datasets of mesh layers in project files
Some formats like .2dm only contain definition of mesh structure,
in order to show some data users need to add extra files with data
on that mesh. Until now the extra datasets were not persisted.
2018-08-14 16:30:09 +02:00
Martin Dobias
9273090d16 Fix issues around enabled/disabled state of scalar/vector rendering 2018-08-14 16:30:09 +02:00
viktor.sklencar@lutraconsulting.co.uk
238b24559c The qgstranslationcontext.h is missing in install folder after build.
Related to https://github.com/qgis/QGIS/pull/7456
2018-08-14 16:17:53 +02:00
Nyall Dawson
6fcc1626f9 Use QgsPoint( QgsPointXY ) constructor 2018-08-14 20:30:08 +10:00
Nyall Dawson
0b6bfc327a Fix some untranslatable strings 2018-08-14 20:30:08 +10:00
Nyall Dawson
3f9ea774c4 Resurrect display of interpolated z/m in identify results, and
add closest point x/y (closest point on geometry)

Add tests

Fixes #19403
2018-08-14 20:30:08 +10:00
Nyall Dawson
0fc1c9d4a6 Fix clang/clazy warnings 2018-08-14 20:30:08 +10:00
Stéphane Brunner
24f97f0205 Fix the Access control in the WMS groups
- Reactivate the tests
- Split the tests in more then one file
- Add WMS groups tests
- Use standard test font
2018-08-14 11:31:00 +02:00
Nyall Dawson
bef88f30df Minor processing parameter evaluation refactoring 2018-08-14 18:56:14 +10:00
Nyall Dawson
9a1f129640 Show field alias in tooltip in form editor tab 2018-08-14 16:00:19 +10:00
Nyall Dawson
d8f3ec4074 Fix geometryless features are skipped when pasting as a new scratch layer 2018-08-14 10:57:44 +10:00
Nyall Dawson
079c9fa6b6 Expand unit test coverage 2018-08-14 10:57:44 +10:00
Nyall Dawson
ac193d05cf Fix clang/clazy warnings 2018-08-14 09:33:46 +10:00
Nyall Dawson
dfa5104855 Sipify 2018-08-14 09:24:43 +10:00
Nyall Dawson
300b8a79df QStringLiteral 2018-08-14 08:23:41 +10:00
Nyall Dawson
bf25742ed3 Fix build warning 2018-08-14 08:20:39 +10:00
Matthias Kuhn
72e99d5d3f
Merge pull request #7602 from m-kuhn/wfsFix
Fix freeze with redirected WFS
2018-08-13 21:42:59 +02:00
Nyall Dawson
cca7141180 Fix attribute form labels show _ character if field name/alias has & characters
Qt treats these like shortcut key indicators in QLabel text if
they aren't escaped by a double &.
2018-08-14 05:17:40 +10:00
Matthias Kuhn
ec8a5543db
Fix freeze with redirected WFS 2018-08-13 15:47:29 +02:00
Alexander Bruy
c515a666b2 [processing] fix typo 2018-08-13 15:25:23 +03:00
Matthias Kuhn
70dcc33496
Merge pull request #7456 from signedav/translation_projects
Translation of .qgs project data
2018-08-13 11:25:05 +02:00
Nyall Dawson
6072350942 Tooltip for project provider 2018-08-13 17:39:00 +10:00
Nyall Dawson
29ccd1af71 New icon for dock/undock thanks to @nirvn 2018-08-13 16:44:34 +10:00
Nyall Dawson
1e051f0efb [FEATURE] Add a button in attribute table toolbar to switch between
docked and window mode

Previously you had to change an option in the settings dialog and
open a new table in order to switch between docked/undocked, but
that's painful if you decide after a table is already open that
you'd like to dock/undock it...
2018-08-13 16:44:34 +10:00
Nyall Dawson
a4a74a907d Add new icon for 'Save in project' thanks to @nirvn 2018-08-13 15:47:01 +10:00
Nyall Dawson
63fd4bab2a [processing][FEATURE] Store models inside QGIS project files
Allows processing models to be stored inside QGIS project files,
so that opening the project makes that model available.

Some models are so intrinsically linked to the logic inside
a particular project that they have no meaning (or are totally
broken) outside of that project (e.g. models which rely
on the presence of particular map layers, relations, etc)

This change allows these models to be stored inside that project,
avoid cluttering up the "global" model provider with models
which make no sense, and making it easier to distribute a single
project with these models included.

Models are stored inside projects by clicking the new "embed
in project" button in the modeler dialog toolbar. Models can be
removed from a project from the model's right click menu in the
toolbox.
2018-08-13 15:47:01 +10:00
Nyall Dawson
3a08300112 Sipify 2018-08-13 14:33:53 +10:00
Nyall Dawson
fa68041793 Fix some clazy/clang warnings in layout 2018-08-13 14:33:53 +10:00
Nyall Dawson
69201021d5 [layouts] Fix incorrect filename for atlas features when using
@atlas_feature

Fixes #19552
2018-08-13 11:09:13 +10:00
Nyall Dawson
6e2e0732f5 [layouts] Fix crash on report section delete
Fixes #19447
2018-08-13 11:09:00 +10:00
Nyall Dawson
73f3164fe4 Fix memory leak in filter multipoint 2018-08-12 17:15:40 +10:00
Rudi von Staden
f7204faa5b Update .gitignore to not track default windows build directories 2018-08-12 04:38:41 +10:00
Matthias Kuhn
02e6ec19aa
Merge pull request #7591 from m-kuhn/fixAndroidNative
Fix android native
2018-08-11 07:24:34 +02:00