6817 Commits

Author SHA1 Message Date
Rudi von Staden
0a1d3e7e87 Fix description of k-nearest output layer
The output layer may have multiple features  - rewording to be more general.
2018-08-15 21:33:08 +02:00
Rudi von Staden
52ccc43ebb [feature] Adapted k-neighbour concave hull plugin as QGIS 3 algorithm
Co-authored-by: Detlev Neumann <dneumann@geospatial-services.de>
2018-08-15 21:18:32 +02:00
Nyall Dawson
c6a91dab09 [FEATURE] Use native interpolate point method instead of GEOS method
Because:
- Exactly follows curves and doesn't require segmentizing input geometry
- Also interpolates z/m values if they are present in input geometry
- Is faster
2018-08-15 14:01:59 +10:00
Nyall Dawson
8365335fd3 [FEATURE][processing] Interpolate point on line algorithm
This algorithm creates a point geometry interpolated at a
set distance along line (or polygon boundary) geometries.
2018-08-15 14:01:59 +10:00
Nyall Dawson
7ef5631d6b [FEATURE][processing] Line substring algorithm
This algorithm returns the portion of a line (or curve) which falls
between the specified start and end distances (measured from the
beginning of the line).

Z and M values are linearly interpolated from existing values.
2018-08-15 14:01:59 +10:00
Nyall Dawson
0faa7ecdae [processing] Minor optimization for regular points algorithm 2018-08-15 10:23:02 +10:00
Nyall Dawson
9d6b5a7f53 [processing] Fix non-sequential ids in regular points algorithm 2018-08-15 10:23:02 +10:00
Matthias Kuhn
f769430419 Fix indentation 2018-08-15 10:23:02 +10:00
Jordan Feldstein
93ee06247d Count and report progress based on expected total
Algorithm appears to freeze without progress while `extent_engine.intersects(geom.constGet())` returns false. 

This keeps the progress bar continuous and smooth, even if the feature ends up not being added.

(noticed this because the algo hangs for 2 mins while processing a large dataset which I think is outside the extent somehow. None of the points going in. No apparent progress.)
2018-08-15 10:23:02 +10:00
Nyall Dawson
6072350942 Tooltip for project provider 2018-08-13 17:39:00 +10:00
Nyall Dawson
a4a74a907d Add new icon for 'Save in project' thanks to @nirvn 2018-08-13 15:47:01 +10:00
Nyall Dawson
63fd4bab2a [processing][FEATURE] Store models inside QGIS project files
Allows processing models to be stored inside QGIS project files,
so that opening the project makes that model available.

Some models are so intrinsically linked to the logic inside
a particular project that they have no meaning (or are totally
broken) outside of that project (e.g. models which rely
on the presence of particular map layers, relations, etc)

This change allows these models to be stored inside that project,
avoid cluttering up the "global" model provider with models
which make no sense, and making it easier to distribute a single
project with these models included.

Models are stored inside projects by clicking the new "embed
in project" button in the modeler dialog toolbar. Models can be
removed from a project from the model's right click menu in the
toolbox.
2018-08-13 15:47:01 +10:00
Nyall Dawson
db1dad5800 Followup f4d08eb9, update expected test result 2018-08-11 13:50:10 +10:00
Juergen E. Fischer
f4d08eb926 dbmanager/postgis: quote identifiers in urls (fixes qgis portion of #19583) 2018-08-10 09:21:52 +02:00
Nyall Dawson
d39bdcdadd [processing] Don't create frequency distribution file for relief
algorithm by default

Refs #19570
2018-08-09 19:17:30 +10:00
Nyall Dawson
7495ec276e [processing][grass] Fix r.stream.extract definition, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
e893aae190 [processing][grass] Fix definition of r.watershed, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
0c24fdb883 [processing][grass] Fix r.sun parameter definition, resurrect test 2018-08-09 12:32:27 +10:00
Nyall Dawson
c50c615ecb Resurrect some processing grass tests 2018-08-09 12:32:27 +10:00
Nyall Dawson
08a8ea7b72 [processing][grass] Fix v.surf.bspline definition, add test 2018-08-09 12:32:27 +10:00
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
Salvatore Larosa
87d75838b8
Merge pull request #7533 from slarosa/fix_19528
[dbmanager] Fixes #19528: cannot resize query area
2018-08-04 20:29:40 +02:00
Salvatore Larosa
19d49352af [dbmanager] Fixes #19528: cannot resize query area 2018-08-04 08:39:33 +02: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