14878 Commits

Author SHA1 Message Date
Etienne Trimaille
fa843f8705 drop old processing provider example which is not compatible QGIS 3 2019-03-11 09:38:23 +10:00
Giovanni Manghi
7aa7248b97 Better GRASS r.series description to help workaround a limitation of Processing 2019-03-11 09:22:02 +10:00
Alexander Bruy
8b621b6997 [feature][processing] expose GDAL pansharpening tool in the Processing 2019-03-11 08:48:02 +10:00
Alexander Bruy
0fcf567fb0 [processing] fix handling of the multiple layers parameter when inputs
are plain files
2019-03-11 08:29:03 +10:00
Nyall Dawson
82b186f00f [processing] Allow data type for numeric inputs to be specified 2019-03-11 08:05:07 +10:00
Nyall Dawson
9f6ddaf5c5 Fix qt warning on modeler algorithm edit 2019-03-11 08:05:07 +10:00
Nyall Dawson
cf43446885 [processing] Show parameter type in input definition dialog title 2019-03-11 08:05:07 +10:00
Nyall Dawson
b66b944535 [FEATURE][processing] New Raster Boolean logical OR/AND algorithms
These algorithms calculate the boolean OR or AND for a set of input
rasters. For AND, if all of the input rasters have a non-zero value
for a pixel, that pixel will be set to 1 in the output raster, otherwise
it will be set to 0. For OR, if ANY of the input rasters have a non-zero
value for a pixel, that pixel will be set to 1 in the output raster,
else 0.

A reference layer parameter specifies an existing raster layer to use
as a reference when creating the output raster. The output raster will
have the same extent, CRS, and pixel dimensions as this layer

By default, a nodata pixel in ANY of the input layers will result in
a nodata pixel in the output raster. If the 'Treat nodata values
as false' option is checked, then nodata inputs will be treated the
same as a 0 input value.

Makes for much simpler raster boolean logic calculation without
the complexity of using the raster calculator (and that's not
always possible to do anyway, e.g. when ANY of the input rasters
has a nodata pixel). It's also scalable dynamic to any number of
input rasters (unlike raster calc), so is more flexible when
used within models.
2019-03-11 07:45:44 +10:00
Matthias Kuhn
7ceb97aec6
Merge pull request #9456 from Gustry/pyqt
replace some PyQt5 to qgis.PyQt
2019-03-10 12:08:07 +01:00
Matthias Kuhn
312473c4dd
Update python/plugins/MetaSearch/util.py
Co-Authored-By: Gustry <gustrimaille@yahoo.fr>
2019-03-10 06:34:10 -04:00
Matthias Kuhn
a91ecd534c
Merge pull request #9444 from NaturalGIS/gdal_fix_improve_gdal_clip_raster_by_mask
Fixes/improves the GDAL clip by mask layer tool
2019-03-10 10:35:13 +01:00
Etienne Trimaille
2076ca4fe0
replace some PyQt5 to qgis.PyQt 2019-03-09 22:45:51 -04:00
Alexander Bruy
80dd6d5203 [processing] add missed imports to batch panel (fix #21486) 2019-03-09 20:34:15 +02:00
Giovanni Manghi
78cc5b2bf5 Fixes/improves the GDAL clip by mask layer tool: removes a an option (-te) that does not make sense for the clip by mask, and adds the option to allow choose the output resolution 2019-03-09 11:46:26 +00:00
Mathieu Pellerin
3057fd61b0
[plugin manager] Dont disconnect overall finished signal 2019-03-09 18:45:30 +07:00
Alessandro Pasotti
ec0ff4abb5
Merge pull request #9417 from elpaso/bugfix-21497-make-features-compatible
Fix makeFeatureCompatible wrong field count
2019-03-08 12:16:06 +01:00
Denis Rouzaud
0e5c91234f add missing new line 2019-03-08 12:00:02 +01:00
Denis Rouzaud
d0fceef23a
Merge pull request #9425 from 3nids/scope_base_enum
Scope based enum
2019-03-08 11:38:01 +01:00
Nyall Dawson
cccf974211 [processing] Port enum widget wrapper to new API
Fixes:
- enum parameters set to "allow multiple" only allow a single
value selection when used in modeler
- optional enum parameters cannot be set to no value when
used outside of modeler

Fixes #20406
2019-03-08 15:46:59 +10:00
Denis Rouzaud
20883c9532 run sipify 2019-03-07 21:07:53 +01:00
Denis Rouzaud
717ea437c1 use scope based enum for QgsAdvancedDigitizingDockWidget::AditionalConstraints 2019-03-07 16:34:16 +01:00
Alessandro Pasotti
0325a37ff9 Fix makeFeatureCompatible wrong field count
Fixes #21497 - Copying features from source layer to target layer - field values are not copied
2019-03-07 14:45:04 +01:00
lbartoletti
f87c447d34 Add FreeBSD for SagaUtils 2019-03-07 08:48:23 +10:00
Harrissou Sant-anna
53a717a41b Fix formatting in pyqgis documentation (#9396)
* Fix API documentation

* Fix sip doc
2019-03-06 20:09:26 +01:00
Juergen E. Fischer
be6c0738a4 fix 9f1fcb72d4 2019-03-05 23:14:43 +01:00
Nyall Dawson
8bef710cea [processing][saga] Difference and symmetric difference algorithms have known issues in SAGA LTR 2019-03-06 06:33:06 +10:00
Nyall Dawson
63d648738d [processing][needs-docs] By default, hide algorithms with known issues from toolbox
And add a Processing setting to allow these to be shown. When shown, they
are highlighted in red with a tooltip explaining that the algorithm
has known issues
2019-03-06 06:33:06 +10:00
Nyall Dawson
c0640c67b0 [processing] Add flag for algorithms with known issues 2019-03-06 06:33:06 +10:00
Juergen E. Fischer
9f1fcb72d4 processing: enable translation for parameter descriptions 2019-03-05 20:16:23 +01:00
Corentin.F
8602d8fd97
Fix LineEdit name error 2019-03-05 09:59:28 +01:00
Nyall Dawson
5fca18c4ae [processing][GRASS] Fix exceptions on Python < 3.6
Fixes #21173
2019-03-05 17:09:36 +10:00
Nyall Dawson
2ff0d5919c [processing] Avoid more deprecation warnings from external libraries 2019-03-05 14:44:02 +10:00
Nyall Dawson
c1cc2b53d9 Fix qt warning on opening modeler dialog 2019-03-05 14:44:02 +10:00
Nyall Dawson
723051b291 [processing] Fix initial zoom of models on hidpi displays
Fixes #16456
2019-03-05 14:44:02 +10:00
Nyall Dawson
8154008daf [processing] Fix items are not correctly placed in model designer
when view is not set to top-left of model scene
2019-03-05 14:44:02 +10:00
Nyall Dawson
30f786c129 [processing] Fix crashes and random behavior after dropping algorithms
to model designer

Also fixes drag and drop within the algorithm parameter dialog and
the qt warnings thrown during these operations
2019-03-05 14:44:02 +10:00
Nyall Dawson
e09b97f91e [processing] Fix missing vector polygon to lines menu item
Fixes #21475
2019-03-05 14:34:42 +10:00
Nyall Dawson
ce5faa1524 [processing] Force regeneration of primary key for more algorithms
Fixes #21445
2019-03-05 07:06:30 +10:00
Nyall Dawson
9d509e7f4c [processing] Fix outdated Find Projection docs
Fixes #21404
2019-03-05 07:06:08 +10:00
AnikaBettge
972e7a474d Fix default setting for ew_step and ns_step parameter
Fix default setting for ew_step and ns_step parameter which must be "none" rather than 1.5 (which leads to wrong default values in GRASS GIS)
2019-03-04 21:00:30 +10:00
Nyall Dawson
d84b70f04d [processing] Add acceptable string values to parameter metadata
Returns a descriptive list of the possible string values acceptable
for the parameter.

E.g. for a QgsProcessingParameterVectorLayer this may include
"Path to a vector layer", for QgsProcessingParameterBoolean
"1 for true, 0 for false" etc.
2019-03-04 07:57:24 +10:00
Matthias Kuhn
dcc92de5d0
Merge pull request #9316 from m-kuhn/fix-geometry-validation-crashes
[geometry validation] Stability and performance improvements
2019-03-02 09:54:35 +01:00
Matthias Kuhn
22b052da39
Merge pull request #9299 from m-kuhn/geometry-validation-only-report-affected-features
[geometry validation] only report affected features
2019-03-02 09:48:37 +01:00
Nyall Dawson
b53d64bfb0
Silence annoying PyQt5.uic.loadUiType deprecation warnings
These aren't our fault -- they come from the PyQt library itself,
so we may as well hide them and avoid the noise.
2019-03-02 12:07:46 +10:00
Nyall Dawson
558d5365b5 Add new plugin metadata string to indicate whether a plugin
implements Processing providers

Plugins which implement providers should include the

    hasProcessingProvider=yes

line within their metadata.txt file. This allows for rapid
identification of all plugins which implement Processing
functionality.
2019-03-02 12:06:59 +10:00
Nyall Dawson
2f82bab1d9 Add Python utils method to start a Processing specific plugin
This command adds a plugin to active plugins and calls initProcessing(),
initializing only Processing related components of that plugin.

The new initProcessing() hook should be implemented by plugins
which provide Processing providers or algorithm, and should only
implement code which is required to load the provider and algorithms.
Strictly no GUI related code should be used here, that MUST
be moved out of initializers and deferred to the plugin's
initGui implementation.
2019-03-02 12:06:59 +10:00
AnikaBettge
819f275ba4 Fix default setting for gauss parameter
Fix default setting for gauss parameter which must be "none" rather than 0 (which leads to empty maps as gauss=0 is unhelpful)
2019-03-02 06:09:04 +10:00
Matthias Kuhn
d313405851
Avoid working on reference to temporary objects
fixes a couple of crashes in geometry validation
2019-03-01 13:25:00 +01:00
Nyall Dawson
dab4a04309 [processing] Draw arrows connected to selected/hovered components
slightly darker

Makes it easier to track connections in a complex model
2019-03-01 15:39:49 +10:00
Nyall Dawson
2178e1a71a [processing] Pre-highlight model components on hover 2019-03-01 15:39:49 +10:00