478 Commits

Author SHA1 Message Date
Nyall Dawson
8026008ae7 [processing] group option for autoincrement field algorithm 2017-12-01 20:42:38 +11:00
Matteo Ghetta
a10e753820 processing test for difference algorithm (#5764) 2017-11-29 15:25:30 +01:00
Alexander Bruy
e0290a9f23
Merge pull request #5745 from alexbruy/processing-cleanup
Processing cleanup
2017-11-29 09:44:55 +02:00
Nyall Dawson
62dbf4ce26 GML is too fragile, but shapefiles, you've never let me down... 2017-11-29 15:50:58 +11:00
Nyall Dawson
f8bad4977d [processing] Make split with lines output single part features
instead of keeping parts collected into a single multipart feature
2017-11-29 15:50:58 +11:00
Alexander Bruy
3d4a59bb8b [processing] cleanup files from unused code and remove some files 2017-11-28 12:27:45 +02:00
Nyall Dawson
b786ed03b2 Add a unit test 2017-11-24 16:26:41 +10:00
Nyall Dawson
ff900c0b05 [processing] Make translate algorithm native
And add option to translate z/m values
2017-11-24 16:18:13 +10:00
Mathieu Pellerin
793fb6114b
[processing] add vertex id details to extract nodes algorithms 2017-11-16 17:46:47 +07:00
matteo
c321700ada [processing] test for union algorithm 2017-11-15 11:27:30 +11:00
Nyall Dawson
fc6c69bedf Fix calculation of distance to vertex for multi part, multi ring
and curved geometries
2017-11-14 21:52:28 +11:00
nirvn
b7d05829ce try to make travis happy 2017-11-13 17:36:36 +07:00
Alexander Bruy
713dc970d8 disable SAGA test until we have SAGA support on Travis 2017-11-09 18:58:19 +02:00
Alexander Bruy
4b63975eaf [processing] tests for SAGA provider and related fixes 2017-11-09 18:56:44 +02:00
Alexander Bruy
b4214798e9 [processing] infrastructure for SAGA tests 2017-11-09 18:56:44 +02:00
Nyall Dawson
fe78611cf5 Simplify interpolation API
Don't require both pixel size and row/col count in constructor,
since we can calculate the pixel size from the extent and row/column
count.
2017-11-03 14:00:07 +10:00
Nyall Dawson
bee2a1a86e Update Python code 2017-11-03 10:33:04 +10:00
Nyall Dawson
2bdc323d72 More test tolerance 2017-10-31 16:01:33 +10:00
Nyall Dawson
284c4d35cd Fix tests 2017-10-31 16:01:33 +10:00
Nyall Dawson
8f22f5eb3b [processing] Misc fixes for network analysis tools
Also maintain attributes in service area from layer alg, add test

Fixes #17325
2017-10-31 16:01:32 +10:00
Nyall Dawson
5ffd7214ee [processing] Shortest path handling for multipoint layers
Fixes shortest path algorithms fail for multipoint source layers
or layers with null geometries

Refs #17325
2017-10-31 16:00:18 +10:00
Nyall Dawson
4372ac2658 [FEATURE][processing] Native c++ snap to grid algorithm
With support for snapping Z/M values, keeping curves
2017-10-27 15:16:15 +10:00
Alexander Bruy
04a8418a32 add tests for distance matrix algorithm 2017-10-24 15:27:23 +03:00
lbartoletti
977ce426db [FEATURE][processing]Transect processing
Adds a C++ version of the "ststion lines" plugin as a
new processing algorithm for creating transect lines.
2017-10-24 05:42:03 +11:00
Alexander Bruy
a6ac876d90 [processing] update test data 2017-10-18 18:41:39 +03:00
Nyall Dawson
18f85d9e54 Port drop M/Z algorithm to c++ 2017-10-13 08:30:12 +10:00
Nyall Dawson
b5197c8c53 Port drop geometries to c++ 2017-10-13 08:29:37 +10:00
Nyall Dawson
2951afa324 Port boundary algorithm to c++
Also allow feature based algorithms to customise their appectable
input layers types and set suitable filters for all applicable
algorithms
2017-10-13 08:28:34 +10:00
Nyall Dawson
97c1b0d322 [FEATURE] Port autoincremental field to c++
Also add:
- support for setting initial value for field to start at
- support for user-set field names (instead of always using 'AUTO')
2017-10-13 08:26:36 +10:00
Nyall Dawson
61dc8ea28f [FEATURE][processing] New 'assign projection' algorithm
This algorithm assigns a new projection to a vector layer.
It creates a new layer with the exact same features and
geometries as the input one, but assigned to a new CRS.
E.g. the geometries are not reprojected, they are just
assigned to a different CRS.

This algorithm can be used to repair layers which have
been assigned an incorrect projection.
2017-10-13 08:26:36 +10:00
Nyall Dawson
bd24c8b664 Allow selection of a subset of fields to keep for hub lines algorithm 2017-10-13 08:26:36 +10:00
Nyall Dawson
cc19d0a70d Port hub lines algorithm to c++
Also:
- optimise a bit
- retain z/m values
- use point on surface for non-point layers, instead of
center of geometry bounding box
2017-10-13 08:26:36 +10:00
Nyall Dawson
cac171a2e0 Port Join Attributes to c++, add option to select subset of fields to copy 2017-10-13 08:26:36 +10:00
Alexander Bruy
ea7ca58442 [processing] add second hash for linear grid interpolation test 2017-10-11 17:55:26 +03:00
Alexander Bruy
c0e47a71ae [processing] disable test for script-based algorithms as GDAL scripts
are not available on Travis
2017-10-11 17:06:11 +03:00
Alexander Bruy
21e4fc515e [processing] exclude location field from check 2017-10-11 17:06:11 +03:00
Alexander Bruy
49f9ceef1a [processing] disable clip by polygon tests as they pass locally but
fail on Travis with TopologyException

ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection
at or near point 2 -1 at 2 -1
2017-10-11 17:06:11 +03:00
Alexander Bruy
2104b273af [processing][API]introduce QgsProcessingOutputFile output and fix gdal2xyz test 2017-10-11 17:06:11 +03:00
Alexander Bruy
79c26c384d [processing] fix execute sql test 2017-10-11 17:06:11 +03:00
Alexander Bruy
4ac442f5a3 [processing] fix test for clip vector by mask algorithms 2017-10-11 17:06:11 +03:00
Alexander Bruy
f65de2caa9 [processing] fix clip by extent tests 2017-10-11 17:06:11 +03:00
Alexander Bruy
97238fd687 [processing] fix SQL-based geoprocessing tools and tests 2017-10-11 17:06:11 +03:00
Alexander Bruy
e165d45a0f [processing] fix GDAL raster tests 2017-10-11 17:06:11 +03:00
Alexander Bruy
613852758e fix indentation 2017-10-11 17:06:11 +03:00
Alexander Bruy
c4c780fa04 [processing] tests for clipping (raster and vector) algorithms 2017-10-11 17:06:11 +03:00
Alexander Bruy
ff75873eb8 [processing] tests for OGR-based algorithms 2017-10-11 17:06:11 +03:00
Alexander Bruy
3750a5bf63 [processing] restore one side buffer algorithm 2017-10-11 17:06:11 +03:00
Alexander Bruy
98dfda3aa7 [processing] restore buffer algorithm 2017-10-11 17:06:11 +03:00
Alexander Bruy
fde5c89d97 fix typos and add tests for gdal algorithms 2017-10-11 17:06:11 +03:00
Alexander Bruy
9b74d9f2df [processing] restore offset curve algorithm 2017-10-11 17:06:11 +03:00