6595 Commits

Author SHA1 Message Date
Martin Dobias
4a0669714b [FEATURE] Snap geometries algorithm
Makes sure that any two vertices of the vector layer are at least at distance given by the threshold value.
The algorithm moves nearby vertices to one location and adds vertices to segments that are passing around other
vertices within the threshold. It does not remove any vertices. Also, it does not modify geometries unless
needed (it does not snap coordinates to a grid).

This algorithm comes handy when doing vector overlay operations such as intersection, union or difference
to prevent possible topological errors caused by numerical errors if coordinates are very close to each other.

After running the algorithm some previously valid geometries may become invalid and therefore it may be useful
to run Fix geometries algorithm afterwards.
2018-09-13 11:46:29 +02:00
Nyall Dawson
6935027ead [processing] Fix API break in widget wrapper
Fixes #19820
2018-09-13 05:40:39 +10:00
Geoff Kimbell
cb0b335a95 [FEATURE][processing] Add custom OPTIONS to contour algorithm (#7834) 2018-09-12 04:36:06 +10:00
Nyall Dawson
d65bd5f08e [processing] Fix another exception in modeler 2018-09-11 15:40:27 +10:00
Nyall Dawson
97f43d4bb2 [processing] Fix warning on close 2018-09-11 15:40:27 +10:00
Nyall Dawson
90dbf72e98 [processing] Fix exception when showing advanced parameters for alg in modeler 2018-09-11 15:40:27 +10:00
Nyall Dawson
c8abd40250 [processing] Fix gdal algorithm use of old wrapper API 2018-09-11 15:40:27 +10:00
nirvn
68b7e799f0 [processing] add msg bar links to files when saving/exporting models 2018-09-11 10:30:07 +07:00
Nyall Dawson
ac3b37ffe0 [processing] Fix wrapper value retrieval for some ported wrappers
Fixes #19813
2018-09-11 10:26:36 +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
Nyall Dawson
8ecb943a43 Fix some tiny browser icons on hidpi screens 2018-09-10 19:36:03 +10:00
Nyall Dawson
1c5250b147 [processing] Fix some exceptions in batch dialog after refactoring
Fixes #19779, #19786
2018-09-08 17:51:42 +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
Loïc Bartoletti
808963bfae Fix error with standardPixmap. signature requires QStyleOption 2018-09-08 07:42:01 +10:00
Luigi Pirelli
8fa5b04c03 typo 2018-09-08 07:41:11 +10:00
Luigi Pirelli
7944f6704b added test for RangePanel widget 2018-09-08 07:41:11 +10:00
Luigi Pirelli
bc8a4605d4 Fix Range wrapper to allow Range parameters to be added in modeler. Not yet fully integrated as input paramter 2018-09-08 07:41:11 +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
Nyall Dawson
0ea283190b Better (finer) proxy task progress reporting for batch execution 2018-09-07 12:19:48 +10:00
Nyall Dawson
45bc2a0798 [processing] Use multi-step feedback for batch execution
Gives better indication of total progress vs showing just
current algorithm progress
2018-09-07 12:19:48 +10:00
Nyall Dawson
db1600871a [processing] Use a proxy task for batch processing execution 2018-09-07 12:19:48 +10:00
Nyall Dawson
1002824cc6 [metasearch] Minor UI updates to conform to HIG (#7810)
* [metasearch] Use QgsFilterLineEdit for keyword search box

* [metasearch] Remove version number from dialog title

This is no longer required now that the plugin is bundled with
QGIS - the version number now follows QGIS version numbering

* Capitalization, ellipsis

* [metasearch] Use a question messagebox
2018-09-06 20:49:57 -04:00
Tom Kralidis
dd3bbf01ce
Merge pull request #7809 from nyalldawson/metasearch_local
[FEATURE][metasearch] Add FILE:GEO to known link types
2018-09-05 21:19:48 -04:00
Nyall Dawson
689126b18a [FEATURE][metasearch] Add FILE:GEO to known link types
Adds GIS File link type to known link types, and for records with
a FILE:GEO link enables a new "Add GIS File" action. Clicking this
adds the linked GIS file to the current project.
2018-09-06 09:44:04 +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
nirvn
8398aae04b [needs-docs][processing] Use input layer data type for gdal algorithms
when appropriate:
- warp (i.e. reproject)
- translate (i.e. file format conversion)
- rearrange bands
- clip by extent/mask
2018-09-04 16:20:03 +07:00
Nyall Dawson
3c2499ba95 Add some notes on deprecated class handling 2018-09-04 19:06:07 +10:00
Nyall Dawson
e76b761dd0 Correctly associate layer with dynamic properties 2018-09-04 19:06:07 +10:00
Nyall Dawson
8082497724 Fix evaluation of Python wrapper values 2018-09-04 19:06:07 +10:00
Nyall Dawson
70c1680754 Automatically handle adding data defined button for dynamic properties
Also exposes this capability to modeler - so that model algorithms
can use data defined parameters within their child algorithms.

TODO:
- tests
- setting the associated vector layer
2018-09-04 19:06:07 +10:00
Nyall Dawson
a717b85e2e [FEATURE][processing] New modeler parameter widget
A new widget which handles parameter values for child algorithms
within a model. Instead of the previous approach of requiring
individual widget wrappers to handle creation of a suitable
model widget, we do all this automatically for them.

This widget uses a stacked widget with a toolbutton to select
the parameter's source, instead of the previous combo box approach
(which didn't scale well for large models). I.e. users select
first whether the value is taken from a static value, a
model input, or an output from a different child algorithm. The
widget then changes appearance and behavior based on this
choice.

Additionally, a new option is present for all parameters
of using a "precalculated expression". This expression is
evaluated once before the child algorithm is executed
and used during the execution of that algorithm.
2018-09-04 19:06:07 +10: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
nirvn
5cd28034bd address comments, fix test 2018-09-04 10:07:07 +07:00
nirvn
65d9911e8b Rephrase short help 2018-09-04 10:07:07 +07:00
nirvn
48b18d4c6c [processing] add parameterAsInts function 2018-09-04 10:07:07 +07:00
nirvn
97adef21bd [processing] multiple band selection wrapper should return list of ints 2018-09-04 10:07:07 +07:00
nirvn
1664ef16d2 [FEATURE][processing] gdal's rearrange band algorithm 2018-09-04 10:07:07 +07:00
nirvn
13ecaa4190 [needs-docs][processing] Add a multiple selection mode to the band parameter 2018-09-04 10:07:07 +07:00
Luigi Pirelli
b3d94f110f safer check if crs is None 2018-09-03 14:02:34 +02:00
Luigi Pirelli
33f83d68f0 revert crs to sourceCrs for feature sources 2018-09-03 10:58:37 +02:00
Luigi Pirelli
ddc5e52ab3 update template to current api (3.4) 2018-08-31 10:41:22 +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
Andrea Giudiceandrea
e56da0e58a
Add test for Join by location (equals)
Adds a test for "Join attributes by location" processing algorithm 'equals' predicate
2018-08-30 09:59:26 +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