5704 Commits

Author SHA1 Message Date
Médéric RIBREUX
6d4d291f0b Review ParameterNumber for r.* description files 2017-12-16 11:12:12 +01:00
Médéric RIBREUX
507af21f2f Review optional ParameterNumbers 2017-12-16 11:12:12 +01:00
Médéric RIBREUX
f70032bab6 Fix v.buffer 2017-12-16 11:12:12 +01:00
Médéric RIBREUX
5b86407338 Fix parameters and support empty default values for Enums 2017-12-16 11:12:12 +01:00
Médéric RIBREUX
a8afd12f51 First fixes before tests 2017-12-16 11:12:12 +01:00
Nyall Dawson
252f0802b1 Follow up 647bd25 2017-12-16 13:54:26 +10:00
Nyall Dawson
647bd256b1 [processing] Use a more unique separator for log file
Fixes #17704
2017-12-16 11:59:11 +10:00
Nyall Dawson
0c7cf21fe2
Merge pull request #5535 from nyalldawson/datum
Datum transform handling rework, pt 1
2017-12-15 22:53:02 +11:00
Alexander Bruy
e9feeaacc6
Merge pull request #5875 from alexbruy/processing-editor
[FEATURE][processing][needs-docs] add find and replace functionality to script editor
2017-12-15 13:21:41 +02:00
Alexander Bruy
a0ce648175 [processing] use groupId when constructing help URL 2017-12-15 12:11:46 +02:00
Alexander Bruy
5016c21ed3 [FEATURE][processing][needs-docs] add find and replace functionality to
Processing script editor (forward-port from 2.18 branch)
2017-12-15 11:07:15 +02:00
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
86d9492372 Remove context-unaware QgsCoordinateTransform constructors from Python bindings
This forces Python code and plugins to become datum transform
aware, and given that upgrading python code is easy (just
add QgsProject.instance() as a new argument to the constructor)
it's relatively painless to force this on PyQGIS users.

Also fix upgrade the easy QgsCoordinateTransform c++ constructors
where the project is available, or where using QgsProject::instance()
is safe to do.

For others, just avoid the deprecated warnings until we can
get access to the correct project instance where the transform
is being constructed.
2017-12-15 14:13:22 +10:00
Nyall Dawson
db07bc6c07
Merge pull request #5867 from alexbruy/processing-group
[processing] add groupId() method to get untranslated algorithm group
2017-12-15 12:25:45 +11:00
Nyall Dawson
bbf00279ad [processing] Don't sort field names in multi-field input dialog
Field names should always be listed in the order that the layer
defines them
2017-12-15 08:58:54 +11:00
Alexander Bruy
2674022b6c [processing] add group id to scripts 2017-12-14 18:10:35 +02:00
Alexander Bruy
dca37abd0e [processing] add group id to QGIS algorithms 2017-12-14 18:04:12 +02:00
Alexander Bruy
53bc147dca [processing] add group id to GDAL algorithms 2017-12-14 18:04:11 +02:00
Alexander Bruy
5e157c967d [processing] add group id to SAGA algorithms 2017-12-14 18:04:11 +02:00
Alexander Bruy
6f43954839 [processing] add group id to GRASS algorithms 2017-12-14 18:04:02 +02:00
Matthias Kuhn
b619dcb00a Refactor fields configuration in the modeler does not insist on layer
Inside the modeler, there is not enough knowledge about the layer on
which the refactor fields algorithm will run.
Let's be graceful with error messages here therefore.
2017-12-14 09:04:07 +01:00
Matthias Kuhn
e9d4c06cb2 Make string translatable 2017-12-14 09:04:07 +01:00
Matthias Kuhn
3d626b716a Fix file mode 2017-12-14 09:04:07 +01:00
Nyall Dawson
457abe7bbf
Merge pull request #5859 from nyalldawson/project_icon
Use qgs project icon derivative for project home in browser
2017-12-14 10:02:58 +11:00
Nyall Dawson
af0e369834 Fix actions on model items in browser 2017-12-14 07:46:39 +10:00
volaya
ea49c8276c [processing] Set value of unused optional layer parameters to None instead of empty string 2017-12-13 14:39:12 +01:00
volaya
1648c79dc2 [processing] fixed parsing of integer parameters 2017-12-13 14:39:11 +01:00
volaya
0858652e84 [Processing] correctly report missing layers in postprocessing task 2017-12-13 14:39:10 +01:00
volaya
1b8fa82790 [processing] fixed saga algs descriptions 2017-12-13 14:39:09 +01:00
Mathieu Pellerin
353ca633b0
Tiny spatialite-related improvement & fix (#5857)
* [spatialite provider] when creating an empty layer, primary key should be autoincrement
* [processing] fix import into spatialite's primary key parameter
* [spatialite provider] case insensitive search for table names
2017-12-13 14:38:42 +07:00
Alexander Bruy
79d83f2066 [processing] use core methods for raster and vector extensions handling 2017-12-11 09:38:14 +02:00
Nyall Dawson
53ebe050bd
Merge pull request #5825 from nyalldawson/gdal
[processing] Some GDAL algorithm fixes
2017-12-09 17:26:41 +11:00
Nyall Dawson
b578f8af35 Fix layer handling in import to postgis algs 2017-12-08 15:25:25 +10:00
Nyall Dawson
2d4a465212 [processing][gdal] Spatial extent filter for import to postgis
should be optional
2017-12-08 15:24:30 +10:00
Nyall Dawson
846400cb70 Resurrect GDAL import to PostGIS (available connections) alg
Fixes #17605
2017-12-08 15:18:03 +10:00
Nyall Dawson
be962c7d8b Faster command generation in gdal algorithm dialog, by skipping forced incompatible layer exports 2017-12-08 14:50:03 +10:00
Nyall Dawson
96c7e6e0a6 [processing][gdal] Cleanup some code, add method to customise
generated command based on whether the algorithm is actually
executing or just being displayed in the UI as a command
2017-12-08 14:09:08 +10:00
Nyall Dawson
ca75e8c0a5 Remove obsolete python alg, add unit tests 2017-12-07 06:28:54 +11:00
Mathieu Pellerin
ad54073b1e
[processing] list native QGIS algorithms first in modeler dialog 2017-12-05 11:52:06 +07:00
Nyall Dawson
5a818707c7 Update tests 2017-12-03 17:06:20 +10:00
Nyall Dawson
5b5560aaf9 Set default method for check validity alg 2017-12-03 15:16:17 +10:00
Nyall Dawson
5b05699fc9 Add some tags to check validity algorithm 2017-12-03 14:58:21 +10: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
928afdd8c5 Fix geometry snapper sometimes creates unwanted overlapping segments
when snapping line layers

Because the default behavior of the snapper is to insert extra
vertices into the snapped geometry in order to make it 'follow'
the reference geometries exactly, this can result in unwanted
results for line layers where the resultant snapped layer
has overlapping line segments.

Since we can't always know what the desired result is that the
user wants (maybe they do want overlapping lines), instead
give them control over the result by exposing extra enum
options which never insert extra vertices.
2017-12-03 07:10:42 +10:00
Nyall Dawson
1625d1fa2c Disable direct parameter value input when data defined override is set 2017-12-02 11:17:19 +10:00
Nyall Dawson
8c9147eabd [processing] Make set m value accept dynamic m values 2017-12-02 11:17:19 +10:00
Nyall Dawson
d1a71f0971 Update algorithms for new API 2017-12-02 11:17:19 +10:00
Nyall Dawson
58ab507717 Fix failing test 2017-12-02 11:17:18 +10:00
Nyall Dawson
4b464f3d68 [processing] Allow data defined z value for "set z value" algorithm
Allows easy setting of z from an existing height attribute!
2017-12-02 11:17:18 +10:00
Nyall Dawson
901dae1110 [processing] Expose data defined button for dynamic numeric parameters
When running algorithms through the toolbox, which have dynamic
numeric parameters, add a data defined property override button
next to the widget so that users can set the overrides for these
parameters.

Previously this was available only in the backend, but not
exposed anywhere in the GUI.

Note that currently no algorithms support dynamic parameters,
so don't expect to see this everywhere. It's also only available
in toolbox/batch processing modes, not in models.
2017-12-02 11:17:18 +10:00