62464 Commits

Author SHA1 Message Date
Matthias Kuhn
768d68f2bf Remove garbage
Pretty sure that was never put here on purpose
2020-05-04 16:12:29 +10:00
Paul Blottiere
d8426c3b9d
Merge pull request #36141 from pblottiere/context_restorer
Add a broader restorer mechanism for WMS
2020-05-03 23:41:25 +02:00
Clemens Raffler
096b80e444
[feature][processing] Complete random raster algorithm collection #2
This refactors and completes the recently added work on random number raster layer creation algorithms (see #35835) and reworks the single algorithm implementation proposed in #36065 to a base-algorithm solution which avoids duplicate code.

With the new algorithms aimed towards distribution based random number creation, QGIS reaches to the same level of functionality as current ArcGIS random raster creation tools. In total, the PR adds the following algorithms (normal and uniform raster layer creation algs are refactored to be in line the new naming scheme):

Create random raster layer (binomial distribution)
Create random raster layer (exponential distribution)
Create random raster layer (gamma distribution)
Create random raster layer (negative binomial distribution)
Create random raster layer (normal distribution)
Create random raster layer (poisson distribution)
Create random raster layer (uniform distribution)
2020-05-04 06:28:45 +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
4369ffb3cc Fix test 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
d6637c5dd2 Request ui changes 2020-05-04 05:38:48 +10:00
Nyall Dawson
d0ca4f31f8 Since 2020-05-04 05:38:48 +10:00
Nyall Dawson
9364196444 Add unit tests for outside polygon labels 2020-05-04 05:38:48 +10:00
Nyall Dawson
e9f024b05c Less debug noise 2020-05-04 05:38:48 +10:00
Nyall Dawson
a934f0f605 Fix broken server tests
These tests had lots of issues, including some inappropriate mask images
which nullified the tests!
2020-05-04 05:38:48 +10:00
Nyall Dawson
00df3712e1 Fix diagram placement 2020-05-04 05:38:48 +10:00
Nyall Dawson
30540120c9 Be a bit less aggresive at pruning small feature polygon label candidates 2020-05-04 05:38:48 +10:00
Nyall Dawson
9dec1ddb83 Fix some labels incorrectly flagged as unplaced when they actually are placed 2020-05-04 05:38:48 +10:00
Nyall Dawson
fd3969f046 Logic tweaks 2020-05-04 05:38:48 +10:00
Nyall Dawson
17c47f5ff0 Force a small minimum distance when label outside mode is used, so that labels don't touch the polygon by default 2020-05-04 05:38:48 +10:00
Nyall Dawson
af9bf7e944 Show distance controls when labeling outside polygon modes are enabled
Because these impact how far outside the polygons the labels will be placed
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
Nyall Dawson
10bc703fb5 Cleanup handling of multiline align combo box, and allow selection
of multiline align for polygon features

Since this DOES have a meaning in some modes, e.g. when labelling
outside of polygons
2020-05-04 05:38:48 +10:00
Nyall Dawson
e4faa3daf1 [pal] Tag more label candidates with their respective quadrants 2020-05-04 05:38:48 +10:00
Nyall Dawson
94324f93ad [pal][api] Add label candidate generation mechanism to generate candidates
outside of polygon features

Based on a tweaked version of the logic presented by Rylov & Reimer
from "A practical algorithm for the external annotation of area features" (2016),
this placement mode generates a set of label candidates which sit at a
set distance outside of a polygon's exterior ring.

Designed for candidate generation for small polygons wrt label size, or in
other cases where it's not possible or desirable to fit the label inside
the polygon features itself
2020-05-04 05:38:48 +10:00
Nyall Dawson
6da9fa287c [pal] Refactor to generalise and extract function for creating an
ordered label position for a point
2020-05-04 05:38:48 +10:00
Nyall Dawson
d6381bc36c [pal] Avoid overly eager truncation of polygon candidates for long skinny polygons 2020-05-04 05:38:48 +10:00
Nyall Dawson
ba7df72233 [pal] Optimise LabelPosition::getDistanceToPoint for horizontal labels 2020-05-04 05:38:48 +10:00
Nyall Dawson
faffae5f06 Remove dead code 2020-05-04 05:38:48 +10:00
Blottiere Paul
56077cf780 Replace pointer by value 2020-05-03 15:03:56 +02:00
Blottiere Paul
a14f66546e Update unit test 2020-05-03 15:03:56 +02:00
Blottiere Paul
59b18b8359 Add documentation 2020-05-03 15:03:56 +02:00
Blottiere Paul
bf4eca1b45 Replace old restorer by the new one 2020-05-03 15:03:56 +02:00
Blottiere Paul
69a327648f Add unit tests 2020-05-03 15:03:56 +02:00
Blottiere Paul
5df1373166 Add a broader restorer class 2020-05-03 15:03:56 +02:00
Nyall Dawson
8211643c84 Blacklist PyQgsServerWMSGetPrint
This test consistently fails, likely revealing a real issue in the server
code (but regardless, a test which fails all the time has no place on
the ci)
2020-05-03 15:41:19 +10:00
Germán Carrillo
a6db48151b Missing dockwidget object name (useful for addTabifiedDockWidget) 2020-05-03 15:34:46 +10:00
Germán Carrillo
41a58df395 Tabify attribute tables that are dock widgets (fix #11953) 2020-05-03 15:34:46 +10:00
Germán Carrillo
76a8f8270a Expose addTabifiedDockWidget through QgisInterface 2020-05-03 15:34:46 +10:00
Germán Carrillo
4629f83409 New addTabifiedDockWidget in QGIS App to add dock widgets as tabs 2020-05-03 15:34:46 +10:00
jdugge
797972a6c8 Remove groupUuid when copying grouped layout items 2020-05-03 15:33:13 +10:00
Nyall Dawson
c5b7d73c8d Spelling fixes 2020-05-03 15:31:33 +10:00
Mathieu Pellerin
5f6abada4e [themes] Fix styling of bottom-located tabs 2020-05-03 11:00:29 +07:00
Samweli
40747fb79b check wmst group visibility based on its parent widget 2020-05-03 07:17:53 +10:00
Samweli
44e415a4fc repositioned use dates option in wmst group options 2020-05-03 07:16:59 +10:00
Samweli
532d4e0eef improve state handling in temporal tab 2020-05-03 07:16:10 +10:00
Samweli
db962209a7 updated navigation object test 2020-05-03 07:14:42 +10:00
Samweli
ca80f4519f use std::floor instead of std::ceil in calculating total count of frames 2020-05-03 07:14:42 +10:00
Jan Caha
89fe6347ae
[feature] close_line expression function
Closes an open (multi)linestring geometry
2020-05-02 09:08:35 +10:00
Alessandro Pasotti
fddc6b46e1
Merge pull request #35996 from agiudiceandrea/patch-int64-qgsexpression
Fix int64 literals parsing in QgsExpression
2020-05-01 23:41:02 +02:00
Matthias Kuhn
253c706b5c
Merge pull request #36124 from espinafre/fix_pg_bigint_default
Fixed fetching NULL bigint pgsql attributes. Fixes #36011
2020-05-01 18:56:21 +02:00