48771 Commits

Author SHA1 Message Date
Nyall Dawson
5ec617366b Revert changes to gmath.h 2018-06-30 09:24:38 +10:00
rossia
53dbca2a35 [FEATURE] GPS acquisition interval and distance threshold options
Adds an acquisition interval parameter and a distance threshold
parameter to the gps plugin in order to keep the cursor still when
the receiver is in static conditions.
2018-06-30 09:24:38 +10:00
Alessandro Pasotti
13a727c954 Add preview for locale settings 2018-06-29 16:48:43 +02:00
Håvard Tveite
a756fb1034 Fix parameter type for the BUFFER parameter of the Voronoi polygons alg
Fixes #19294
2018-06-29 23:02:03 +10:00
Alessandro Pasotti
9976fc2631 Add options to override locale and number group sep. 2018-06-29 14:52:18 +02:00
Matthias Kuhn
edaaaec2b1
Merge pull request #7331 from nyalldawson/no_sipify_diff
Avoid prepare-commit script leaving temporary .diff files
2018-06-29 13:31:30 +02:00
Martin Dobias
e35ec2dccb Prevent going up when rotating camera with ctrl and reaching pitch limits 2018-06-29 13:04:10 +02:00
Martin Dobias
e073a4cbb8 Fix compilation error on Fedora 2018-06-29 12:10:20 +02:00
Hugo Mercier
cd39798b4d Fix access to rule settings 2018-06-29 11:51:04 +02:00
Martin Dobias
569db8e069
Merge pull request #7045 from PeterPetrik/qgs-quick-position_and_transformer
[feature] [qgsquick] Add PositionKit, PositionMarker and CoordinateTransformer
2018-06-29 09:08:35 +02:00
Denis Rouzaud
7a68002619
leave comment for SIP version 2018-06-29 09:01:57 +02:00
nirvn
46246f622d [needs-docs][dbmanager] harmonize icons 2018-06-29 11:56:37 +07:00
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
Nyall Dawson
821241ea26 Avoid prepare-commit script leaving temporary .diff files 2018-06-29 08:54:13 +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
Peter Petrik
b55db3dfb5 match Qt naming schema for factories 2018-06-28 16:43:08 +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
7bfcaf4db9 remove need for factory for system of measurement 2018-06-28 10:41:13 +02:00