913 Commits

Author SHA1 Message Date
Nyall Dawson
b95400806a [FEATURE][processing] Native "split lines by maximum length" algorithm
This algorithm takes an input (multi)line (or curve) layer, and splits
each feature into multiple parts such that no part is longer then
the specified maximum length.

Supports data-defined maximum length property, and edit in place operation.

Credit to @NathanW2 for the inspiration!
2018-12-06 10:01:31 +10:00
Nyall Dawson
0ba37fcb72 [processing][SAGA] Add unit test for RGB composite 2018-12-05 04:47:33 +10:00
Nyall Dawson
71b32f072c [processing][SAGA] Fix output type for RGB Composite should be tif, not sdat format 2018-12-05 04:47:33 +10:00
Nyall Dawson
455e04ea66 [processing][SAGA] Fix definition of Patching algorithm
And add unit test

Fixes #20698
2018-12-04 10:36:38 +10:00
Nyall Dawson
4212deabe8 [processing][saga] Add unit test for point distances alg 2018-12-03 18:11:24 +10:00
Alessandro Pasotti
0fde410a58
Merge pull request #8564 from elpaso/rastercalculator-fast-track
Rastercalculator memory efficient track
2018-11-29 09:32:24 +01:00
Alessandro Pasotti
81723586f5 Update reference hashes for calculator processing test 2018-11-28 22:43:28 +01:00
nirvn
cdda581819 [processing] Add test & adjust handling of negative distance value
for multi ring (constant) algorithm
2018-11-28 22:47:39 +07:00
nirvn
4d5edb2380 [processing] Use MultiPolygon as output wkb type for multi ring buffer (constant) 2018-11-26 17:17:52 +07:00
Nyall Dawson
2c425c7bf0 Fix unit test 2018-11-23 20:32:16 +11:00
Luigi Pirelli
530cd5c12c
Merge pull request #8378 from havatv/patch-1
Reintroduce GDAL extract projection and update extractprojection.py to QGIS 3
2018-11-11 11:49:03 +01:00
Nyall Dawson
ba17b130f8 Move forceRHR to QgsGeometry, avoid duplicate code 2018-11-09 19:06:48 +10:00
Nyall Dawson
63c9bcb5d2 Update reference lines 2018-11-09 19:06:48 +10:00
Nyall Dawson
d1e09a2bc7 [FEATURE][processing] New algorithm to force right hand rule for polygons
This algorithm forces polygon geometries to respect the Right-Hand-Rule,
in which the area that is bounded by a polygon is to the right of the
boundary. In particular, the exterior ring is oriented in a clockwise
direction and the interior rings in a counter-clockwise direction.
2018-11-09 19:06:48 +10:00
Etienne Trimaille
6e16651d96 [FEATURE] explode hstore algorithm (#8212) 2018-11-09 13:00:29 +07:00
Håvard Tveite
669d650895
No output - no mention (gdalalg yaml) 2018-11-08 14:55:03 +01:00
H Tveite
b9355556c5 Added tests for gdal extractprojection 2018-11-06 10:23:22 +01:00
Nyall Dawson
4dd3e211e2 Unit tests for reomve duplicates by attribute 2018-11-01 21:47:28 +10:00
Nyall Dawson
f65c845f86 [processing][GRASS] Correctly handle input vector layers with |layername= param
Fixes #20277
2018-11-01 18:36:53 +10:00
Nyall Dawson
17447e4b5c [FEATURE][browser] Restore preview functionality from old 2.x standalone
browser into inbuilt browser dock panel layer properties widget
2018-11-01 15:55:57 +10:00
Nyall Dawson
41c31b44ba Fix build warning 2018-11-01 05:56:38 +10:00
Matthias Kuhn
2e1c5e6103
Skip path checking 2018-10-31 10:27:55 +01:00
Matthias Kuhn
99b246dd78
Add comment for semi-broken control file 2018-10-31 10:27:55 +01:00
Matthias Kuhn
2c4abdf70d
Fix test for merging layers to gpkg 2018-10-31 10:27:55 +01:00
Matthias Kuhn
3949cb70c4
Fix faulty alg name in test 2018-10-31 10:27:54 +01:00
Matthias Kuhn
19276e2b03
Add merge vector layer test for gpkg 2018-10-31 10:27:54 +01:00
Matthias Kuhn
2a973fc0b6
Allow using gpkg in processing tests 2018-10-31 10:27:54 +01:00
Nyall Dawson
f3e9aaf79a Fix some inefficient python dictionary iteration 2018-10-31 08:42:51 +10:00
Denis Rouzaud
d34fe6b109
fix gdal_contour in test (#8351)
now gdal_contour does not create 3D by default
see upstream issue https://github.com/OSGeo/gdal/issues/336
and fix abae82ccf4
2018-10-26 13:50:49 -08:00
Nyall Dawson
1a2d0cc54f [processing][SAGA] Fix multilevel b spline description files
Resync with SAGA parameters
2018-10-26 13:15:43 +10:00
rldhont
1d246de545 [Processing] Add GeoPackage support in alg qgis:convertformat (forward)
This is the forward porting of #8143
2018-10-25 09:20:29 +02:00
Nyall Dawson
ee8e1ce9bc [processing][gdal] More unit tests 2018-10-16 16:52:00 +10:00
Nyall Dawson
bef8d6e072 Update expected test results 2018-10-16 16:52:00 +10:00
Nyall Dawson
308d7136b4 [processing] More fixes to convertToCompatibleFormat, lots of unit
tests

Fixes #19938
2018-09-28 14:25:38 +10:00
Nyall Dawson
737ab3069a [processing][gdal] Correctly handle geopackage paths with layername argument
Fixes #19938
2018-09-28 14:25:38 +10:00
Harrissou Sant-anna
b478ee750c Fix "Array of offset lines" algorithm 2018-09-28 10:19:31 +10:00
Harrissou Sant-anna
9e5cc4b76b Fix array of translated features algorithms 2018-09-28 10:19:31 +10:00
Nyall Dawson
6e03253143 [processing][gdal] Fix empty fid is passed if FID option is not set
Also add full range of unit tests for OgrToPostGis algorithm.

Fixes #19947
2018-09-26 08:07:09 +10:00
Nyall Dawson
517b50c66d Capitalization 2018-09-25 22:01:39 +10:00
Nyall Dawson
ea2c16dd64 [processing][gdal] Dissolve field name should be optional 2018-09-25 11:14:33 +10:00
Nyall Dawson
a3af1f9f3a [processing][gdal] Add unit tests for Dissolve algorithm
Also:

Thanks to @agiudiceandrea:

Fixes #19900
Statistics were erroneously computed on the dissolve field, rather than on the statistic attribute field as it should be.

Fixes #19307
Handle filenames with white spaces (in the same way as Buffer, OffsetCurve, OneSideBuffer, PintsAlongLines algs).
2018-09-25 11:14:33 +10:00
Alessandro Pasotti
82a5c8f170 Move test from tests to processing folder 2018-09-19 18:29:26 +02:00
Nyall Dawson
e005d6e2b9 [processing][gdal] Strip newlines from custom proj CRS definitions
before passing to GDAL commands

Fixes #19855
2018-09-18 14:57:22 +10:00
Juergen E. Fischer
239e93deeb run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #19482) 2018-09-17 02:34:36 +02:00
olivierdalang
77d7d666d1 add tests for #19824 2018-09-15 14:53:40 +10:00
Luigi Pirelli
8b07b4ed9e
Merge pull request #7626 from rudivs/kneighbour
[feature] Adapted k-neighbour concave hull plugin as QGIS 3 algorithm
2018-09-14 15:32:46 +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
1a26d9401d Fix failing test for K-nearest concave hull group by field 2018-09-13 20:58:29 +02:00
Martin Dobias
1af35b294e Moved new snapping alg as another mode of "Snap geometries" processing alg 2018-09-13 16:24:37 +02:00
Martin Dobias
4a0669714b [FEATURE] Snap geometries algorithm
Makes sure that any two vertices of the vector layer are at least at distance given by the threshold value.
The algorithm moves nearby vertices to one location and adds vertices to segments that are passing around other
vertices within the threshold. It does not remove any vertices. Also, it does not modify geometries unless
needed (it does not snap coordinates to a grid).

This algorithm comes handy when doing vector overlay operations such as intersection, union or difference
to prevent possible topological errors caused by numerical errors if coordinates are very close to each other.

After running the algorithm some previously valid geometries may become invalid and therefore it may be useful
to run Fix geometries algorithm afterwards.
2018-09-13 11:46:29 +02:00