Nyall Dawson
ae97c333d6
Revert "Port algorithm countVisibleParameters to c++"
...
This reverts commit c3c694f8ccfbe0b64df14365f950f5895968a66a.
2017-05-15 10:24:38 +10:00
Nyall Dawson
c3c694f8cc
Port algorithm countVisibleParameters to c++
2017-05-15 08:44:28 +10:00
Alexander Bruy
6fe459de14
[processing] remove extra quotes when restoring batch process from file
...
(fix #16309 )
2017-05-13 11:14:17 +03:00
Alexander Bruy
c620c7c306
[processing] stop algorithm execution if geometry/feature error occured
...
(fix #11986 )
2017-05-13 09:45:37 +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
75a5d5dda1
Remove unused skipAttributeCreation option in QgsVectorLayerExporter::exportLayer
2017-05-12 08:03:23 +10:00
Nyall Dawson
384369c3c4
Rename QgsVectorLayerImport to QgsVectorLayerExporter
...
Since the majority of users of this class will be exporting
an existing map layer to a data provider, the QgsVectorLayerImport
name is misleading and suggests that this class is designed
just to bring layers "into" QGIS.
Explicitly naming the class "Exporter" should help API users
discover this class.
Also cleanup API and improve docs
2017-05-12 08:02:51 +10:00
Alexander Bruy
abc74b4262
[processing] don't apply -te and -te_srs if not requested ( fix #16519 )
2017-05-10 15:47:29 +03:00
Matthias Kuhn
aa021bef0c
Merge pull request #4307 from ghtmtt/proc_tests
...
[processing] other qgis test, clean commit
2017-05-10 09:07:59 +02:00
Nyall Dawson
6aa10c6817
[processing] Cleanup some layer/writer related handling
...
Ensure that layers created by QgsProcessingUtils::createFeatureSink
can always be retrieved using QgsProcessingUtils::mapLayerFromString
2017-05-09 15:29:41 +10:00
Nyall Dawson
06c4dea7ff
[processing] Remove vector.createVectorWriter
...
Use QgsProcessingUtils.createFeatureSink instead
2017-05-07 08:02:54 +10: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
8d03642387
Merge pull request #4487 from nyalldawson/memory
...
Move memory provider to core
2017-05-06 14:13:15 +10:00
Nyall Dawson
b5ae888b60
Merge pull request #4478 from nyalldawson/layer_store
...
Split off map layer storage handling from QgsProject to QgsMapLayerStore
2017-05-06 13:00:05 +10:00
Nyall Dawson
ba2fdf00ab
Rename some QgsProviderRegistry methods to clarify that they are factories
...
- provider() was renamed to createProvider()
- selectWidget() was renamed to createSelectionWidget()
- providerLibrary() was renamed to createProviderLibrary()
2017-05-06 12:28:06 +10:00
Alexander Bruy
9c88faf416
Merge pull request #4499 from alexbruy/processing-fieldcalc
...
[processing] reset variables list in field calculator on layer change (fix #15633 )
2017-05-05 15:16:22 +03:00
Nyall Dawson
02e96a2d80
Partially revert 636a37f
...
Fix processing modeler error on startup
2017-05-05 07:00:36 +10:00
Alexander Bruy
c2699b4640
[processing] reset variables list in field calculator on layer change ( fix #15633 )
2017-05-04 10:14:37 +03:00
Tom Kralidis
3be20f8680
update qgisMinimumVersion to current LTR
2017-05-03 08:39:41 -04:00
Nyall Dawson
f81971daa4
Fix failing tests
2017-05-03 07:09:44 +10:00
Nyall Dawson
1526afecbd
Add missing import
2017-05-03 06:26:12 +10:00
Nyall Dawson
15de36ab26
[processing] Always require real QgsFields objects in getVectorWriter,
...
don't allow arrays of fields as inputs
2017-05-03 06:26:12 +10:00
Nyall Dawson
43a86808a2
[processing] Fix vector split alg
2017-05-03 06:25:30 +10:00
Nyall Dawson
ee1236f067
[processing] Remove unused options argument from (create/get)VectorWriter
2017-05-03 06:25:30 +10:00
Nyall Dawson
8e70aa84fa
Merge pull request #4439 from arnaud-morvan/processing_run_context
...
[processing] Handle context in processing.run
2017-05-03 05:49:06 +10:00
arnaud.morvan@camptocamp.com
e232a0809c
[processing] Handle context in processing.run
...
Fix #15985 (Concave hull)
2017-05-02 17:04:57 +02:00
Alexander Bruy
b342accfe4
Merge pull request #4484 from lejedi76/processing_errormsg_mergevectorlayers_fix
...
[processing] fix error message in merge algorithm
2017-05-02 16:11:54 +03:00
LOMENEDE Jean-Daniel
dea558b824
fix error message in merge algorithm
2017-05-02 13:39:22 +02:00
Alexander Bruy
cf5d1aaece
remove old import
2017-05-02 12:39:26 +03:00
Alexander Bruy
429e67e0f9
[processing] remove stuff related to R provider
2017-05-02 12:39:26 +03:00
Alexander Bruy
30a7e7e514
[processing] remove R provider from core distribution
2017-05-02 12:39:26 +03:00
Nyall Dawson
877775d2c0
Remove a bunch of unneeded imports
2017-05-02 14:47:58 +10:00
Nyall Dawson
4ed18b112a
Add a bunch of missing QgsProcessingUtils imports
2017-05-02 14:36:23 +10:00
Nyall Dawson
49c688bbe4
Fix use of QgsProcessingUtils.mapLayerFromString
2017-05-02 13:40:49 +10:00
Nyall Dawson
df1ead5ed4
[processing] Remove vector.spatialindex()
...
Use QgsProcessingUtils.createSpatialIndex() instead.
2017-05-02 13:39:36 +10:00
Nyall Dawson
bde1bf457b
[processing] Remove unused vector.duplicateInMemory() function
2017-05-02 13:29:42 +10:00
Nyall Dawson
7eb7a7aa01
[processing] Remove vector.bufferedBoundingBox()
...
Use QgsRectangle.grow() instead
2017-05-02 13:27:01 +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
b1eecfdba4
Fix resolving memory layers when multiple memory layers are used in model
2017-05-02 12:45:54 +10:00
Nyall Dawson
11fb72eef7
Only expose a single mapLayerFromString method in QgsProcessingUtils
2017-05-02 12:33:22 +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
Jürgen Fischer
1ed8880c47
Merge pull request #4434 from arnaud-morvan/db_manager_fix_schema_g
...
Db manager fix schema g
2017-05-01 13:32:31 +02:00
Alexander Bruy
12252030ac
[processing] uncheck Z-coordinate on layer change in Interpolation
...
algorithm (fix #10010 )
2017-05-01 13:00:23 +03:00
Alexander Bruy
7ee1cbfaae
Revert "[processing] handle NULL values in the Singleparts to multiparts ( fix #15822 )"
...
This reverts commit a944f7c4c1010767abb811200686e327040c2d32.
2017-05-01 10:53:15 +03:00
Alexander Bruy
5c8365c544
Revert "Merge pull request #4458 from arnaud-morvan/processing_fix_single_to_multi_test"
...
This reverts commit 77d95905a51db6c2d938c736e34da246ad6e0f50, reversing
changes made to 6fd45f0ef5968e2471421a21f81017c9c86f3fb7.
2017-05-01 10:53:08 +03:00
Nyall Dawson
b34ee28cd8
[processing] Fix refreshing alg list does not refresh toolbox
...
Fix #16455 , #16463
2017-05-01 17:29:40 +10:00
Nyall Dawson
ac84326464
[processing] Fix executing models
2017-05-01 17:29:40 +10:00
Nyall Dawson
dde48b5597
[processing] Fix invalid logging error
2017-05-01 17:29:40 +10:00