53433 Commits

Author SHA1 Message Date
Nyall Dawson
56e465cc8a [processing][needs-docs] Resurrect ability to convert models to scripts
Brings back QGIS 2.18's ability to directly convert a Processing model
to an equivalent Processing Python script algorithm, correctly
updated and working in the 3.x API.

Available from the model dialog, and from the right-click context
menu on an existing model.

Sponsored by Solspec
2019-02-01 17:54:28 +11:00
Nyall Dawson
bc76678e74 Fix multiline description strings 2019-02-01 17:54:28 +11:00
Nyall Dawson
f77cf4fae4 [processing] Formalise object design for ContextAction, allow icons to be set 2019-02-01 17:54:28 +11:00
Nyall Dawson
9b2e60130f [processing] Update QgsProcessingModelAlgorithm::asPythonCode for 3.x API 2019-02-01 17:54:28 +11:00
Nyall Dawson
fb519ead46 Update QgsProcessingModelChildAlgorithm::asPythonCode for 3.x API 2019-02-01 17:54:28 +11:00
Nyall Dawson
946687c87b Update QgsProcessingModelChildParameterSource::asPythonCode 2019-02-01 17:54:28 +11:00
Nyall Dawson
37774f9aa9 [processing] Add util to convert QVariant value to Python literal 2019-02-01 17:54:28 +11:00
Nyall Dawson
ffa49df9fb Fix misleading dox 2019-02-01 17:54:28 +11:00
Alexander Bruy
ecd306e079
Merge pull request #9046 from alexbruy/grass-v-net
fix GRASS v.net modules (fix #19904) [processing]
2019-02-01 08:03:23 +02:00
Denis Rouzaud
f66d1999af add SIP_DEPRECATED 2019-01-31 15:27:50 -05:00
Denis Rouzaud
2fbdac09ea remove Q_FOREACH 2019-01-31 15:27:50 -05:00
Denis Rouzaud
3d57a93ffe fix typo in method name
rename method but keep old one in Python for API compatibility
2019-01-31 15:27:50 -05:00
Peter Petrik
7a12f11392 fix when GDALGetRasterScale returns 0 (gdal 2.3 affected for some datasets) 2019-02-01 06:56:26 +11:00
Alexander Bruy
85e3b2db6e [processing] fix v.net.report and v.net.nreport 2019-01-31 16:31:35 +02:00
Alexander Bruy
b9f559ee04 [processing] fix broken stdout handling in GRASS algs (fix #21142) 2019-01-31 15:54:08 +02:00
Alexander Bruy
a911ef3367 [processing] fix output generation in v.net and add test 2019-01-31 15:54:08 +02:00
Alexander Bruy
dbe2cb73ad [processing] add test for v.net.distance algorithm 2019-01-31 15:54:08 +02:00
Alexander Bruy
3abea36000 [processing] snap points to network by default (fix #19904)
Kudos to Pedro Venâncio for finding solution for this bug
2019-01-31 15:54:08 +02:00
Hugo Mercier
c3819e88dc
Merge pull request #9036 from mhugo/fix_19909
Fix vertex marker display for multipolygon (fixes #19909)
2019-01-31 10:21:28 +01:00
Nyall Dawson
679b60e366 [processing][needs-docs] Extract binary field algorithm should use
an expression parameter instead of string for destination file name

It makes no sense to enter a constant string value here!
2019-01-31 19:29:47 +11:00
Peter Petrik
ebcc694ab1
fix #18954 add&rename vector fields (#8982)
fix #18954 add&rename vector fields at the same time
2019-01-31 09:20:49 +01:00
Peter Petrik
44c4e8cca0 fix #17652 Impossible to rename a layer style from the Styling Panel 2019-01-31 08:39:50 +01:00
Nyall Dawson
4f6df2980f [processing] Fixes to distance inputs for models
- fix parameter can get converted to plain number parameter after edits
- allow parameter to be linked to parent parameters, so that the
correct distance unit and choices are shown for the parameter
2019-01-31 17:53:25 +11:00
Nyall Dawson
5bfec27938 [processing] do not show geometryless layers in extent selector
Fixes #21129
2019-01-31 17:52:29 +11:00
Nyall Dawson
e670371fa3 [layouts] Show an explicit warning when exporting a layout which contains a broken image 2019-01-31 10:02:18 +11:00
Shahzad Lone
4559d9e496 Reserve vector - to minimize reallocation costs
Reserving vector to save on reallocation costs, where we know the size in advance.
2019-01-31 09:56:48 +11:00
lbartoletti
2e92dabd20 [Processing][Grass] Add the possibility to return a shp if ogr is not compiled with gpkg 2019-01-31 09:55:29 +11:00
Hugo Mercier
389149c8dc Fix vertex marker display for multipolygon (fixes #19909)
The i == 0 test was wrong, and a test is actually not needed.
2019-01-30 15:31:23 +01:00
Alexander Bruy
662af5cf79
Merge pull request #9003 from alexbruy/grass-vector-export
[processing][needs-docs] allow to exclude features without category from GRASS export
2019-01-30 14:35:08 +02:00
Hugo Mercier
fa1f8762d5
Merge pull request #9033 from mhugo/fix_20831
Fix "Allow null" in range widget (fixes #20831)
2019-01-30 13:32:00 +01:00
Hugo Mercier
eb5a3367b6 Fix "Allow null" in range widget (fixes #20831)
By default a range widget is built with a minimum value set to the
minimal integer that is possible to represent. When "allow null" is
enabled, a new value (minvalue - 1) is inserted. With the default
value, we then had an integer overflow.
2019-01-30 10:39:47 +01:00
Martin Dobias
3769faa86b [vertex tool] Fix vertex addition to polygon's first segment (fixes #20774)
With topo editing mode enabled, addition of extra points to keep the topology
correct wasn't working correctly because for the first segment we were getting
two matches due to duplicated first and last vertex in the ring. The fix
ensures that only one match will be returned for the first duplicated vertex.
2019-01-30 10:23:36 +01:00
Alexander Bruy
19dcfb987b don't export features without category by default 2019-01-30 10:40:29 +02:00
Peter Petrik
606359117b
allow to drop 2dm files from system file browser (#8987)
* allow to drop 2dm files from system file browser
* support non-ascii files for mesh layer
2019-01-30 08:49:37 +01:00
Alessandro Pasotti
1686f0d084 Followup 1f8708f, fix src / scheme detection
Thanks @nirvn for finding this bug
2019-01-30 08:12:33 +01:00
Alexander Bruy
0cc483f621 set default value for newly added parameter 2019-01-30 08:12:22 +02:00
Alexander Bruy
67bc586036 fix formatting 2019-01-30 08:12:22 +02:00
Giovanni Manghi
5f99955b45 do not always use the -c flag to export vectors from GRASS 2019-01-30 08:12:22 +02:00
nirvn
f2d8bdea4e [ui] Remove black background for the browser panel DB2 icon 2019-01-30 11:04:20 +07:00
Juergen E. Fischer
806ae861e1 osgeo4w: rely on GRASS' GISBASE environment variable instead of
detecting the path (ie. use the same version for processing as the
version that the grass plugin uses)
2019-01-29 23:03:58 +01:00
Juergen E. Fischer
532d1ddd60 fix build 2019-01-29 21:17:06 +01:00
Alexander Bruy
b19e0bd5d4 [processing] don't show cancel button in the task manager for algorithms that can not be cancelled (refs #20441) 2019-01-30 05:53:55 +11:00
Nyall Dawson
60b8d05278 [needs-docs][layouts] Add checkbox to disable raster tiling for PDF/SVG exports
This setting, which is disabled by default and placed into an
"advanced" group on PDF/SFG export, disables the built-in
raster layer tiled rendering. While the tiling is good for
memory usage, it can cause visible "seams" in the rasters
for generated PDF/SVG files.

The setting has a tooltip warning users that disabling the
tiling results in high memory usage during exports.

Fixes #19500
2019-01-30 05:09:29 +11:00
Nyall Dawson
2752f8348a Fix inconsistent use of layout render context flags 2019-01-30 05:09:29 +11:00
Nyall Dawson
9a723d91e8 New Shapefile Layer dialog: avoid warning message on user cancel
Also add better error message reporting, and deprecate horrible API.
2019-01-30 05:08:59 +11:00
Nyall Dawson
cf1cf0fe45 Fix empty strings in proxy exclude list results in proxy being skipped for ALL hosts
Fixes #20213
2019-01-30 05:08:39 +11:00
lbartoletti
cfdc8c26c2 [BUGFIX] fix qgsRound for negative numbers. Fixes #20861 2019-01-30 03:27:23 +11:00
Nyall Dawson
774f025687 Q_FOREACH -> for 2019-01-30 02:41:07 +11:00
Nyall Dawson
919e677d56 Use switch instead of multiple if blocks for layer type logic 2019-01-30 02:41:07 +11:00
Alexander Bruy
b57c0fa9ed
Merge pull request #8998 from alexbruy/processing-tempdir
[processing] handle Processing.TEMPORARY_OUTPUT for folder parameters
2019-01-29 15:27:13 +02:00