34328 Commits

Author SHA1 Message Date
Patrick Valsecchi
24bde35ce6 Smarter default edit widgets with plugins to pick them
Now the widgets factories can give a score on how good they could handle
a widget.

Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.

I took the opportunity to remove a few deprecated method in relation to
this.
2016-08-29 07:42:50 +02:00
Nyall Dawson
235204fc3d Followup 9ba41e9, SQL convention is sum of no records=NULL 2016-08-29 13:41:13 +10:00
Nyall Dawson
7300cda86b Merge pull request #3435 from nyalldawson/interpolate_angle
Expression functions to Interpolate angle (+ related processing improvements)
2016-08-29 12:54:25 +10:00
Nyall Dawson
9ba41e9f27 Fix calculation of certain aggregates from expressions when no
matching features exist

Eg sum and count should return 0 in this case rather than
null
2016-08-29 12:08:28 +10:00
Nyall Dawson
da78ddeb7c [FEATURE] New expression functions for angle/distance interpolation
angle_at_vertex: returns average (bisector) angle to a geometry
at a specified vertex index
distance_to_vertex: returns distance along geometry to a specified
vertex index
line_interpolate_angle: calculates the angle parallel to a geometry
at the specified distance along the geometry

Sponsored by Andreas Neumann
2016-08-29 11:02:17 +10:00
Nyall Dawson
9fa4e776db [FEATURE][processing] Extract nodes algorithm now saves node
index, distance along line and angle at node

Also correctly handles null geometries
2016-08-29 11:02:14 +10:00
Nyall Dawson
986b5313ed Add QgsGeometry method to get bisector of angle at vertex
Sponsored by Andreas Neumann
2016-08-29 11:01:52 +10:00
Nyall Dawson
8db9284cb3 [FEATURE][processing] Optimised points along geometry algorithm
Supports also polygon geometries, handles null geometries,
and records the original line angle along with the distance
for each point.
2016-08-29 11:01:48 +10:00
Nyall Dawson
9a9a49c16a Make QgsGeometry::interpolate handle polygon geometries 2016-08-29 08:57:10 +10:00
Nyall Dawson
93c7f5f8b2 Add geometry methods for interpolating angle along geometry
Sponsored by Andreas Neumann
2016-08-29 08:57:10 +10:00
Juergen E. Fischer
420311e7f1 processing: fix population of commander combobox (fixes #15283)
(cherry picked from commit d3882d5)
2016-08-28 23:00:10 +02:00
Juergen E. Fischer
485d7a0a47 dxf export: link vertices to polyline (fixes #15484)
(cherry picked from commit 052d3ef851beef7cbbfa3c699c1c95b0d84dc3e2)
2016-08-28 17:17:08 +02:00
Nyall Dawson
d477d19ec8 Fix potential crash 2016-08-26 07:57:46 +10:00
mhugent
19dea08cf1 Merge pull request #3411 from mhugent/feature_info_segmentized_geometry
[FEATURE]: possibility to segmentize feature info geometry in server
2016-08-25 17:39:04 +02:00
Marco Hugentobler
9471a6bf3f Whitespace change 2016-08-25 13:57:45 +02:00
Nyall Dawson
e71e743c9d Merge pull request #3432 from nyalldawson/ramps
Color ramp API improvements, fixes + some style dock inlining
2016-08-25 20:57:42 +10:00
Juergen E. Fischer
1387695002 fix globe build 2016-08-25 10:42:38 +02:00
Nyall Dawson
5ac50353ef Indentation and docs 2016-08-25 06:00:10 +10:00
Alexander Bruy
57b5a7c843 Merge pull request #3431 from arnaud-morvan/processing_batch_none
[processing] do not set "None" value in batch panel string widgets
2016-08-24 14:36:06 +03:00
Nyall Dawson
b225a82b3e [FEATURE] Make color brewer and limited random ramp editors show
inline in style panel
2016-08-24 21:01:03 +10:00
Nyall Dawson
1d98b10904 Fix limited random color ramp always returns 1 less color than set 2016-08-24 21:01:03 +10:00
Nyall Dawson
b7716aa7fb Docs + cleanups for color ramp dialogs 2016-08-24 21:01:03 +10:00
Nyall Dawson
cf9292cc6d Color ramp dialogs no longer edit ramps in place
Now the dialogs use a copy of the ramp, and the edited
ramp is retrieved by calling ramp() on the dialog after
it is executed.

Avoids pointer lifetime issues by storing and working
on a ramp pointer which the dialog does not have ownership
on.

Also fix a bunch of leaks relating to cloning color ramps.
2016-08-24 21:01:03 +10:00
Nyall Dawson
7413db79b0 Rename color ramp dialogs to match new ramp class names 2016-08-24 21:01:03 +10:00
Nyall Dawson
932e469e5f Rename color ramp classes to more sensible names
QgsVectorColorRamp -> QgsColorRamp
QgsVectorGradientColorRamp -> QgsGradientColorRamp
QgsRandomColors -> QgsRandomColorRamp
QgsRandomColorRamp -> QgsLimitedRandomColorRamp
QgsVectorColorBrewerColorRamp -> QgsColorBrewerColorRamp

These color ramps are used throughout all of QGIS (not
just in vector symbology) and the current names are
misleading.
2016-08-24 21:01:03 +10:00
Nyall Dawson
014409d025 Merge pull request #3419 from nirvn/aggregate_collect_geom
[expression] support collection of geometry in the aggregate() function
2016-08-24 12:30:14 +10:00
nirvn
2a326ef8ad [FEATURE] support aggregation of geometry
This feature adds a 'collect' aggregation method resulting in a
single multipart geometry from a list of geometries. This is exposed
in the expression engine via the existing aggregate() function,
as well as a new collect() function.
2016-08-24 08:39:05 +07:00
Nyall Dawson
5d38dcbaff Merge pull request #3427 from nyalldawson/inline_map_unit
[FEATURE] Make map unit scaling dialog show inline in style dock
2016-08-24 09:37:00 +10:00
Nyall Dawson
005147b284 Fix oracle provider build
[ci skip]
2016-08-24 08:10:48 +10:00
Nyall Dawson
dfff9dd3ca Merge pull request #3404 from DelazJ/patch-13
Keep base units as default behavior (fix #15434)
2016-08-24 07:53:38 +10:00
Nyall Dawson
5735be131f [FEATURE] Make map unit scaling dialog show inline in style dock 2016-08-24 07:51:03 +10:00
Alexander Bruy
6475fd2129 fix typo 2016-08-24 00:03:07 +03:00
Nyall Dawson
e0229ad8c7 Merge pull request #3423 from nyalldawson/remove_deprecated
Remove unused QgsProvider(Count|ExtentCalc)Event classes
2016-08-24 06:59:41 +10:00
Juergen E. Fischer
f156b1f64d fix switching of projects within unicode folders
(cherry picked from commit 3951f15b6481a85b551e2f33f26c2aeb6687a24a)
2016-08-23 20:46:39 +02:00
arnaud.morvan@camptocamp.com
f0413e36d6 Do not set "None" value in batch panel string widgets 2016-08-23 17:52:10 +02:00
Denis Rouzaud
50099ae7d4 followup 579ec8b18e3dc8b6365bb8668fbd90a2d281935a 2016-08-23 16:09:50 +02:00
Denis Rouzaud
579ec8b18e remove bitmap cursors
use window system cursors instead
followup 3624d7b4d818628b7d7d446ff642f5be1cc16773
2016-08-23 15:42:53 +02:00
Denis Rouzaud
f5aa28bb32 rename QgsFieldProxyModel::Filter All to AllTypes 2016-08-23 15:42:37 +02:00
Denis Rouzaud
bd887bac7b sort api_break document 2016-08-23 15:31:33 +02:00
Denis Rouzaud
7fdade1a3a remove some deprecated methods, rename QgsAnnotation::mapPositionFixed() to hasFixedMapPosition() 2016-08-23 15:00:56 +02:00
Alexander Bruy
eb308a604d fix open() call 2016-08-23 15:49:03 +03:00
volaya
008d3cd79a [processing] fixed extent selection from batch processing interface
fixes #15408
2016-08-23 14:41:20 +02:00
Denis Rouzaud
da599495aa add missing inclue of qgslogger 2016-08-23 14:34:46 +02:00
Alexander Bruy
3711a17066 add missed codecs import 2016-08-23 15:18:28 +03:00
Alexander Bruy
d7634bafff remove unused imports 2016-08-23 15:01:39 +03:00
Matthias Kuhn
5edf6f61cc Merge pull request #3414 from aaime/uom_rescale
Emit valid SLD when mm are used as symbol unit
2016-08-23 13:54:21 +02:00
Nyall Dawson
a10b8fc3e5 Make QgsVectorDataProvider defaults methods more efficient 2016-08-23 20:35:52 +10:00
Nyall Dawson
5ac34ce86b Restore cancel button in color dialog when used from layer properties 2016-08-23 20:35:52 +10:00
Alexander Bruy
993aa842fb forgot to remove import 2016-08-23 13:34:51 +03:00
Alexander Bruy
6a7fa7dd5a [processing] add missed error() method 2016-08-23 11:25:14 +03:00