Matthias Kuhn
ddbd06f3f1
Merge pull request #9207 from mbernasocchi/master
...
Add safety guard when mDataProvider is not set
2019-02-20 14:02:16 +01:00
Matthias Kuhn
8ea09b61c8
Run sipify
2019-02-20 12:01:56 +01:00
Alessandro Pasotti
ff9a65c1b4
Merge pull request #9193 from elpaso/bugfix-21270-processing-algrunner-crash
...
Processing: fix crash in alg runner task with bad scripts
2019-02-20 07:43:50 +01:00
Nyall Dawson
7acfefadad
Fix infinite progress when an algorithm could not be created
2019-02-20 13:05:13 +10:00
Nyall Dawson
979adbbabf
Indicate exception types to sip
...
Exposes the full Python exception when an error occurs in createInstance()
2019-02-20 13:05:09 +10:00
Panos Mavrogiorgos
c8d3f74f4a
[grass7][mac] Use the most recent GRASS version
...
This is a continuation of:
- #8db3dead87e385f2798356d
- #5c97d22b16320874dbe1
This commit only affects users that have multiple GRASS installations on
their Macs. Using the most recent GRASS version is what we do on Linux too.
2019-02-20 11:14:06 +10:00
Panos Mavrogiorgos
1d8bd004a6
[grass7] Make it easier to subclass "Grass7AlgorithmProvider"
...
After @Nyalldawson suggestion [1], we've implemented a Processing plugin
that exposes a GRASS Addon [2]. In order to do this we had to subclass
`Grass7AlgorithmProvider` and override `createAlgsList()`.
`createAlgsList()` had to be overriden in order to change the
"description folder" location.
Nyall wrote:
> And if you do it right (and only import existing
> processing grass code, minimising the copy/paste of this code), then
> your provider will automatically inherit any future fixes and
> features added to the main grass provider.
With this commit we convert the `descriptionFolder` to a class attribute
and in this way, subclasses of `Grass7AlgorithmProvider` will no longer
have to override `createAlgsList()` and will be able to continue inheriting
future enhancements.
References:
1. https://lists.osgeo.org/pipermail/qgis-developer/2019-February/056155.html
2. 948820b1c0/estimap_recreation_provider.py (L40-59)
2019-02-20 05:41:47 +10:00
Nyall Dawson
c8a4dff475
Add maximum search distance parameter to QgsSpatialIndex::nearestNeighbor
2019-02-20 05:40:02 +10:00
Nyall Dawson
362ba02ade
When a QgsSpatialIndex is storing feature geometry, then
...
nearestNeighbor search performs an EXACT nearest neighbour search,
instead of just a nearest-neighbour-by-bounding-box search
2019-02-20 05:40:02 +10:00
Nyall Dawson
26555358f9
Add API for QgsSpatialIndex to optionally store feature geometries
...
This potentially avoids a second expensive feature request after
building a spatial index and later needing to re-request features
which match spatial index search.
It's non-default, as it requires the index to store all feature
geometries, so it's more memory expensive.
2019-02-20 05:40:02 +10:00
Nyall Dawson
b06f00d01b
Fix dox test
2019-02-20 05:39:04 +10:00
Nyall Dawson
6021683c35
Capitalization
2019-02-20 05:39:04 +10:00
Nyall Dawson
346f33544c
[processing] Expose correct expression context in Refactor fields alg
2019-02-20 05:39:04 +10:00
Nyall Dawson
521ebdc973
[processing] Wrappers built off old API can still take advantage of the full widget context
2019-02-20 05:39:04 +10:00
Nyall Dawson
eb335c3973
[processing] Set full context for QgsProcessingAlgorithmConfigurationWidget in modeler config dialogs
2019-02-20 05:39:04 +10:00
Nyall Dawson
24529b1963
[processing] Add API to set contexts for QgsProcessingAlgorithmConfigurationWidgets
2019-02-20 05:39:04 +10:00
Juergen E. Fischer
6090a932c2
dwg import: less noisy debugging
2019-02-19 19:56:40 +01:00
Nyall Dawson
e5a416ea11
[processing][gdal] Ensure no filename clashes occur in writeLayerParameterToTextFile
2019-02-19 12:55:15 +10:00
Nyall Dawson
342c093d91
[processing] Use text file for input file list to gdal tile index alg
...
Avoids too long command being generated with many inputs
Fixes #21296
2019-02-19 12:55:15 +10:00
dulle droid
edbfb0a1df
#21264 bug in saga algorithm python
2019-02-18 16:15:12 +01:00
Matthias Kuhn
9efe4c5f1c
Merge pull request #9174 from pmav99/master
...
Add support for GRASS 76 on Mac
2019-02-18 11:20:07 +01:00
Hugo Mercier
9ed5b3f874
Merge pull request #9063 from mhugo/fix_19355
...
Fix $length in labels
2019-02-14 14:34:13 +01:00
Hugo Mercier
e4288e5dea
QgsExpression: set setGeomCalculator precedence
...
setGeomCalculator, setDistanceUnits and setAreaUnits have now
precedence over expression scopes.
2019-02-14 13:40:12 +01:00
Hugo Mercier
809196693c
Fix $length in labels ( fixes #19355 )
...
Use the project expression scope to access project
parameters (ellipsoid and distance/area units)
2019-02-14 13:40:12 +01:00
Nyall Dawson
7418c189d0
[processing] Also generate friendly names for outputs when converting models to scripts
2019-02-14 15:36:55 +10:00
Nyall Dawson
d342ce939b
[processing] When converting models to Python, use friendlier (more
...
descriptive) names when storing child algorithm results
Makes for much easier to understand scripts
2019-02-14 15:36:55 +10:00
Panos Mavrogiorgos
5c97d22b16
[grass7] Add support for GRASS 76 on Mac too.
...
This is a continuation of 8db3dead87e385f2798356d1c3048d2b7df73efd
2019-02-14 00:32:10 +02:00
Alessandro Pasotti
dabd649a6d
Merge pull request #9164 from elpaso/bugfix-21227-layer-rename-styles
...
Fix GPKG layer rename styles in browser
2019-02-13 16:24:50 +01:00
Alessandro Pasotti
8639bcf853
[db-manager] Use QgsDataItem implementation for GPKG layer rename
...
- Removes code duplication
- Uses a tested and robust implementation (from OGR)
- Takes care of renaming QGIS styles
- Updates the information view in the plugin
Fixes #21227
2019-02-13 12:49:55 +01:00
Nyall Dawson
493185c6a0
Astyle
2019-02-13 07:59:30 +10:00
Nyall Dawson
29fa7b6e7b
Fix build, indentation
2019-02-13 07:59:30 +10:00
Nyall Dawson
69f45e389c
Refactor QgsExpressionContext and move QgsExpressionContextUtils
...
out to its own header
Avoids slow recompilation caused by changes to the frequently
modified QgsExpressionContextUtils class
2019-02-13 07:59:30 +10:00
Nyall Dawson
60a1d6306f
Fix some missing expression context variables in processing expression based widgets
2019-02-13 07:59:30 +10:00
Nyall Dawson
e533a4078c
[processing] Expose some model related variables to expressions
...
run inside models
Allows expressions to access important variables like the current
model path
2019-02-13 07:59:30 +10:00
Nyall Dawson
493aed58fb
API tweak
2019-02-13 07:59:30 +10:00
Nyall Dawson
d614ff39e7
[processing] Field calculator algorithms should not force an upper limit
...
on string field lengths
Don't hold back the algorithms because of outdated format limitations!
2019-02-12 12:58:55 +10:00
Nyall Dawson
9a75976ca4
API tweaks
2019-02-12 07:18:02 +10:00
Luigi Pirelli
2a917f4c10
Merge pull request #9049 from luipir/rasterSLD_export
...
Add SLD 1.0 export for rasters
2019-02-11 22:04:30 +01:00
Juergen E. Fischer
eea4eda6a3
osgeo4w: fix b6293f23c8c ( fixes #21210 )
2019-02-10 21:31:31 +01:00
Nyall Dawson
ceaf97b204
Remove a totally unused enum
2019-02-09 07:27:39 +10:00
Nyall Dawson
48e05434e4
Dox++
2019-02-09 07:27:39 +10:00
Nyall Dawson
35ddb3b630
[browser] Provide mime data for directory items
...
Allows them to be dragged and dropped to file widgets
2019-02-09 07:27:39 +10:00
Alessandro Pasotti
471734a9ea
Merge pull request #9111 from SIRS-CLS/sirs_db_manager
...
Fix bug comment on postgres and others management
2019-02-08 12:47:53 +01:00
Ailurupoda
d331143837
Removing print
2019-02-08 11:18:53 +01:00
Ailurupoda
db4db5983a
Fix travis
2019-02-08 11:01:13 +01:00
Ailurupoda
db06040b60
Change != True to not + getComment and commentTable on main file if not needed only
2019-02-08 10:45:49 +01:00
Nyall Dawson
f22f182bcf
[processing] Buffer algorithm should always export multipolygon layers
...
We can never predict when a buffer will create a multipolygon output
(e.g. for negative buffer sizes), so ALWAYS export multipolygons
Fixes #21191
2019-02-08 18:53:18 +10:00
Ailurupoda
9741515fae
Replace db.connector/self + is None
2019-02-08 08:30:48 +01:00
Matthias Kuhn
09407c1258
Merge pull request #9128 from m-kuhn/todo-qgis-4
...
Move QGIS 3 todos to QGIS 4
2019-02-08 08:02:17 +01:00
Nyall Dawson
7f3640d8a1
[processing] Fix evaluation of linked parameters in batch mode
...
e.g. missing fields after selecting a layer parameter
2019-02-08 06:38:49 +11:00