4725 Commits

Author SHA1 Message Date
Nyall Dawson
113e16351d [processing][grass] Fix skipped outputs are still added in grass commands 2018-08-09 12:32:27 +10:00
Nyall Dawson
526e590c8d [FEATURE][processing] Add "raster pixels to points" algorithm
Refactor the existing "raster pixels to polygons" algorithm and
create a new "pixels to points" algorithm, which creates a point
feature at the center of every pixel. nodata pixels are skipped.
2018-08-09 12:02:22 +10:00
Håvard Tveite
d2b71c307b [processing] Added isclose function to VoronoyPolygons.py to avoid numerical instability
Fixes #8002 - hopefully, and adds tests
2018-08-09 09:18:54 +10:00
Rudi von Staden
4f59bca213 Allow geometryless layers in Spatialite execute SQL
Fixes #19558
2018-08-08 19:29:10 +10:00
Nyall Dawson
43d3870978 [processing][saga] Fix cubic spline definition, add unit test 2018-08-08 17:29:58 +10:00
Stephen Knox
56e605bdd1 [feature] Add parameter for field selection to Postgis OGR importer 2018-08-08 10:04:15 +10:00
Stephen Knox
53cbe26101 Fix quotes on postgis import, & fix mysql datsource formatting 2018-08-08 10:04:15 +10:00
havatv
4b1bc82ca1 Added a test for VoronoiPolygon.py that covers some new cases 2018-08-08 05:54:44 +10:00
Håvard Tveite
28fa839a08 [processing] Update to VoronoiPolygons.py, some fixes for #8002
* Update to VoronoiPolygons.py, fixes #8002 adds comments, ++

* Fixed a spelling an an indentation mistake reported by travis

* Found some new cases (vertical line clipping and a mistake in the handling of extreme points)
2018-08-08 04:52:41 +10:00
Håvard Tveite
ca0017410b [processing] Update the comparison implementation in voronoi.py (fixes #18219)
When "translating" the cmp function of Site and Halfedge to Python 3, the __lt__ function was forgotten.  It has been added.
2018-08-08 04:48:26 +10:00
Nyall Dawson
282f95c9f7 [processing][grass] Fix bad move/copy paths in grass i.gensig/maxlik algs
Refs #19539
2018-08-07 09:33:00 +10:00
Mathieu Pellerin
51b63e6b46
[vector file writer] use field type to save attribute values
(relying on attribute value type isn't reliable under certain
scenarios, including memory layers created through a processing
python algorithm)
2018-08-06 11:07:56 +07:00
Nyall Dawson
4acef1efbf [processing] Fix crash in extract by attribute when field name does not exist
Fixes #19531
2018-08-04 05:57:46 +10:00
Alexander Bruy
65ae32aadd [processing] homogenize filter strings for models and scripts 2018-08-03 08:34:05 +03:00
Alexander Bruy
f524460379 [processing] homogenize label for 'additional creation options'
parameter in GDAL algorithms
2018-08-02 12:11:20 +03:00
Alexander Bruy
bbc33309a3
Merge pull request #7505 from alexbruy/network-analysis
[processing] port shortest path algs to C++
2018-08-01 13:40:31 +03:00
Alexander Bruy
75394150ce [processing] drop Python versions of the shortest paths algs 2018-08-01 07:39:51 +03: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
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
a6901edb9b [processing] port shortest path (point to point) alg to c++ 2018-07-30 15:15:03 +03: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
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
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
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
Nyall Dawson
28c4a6cf59 [processing][grass] Fix v.net.* output types, add tests
Fixes #19186
2018-07-25 19:50:48 +10:00
Nyall Dawson
eca775f9ef [processing][grass] Fix output type for v.edit 2018-07-25 19:50:48 +10:00
Nyall Dawson
b10fa5e979 [processing][grass] Fix v.vect.stats output type, add test 2018-07-25 19:50:48 +10:00
Nyall Dawson
0c56d00c01 [processing][grass] Fix v.what.rast data type, add test 2018-07-25 19:50:48 +10:00
Nyall Dawson
71f880bb93 [processing][grass] Fix v.voronoi output type, add test 2018-07-25 19:50:48 +10:00
Nyall Dawson
a463af32f8 [processing][grass] Fix generation of output for v.rast.stats, add test 2018-07-25 09:23:36 +10:00
Nyall Dawson
fed345b12b [processing][grass] Make a copy of the parameters dict before doing grass modifications
Since grass algorithms modify the parameters dictionary, we need to ensure
that they do this only a copy of the dict (and not a shallow copy). Otherwise
the parameter values included in the history log are the internally
modified values, not the original user-set ones
2018-07-25 09:23:36 +10:00
Nyall Dawson
996c9a8d34 [processing][gdal] Assign output CRS should be optional for ogr to postgis alg 2018-07-25 08:20:07 +10:00
Nyall Dawson
27d447b79d [processing][gdal] Ignore 'selected features only' setting when
creating command preview

Since this has no meaning outside of a QGIS session

Refs #19451
2018-07-25 08:20:07 +10:00
Nyall Dawson
ed94b693e9 [processing][gdal] Fix layer paths are sometimes incorrect within command preview
Fixes #19451
2018-07-25 08:20:07 +10:00
Nyall Dawson
6a4d9c9bd4 [processing] Ensure feature source wrapper always returns direct
layer id/source whenever 'use selected features' is unchecked,
instead of always returning a QgsProcessingFeatureSourceDefinition
2018-07-25 08:20:07 +10:00
Nyall Dawson
3ec1442045 Points -> vertices 2018-07-24 03:56:10 +10:00
Nyall Dawson
e8d1bfc3a8 Add extra grass reference hash 2018-07-24 03:56:10 +10:00
Nyall Dawson
97e0db6245 [FEATURE][processing] Filter Vertices by M and Filter Vertices by Z algorithms
Adds two new algorithms, for filtering line/polygon vertices by their
M or Z values. A minimum and maximum M/Z value can be entered, and
if the vertices fall outside these ranges they will be discarded
from the output geometry.

Both min and max filter value can also be data defined, so can
vary per feature.
2018-07-24 03:56:10 +10:00
Nyall Dawson
f685d11b29 [processing] Reverse line direction can work with multi(line/curve) geometries 2018-07-24 03:55:49 +10:00
Nyall Dawson
65548436ad [processing] Port reverse line direction alg to c++ 2018-07-24 03:55:49 +10:00
Nyall Dawson
59ec2e0bce [processing][FEATURE] Port extend lines algorithm to c++, allow dynamic start/end distance
Allows the start and end distance to be data defined
2018-07-24 03:54:21 +10:00