1123 Commits

Author SHA1 Message Date
Nyall Dawson
3fb18a2260 [processing] Fix Points Along Geometry handling of multipart geometries
Fixes #34022
2020-01-31 14:46:33 +10:00
Alexander Bruy
57e211dc4e update tests 2020-01-15 15:17:39 +02:00
Nyall Dawson
a9ed83f1a6 [FEATURE][processing] New algorithm "Rename table field"
Takes an input layer, existing field and a new name for the field, and
outputs a new layer with the selected field renamed.

While this result could also be achieved with the Refactor Fields
algorithm, Refactor Fields isn't particularly model friendly. It
relies on a constant, fixed table structure, and can't adapt to
input tables with different field structures.

In constrast, this simple Rename Field algorithm adapts nicely for
model use, because it operates on a single field only and leaves
all the other fields untouched.
2020-01-15 21:56:10 +13:00
Nyall Dawson
771fc3ff60 [FEATURE][processing] Add new mode to "Join Attributes by Location" algorithm
to take attributes from matching feature with largest area of overlap only

This allows for easy polygon->polygon joins, where you expect there to be
only a single matching feature and don't want to include features which
are just touching or have just tiny sliver polygon overlaps.

Sponsored by SMEC/SJ
2020-01-14 21:28:30 +13:00
root676
aa2b38f9ca remove hash based python test entry 2020-01-10 13:32:42 +13:00
root676
4b8177fda9 add linedensity testdata 2020-01-10 13:32:42 +13:00
root676
ce342f7ac4 [feature][processing] Add Line denisty algorithm 2020-01-10 13:32:42 +13:00
Alexander Bruy
cf6cd48b38 fix typo 2020-01-06 11:19:55 +10:00
Alexander Bruy
5e62e60de9 [processing] add user-defined parameters to gdal_rasterize 2020-01-06 11:19:55 +10:00
Alexander Bruy
b511841775 [processing] fix v.net,centrality 2020-01-06 11:19:55 +10:00
Alexander Bruy
432a8a5fd0 [processing] cleanup tests 2020-01-06 11:19:55 +10:00
Alexander Bruy
1fa3edfc51 [processing] add tests for r.series and r.reclass algorithms 2020-01-06 11:19:55 +10:00
Nyall Dawson
fcdf1f6e78 Fix test 2020-01-05 20:58:10 +10:00
Alex
e9aff0b695 join by location c++ port 2020-01-03 05:25:33 +10:00
Nyall Dawson
c43613d0b2 Another hash 2020-01-02 18:26:49 +10:00
Nyall Dawson
158dfcc3cc More test hashes 2020-01-02 18:26:49 +10:00
Nyall Dawson
c4672ef984 Add extra raster hashes 2020-01-02 18:26:49 +10:00
Panos Mavrogiorgos
d7f0ea2293 Fix tests 2020-01-02 18:26:49 +10:00
Nyall Dawson
5792966b12 Update test results 2020-01-02 14:20:14 +10:00
Nyall Dawson
12006de1aa [processing] Port Delete Duplicate Geometries to c++ 2019-12-31 15:06:42 +10:00
Nyall Dawson
2433ee555f [FEATURE][processing] Add native affine transform algorithm for vectors
Offers the following benefits over the GRASS/SAGA versions:
- Full support for z/m values and handling curved geometries without loss
of curves
- Works with all native data types, no need for format transformation
- Supports dynamic (data defined, per feature) translate/scale/rotate parameters
- Allows transformation and scaling of both Z and M values (if present)
- Supports in-place edit mode

Fixes #33550
2019-12-31 15:01:34 +10:00
Nyall Dawson
b37dd0984e Rip off a band aid, and deprecate all "proj4" calls from the API
Alias these across to new "proj" methods, which don't include the
version number.
2019-12-20 12:13:06 +10:00
Nyall Dawson
db2ac240de Add some references hashes seen on azure builds 2019-12-14 08:20:15 +10:00
Alexander Bruy
ddb93602ef address comments 2019-12-13 13:41:27 +02:00
Alexander Bruy
0219d0019e
Merge pull request #33290 from alexbruy/port-algorithms
[processing] port some algorithms to C++
2019-12-12 08:21:57 +02:00
Nyall Dawson
7381a2574e [processing] Add another hash to grass imagery tests
This one seems to come up occasionally on Travis
2019-12-10 10:53:08 +10:00
Alexander Bruy
d40a036c03 [processing] port random extract to C++
Also fix unreported bug caused incomplete results when same FID
was used multiple times
2019-12-09 13:28:32 +02:00
Alexander Bruy
cc5b6e74f4 [processing] port zonal statistics to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
4622661f59 [processing] port truncate table to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
b85fe90955 [processing] port raster layer statistics to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
2ff85f92df [processing] port pole of inaccessibility to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
2caf9e6ac3 [processing] port points from polygons algorithm to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
df3e801f31 [processing] port nearest neighbour analysis algorithm to C++ and add
test
2019-12-09 13:28:32 +02:00
Alexander Bruy
eec0ac07f8 [processing] port geometry by expression to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
c2d1649e60 [processing] port extract specific vertices algorithm to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
4bbb07f48f rename processing qgis test to allow running only subset of tests 2019-12-09 13:28:32 +02:00
Alexander Bruy
e0136ff65c [processing] port extract layer extent to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
9615306f44 [processing] port sum line length algorithm to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
eeaffb9d79 [processing] port add table field algorithm to C++ 2019-12-09 13:28:32 +02:00
root676
9fba322a73 fix point count test parameter 2019-11-27 04:18:28 +10:00
root676
3bf89fe100 fix CRS test parameter 2019-11-27 04:18:28 +10:00
root676
b96aed4e2d adaptation of algorithm test parameters 2019-11-27 04:18:28 +10:00
Alexander Bruy
524f66da78 [processing] port single-sided buffer algorithm to C++ and make distance
parameter dynamic
2019-11-26 03:56:24 +10:00
Alexander Bruy
f1d6080082 [processing] port set Z value algorithm to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
9411d96f60 [processing] port set M value algorithm to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
5324d7f98d [processing] port points layer from table to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
9289d53a6c [processing] port orthogonalize algorithm to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
aed17baed3 [processing] port spatial index algorithm to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
7033c31063 [processing] port create attribute index algorithm to C++ 2019-11-26 03:56:24 +10:00
Alexander Bruy
a1e75e9df3 [processing] port constant raster algorithm to C++ 2019-11-26 03:56:24 +10:00