Martin Dobias
24fbe1a080
Fix crash in node tool after deleting the whole geometry ( fixes #15659 )
...
Made sure that both closestVertex() and closestSegment() return negative
distance on error (e.g. with null or emtpy geometry).
Also fixes snapping when dealing with layers with null/invalid geometries
(cherry picked from commit c093d5188fad685c4a596ff23c27aad7d151dac2)
2016-10-31 12:51:21 +08:00
Nyall Dawson
dd4b34ed16
[processing] Modeller should not be modal
2016-10-31 14:37:45 +10:00
nirvn
b48d20220e
[processing] resurrect editing of modeler item on double-click
2016-10-31 11:18:22 +07:00
Nyall Dawson
07b25af537
Merge pull request #3694 from nirvn/processing_sort_model_inputs
...
[processing] sort model input parameters to avoid random ordering
2016-10-31 14:13:42 +10:00
nirvn
bec379249e
[processing] sort model input parameters to avoid random ordering
2016-10-31 10:53:13 +07:00
Nyall Dawson
3caccd531d
[processing] Fix handling of multiple field input in modeller
2016-10-31 11:41:40 +10:00
Nyall Dawson
a117df2205
Merge pull request #3656 from nirvn/processing_import_to_spatialite
...
[processing] add "Import into Spatialite" algorithm
2016-10-31 09:14:19 +10:00
Nyall Dawson
29ce141dc4
Merge pull request #3657 from nirvn/processing_modeler_mandatory
...
[processing] fix modeler parameter mandatory checkbox logic
2016-10-31 09:13:37 +10:00
Nyall Dawson
d5698be69f
Fix some processing breakage
2016-10-31 09:12:39 +10:00
Nyall Dawson
bd950616ac
Rename visible "favourite" strings to "favorite", change API to
...
use "favorite"
2016-10-31 08:00:19 +10:00
Nyall Dawson
82312e10e4
[FEATURE][processing] New algorithm to extract specific nodes
...
This algorithm allows you to extract specific nodes from geometries.
Eg you can extract the first or last node in the geometry.
The algorithm accepts a comma separated list of node indices to
extract, eg 0 = first node, 1 = second node, etc. Negative indices
can be used to extract nodes from the end of the geometry. Eg
-1 = last node, -2 = second last node.
2016-10-31 07:56:24 +10:00
Nyall Dawson
8dab2cd4d7
[FEATURE][processing] New algorithm to extend lines
...
Allows extending linestrings by a set distance at the start
and end of the line
2016-10-31 07:56:24 +10:00
Nyall Dawson
2b545822e7
[FEATURE] New expression function 'extend'
...
Extends linestrings by a specified amount at the start and
end of the line
2016-10-31 07:56:24 +10:00
Nyall Dawson
ef34e393dc
Add method to QgsGeometry to extend the start/end of a linestring
2016-10-31 07:56:24 +10:00
Nyall Dawson
c494c472ac
Merge pull request #3690 from nyalldawson/extract_by_exp
...
[FEATURE][processing] New extract by expression algorithm
2016-10-30 08:23:40 +10:00
nirvn
121f48d654
[processing] add import into spatialite algorithm
2016-10-29 09:33:47 +07:00
Nyall Dawson
74e64645e4
[FEATURE][processing] New extract by expression algorithm
...
Filters an input layer by expression
2016-10-29 08:05:26 +10:00
Richard Duivenvoorde
54f312fa7f
Temporarily hardcode plugins version in url ?qgis=3.0
...
If QGIS 3.0 is actually released this line should be removed.
2016-10-28 16:57:42 +02:00
Hugo Mercier
9166142181
Merge pull request #3688 from mhugo/fix_15737
...
Don't delete QgsAttributeDialog too early. Fixes #15737
2016-10-28 14:26:35 +02:00
Matthias Kuhn
7a05a7a8c4
Fix caching of aggregate values with @parent
...
And add a test for referencedVariables
2016-10-28 12:31:40 +02:00
Matthias Kuhn
8e25b89357
Merge duplicated api doc break section titles
2016-10-28 12:31:40 +02:00
Martin Dobias
800b1a6f63
fix indentation
2016-10-28 17:56:03 +08:00
Hugo Mercier
9ecdf61014
Don't delete QgsAttributeDialog too early. Fixes #15737
2016-10-28 11:17:46 +02:00
Martin Dobias
ed3b0714dd
Cancel WCS requests just like it is done in WMS
...
(cherry picked from commit 50258e6f01ef7dededbf057c03813ecf3442f5b9)
2016-10-28 17:00:13 +08:00
Martin Dobias
aeeb5d9525
Fix crash when loading WCS layers ( fixes #15595 )
...
The problem is that some providers would still issue network
requests in prepareJobs() - this should be ideally avoided,
because it is run in main thread - all the work should be deferred
to be done in worker thread.
(cherry picked from commit 08f4a0f40cce21d5730653a75bdd44f175f3b0b8)
2016-10-28 16:58:58 +08:00
Martin Dobias
59d1d702d0
Fix identify tool for WMS if webkit is not available ( fixes #15596 )
...
(cherry picked from commit 430694ba9a2beb5fe23d5814b63aaecdbee7a3d7)
2016-10-28 16:33:51 +08:00
Martin Dobias
ea2e68b8ae
Fix WMS identify when using "Feature" format and the layer has named CRS
...
(cherry picked from commit 9ef91ea6294cdab762ffb2543d02473bcccbed80)
2016-10-28 15:54:50 +08:00
Paolo Cavallini
79e5911e07
Update RegularPoints.py
...
Fixes #15773
2016-10-28 09:11:28 +02:00
Nyall Dawson
e1e3f86b9e
Fix color picker does not show previous color
2016-10-28 15:07:52 +10:00
Nyall Dawson
f63a69b309
Fix color pickers opens in dock layout when editing rules via
...
layer properties
2016-10-28 15:07:52 +10:00
Martin Dobias
ada6050762
Fix listing of WMTS layers in browser ( fixes #15350 )
...
(cherry picked from commit 29d2bef7954d4e2b2cf21611c1398d0a7666e4c6)
2016-10-28 12:18:48 +08:00
Nyall Dawson
8be3b01b12
Merge pull request #3685 from nirvn/array_unique
...
[FEATURE] add array_distinct() function
2016-10-28 14:11:28 +10:00
nirvn
17fc7dbe53
[FEATURE] add array_distinct() function
2016-10-28 10:51:14 +07:00
Matthias Kuhn
0b3646b252
Expression functions can dynamically report geometry and columns
2016-10-27 23:11:51 +02:00
Matthias Kuhn
adb184e435
Add documentation for @parent aggregate filter
2016-10-27 23:11:51 +02:00
Matthias Kuhn
f292fdd625
Add test for @parent aggregate filter
2016-10-27 23:11:51 +02:00
Matthias Kuhn
c79cf9ae15
Fetch attributes and geometry for aggregate function
2016-10-27 23:11:50 +02:00
Matthias Kuhn
c2b84241ec
Always cache values and add fid to feature hash
2016-10-27 23:11:50 +02:00
Matthias Kuhn
f80a33be65
[FEATURE] Expose @parent variable in aggregate functions
...
This makes it possible to access attributes and geometry from the parent
feature when in the filter of the "aggregate" expression function.
With this in place aggregates can be calculated per feature.
E.g. max "measurement" for each point_station per polygon_research_area.
Or a default attribute value when digitizing features:
aggregate(layer:='countries', aggregate:='max', expression:=\"code\",
filter:=intersects( $geometry, geometry(@parent) ) )
2016-10-27 23:11:50 +02:00
Nyall Dawson
fb4578131f
Merge pull request #3678 from nirvn/string_to_array_to_string
...
[FEATURE] add string_to_array() and array_to_string() functions
2016-10-28 04:44:25 +10:00
Matthias Kuhn
0f7babb682
Convert API break document to markdown
2016-10-27 17:57:06 +02:00
Even Rouault
dcad93ac04
Vector layer properties GUI: tweak message to be "Save in database (GeoPackage)" for GeoPackage
2016-10-27 17:44:47 +02:00
Matthias Kuhn
01f3c9ae38
[FEATURE] Add is_selected and num_selected functions
...
* is_selected() returns if the current feature is selected
* num_selected() returns the number of selected features on the current layer
* is_selected(layer, feature) returns if the "feature" is selected. "feature"
must be on "layer".
* num_selected(layer) returns the number of selected features on "layer"
2016-10-27 17:24:15 +02:00
Matthias Kuhn
f52dfba21e
[expressions] Variable length arguemnt functions accept 0 params
2016-10-27 17:24:15 +02:00
nirvn
7373036edf
[FEATURE] add string_to_array() and array_to_string() functions
2016-10-27 22:12:59 +07:00
Even Rouault
631db7b8e6
[OGR provider] Fix declaration of types (master regression) and update more sensible values for min/max length
2016-10-27 16:57:36 +02:00
Even Rouault
984ec65fcd
[DBManager GPKG] Set appropriate icon for line layers
2016-10-27 15:59:57 +02:00
volaya
b58229009b
indentation fix
2016-10-27 14:36:31 +02:00
volaya
472a550168
[processing] fixed field loading in field calculator
...
fixes #15767
Conflicts:
python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py
2016-10-27 14:36:30 +02:00
Even Rouault
e67a47b9ab
[OGR provider] Do not list qgis_projects (from QgisGeoPackage plugin) as sublayer
2016-10-27 11:57:38 +02:00