48597 Commits

Author SHA1 Message Date
Nyall Dawson
18dbf03179 Fix build warnings due to differing virtual method signatures 2018-06-29 14:37:23 +10:00
nirvn
63d0317d5e [ui] when toggling panel visibility (ctrl+tab), do not hide floating tabified panels 2018-06-29 10:09:18 +07:00
Nyall Dawson
36cfaac8af Even more descriptive error 2018-06-29 10:46:09 +10:00
Marco Bernasocchi
96764beff2 more informative error message 2018-06-29 10:46:09 +10:00
Nyall Dawson
dbac3b4922 [python] Block imports of PyQt4 modules
Prevents crashes when PyQt4 modules are imported in QGIS 3.x.
This instantly segfaults QGIS. Throwing an exception makes it
easier to identify the cause as a faulty plugin, and shows
exactly where the bad import is located.
2018-06-29 10:46:09 +10:00
Even Rouault
0c0981aa6a
Merge pull request #7330 from rouault/fix_build_with_qt_5_5
Fix build with QT 5.5
2018-06-29 00:00:40 +02:00
Juergen E. Fischer
11faa58ef6 clean more last traces 2018-06-28 23:30:32 +02:00
Nyall Dawson
9fe26af8fa Allow processing tests to specify ellipsoid/project CRS 2018-06-29 07:12:48 +10:00
Nyall Dawson
1223a1cd35 Address review comments 2018-06-29 07:12:48 +10:00
Nyall Dawson
c20717a03c Protect against centroid failures 2018-06-29 07:12:48 +10:00
Nyall Dawson
ce541cb6bf Use std::size_t 2018-06-29 07:12:48 +10:00
Nyall Dawson
c360e37460 Fix test failure 2018-06-29 07:12:48 +10:00
Nyall Dawson
34b9d39b27 [FEATURE][processing] K Means clustering algorithm
Adds a native k-means clustering algorithm.

Based on a port of PostGIS' ST_ClusterKMeans function, this
new algorithm adds a new cluster ID field to a set of input
features identify the feature's cluster based on the k-means
clustering approach. If non-point geometries are used as input,
the clustering is based off the centroid of the input geometries.
2018-06-29 07:12:48 +10:00
Daniele Viganò
16f3781ab7 Remove last traces of qextserial from rpm 2018-06-29 07:12:20 +10:00
Juergen E. Fischer
d1aa949d02 fix build 2018-06-28 23:05:51 +02:00
Martin Dobias
ef214d2ba1 [feature] Move camera keeping the position with Ctrl + arrow keys / mouse 2018-06-28 22:34:35 +02:00
Martin Dobias
2b5f46990c [feature] Allow moving camera up/down using page up/down keys 2018-06-28 22:34:35 +02:00
Even Rouault
b5b720dbea
Add QOverload to test_banned_keywords.sh 2018-06-28 22:29:28 +02:00
Even Rouault
f5d2c7bc35
Fix build with QT 5.5
QOverload is new in QT 5.7
2018-06-28 22:29:13 +02:00
Denis Rouzaud
98bce5b734
fix findSIP when SIP >= 4.19.10 (#7329) 2018-06-28 22:22:25 +02:00
Denis Rouzaud
4d0d19b0f7
fix build without gui but with bindings
console and plugin installed are gui components
2018-06-28 21:55:38 +02:00
Aleix Pol
c231600ba6 Include date on the release
AppStream complains if releases don't have a date
2018-06-29 05:54:53 +10:00
Aleix Pol
f1d226f5cb Roughly adapt packaging to the changes in the previous commit 2018-06-29 05:54:53 +10:00
Aleix Pol
618c3ce368 Centralise linux metadata in the buildsystem
Instead of having it defined on every version of the packaging
2018-06-29 05:54:53 +10:00
Denis Rouzaud
ea0feadf3d
remove old cmake variable QWTPOLAR 2018-06-28 21:47:56 +02:00
Even Rouault
c76a1b507b
Postgres provider: fix build with old QT 5 2018-06-28 21:13:57 +02:00
Juergen E. Fischer
155ba1ad50 show wms request step size widgets when customization is enabled 2018-06-28 18:28:31 +02:00
Juergen E. Fischer
212cffcab1 Port gps support to QSerialPort (byebye QExtSerialPort) 2018-06-28 17:31:01 +02:00
Martin Dobias
30ddbbfcfc Be slightly more efficient when doing ray-mesh intersection tests 2018-06-28 15:37:53 +02:00
Martin Dobias
1002a14015 Check intersection with all relevant nodes to find the closest intersection 2018-06-28 15:37:53 +02:00
Martin Dobias
255aa9e00b Fix issues with camera view center adjustments + option to show the center 2018-06-28 15:37:53 +02:00
Martin Dobias
8a15cef2fc [3d] Handle tilting and rotation of camera better
This will update camera's view center as the camera moves around.
Before the view center would be always at the zero elevation, which
means that with terrain further away from zero elevation tilting
and rotation of camera would feel weird due to the center point being
far away.

In order to update camera's view center we need to calculate intersection
of terrain with a 3D ray coming from the camera's position towards the center
of the viewport. This is done by going through the active terrain tiles
and checking whether their bounding box intersects the ray - if it does,
then we do an exact test of terrain tile's triangle mesh against the ray
to find the closest intersection point. When we have the intersection,
we update the view center to be at the terrain's surface.

Unfortunately raycasting in Qt3D is only available from 5.11 which has been
released only very recently. I have therefore ported some code from Qt3D
internals and added ray vs axis-aligned box from a different source
(Qt3D uses bounding spheres but they are not available in public API either)
2018-06-28 15:37:53 +02:00
Martin Dobias
97addfc2cc
Merge pull request #7313 from PeterPetrik/mesh_layer_styling_gui
[mesh] [feature] App widgets for styling mesh layers
2018-06-28 15:17:14 +02:00
Matthias Kuhn
9643d52055
Merge pull request #7316 from m-kuhn/hideZoomToFeature
Hide zoom to feature button for nonspatial embedded forms
2018-06-28 13:28:30 +02:00
Martin Dobias
4c8b801791 Make sure that bool(obj) is True for QGIS API objects
bool(obj) in Python has the following semantics:
1. if the object has __bool__() method, return its value
2. if the object has __len__() method, return its value
3. return True

So for objects in QGIS API that implement __len__() method, we were getting
unexpected behavior - for example, "if layer: ..." would evaluate as False
in case the layer was empty, while the usual expectation is that any reference
to an object that is not None should evaluate to True.
2018-06-28 11:04:50 +02:00
Peter Petrik
79d761d6da change mesh UI to tabs instead of collapsible groups 2018-06-28 10:07:54 +02:00
Mathieu Pellerin
fb9e575252
[FEATURE] map canvas @canvas_cursor_point variable (#7225) 2018-06-28 14:18:54 +07:00
Nyall Dawson
85fba799ea [processing] Don't abort when missing field name specified in
delete columns algorithm

Fixes #19256
2018-06-28 17:10:23 +10:00
Nyall Dawson
6f5405a829 [processing] Be more careful with output geometries added as a
result of clipping
2018-06-28 17:09:51 +10:00
Nyall Dawson
31330ddffb [processing] Fix random selection algorithm when filter is set on layer 2018-06-28 15:02:06 +10:00
Nyall Dawson
977e14b058 [processing] Fix potential crash when calling processing.run with
custom context, but no feedback object
2018-06-28 14:12:37 +10:00
Nyall Dawson
73eb7628d8 Style 2018-06-28 11:26:53 +10:00
Nyall Dawson
d21af30d4d Followup d0e94728
We can't safely use final on anything exposed through sip
2018-06-28 10:42:59 +10:00
Juergen E. Fischer
d0e94728d8 fix build with sip 4.18.1 (eg. ubuntu artful) 2018-06-27 23:30:04 +02:00
Juergen E. Fischer
a65279629c debian packaging: add python3-pyqt5.qtwebkit (fixes #19275) 2018-06-27 22:58:31 +02:00
Juergen E. Fischer
1904a431be fix typo 2018-06-27 18:16:42 +02:00
Juergen E. Fischer
17a0593689 add 3.2 api doc to index list 2018-06-27 18:16:42 +02:00
Juergen E. Fischer
b5d0c75027 wms provider: avoid exceeding server limits by tiling the requests (implements #19150) 2018-06-27 18:16:42 +02:00
Alessandro Pasotti
efe0fbf9db
Merge pull request #7310 from elpaso/oauth2
[auth] OAuth2 authentication plugin
2018-06-27 18:12:09 +02:00
Luigi Pirelli
602a858988
Merge pull request #7318 from ismailsunni/sortable_shortcuts
Make the Keyboard shortcuts list sortable.
2018-06-27 10:52:49 +02:00