Luigi Pirelli
580ecafa32
Merge pull request #7396 from luipir/rastercalculator_model_fix
...
[processing] Rebirth RasterCalculator in Modeler. Fixes #19302
2018-09-04 18:13:04 +02:00
nirvn
8398aae04b
[needs-docs][processing] Use input layer data type for gdal algorithms
...
when appropriate:
- warp (i.e. reproject)
- translate (i.e. file format conversion)
- rearrange bands
- clip by extent/mask
2018-09-04 16:20:03 +07:00
nirvn
5cd28034bd
address comments, fix test
2018-09-04 10:07:07 +07:00
Andrea Giudiceandrea
e56da0e58a
Add test for Join by location (equals)
...
Adds a test for "Join attributes by location" processing algorithm 'equals' predicate
2018-08-30 09:59:26 +02:00
Luigi Pirelli
6aa36166e4
adapted tests to new variables added in expressionContext
2018-08-28 17:06:10 +02:00
Luigi Pirelli
3b29e59885
small fix in parameter description removing spaces
2018-08-24 06:18:51 +10:00
Luigi Pirelli
819a82ad54
added SAGA watershed segmentation execution test
2018-08-24 06:18:51 +10:00
Nyall Dawson
5241ff3c22
[processing] Fix creation of new layers doesn't default output folder
...
Fixes #19637
2018-08-21 15:09:37 +10:00
Nyall Dawson
16503b38b2
[processing] Add unit test for gdalinfo algorithm
2018-08-21 14:28:42 +10:00
Nyall Dawson
d0a705fad0
[processing][gdal] Fix ogrinfo algorithm fails when path name has spaces
...
Fixes #19655
2018-08-21 14:28:42 +10:00
Nyall Dawson
0d200623b1
[FEATURE][processing] Add non-joinable output to Join by Location alg
...
Allows unjoinable features to be saved to a separate optional layer
2018-08-18 08:03:39 +10:00
Nyall Dawson
773371a143
[FEATURE][processing] Join by field value can export unmatched records,
...
and reports counts of matched/unmatched features
This gives an explicit warning to users when features were not matched,
and optionally allows them to save non-matching features to a layer.
2018-08-18 08:03:39 +10:00
Nyall Dawson
c6a91dab09
[FEATURE] Use native interpolate point method instead of GEOS method
...
Because:
- Exactly follows curves and doesn't require segmentizing input geometry
- Also interpolates z/m values if they are present in input geometry
- Is faster
2018-08-15 14:01:59 +10:00
Nyall Dawson
8365335fd3
[FEATURE][processing] Interpolate point on line algorithm
...
This algorithm creates a point geometry interpolated at a
set distance along line (or polygon boundary) geometries.
2018-08-15 14:01:59 +10:00
Nyall Dawson
7ef5631d6b
[FEATURE][processing] Line substring algorithm
...
This algorithm returns the portion of a line (or curve) which falls
between the specified start and end distances (measured from the
beginning of the line).
Z and M values are linearly interpolated from existing values.
2018-08-15 14:01:59 +10:00
Nyall Dawson
63fd4bab2a
[processing][FEATURE] Store models inside QGIS project files
...
Allows processing models to be stored inside QGIS project files,
so that opening the project makes that model available.
Some models are so intrinsically linked to the logic inside
a particular project that they have no meaning (or are totally
broken) outside of that project (e.g. models which rely
on the presence of particular map layers, relations, etc)
This change allows these models to be stored inside that project,
avoid cluttering up the "global" model provider with models
which make no sense, and making it easier to distribute a single
project with these models included.
Models are stored inside projects by clicking the new "embed
in project" button in the modeler dialog toolbar. Models can be
removed from a project from the model's right click menu in the
toolbox.
2018-08-13 15:47:01 +10:00
Nyall Dawson
7495ec276e
[processing][grass] Fix r.stream.extract definition, resurrect test
2018-08-09 12:32:27 +10:00
Nyall Dawson
e893aae190
[processing][grass] Fix definition of r.watershed, resurrect test
2018-08-09 12:32:27 +10:00
Nyall Dawson
0c24fdb883
[processing][grass] Fix r.sun parameter definition, resurrect test
2018-08-09 12:32:27 +10:00
Nyall Dawson
c50c615ecb
Resurrect some processing grass tests
2018-08-09 12:32:27 +10:00
Nyall Dawson
08a8ea7b72
[processing][grass] Fix v.surf.bspline definition, add test
2018-08-09 12:32:27 +10:00
Nyall Dawson
526e590c8d
[FEATURE][processing] Add "raster pixels to points" algorithm
...
Refactor the existing "raster pixels to polygons" algorithm and
create a new "pixels to points" algorithm, which creates a point
feature at the center of every pixel. nodata pixels are skipped.
2018-08-09 12:02:22 +10:00
Håvard Tveite
d2b71c307b
[processing] Added isclose function to VoronoyPolygons.py to avoid numerical instability
...
Fixes #8002 - hopefully, and adds tests
2018-08-09 09:18:54 +10:00
Nyall Dawson
43d3870978
[processing][saga] Fix cubic spline definition, add unit test
2018-08-08 17:29:58 +10:00
havatv
4b1bc82ca1
Added a test for VoronoiPolygon.py that covers some new cases
2018-08-08 05:54:44 +10:00
Mathieu Pellerin
51b63e6b46
[vector file writer] use field type to save attribute values
...
(relying on attribute value type isn't reliable under certain
scenarios, including memory layers created through a processing
python algorithm)
2018-08-06 11:07:56 +07:00
Nyall Dawson
4acef1efbf
[processing] Fix crash in extract by attribute when field name does not exist
...
Fixes #19531
2018-08-04 05:57:46 +10:00
Alexander Bruy
f524460379
[processing] homogenize label for 'additional creation options'
...
parameter in GDAL algorithms
2018-08-02 12:11:20 +03:00
Alexander Bruy
bbc33309a3
Merge pull request #7505 from alexbruy/network-analysis
...
[processing] port shortest path algs to C++
2018-08-01 13:40:31 +03:00
H Tveite
70b53fb484
Updated the expected/voronoi_buffer.gml file in testdata to reflect the new (and hopefully correct behaviour
2018-07-31 08:47:28 +10:00
Nyall Dawson
df05369dbf
Hack is still required, but maybe using non-deprecated api will help?
...
Sometimes qt is great, sometimes I want to punch it in it's silly
little cute face
2018-07-31 05:12:59 +10:00
Alexander Bruy
72d13ac0f8
[processing] port shortest path (layer to point) alg to c++
2018-07-30 15:15:04 +03:00
Alexander Bruy
d999923da9
[processing] port shortest path (point to layer) alg to c++
2018-07-30 15:15:04 +03:00
Alexander Bruy
a6901edb9b
[processing] port shortest path (point to point) alg to c++
2018-07-30 15:15:03 +03:00
Nyall Dawson
f119453f42
Tweak algorithm names, strings
2018-07-30 12:11:17 +10:00
Nyall Dawson
837206892a
Optimise drape algorithms, skip vertex iteration for geometries which don't intersect raster
2018-07-30 12:11:17 +10:00
Nyall Dawson
d5ce6dcb1d
[FEATURE][processing] native drape features to z/m algorithms
...
Sets vertex z/m values to values sampled from a raster band.
Values can optionally be scaled using a (data definable) scale value.
2018-07-30 12:11:17 +10:00
Nyall Dawson
2692de6ed0
[FEATURE][processing] Choice of units for non degree/unknown distances
...
When an algorithm has a distance parameter in meters/feet/etc (i.e.
non-geographic distances), show a combo box allowing choice of
unit type.
(We don't (and should never) expose this for distances in degrees --
it's up to users in this situation to choose a suitable local
projection and reproject their data to match. Refs: a recent
talk by @volaya)
2018-07-27 13:24:03 +10:00
Nyall Dawson
d1d6840a5f
[processing][feature] Port 'offset lines' to c++, support dynamic offset parameter
...
Adds data defined support for the offset line distance parameter.
2018-07-27 13:23:50 +10:00
Nyall Dawson
76c84f14d7
[FEATURE][processing] "Create parallel lines" algorithm
...
This algorithm creates copies of line features in a layer, by
creating multiple parallel versions of each feature. Each copy is offset
by a preset distance.
2018-07-27 13:23:50 +10:00
Nyall Dawson
abe4532a2c
[feature][processing] "Array of Offset Features" algorithm
...
This algorithm creates copies of features in a layer, by
creating multiple offset versions of the feature. Each copy is displaced
by a preset amount in the x/y/z/m axis.
2018-07-27 13:23:50 +10:00
Nyall Dawson
28c4a6cf59
[processing][grass] Fix v.net.* output types, add tests
...
Fixes #19186
2018-07-25 19:50:48 +10:00
Nyall Dawson
b10fa5e979
[processing][grass] Fix v.vect.stats output type, add test
2018-07-25 19:50:48 +10:00
Nyall Dawson
0c56d00c01
[processing][grass] Fix v.what.rast data type, add test
2018-07-25 19:50:48 +10:00
Nyall Dawson
71f880bb93
[processing][grass] Fix v.voronoi output type, add test
2018-07-25 19:50:48 +10:00
Nyall Dawson
a463af32f8
[processing][grass] Fix generation of output for v.rast.stats, add test
2018-07-25 09:23:36 +10:00
Nyall Dawson
27d447b79d
[processing][gdal] Ignore 'selected features only' setting when
...
creating command preview
Since this has no meaning outside of a QGIS session
Refs #19451
2018-07-25 08:20:07 +10:00
Nyall Dawson
ed94b693e9
[processing][gdal] Fix layer paths are sometimes incorrect within command preview
...
Fixes #19451
2018-07-25 08:20:07 +10:00
Nyall Dawson
6a4d9c9bd4
[processing] Ensure feature source wrapper always returns direct
...
layer id/source whenever 'use selected features' is unchecked,
instead of always returning a QgsProcessingFeatureSourceDefinition
2018-07-25 08:20:07 +10:00
Nyall Dawson
3ec1442045
Points -> vertices
2018-07-24 03:56:10 +10:00