6595 Commits

Author SHA1 Message Date
Luigi Pirelli
6aa36166e4 adapted tests to new variables added in expressionContext 2018-08-28 17:06:10 +02:00
Luigi Pirelli
9e2286ae98 fix layer mapping in case direct use NOT in a model 2018-08-28 17:06:10 +02:00
Luigi Pirelli
d3144b97af remove unused method 2018-08-28 17:06:09 +02:00
Luigi Pirelli
6a2934cfa3 use complete layerSource instead of only basename 2018-08-28 17:06:09 +02:00
Luigi Pirelli
1bc1bb2f13 fix use layer source and managed string parsing in case of translation 2018-08-28 17:06:09 +02:00
Luigi Pirelli
faf9716a52 fix some code weakness and review comments 2018-08-28 17:06:09 +02:00
Luigi Pirelli
5a3b319e1c change expression to use layers in the current execution scope 2018-08-28 17:06:08 +02:00
Luigi Pirelli
5ebe5d6c5b show variableDescription as shown in the list of variables 2018-08-28 17:06:08 +02:00
Nyall Dawson
304033c916 [processing] Use distance parameter for Points Along Geometry offsets
and Topological Coloring distance parameters

Fixes #19712
2018-08-28 10:21:10 +10:00
Harrissou Sant-anna
269edfd0df Fix parameter's label
Because all values are in layer units now and they can be overridden
2018-08-28 04:37:17 +10:00
Alexander Bruy
821a8ff0b5 [processing] fix incorrect output names 2018-08-26 11:26:07 +03:00
Nyall Dawson
83feea46a7 [processing] Accept geometry-less layers in more algorithms
Fixes #19685
2018-08-25 15:41:13 +10:00
Alexander Bruy
267b049d31 [dbmanager] fix versioning dialog UI (overlapping line edits) 2018-08-25 08:34:24 +03: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
Luigi Pirelli
ad96be96a9 Fix Thershold parameter for SAGA Watershed algorithm 2018-08-24 06:18:51 +10:00
Juergen E. Fischer
1cc1f16501 Fix translation string
(caused "tx ERROR: Error received from server: Qt Linguist variants are
not yet supported." on vanish)
2018-08-22 10:40:23 +02:00
Nyall Dawson
9fbef832c9 [processing] Also standardise names for Spatialite algorithms 2018-08-21 16:00:18 +10:00
Nyall Dawson
5fab46f41c [processing][needs-docs] Refine names for 'Import into PostGIS' algs
Renames the existing algorithms for clarity and consistency
to the format 'Export to PostgreSQL...'. Add tags so that they
still show when searching for the old names, and add descriptions
to make their use more obvious from the toolbox.

Fixes #19658
2018-08-21 16:00:18 +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
8f3ac4506b [processing] Remove some unused configuration settings 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
85d740026a [processing] Remove extraneous parameter value check
The subsequent call to checkParameterValues covers the same checks,
but in a more flexible way.

Refs discussion at https://github.com/qgis/QGIS-Documentation/pull/2797
2018-08-21 05:24:30 +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
Heidi Vanparys
4ab4b42d27 Update Danish national CSW
geodata-info has been modernised (upgrade of GeoNetwork installation) and as a consequence, the CSW endpoint was changed from http://www.geodata-info.dk/registrant/srv/en/csw to https://geodata-info.dk/srv/dan/csw.
2018-08-16 19:12:53 +10:00
Nyall Dawson
a0b4e024bb [processing] Respect application stylesheet in modeler/script editor dialogs 2018-08-16 09:12:22 +10:00
Nyall Dawson
4930061b21 [processing] Fix incorrect OGR warnings when loading raster layer results
Fixes #19597
2018-08-16 06:37:18 +10:00
nirvn
94300eab7c Add proxy progress task for non-background algorithms 2018-08-16 06:22:16 +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
0faa7ecdae [processing] Minor optimization for regular points algorithm 2018-08-15 10:23:02 +10:00
Nyall Dawson
9d6b5a7f53 [processing] Fix non-sequential ids in regular points algorithm 2018-08-15 10:23:02 +10:00
Matthias Kuhn
f769430419 Fix indentation 2018-08-15 10:23:02 +10:00
Jordan Feldstein
93ee06247d Count and report progress based on expected total
Algorithm appears to freeze without progress while `extent_engine.intersects(geom.constGet())` returns false. 

This keeps the progress bar continuous and smooth, even if the feature ends up not being added.

(noticed this because the algo hangs for 2 mins while processing a large dataset which I think is outside the extent somehow. None of the points going in. No apparent progress.)
2018-08-15 10:23:02 +10:00
Nyall Dawson
6072350942 Tooltip for project provider 2018-08-13 17:39:00 +10:00
Nyall Dawson
a4a74a907d Add new icon for 'Save in project' thanks to @nirvn 2018-08-13 15:47:01 +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
db1dad5800 Followup f4d08eb9, update expected test result 2018-08-11 13:50:10 +10:00
Juergen E. Fischer
f4d08eb926 dbmanager/postgis: quote identifiers in urls (fixes qgis portion of #19583) 2018-08-10 09:21:52 +02:00
Nyall Dawson
d39bdcdadd [processing] Don't create frequency distribution file for relief
algorithm by default

Refs #19570
2018-08-09 19:17:30 +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
113e16351d [processing][grass] Fix skipped outputs are still added in grass commands 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