1421 Commits

Author SHA1 Message Date
Nyall Dawson
bef5b5ed68 [processing][heatmap] custom parameter/widget for output resolution
Matches current behaviour of c++ heatmap plugin
2016-12-07 12:23:58 +10:00
Nyall Dawson
83c38b0172 [FEATURE][processing] Port heatmap plugin to processing algorithm 2016-12-07 08:27:24 +10:00
volaya
96b8a90758 [processing] In raster calculator, use filename without extension to refer to layer 2016-12-06 09:03:51 +01:00
volaya
ec8aea2f60 [processin] fixed wrong parameter type 2016-12-06 07:19:24 +01:00
Alexander Bruy
62cb38153c [processing] prevent divizion by zero (fix #15825) 2016-12-05 20:14:29 +02:00
Alexander Bruy
2fea23f1e5 Merge pull request #3779 from volaya/rastercalculator
[processing] add native raster calculator
2016-12-05 20:03:23 +02:00
volaya
b7daf9bca3 [processing] changed input type from vector layer to table for execute sql algorithm 2016-12-05 13:52:13 +01:00
volaya
16da906398 [processing] allow multiple selection of tables 2016-12-05 13:39:38 +01:00
volaya
d849e43278 [processing] fixed gdal proximity
Fixes #15895
2016-12-02 10:38:43 +01:00
Bernhard Ströbl
b02c6a3206 [processing][FEATURE] Return multi geometries from split alg
accept multi geometries as input
2016-12-02 16:47:30 +10:00
Alexander Bruy
b85b5e75e7 [processing] values() is a dict view object, not list 2016-12-01 12:53:57 +01:00
Alexander Bruy
781ebd9a69 [processing] xrange() removed, should use range() instead 2016-12-01 12:53:57 +01:00
Alexander Bruy
3e7b26233e [processing] replace deprecated % operator with format() 2016-12-01 12:53:57 +01:00
Alexander Bruy
50a785bdd6 [processing] indentation update 2016-12-01 12:53:57 +01:00
Alexander Bruy
f002321be1 [processing] iteritems() removed, should use items() instead 2016-12-01 12:53:57 +01:00
volaya
40053f81f2 renamed ParameterExpression in raster calculator to avoid name clash 2016-12-01 12:53:57 +01:00
volaya
44f963f60d [processing] removed debug line 2016-12-01 12:53:57 +01:00
volaya
a7f9018e11 [processing] added native raster calculator algorithm
Conflicts:
	python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py
2016-12-01 12:52:45 +01:00
volaya
fcc343724e [processing] some fixes and changes in parameters and parameters panel 2016-12-01 12:50:27 +01:00
Nyall Dawson
b30a1ff65d [FEATURE][processing] New universal 'basic stats for field' algorithm
Replaces the existing 'Basic Stats for Numeric Fields' and
'Basic Stats for String Fields' algorithms and adds support
for date/time/datetime fields.

Having a single unified algorithm allows more flexible models
where a field type may not be known in advance.

Deprecate existing basic stats algorithms
2016-12-01 16:27:20 +10:00
Nyall Dawson
b0662f908a [processing] Basic stats algs should allow non-spatial tables 2016-11-30 15:03:20 +10:00
Nyall Dawson
ab29f2de28 [processing] Use QgsStringStatisticalSummary in basic stats for strings
And also further optimise the algorithm
2016-11-30 12:47:39 +10:00
Nyall Dawson
e272bb3e9c [processing] Optimise basic stats numbers algorithm 2016-11-30 12:35:20 +10:00
Nyall Dawson
57f17e31e2 Merge pull request #3808 from nyalldawson/processing_dupe_remove_rings
[processing] Remove duplicate fill holes algorithm
2016-11-30 09:50:57 +10:00
Nyall Dawson
6bb4934907 [FEATURE][processing] Remove duplicate create points along lines script
This functionality is duplicated by the PointsAlongGeometry algorithm

Keep the algorithm version, since it has unit tests and supports things
like progress reports.

(marked as feature for inclusion in release notes)
2016-11-30 09:35:06 +10:00
Nyall Dawson
d4c38f9277 [FEATURE][processing] Remove duplicate fill holes algorithm
The Fill_holes script is duplicated by the DeleteHoles algorithm,
and the DeleteHoles algorithm has many advantages:
- it's a full algorithm rather than a script
- uses qgis geometry classes and maintains curves/z/m
- has unit tests
- doesn't rely on non-standard external library (shapely)

(marked as feature for inclusion in release notes)
2016-11-30 09:32:57 +10:00
Larry Shaffer
fe8dfe1c1c Merge pull request #3803 from dakcarto/qt5py3-more-mac-fixes 2016-11-28 17:59:02 -07:00
Médéric RIBREUX
c147ee2bf3 Add with .. to all subprocesses 2016-11-28 09:54:27 +01:00
Médéric RIBREUX
c3ad30da34 Fix subprocess unclosed file 2016-11-28 09:54:27 +01:00
Nyall Dawson
fef15e0165 [processing] Consolidate 'delete holes' algorithms
Copy min area parameter from 'Fill holes' algorithm to 'delete
holes' algorithm.

Also:

- make algorithm maintain z/m values
- make algorithm work with curved geometries
- add unit tests
2016-11-28 13:12:50 +10:00
Larry Shaffer
3f50e8356e [processing] Ensure reading of shortHelp yaml files as UTF-8
On macOS 10.11 with Py 3.5.2, .yaml files defaulted to ASCII and failed.
2016-11-24 09:44:33 -07:00
Nyall Dawson
772b769403 [processing] Hide redundant grid creation algorithms
Condenses the duplicate grid algorithms into single algorithms
(one for line, one for polygon), taking the best bits from both
and adding tests
2016-11-24 13:18:47 +10:00
Germán Carrillo
193d400d29 Make QGIS Line Intersections algorithm able to keep all attributes. 2016-11-24 10:41:11 +10:00
Nyall Dawson
1e661e37b9 [FEATURE][processing] New 'drop geometries' algorithm
Simply removes any geometries from an input layer and returns
the features with attributes only
2016-11-24 09:41:11 +10:00
Nyall Dawson
38a0ea0844 Small tweaks to processing split algorithm, add tests 2016-11-24 08:48:37 +10:00
Bernhard Ströbl
0e2ef065d7 [processing] [FEATURE] SplitWithLines
Rename algorithm SplitLinesWithLines to SplitWithLines
Accept polygon as input, too
Use only selected lines to split with (if processing is set to use selection only)
Issue log message if trying to split multi geometries
Update help
2016-11-24 08:05:16 +10:00
volaya
dd04ecd30d Merge pull request #3768 from DelazJ/patch-19
Typo fix in Processing help file
2016-11-23 12:25:06 +01:00
Nyall Dawson
489e00df8d [processing] Enhance create points layer alg
Clean up code, allow setting z/m columns
2016-11-23 16:43:25 +10:00
Nyall Dawson
3c51a93f6a [processing] Fix very broken delete columns algorithm 2016-11-23 15:21:17 +10:00
Nyall Dawson
271e67e37b [processing] Fix import to postgis alg when table name not set (fix #15869, 15097) 2016-11-22 09:59:43 +10:00
Harrissou Sant-anna
f2fa7bd473 typo fix 2016-11-19 12:59:11 +01:00
Alexander Bruy
f70a3b9e1d [processing] move custom parameter definition inside corresponding
algorithm
2016-11-18 10:22:26 +02:00
Nyall Dawson
5e1a69fc88 [FEATURE][processing] Create attribute index algorithm
Allows creation of an index on an attribute in a layer for faster
attribute based filtering

Support depends on the underlying data provider for the layer
2016-11-18 10:56:02 +10:00
Nyall Dawson
24ffa15ecf [FEATURE][processing] Extract by attribute can extract for null/notnull values
Adds support for filtering where an attribute value is null or not null
2016-11-17 13:09:23 +10:00
nirvn
4a4ffa4c1b [processing] fix grass/grass7 installation check 2016-11-15 09:27:22 +07:00
Nyall Dawson
29d33b47fe [processing] Polygons to line fixes
- Maintain Z/M values
- Handle curved geometries without segmentizing
- Retain null geometries
2016-11-15 09:43:45 +10:00
Alexander Bruy
6e9631ea87 Merge pull request #3701 from alexbruy/processing-ogr-tests
[processsing] tests for GDAL algorithms
2016-11-14 11:05:51 +02:00
Nyall Dawson
880647e50e Add some tags to algorithm 2016-11-14 15:52:41 +10:00
Nyall Dawson
b44093914b Fix test failure, report distance from pole 2016-11-14 15:52:41 +10:00
Nyall Dawson
d6f09c012e [FEATURE] Add method to calculate pole of inaccessibility for polygons
Implements a method in QgsGeometry and a processing algorithm to
calculate the pole of inaccessibility for a surface, which is the
most distant internal point from the boundary of the surface. This function
uses the 'polylabel' algorithm (Vladimir Agafonkin, 2016), which is an iterative
approach guaranteed to find the true pole of inaccessibility within a specified
tolerance. More precise tolerances require more iterations and will take longer
to calculate.
2016-11-14 15:52:41 +10:00