1276 Commits

Author SHA1 Message Date
Nyall Dawson
95d68e9172 [processing] Default to hiding help button for algorithms
And require that showing help is opt-in. Apart from a handful
of built-in providers, most providers will not have help pages
available within the QGIS documentation (including model and
script algorithms). Accordingly, we should hide the help button
by default and only show it for these selected providers.

Note that 3rd party algorithms can still specify custom helpUrl
urls, in which case the button WILL be shown.
2018-09-26 04:26:49 +10:00
Nyall Dawson
93f83a0271 [processing] Remove unnecessary index creation in points in polygons
...and rely instead on the data provider's spatial index.

Refs #19919
2018-09-25 05:20:25 +10:00
Nyall Dawson
df657d4fd3 Fix some exceptions when running in-place edit on geometry-less layer 2018-09-21 18:15:46 +10:00
Alessandro Pasotti
001a81bc46 Fix processing algorithm checkvalidity reason
Fixex #19617 - Check validity algorithm returns empty reason in attribute table
2018-09-18 16:36:30 +02:00
nirvn
f160847ebc [processing] allow geometryless layers as input in aggregate alg. 2018-09-18 11:08:28 +07:00
nirvn
9f51a4c7d1 [processing] fix large points in polygon count overflow by using an int64 field 2018-09-17 18:54:06 +07:00
Luigi Pirelli
8b07b4ed9e
Merge pull request #7626 from rudivs/kneighbour
[feature] Adapted k-neighbour concave hull plugin as QGIS 3 algorithm
2018-09-14 15:32:46 +02:00
Rudi von Staden
8fa27e106a Fix imports for ConcaveHull 2018-09-14 13:24:57 +02:00
Martin Dobias
9bcd21fb19
Merge pull request #7194 from wonder-sk/snap-geometries-alg
[FEATURE] Snap geometries algorithm
2018-09-14 12:36:41 +02:00
Rudi von Staden
fd728c0854 Improve test coverage for k-nearest neighbor concave hull 2018-09-14 11:44:53 +02:00
Alessandro Pasotti
0626a0ff5d Disable some more algs 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
08fbf38a88 Fix in-place support check for some more algs 2018-09-14 18:23:03 +10:00
Nyall Dawson
681d44f11f Messy mockup of feature 2018-09-14 18:23:03 +10:00
Rudi von Staden
858cd266c7 Use US spelling for neighbor 2018-09-14 10:05:20 +02:00
Rudi von Staden
f4cab1780a Changes from review comments
- Shorten algorithm names (KNearestNeighbour and ConcaveHull)
- Check for feedback cancellation
- remove unnecessary try/except blocks
2018-09-14 09:10:40 +02:00
Rudi von Staden
5076fb6313 Update icon to fit QGIS theme, rename and apply to ConcaveHull also
- Based colours and sizes on mAlgorithmDelaunay.svg
- Renamed from mAlgorithmKNearestConcaveHull.svg to mAlgorithmConcaveHull.svg to be more general
- Applied to ConcaveHull.py also to indicate similarity between algorithms
2018-09-14 08:35:43 +02:00
Rudi von Staden
cef34c5e51 Initialise writer after appending field 2018-09-14 00:15:13 +02:00
Rudi von Staden
6257cf64c4 Fix indentation 2018-09-13 23:26:45 +02:00
Rudi von Staden
9111b557f0 Improve k-nearest neighbour algorithm logic and add descriptive comments 2018-09-13 23:00:51 +02:00
Martin Dobias
1af35b294e Moved new snapping alg as another mode of "Snap geometries" processing alg 2018-09-13 16:24:37 +02:00
Rudi von Staden
4482c39fc8 Add tests for k-neighbour concave hull 2018-09-12 22:38:39 +02:00
Rudi von Staden
f3e2d268f6 Fix formatting 2018-09-12 21:49:53 +02:00
Nyall Dawson
c8abd40250 [processing] Fix gdal algorithm use of old wrapper API 2018-09-11 15:40:27 +10:00
Jaka Kranjc
d54bd1a203 [processing] Fix DeleteColumn output hint
the dropped fields are discarded, the modeller get the rest, as expected
2018-09-11 09:35:45 +10:00
John Kastner
0cc9501df7 Remove try-except block in voronoi.py fixes #19798
This block was swallowing all exceptions within the voronoi method.
Removing the block causes exceptions throw in the method to propagate up
the stack and eventually become visible in log files.
2018-09-08 14:38:25 +10:00
Luigi Pirelli
e611756f09 fix error because constant is not iterable 2018-09-07 20:40:35 +10:00
Luigi Pirelli
95a4c00584 fix reference to widget as instance attribute not through a method 2018-09-07 20:40:35 +10:00
Yuki
cedfaa7c16 fix hasYMax variable 2018-09-06 06:52:23 +10:00
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
Luigi Pirelli
7d1471a715 more compact if 2018-09-04 15:46:42 +02:00
Nyall Dawson
644ef6a752 [processing] Initial work on porting base GUI classes to c++
- Add abstract base class for Processing widget wrappers to c++
- Add wrapper factory interface to c++
- Make QgsProcessingGuiRegistry also register widget wrapper
factories, and be responsible for creation of new c++
processing widget wrapper instances
- Start on private c++ implementation of boolean widget wrapper,
including unit tests
2018-09-04 19:06:07 +10:00
Luigi Pirelli
b3d94f110f safer check if crs is None 2018-09-03 14:02:34 +02:00
Luigi Pirelli
123f694013
Merge pull request #7742 from agiudiceandrea/fix-equals-SpatialJoin
[processing] Fix 'equals' predicate in SpatialJoin and SpatialJoinSummary
2018-08-30 16:10:14 +02:00
Harrissou Sant-anna
00b0e3b0bc [needs-docs] Fix parameter's label and some distance default value
more coherent with meters
2018-08-30 05:10:42 +10:00
Harrissou Sant-anna
4e1d29ee24 [Processing][Needs-docs] Allow optional "value" in "select by attribute" algorithm
because it's not needed to run null checks (fixes #19469 which is actually reported in the wrong way)
2018-08-30 05:10:21 +10:00
Andrea Giudiceandrea
afcf048e23
Fix 'equals' predicate in SpatialJoinSummary
This fixes a typo in SpatialJoinSummary.py "Join attributes by location (summary)" algorithm that prevents the 'equals' predicate to work
2018-08-29 01:09:53 +02:00
Andrea Giudiceandrea
abd4d0ee11
Fix 'equals' predicate in SpatialJoin
This fixes a typo in SpatialJoin.py "Join attributes by location" algorithm that prevents the 'equals' predicate to work
2018-08-29 01:07:08 +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
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