Alexander Bruy
79d83f2066
[processing] use core methods for raster and vector extensions handling
2017-12-11 09:38:14 +02:00
Alexander Bruy
3d4a59bb8b
[processing] cleanup files from unused code and remove some files
2017-11-28 12:27:45 +02:00
Alexander Bruy
0059b2b692
[processing] remove Python 2 compatibility layer
2017-11-28 12:27:45 +02:00
Nyall Dawson
a95aecafd6
Fix tests
2017-11-26 16:28:59 +10:00
Matthias Kuhn
06bae21d51
Merge pull request #5579 from DelazJ/logmessages
...
Clarify where and what Log Messages is
2017-11-20 15:54:29 +01:00
Harrissou Sant-anna
9481067f4d
Fix indentation
2017-11-20 12:07:12 +01:00
Harrissou Sant-anna
f699e35ce9
Add more translatable strings
2017-11-18 18:51:39 +01:00
Médéric RIBREUX
d10aaf4bd4
Support multiple output file raster formats:
...
* A new createopt textbox has been added to the parameters dialog for algorithms which exports to raster files.
* A new metaopt textbox has also been added to the Algorithm parameters dialog.
* Raster file format is detected from output filename extension.
* GdalUtils has been improved to correctly detect raster formats supported for creation.
* QFileDialog for output rasters now display only file filters for supported output raster file formats.
2017-11-05 13:18:24 +01:00
Alexander Bruy
56208540f9
[processing] remove GeoAlgorithmExecutionException
2017-07-13 09:02:24 +03:00
Nyall Dawson
d8086e549d
Use c++ method for available sources
2017-07-07 11:35:31 +10:00
Nyall Dawson
26cd6017b8
Use an expression context when evaluating child parameters with expression sources
2017-07-07 11:35:31 +10:00
Nyall Dawson
d667bf595f
Move iterator exception handling to c++
2017-06-24 08:15:06 +10:00
Nyall Dawson
81855a715b
Use FastInsert when adding features from processing
2017-06-23 14:34:38 +10:00
Nyall Dawson
5ea07684bd
Also call invalidGeometryCallback when skipping features
2017-06-23 12:08:54 +10:00
Nyall Dawson
a8cdde5232
Add test that python exception is caught when executing an alg
2017-06-23 12:08:54 +10:00
Nyall Dawson
4ea85362f4
Transform errors encountered while iterating features in
...
processing are non-fatal. We report them to users, and treat the
feature as having no geometry, but don't stop execution.
2017-06-23 12:08:54 +10:00
Nyall Dawson
57f2c623ce
Move invalid geometry callback from Python to c++
2017-06-23 12:08:54 +10:00
Nyall Dawson
a87ca09e34
Move some temp file/folder utils to c++
2017-06-22 06:48:25 +10:00
Nyall Dawson
29f50b72ee
[processing] Catch transform errors in when iterating features
2017-06-12 08:05:32 +10:00
Nyall Dawson
a658135693
Remove global processing use selection setting
2017-06-06 07:41:20 +10:00
Nyall Dawson
f9887aabf5
[processing] Remove more UseSelectionIfPresent use
2017-06-06 07:41:20 +10:00
Nyall Dawson
28f7a8b7e1
Move expression context generation out of parameters
2017-06-06 07:41:19 +10:00
Nyall Dawson
189f804714
Adapt more code to c++ API
2017-06-06 07:41:19 +10:00
Alexander Bruy
dc5ba8ffe9
[processing] explisitly load outputs as raster or vector depending
...
on the output type. Don't rely on extension or other indirect attributes
2017-05-26 13:30:23 +03:00
Alexander Bruy
e01b7ef60a
[processing] take in account file extension when loading Processing
...
results (fix #16486 )
2017-05-12 17:28:41 +03:00
Nyall Dawson
a8a3cc82ed
[processing] Port vector.createVectorWriter to c++
...
This implements an improved version of vector.createVectorWriter
in QgsProcessingUtils. The improved version relies on the
core class QgsVectorLayerImport to create empty layers,
which:
- reduces duplicate code and reuses the mature QgsVectorLayerImport
routines
- avoids manual conversion of field types to destination provider
field types
- potentially allows any writable provider to be used as a feature
sink for algorithms (e.g. output direct to MSSQL/Oracle/db2). This
should work now - it just needs exposing via UI.
2017-05-07 08:02:53 +10:00
Nyall Dawson
8e5565413f
[processing] Remove unused dataobjects.loadList method
2017-05-02 13:20:29 +10:00
Nyall Dawson
0fbf1c2f54
[processing] Remove unused dataobjects.extent method
2017-05-02 13:18:47 +10:00
Nyall Dawson
fa8f667b3e
Fix failing test
2017-05-02 13:15:58 +10:00
Nyall Dawson
f84d703234
Add method QgsProcessingUtils::mapLayerFromString
...
Algorithms and other processing code should use this method
(instead of dataobjects.getLayerFromString) to
retrieve layers from a string, as it considers the processing
context and allows resolving strings to temporarily stored layers.
This permits processing models to function correctly when
intermediate results are stored as memory layers. Subsequent
model algorithms can then access these temporary layers as inputs.
All temporary layers will be removed when the context object
is destroyed after the model algorithm is run.
2017-05-02 12:33:04 +10:00
Nyall Dawson
86002f3b6f
Move createContext to dataobjects
2017-04-26 12:53:35 +10:00
Nyall Dawson
377b181c4e
Port more processing dataobjects methods to c++
...
Also
- simplify and add tests
- remove large memory leak (persistant store of all non-project layers)
- remove broken support for direct loading postgres/virtual layers
by string (Python version was very broken and would never match
a postgres/virtual layer)
2017-04-05 19:50:46 +10:00
Nyall Dawson
8ffdb362cc
Port some processing dataobjects routines to c++
2017-04-05 15:27:17 +10:00
Nyall Dawson
d2a242aa95
Move format handling flags to QgsAlgorithmProvider
2017-04-04 08:15:54 +10:00
Nyall Dawson
26495dbd81
[processing] Move dataobjects.getSupportedOutputVectorLayerExtensions
...
to QgsVectorFileWriter
2017-04-03 15:41:32 +10:00
Juergen E. Fischer
ecc5bb508e
pep8/pyflakes3 cleanups
2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
748be8de71
[spelling] replace behaviour by behavior
2017-01-11 11:35:19 +01:00
Martin Dobias
d56a97d4fe
Merge QgsMapLayerRegistry into QgsProject
...
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
volaya
16da906398
[processing] allow multiple selection of tables
2016-12-05 13:39:38 +01:00
Nyall Dawson
d44bc112e0
[processing] Fix file format combo showing formats in random orders
2016-11-24 09:51:09 +10:00
Alexander Bruy
b6d5f35be2
[processing] cleanup OGR dissolve algorithm code
...
Avoid double extensions when creating temp files
2016-11-12 13:31:44 +02:00
Alexander Bruy
5991eccb47
[processing] simple test for ogr buffering
2016-11-12 13:31:42 +02:00
Nyall Dawson
b4bca5bb98
[processing] Don't try to force load files which don't exist
2016-11-07 11:11:31 +10:00
Nyall Dawson
d5698be69f
Fix some processing breakage
2016-10-31 09:12:39 +10:00
volaya
7a87fb55b0
[processing] don't use full path for naming layers when loaded in dataobjects.load
2016-10-18 16:55:19 +03:00
Matthias Kuhn
576ad138a9
Fix python calls to inexistent methods
2016-10-17 09:31:31 +02:00
Alexander Bruy
e04780a279
add missed comma
2016-10-05 12:38:51 +02:00
volaya
a968fa3dea
[processing] use original filename when possible when exporting vector layer
...
Conflicts:
python/plugins/processing/tools/dataobjects.py
2016-10-05 12:38:35 +02:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02:00