6525 Commits

Author SHA1 Message Date
Rudi von Staden
8fa27e106a Fix imports for ConcaveHull 2018-09-14 13:24:57 +02:00
Rudi von Staden
fd728c0854 Improve test coverage for k-nearest neighbor concave hull 2018-09-14 11:44:53 +02:00
Rudi von Staden
858cd266c7 Use US spelling for neighbor 2018-09-14 10:05:20 +02:00
Rudi von Staden
f4cab1780a Changes from review comments
- Shorten algorithm names (KNearestNeighbour and ConcaveHull)
- Check for feedback cancellation
- remove unnecessary try/except blocks
2018-09-14 09:10:40 +02:00
Rudi von Staden
5076fb6313 Update icon to fit QGIS theme, rename and apply to ConcaveHull also
- Based colours and sizes on mAlgorithmDelaunay.svg
- Renamed from mAlgorithmKNearestConcaveHull.svg to mAlgorithmConcaveHull.svg to be more general
- Applied to ConcaveHull.py also to indicate similarity between algorithms
2018-09-14 08:35:43 +02:00
Rudi von Staden
cef34c5e51 Initialise writer after appending field 2018-09-14 00:15:13 +02:00
Rudi von Staden
6257cf64c4 Fix indentation 2018-09-13 23:26:45 +02:00
Rudi von Staden
9111b557f0 Improve k-nearest neighbour algorithm logic and add descriptive comments 2018-09-13 23:00:51 +02:00
Rudi von Staden
1a26d9401d Fix failing test for K-nearest concave hull group by field 2018-09-13 20:58:29 +02:00
Rudi von Staden
4482c39fc8 Add tests for k-neighbour concave hull 2018-09-12 22:38:39 +02:00
Rudi von Staden
f3e2d268f6 Fix formatting 2018-09-12 21:49:53 +02:00
Rudi von Staden
8d0b0ac8d2 Remove unused function 2018-08-17 16:05:16 +02:00
Rudi von Staden
7f8d406d09 Give a more descriptive output name 2018-08-17 15:17:25 +02:00
Rudi von Staden
bbfd6990f4 Add documentation and improve input parameter descriptions 2018-08-17 14:21:09 +02:00
Rudi von Staden
7da8d727d1 Fix null output for k greater than number of points in k-neighbour algorithm
- if k is greater than the number of points, use the number of points
- if k <3 is provided, use 3
- remove unused as_polygon function
2018-08-16 21:27:22 +02:00
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
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