49383 Commits

Author SHA1 Message Date
Matthias Kuhn
4ce0182ff8
Avoid unexpected garbage collector 2018-07-31 16:28:55 +02:00
Alessandro Pasotti
c1eef4e030
Merge pull request #7508 from elpaso/highlight-properties
Add properties to QgsHighlight for easier animations
2018-07-31 15:49:21 +02:00
Alessandro Pasotti
6a4aee82db Code layout 2018-07-31 13:06:48 +02:00
Alessandro Pasotti
222fe2362e Add properties to QgsHighlight for easier animations 2018-07-31 10:23:27 +02:00
H Tveite
70b53fb484 Updated the expected/voronoi_buffer.gml file in testdata to reflect the new (and hopefully correct behaviour 2018-07-31 08:47:28 +10:00
H Tveite
c38c6dab85 Removed import of QgsProcessingParameterDistance as it is not used anymore 2018-07-31 08:47:28 +10:00
H Tveite
30f5983984 Attemp to fix wrong behaviour of VoronoiPolygon when buffer is specified (issue #18219(?), #8002(?), #13092) 2018-07-31 08:47:28 +10:00
Håvard Tveite
72dcd14a42 Update VoronoiPolygons.py
Width and height were mixed up.  Fixed.
2018-07-31 08:47:28 +10:00
Nyall Dawson
df05369dbf Hack is still required, but maybe using non-deprecated api will help?
Sometimes qt is great, sometimes I want to punch it in it's silly
little cute face
2018-07-31 05:12:59 +10:00
Nyall Dawson
a87a7b72df [layouts] Attempted fix for direct printing page orientation issues
Seems the earlier hack may no longer be valid for Qt5.

Fixes #18398, #18994, #19142, #19279
2018-07-31 05:12:59 +10:00
Martin Dobias
40ce1518ea Fixes after the reviews 2018-07-30 18:29:51 +02:00
Martin Dobias
6482a3b4d0 [FEATURE] Simple rendering of 3D linestrings
This mode of 3D line rendering will use OpenGL line rendering
instead of buffering lines into polygons and rendering them as meshes.

The advantage is that the 3D lines do not loose their Z coordinate
which is the case currently with "ordinary" 3D rendering after buffering.

The disadvantage is that the lines cannot be wide (supported in Qt3D only
since 5.10, but even then their rendering won't have nice joins/caps)
and only ambient color is used from the material.
2018-07-30 18:29:51 +02:00
Alexander Bruy
72d13ac0f8 [processing] port shortest path (layer to point) alg to c++ 2018-07-30 15:15:04 +03:00
Alexander Bruy
d999923da9 [processing] port shortest path (point to layer) alg to c++ 2018-07-30 15:15:04 +03:00
Alexander Bruy
be3b2c8ff8 [processing] base class for network analysis algorithms 2018-07-30 15:15:04 +03:00
Alexander Bruy
a6901edb9b [processing] port shortest path (point to point) alg to c++ 2018-07-30 15:15:03 +03:00
Daniele Viganò
2e97b7bcd4 Fix GPL license declared in RPM spec file 2018-07-30 10:37:28 +02:00
Nyall Dawson
3c8b156c58 Abort expression parsing after encountering a maximum of 10 errors
Fixes #19480
2018-07-30 15:41:33 +10:00
Nyall Dawson
9db6d94e04 Typo 2018-07-30 14:47:29 +10:00
Nyall Dawson
6e091752ef Typo 2018-07-30 14:39:18 +10:00
Nyall Dawson
f119453f42 Tweak algorithm names, strings 2018-07-30 12:11:17 +10:00
Nyall Dawson
837206892a Optimise drape algorithms, skip vertex iteration for geometries which don't intersect raster 2018-07-30 12:11:17 +10:00
Nyall Dawson
d5ce6dcb1d [FEATURE][processing] native drape features to z/m algorithms
Sets vertex z/m values to values sampled from a raster band.

Values can optionally be scaled using a (data definable) scale value.
2018-07-30 12:11:17 +10:00
Nyall Dawson
d09faf42be Add method to transform vertices of QgsGeometry/QgsAbstractGeometry
in place using a custom lambda function
2018-07-30 12:11:17 +10:00
Nyall Dawson
df1832f90b [3d] Fix reset buttons in 3d config dialog reset values to 0, not initial settings 2018-07-30 11:54:28 +10:00
Nyall Dawson
7f84b6c1b6 Fix crash in network content fetcher when run from non-main thread
Because a QNetworkAccessManager is the parent for all QNetworkReplys
created by it, if a reply is created in a thread then we need to
ensure that this reply isn't deleted early by destruction of the
thread local QgsNetworkAcessManager instance. Work around this
by unsetting the parent for the QNetworkReplys owned by
QgsNetworkContentFetcher objects.

Fixes #19452
2018-07-29 08:46:15 +10:00
Martin Dobias
c28de6d3b5 Refactor camera pose to a separate class outside of the camera controller
This will allow easier storage of camera configuration when it is needed outside
of the camera controller.
2018-07-28 17:55:46 +02:00
Salvatore Larosa
88ddd4b0de
Merge pull request #7467 from slarosa/truncate_name
do not truncate layer name in legend panel if filename contains period
2018-07-28 16:55:54 +02:00
Denis Rouzaud
c0dd00615a
[pyqgis] __repr__ method for QgsExpression, QgsField (#7464)
* [pyqgis] __repr__ method for QgsExpression, QgsField

* add tests for __repr__ methods

* Fix test
2018-07-28 08:06:08 +02:00
nirvn
e19e1dea9d [processing] be more flexible with multipoint layers, allow sampling for single part point 2018-07-28 12:30:06 +07:00
Nyall Dawson
3e31a6570c Fix path resolver sometimes returns non empty paths while resolving empty filenames 2018-07-27 18:08:48 +10:00
Blottiere Paul
d3670de1bc Update unit tests 2018-07-27 08:24:55 +01:00
Blottiere Paul
4233589653 Fixes service type version in WFS GetCapabilities doc 2018-07-27 08:24:55 +01:00
Mathieu Pellerin
2d964919f6
[FEATURE][expression] add raster_value() function (#7487) 2018-07-27 12:56:04 +07:00
Nyall Dawson
2692de6ed0 [FEATURE][processing] Choice of units for non degree/unknown distances
When an algorithm has a distance parameter in meters/feet/etc (i.e.
non-geographic distances), show a combo box allowing choice of
unit type.

(We don't (and should never) expose this for distances in degrees --
it's up to users in this situation to choose a suitable local
projection and reproject their data to match. Refs: a recent
talk by @volaya)
2018-07-27 13:24:03 +10:00
Nyall Dawson
d1d6840a5f [processing][feature] Port 'offset lines' to c++, support dynamic offset parameter
Adds data defined support for the offset line distance parameter.
2018-07-27 13:23:50 +10:00
Nyall Dawson
76c84f14d7 [FEATURE][processing] "Create parallel lines" algorithm
This algorithm creates copies of line features in a layer, by
creating multiple parallel versions of each feature. Each copy is offset
by a preset distance.
2018-07-27 13:23:50 +10:00
Nyall Dawson
b80ad5e96e Tweak output name 2018-07-27 13:23:50 +10:00
Nyall Dawson
abe4532a2c [feature][processing] "Array of Offset Features" algorithm
This algorithm creates copies of features in a layer, by
creating multiple offset versions of the feature. Each copy is displaced
by a preset amount in the x/y/z/m axis.
2018-07-27 13:23:50 +10:00
nirvn
07366e8a3c [maptips] fix maptips showing after mouse leave the canvas area 2018-07-27 09:56:16 +07:00
Nyall Dawson
5b283494ab [wms] Fix another misleading error message 2018-07-27 12:24:57 +10:00
Nyall Dawson
b94745b073 Fix misleading error message 2018-07-27 12:24:47 +10:00
Nyall Dawson
a38db47a6e Fix debug messages about untranslated 'regular' font style 2018-07-27 12:24:26 +10:00
Juergen E. Fischer
f14ae4602e add note that duplicated layers use the same data source (fixes #19489) 2018-07-26 22:01:32 +02:00
Thibault Coupin
1feb971daf [WMSServer] Fix QgsServerWMS and remove absolute path in qgs files 2018-07-26 21:51:25 +02:00
Martin Dobias
031acd0dd3 Fix search path for qmlplugindump tool
CMake kept picking up the binary from /usr/bin which belongs to Qt4 installation.
Here we require CMake to use the binary from Qt5 installation that is being used.
2018-07-26 21:36:14 +02:00
Mathieu Pellerin
8fbae38482
[maptips] clear the map tip widget when deactivating map tip display (#7484) 2018-07-26 17:25:05 +07:00
Thibault Coupin
0c18d3bc0a [WMSServer] Add unit test for non queryable layer in getfeatureinfo operation, add special case for group. 2018-07-26 12:10:10 +02:00
Thibault Coupin
fd5c8e7fbf [WMSServer] Add unit test for group short name for getcapabilities and getmap operations 2018-07-26 11:10:39 +02:00
Blottiere Paul
b1a16bdc15
Merge pull request #7481 from pblottiere/server_wfs_spatial_operator
[server] Fixes spatial operator in WFS 1.1.0 GetCapabilities doc
2018-07-26 09:29:41 +01:00