12748 Commits

Author SHA1 Message Date
Nyall Dawson
732d6bb475 Add convenience constructors to create QgsCircularStrings
Add constructors to create a circular string with a single arc:
- from 3 points on arc
- from 2 points and a center
2018-04-24 10:07:51 +12:00
Nyall Dawson
3f3b9515ef Add convenience constructor to create QgsLineString between two points 2018-04-24 10:07:51 +12:00
Nyall Dawson
fbf6b4a383 Add geometry method to calculate mid point on an arc from p1->p2 with given center
And improve some docstrings
2018-04-24 10:07:51 +12:00
Loïc Bartoletti
66b0e59fb9 Fix snapping on invisible geometry 2018-04-23 16:00:43 +02:00
Martin Dobias
8c7b632570 Moved selection handler from gui lib to app 2018-04-23 13:53:42 +02:00
Nathan Woodrow
53a384cba7
[FEATURE][needs-docs] Show data defined expected format in expression builder (#6839) 2018-04-23 13:32:51 +10:00
Nathan Woodrow
76b956a6a3
[FEATURE][needs-docs] Don't bail on first expression error (#6838) 2018-04-23 10:50:43 +10:00
Nyall Dawson
dd2ff1587a [dbmanager][oracle] Add some missing imports 2018-04-21 17:07:34 +10:00
Blottiere Paul
d589ba7d7c Try to add cancel support for Oracle databases in dbmanager 2018-04-21 17:03:11 +10:00
Nathan Woodrow
b22121ac75
[FEATURE][needs-docs] Hyperlink functions to show help in builder (#6796) 2018-04-21 12:58:12 +10:00
Martin Dobias
6c2325c66b Fix sip/doxygen/todo 2018-04-21 01:00:27 +02:00
Loïc Bartoletti
44c72a01f7 Typos and re indent 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
2702a3092f Fix warn doc 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
b09cbaeb98 sipify 2018-04-21 08:16:14 +10:00
Loïc Bartoletti
0bacf0ff16 - Add some methods in QgsVector3D
- Move QgsVector3D from 3d to core
- Use QgsVector3D instead of QVector3D
2018-04-21 08:16:14 +10:00
Loïc Bartoletti
9d649e738a Add skewLines intersection algorithm 2018-04-21 08:16:14 +10:00
Martin Dobias
bac3080754 [FEATURE] Identify: more selection modes (simple / polygon / freehand / radius)
This extends identify tool with the ability to switch to different selection modes
(the ones offered also by the selection map tool)
2018-04-20 22:52:31 +02:00
Nyall Dawson
d87f75aa98 [processing] Unit tests for distance param widget wrapper 2018-04-20 22:44:28 +10:00
Nyall Dawson
91c1277035 [processing] Swap more QGIS and GDAL algorithm parameters to distance params 2018-04-20 22:44:28 +10:00
Nyall Dawson
6358daad91 Fix broken translation string 2018-04-20 20:08:28 +10:00
Nyall Dawson
4a594d3f32 [FEATURE][processing] Add buttons to save/clear/copy log
In the algorithm execution dialog, this adds buttons to allow
users to save the current log (to text or HTML files), copy the
log contents to the clipboard, and clear the log.
2018-04-20 20:08:28 +10:00
Peter Petrik
5b8a341e04 fix Doxygen warnings 2018-04-20 10:39:28 +02:00
Nyall Dawson
0dfb3c2d8c [processing] Use distance parameter for more algorithms 2018-04-20 18:27:00 +10:00
Nyall Dawson
6412138259 Indentation 2018-04-20 18:27:00 +10:00
Nyall Dawson
6a2625664e [processing] Add dedicated "distance" parameter
This is a subclass of QgsProcessingParameterNumber, but specifically
for numeric parameters which represent distances. It is linked
to a parent parameter, from which the distance unit will
be determined, and is shown using a dedicated distance widget
within the processing parameters panel. This widget shows
the distance unit.

This avoids the confusion when running algorithms which
use distances where the unit depends on a layer or CRS parameter -
e.g. the distance parameter in the buffer algorithm gives
the distance in layer units... so now we can show those units
directly within the dialog. Hopefully this leads to less
user confusion and accidental "1000 degree buffers"!

Additionally - if the unit is in degrees, a small warning
icon is shown next to the parameter. The tooltip for this
icon advises users to reproject data into a suitable
projected local coordinate system.

Initially implemented for the native buffer and single
sided buffer algorithm only - but more will be added.

Fixes #16290
2018-04-20 18:27:00 +10:00
matteo
9107da368e [processing] fix missing import 2018-04-20 18:26:33 +10:00
Peter Petrik
d1240119ef use QStringLiteral 2018-04-20 09:38:39 +02:00
Peter Petrik
c42af60dfe use smart pointer internally and remove unnecessary code 2018-04-20 09:19:11 +02:00
Matthias Kuhn
eb7f755429
Merge pull request #6813 from m-kuhn/constrenderers
Const correctness for feature renderers
2018-04-20 08:31:15 +02:00
nirvn
7d787980f5 followup a463858: fix interpol. data widget setValue function 2018-04-20 10:13:35 +07:00
Nyall Dawson
6c892652ac Followup a463858, fix failing tests 2018-04-20 08:38:15 +10:00
Peter Petrik
1efdbc5c20 fix build errors, use MDAL 0.0.2 (int API) 2018-04-19 16:42:01 +02:00
Martin Dobias
2d7addc9f7
Merge pull request #6817 from wonder-sk/legend-text-on-symbols
Legend: optional text on top of symbols for vector layers
2018-04-19 15:32:37 +02:00
nirvn
a463858bf3 [processing] restore TIN / IDW interpolation algorithms 2018-04-19 17:19:07 +07:00
nirvn
7d43e7b876 fix interpolation data widget 2018-04-19 17:19:07 +07:00
Peter Petrik
50422a1165 [FEATURE] QgsMeshLayer part 1: Reading raw mesh
Introducting MDAL, QgsMeshLayer, mesh data providers (mesh_memory, mdal)
to read and visualize raw meshes: vertices and faces. Support dragging
2dm files from browser on canvas to visualize 2dm meshes.
Support for QgsMeshLayer in Python API.
2018-04-19 10:50:33 +02:00
Nyall Dawson
a9d820d37d [processing] Don't overwrite rows when reordering in multi input
dialog

Refs #17327
2018-04-19 14:35:41 +10:00
Nyall Dawson
2eca7ffbe2 [oracle] Fix some errors using oracle connector in db manager 2018-04-19 11:59:27 +10:00
Denis Rouzaud
9627f733cf remove reference to removed setColorDialogOptions method 2018-04-19 06:51:33 +10:00
Martin Dobias
49b02bf562 [FEATURE] Legend: optional text on top of symbols for vector layers
In some cases it is useful to add extra information to the symbols in the legend.
This work allows definition of additional labels in vector layer properties > Legend tab.
2018-04-18 21:52:56 +02:00
Martin Dobias
721c536185
Merge branch 'master' into overlay-alg-fixes-1 2018-04-18 14:16:50 +02:00
Matthias Kuhn
85719e8fab API documentation 2018-04-18 13:51:08 +02:00
Matthias Kuhn
7e9aeda739 Some const-correctness for rules 2018-04-18 13:34:55 +02:00
Matthias Kuhn
7123803d07 More const-corretness for QgsFeatureRenderer 2018-04-18 13:17:41 +02:00
Martin Dobias
45b264db08 Fixes after review 2018-04-18 13:04:05 +02:00
Matthias Kuhn
3775cdbb60 Const correctness for renderers 2018-04-18 12:51:58 +02:00
Nyall Dawson
0e0e133c7d [FEATURE][processing] Add sort order option to Add Incremental Field alg
This allows users to optionally set a sort order to use when
assigning values in the Add Incremental Field algorithm.

Previously values were always added using the original feature
order. With this change users can control the order in which
features are assigned values.
2018-04-18 20:50:37 +10:00
Matthias Kuhn
eab76e85c7
Merge pull request #6335 from Fanevanjanahary/crs_widget
use crs widget picker in db_manager
2018-04-18 12:12:26 +02:00
Martin Dobias
4f829fde62 Port Intersection algorithm to C++, cleanups and tests
Finally starting a suite of unit tests for overlay algorithms:
- overlay1 - layers that cover various basic overlay situations
- overlay2 - layers where one input has self-intersecting polygons
- overlay3 - layers where intersections return different geometry types
2018-04-17 19:12:58 +02:00
Alexander Bruy
90c65405fd [processing] use parameter description instead of name when retrieving
parameter from the registry
2018-04-17 11:09:30 +03:00