Nyall Dawson
5b1da988ba
[processing] List unique values improvements
...
- allow running on non-spatial tables
- allow choice of more than one field
2017-12-15 15:46:50 +11:00
Nyall Dawson
ca75e8c0a5
Remove obsolete python alg, add unit tests
2017-12-07 06:28:54 +11:00
Nyall Dawson
e12621ce2a
Add API method to remove duplicate nodes from geometries
...
Removes duplicate nodes from the geometry, wherever removing the
nodes does not result in a degenerate geometry.
By default, z values are not considered when detecting duplicate
nodes. E.g. two nodes with the same x and y coordinate but
different z values will still be considered duplicate and one
will be removed. If useZValues is true, then the z values are
also tested and nodes with the same x and y but different z
will be maintained.
Note that duplicate nodes are not tested between different
parts of a multipart geometry. E.g. a multipoint geometry
with overlapping points will not be changed by this method.
The function will return true if nodes were removed, or false
if no duplicate nodes were found.
Includes unit tests and a processing algorithm which exposes
this functionality.
2017-12-03 14:58:21 +10:00
Nyall Dawson
6b23e1f299
Merge pull request #5600 from Gustry/sortby
...
add order by expression algorithm
2017-12-02 11:43:48 +11:00
Nyall Dawson
8026008ae7
[processing] group option for autoincrement field algorithm
2017-12-01 20:42:38 +11:00
Etienne Trimaille
1b8faa2a79
add sort by expression algorithm
2017-11-30 15:22:13 +01:00
Matteo Ghetta
a10e753820
processing test for difference algorithm ( #5764 )
2017-11-29 15:25:30 +01: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
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
matteo
c321700ada
[processing] test for union algorithm
2017-11-15 11:27:30 +11:00
nirvn
b7d05829ce
try to make travis happy
2017-11-13 17:36:36 +07: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
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
Mathieu Pellerin
61dcba4a81
[processing] add area to raster layer unique values report algorithm ( #5334 )
2017-10-10 13:52:16 +07:00
Mathieu Pellerin
201091ea3e
[FEATURE][processing] raster layer unique values count algorithm ( #5308 )
2017-10-09 16:42:17 +07:00
Nyall Dawson
0943cd5d51
Resurrect commented out zonal stats test
2017-09-26 15:30:14 +10:00
Nyall Dawson
fddb6a59a1
Make shortest path test less fussy
2017-09-26 15:19:05 +10:00
Nyall Dawson
79b143bd15
Enable a commented out processing test
2017-09-26 15:16:49 +10:00
Alexander Bruy
73d6058bd1
ignore crs for network analysis tests
2017-09-25 13:26:30 +03:00
Alexander Bruy
745111dbdb
[processing] enable network analysis tests
2017-09-25 11:20:42 +03:00
Nyall Dawson
0dd434c183
[processing] Port mean coordinates to c++
...
And remove final use of inefficient vector.extractPoints function
2017-09-23 09:25:18 +10:00
Nyall Dawson
21f92a6fb2
Port line intersection and split with lines to c++
2017-09-22 15:19:32 +10:00
Nyall Dawson
d8db3ecc4d
[FEATURE] New processing algorithm "extract/clip by extent"
...
Allows extract a subset of another layer using an extent, with
optional setting to clip geometries to the extent
2017-09-15 08:33:19 +10:00
Nyall Dawson
d96a3f4dd4
Port simplify geometries to c++
2017-09-14 09:57:15 +10:00
Nyall Dawson
8e8f3edc55
Port merge lines and smooth to c++
2017-09-14 09:57:15 +10:00
Nyall Dawson
7c5521ecdf
Port fix geometries alg to c++
2017-09-14 09:57:15 +10:00
Nyall Dawson
be88da8173
[FEATURE][processing] Add 'Join by location (summary)' algorithm
...
Like the main Join Attributes by Location algorithm, this algorithm
takes two layers and combines the attributes based on a spatial
criteria.
However this algorithm calculates summaries for the attributes for
all matching features, e.g. calculating the mean/min/max/etc.
The list of fields to summaries, and the summaries to
calculate for those, can be selected.
2017-09-13 18:45:56 +10:00
Nyall Dawson
458e994d39
[FEATURE] Reworked processing 'Join by location' alg
...
Improvements:
- transparently handle different source/join CRS
- added option to create output feature for EVERY joined
feature (i.e. 1 to many type join)
- added option to select joined fields to take
- optimised performance of algorithm
The previous option to create a summary of joined features has been
removed, and will be moved to a separate 'Join by location (summary)'
algorithm.
2017-09-13 08:01:56 +10:00
Nyall Dawson
a650681061
Merge pull request #5131 from nyalldawson/location_algs
...
Rework Select by Location algorithm
2017-09-11 15:50:43 +10:00
Nyall Dawson
6a760ef3df
More tests for Extract by Location
2017-09-10 10:50:55 +10:00
Nyall Dawson
e0026609bb
Fix missing geometries/attributes in Extract by Location
2017-09-10 10:45:34 +10:00
Nyall Dawson
f4b9bbd8ab
Swap unit tests to use native algorithms
2017-09-08 20:32:12 +10:00
Nyall Dawson
4ca972a2ff
Fix stats by categories tests on Travis
2017-09-08 16:35:18 +10:00