2498 Commits

Author SHA1 Message Date
volaya
2c4eb3cb8c [processing] allow selecting multiple file in ‘add script from file’ 2016-12-01 11:29:49 +01: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
Alexander Bruy
a1eeed4175 Merge pull request #3799 from nyalldawson/processing_grids
[processing] Unify duplicate grid creation algorithms
2016-11-25 08:24:16 +02: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
Alexander Bruy
95072e9bfd Merge pull request #3802 from alexbruy/processing-scripts
[processing] script editor UI improvements
2016-11-24 14:36:57 +02:00
Alexander Bruy
f83351be25 [processing] remove statusbar from script editor 2016-11-24 12:41:04 +02:00
Alexander Bruy
c3ed39061d [processing] improve script editor dialog
Use QMainWindow instead of QDialog, add normal toolbar instead of
QToolButtons. Also fix some issues caused by Qt5 switch.
2016-11-24 12:34:59 +02:00
Alexander Bruy
fdc0a3f874 Merge pull request #3800 from nirvn/processing_modeler_panels
[processing] upgrade modeler to make use of qgsdockwidgets
2016-11-24 10:49:36 +02:00
nirvn
ac721d3344 [processing] python3/pyqt5 fixes for get scripts and models dialog 2016-11-24 09:45:47 +01:00
nirvn
a6ebe830b0 [processing] upgrade modeler to make use of qgsdockwidgets 2016-11-24 11:59:19 +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
dccd00dcb1 Adding test to Line Intersection algorithm
Since both input and intersect layers have only one field (fid), the result is the same for both (existing and new) tests. The result now comes with the intersect field, renamed to fid_1 (previously not kept).
2016-11-24 10:42:24 +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
d44bc112e0 [processing] Fix file format combo showing formats in random orders 2016-11-24 09:51:09 +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
Nyall Dawson
986acab9cc [processing] Tweak test precision 2016-11-24 07:54:40 +10:00
Nyall Dawson
d742478ac9 [processing] Add tests for create points from table alg 2016-11-24 07:52:53 +10:00
Nyall Dawson
69e8e4a3c2 [processing] Allow alg tests to use ParameterTable inputs 2016-11-24 07:52:17 +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
nirvn
6e2288dccb [processing] switch a couple of modeler pop up dialogs to message bars 2016-11-23 17:28:34 +07:00
Alexander Bruy
eeafe67467 Merge pull request #3795 from nirvn/modeler_toolbar
[processing] improve the modeler dialog UI and icons
2016-11-23 09:41:43 +02:00
nirvn
2652aa50c9 [processing] improve the modeler dialog UI and icons
- use a proper toolbar to match other parts of QGIS
- show keyboard shortcuts in toolbar action tooltips
- create vector icons to replace PNG ones
2016-11-23 13:45:17 +07: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
86ab3022b5 Remove layer extent and statistic variables from processing contexts
These variables take a lot of time to calculate and cause lots of
lengthy hangs in processing. (Eg add some moderately large rasters
to a project, then try to run any processing algorithm and QGIS
will freeze).

The layer extent can already be used in expressions via the
layer_property function, which only evalutes the extent if required
and only for layers it is used for.

The band stats for raster layers should be moved to a
band_statistic function in core which behaves the same way.
2016-11-22 11:17:38 +10:00
Nyall Dawson
377cba0b74 [processing] Use real map settings scope instead of custom canvasextent variables 2016-11-22 11:17:38 +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
Nyall Dawson
fb8b931a8e [processing] Fix error with field widget wrapper 2016-11-17 13:09:23 +10:00
Nyall Dawson
964ecfd743 Fix build 2016-11-17 09:04:19 +10:00
Nyall Dawson
fc65334a60 [processing] Add file picker to vector/raster/table parameters
in modeller

Makes it obvious that users can set an algorithm vector/raster/
table input to a fixed table
2016-11-17 09:04:19 +10:00
Nyall Dawson
f78f2a05c6 [processing] Use native QGIS map layer combobox
Switches the custom map layer combo box used in the run algorithm
dialog across to the standard QGIS map layer combo box
2016-11-17 09:04:19 +10:00
volaya
ff691a6bc4 Merge pull request #3747 from nyalldawson/num_input
[processing] Restore spin box widget for number inputs outside modeller
2016-11-16 13:59:25 +01:00
Alexander Bruy
6c4eeda29d Merge pull request #3762 from nirvn/processing_fix_grass
[processing] fix grass/grass7 installation check
2016-11-15 14:50:09 +02:00
nirvn
4a4ffa4c1b [processing] fix grass/grass7 installation check 2016-11-15 09:27:22 +07:00
nirvn
c87839f054 [processing] fix ExtentSelectionPanel's getValue() 2016-11-15 09:07:58 +07:00
Nyall Dawson
d237e27d7e Followup 29d33b4 2016-11-15 10:15:43 +10: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
Nyall Dawson
d3f5314bf5 [processing] Use standard field combo box for field choices 2016-11-15 07:00:35 +10:00