Nyall Dawson
5b1afd86bc
"Loosen" up acceptable parameter for model child inputs
...
Previously we took a harsher approach to filtering which inputs
were acceptable for child algorithm parameters. E.g. a child algorithm
with a vector layer input would only show outputs from other algorithms
which generated a vector layer output.
But this can needlessly restrict what's possible in models. E.g.
an algorithm which outputs a QgsProcessingOutputFile or
QgsProcessingOutputString could potentially be a valid source
to a vector layer. So we should allow these as possible
inputs for vector layer parameters too.
This commit adds many extra acceptable input types for
child parameters. It will probably expose "corner cases" where
algorithms may get unexpected input types, but these will
not affect existing model stability and can be fixed when
identified.
The payoff is a much more flexible modeler.
2017-10-17 08:55:27 +10:00
Nyall Dawson
54f8825350
Fix processing tests
2017-10-16 20:10:37 +11:00
Nyall Dawson
e92e20e613
Move native c++ processing algorithms from core library to analysis
...
And split into separate files for each algorithm
2017-10-16 20:10:37 +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
edf734677e
[processing] use a vector feature source for gdal clip raster by mask ( #5351 )
2017-10-12 22:08:34 +07: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
67265c64c1
[processing] reproject extent into input CRS where possible
2017-10-11 17:06:11 +03:00
Alexander Bruy
2c50fd8dd8
[processing] use feature source in the interpolation algorithms
2017-10-11 17:06:11 +03:00
Alexander Bruy
874c7f545e
[processing] fix copy-paste error in Execute SQL
2017-10-11 17:06:11 +03:00
Alexander Bruy
1ece552c40
[processing] fix import
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
fd12d29615
[processing] restore gdal_merge algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
68863a9c5d
[processing] restore Execure SQL algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
fb958df64f
[processing] restore dissolve algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
750e80f7de
[processing] restore ogr2ogr algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
efa97b2913
remove unused includes
2017-10-11 17:06:11 +03:00
Alexander Bruy
6c7a292627
[processing] restore clip vector by mask algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
679cc2c887
[processing] restore clip vector by extent algorithm
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
f59e3a340c
[processing] homogenize and improve Points along lines
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
bba509ee4d
[processing] fixes to Offset curve 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
Alexander Bruy
105222ea8c
[processing] restore ogrinfo algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
7c9d634323
[processing] rename some algorithms to avoid naming conflicts and
...
maintain consistency
2017-10-11 17:06:11 +03:00
Alexander Bruy
5b7b3a9930
[processing] restore gdaladdo algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
491a9aabda
[processing] restore gdal2xyz algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
95c91f881c
[processing] restore retile algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
4c2c568f0a
fix optional CRS parameter handling
2017-10-11 17:06:11 +03:00
Alexander Bruy
6a1b68edd6
[processing] restore gdal2tiles algorithm
2017-10-11 17:06:11 +03:00
Alexander Bruy
0f226645fa
[processing] homogenize gdal algorithms
...
-consistent parameters naming
-use additional creation options where possible
-remove duplicated functionality
2017-10-11 17:06:11 +03:00