Nyall Dawson
c0e732b799
[processing] Add QGIS 3d provider
...
Adds a new QGIS processing provider for 3d algorithms, available
only when QGIS is built WITH_3D
Currently includes only a single algorithm for tesselating geometries,
which exposes the functionality of QgsTesselator to processing.
Like the native c++ algorithm provider, algorithms in the 3d
provider are transparently merged with the other QGIS providers
(i.e. they aren't separated into their own group)
2017-11-27 06:54:29 +11:00
Nyall Dawson
8c211f2869
Fix failing doc test
2017-11-27 06:38:21 +11:00
Nyall Dawson
3310343bcd
[processing] Add a model-only "load layer to project" algorithm
...
This can be used to force loading a layer into the current project.
The primary use case here is to load a preset layer as part of a
model, but it's also useful for loading results from the
'package layers' algorithm into the project.
2017-11-27 06:38:21 +11:00
Nyall Dawson
bb63a83e04
Add missing output from package algorithm
2017-11-27 06:38:21 +11:00
Nyall Dawson
6283ca62bc
[processing] Add a model-only algorithm for renaming layers
...
This is required for algorithms with behaviour which depends on the
layer names (e.g. the package algorithm uses the layer name as
the table name in the geopackage).
We need a way for models to be able to explicitly specify a layer
name for this algorithm to be useful in models, otherwise the
auto-generated temporary layer names are used (which are not
very nice!)
2017-11-27 06:38:21 +11:00
Nyall Dawson
aef0d33e11
Fix definition of output file parameters
2017-11-27 06:38:21 +11:00
Nyall Dawson
4b9986eb8c
[processing] Add a generic map layer output type
...
For occasions when an algorithm creates a map layer, but the type
is not known in advance (i.e. could be raster OR vector)
2017-11-27 06:38:21 +11:00
Nyall Dawson
3d307b4109
Improve name of memory layers output from processing
2017-11-27 06:38:21 +11:00
Nyall Dawson
7451422069
Fix package layers algorithm can't take the outputs from models
...
Fixes #17544
2017-11-26 12:01:41 +10:00
Nyall Dawson
96857ebdd4
Fix crash when a geopackage layer is open in QGIS, and then is overwritten
...
with another layer with different field definitions
2017-11-26 07:34:51 +11:00
Borys Jurgiel
5c22e31397
Follow up 248bc5db032cf
2017-11-25 12:43:24 +01:00
Alexander Bruy
3d6aa9c9f2
fix en_US locale handling in QgsHelp
2017-11-25 11:54:33 +02:00
Alessandro Pasotti
72553a60a9
Merge pull request #5710 from elpaso/api-code-cleaning-int-2-enums
...
QgsVectorLayer code cleaning use enums instead of int
2017-11-24 16:16:26 +01:00
Matthias Kuhn
916c9c4cdb
Open heart surgery on expression context for processing sources
2017-11-24 16:09:05 +01:00
Matthias Kuhn
aaf70de71e
Add test for QgsExpressionContextScope::takeScopes
2017-11-24 16:09:05 +01:00
Matthias Kuhn
abe1a9b661
Expression context creation for processing improvements
...
Hiding away the implementation directly in QgsProcessingFeatureSource
See discussion ec97102bc6 (r152903378)
2017-11-24 16:09:05 +01:00
Matthias Kuhn
fd127ee6a4
Fix file mode
2017-11-24 16:09:05 +01:00
Etienne Trimaille
cf685f0f5f
add missing import operator ( #5724 )
2017-11-24 22:03:19 +07:00
Alessandro Pasotti
58f559690e
Add changed return values to api break
2017-11-24 13:41:25 +01:00
Nyall Dawson
14531964a8
Merge pull request #5719 from nyalldawson/translate_z
...
geometries: translate Z/M
2017-11-24 22:12:11 +11:00
Mathieu Pellerin
97f749e6b4
[processing] fix error when adding refactor fields alg in empty model
...
(fixes #17421 )
2017-11-24 18:04:50 +07:00
Mathieu Pellerin
c2b3ac5624
[processing] order 3rd party provider groups ( #5723 )
2017-11-24 17:58:43 +07:00
Alessandro Pasotti
7a63a07f7f
Add return cases to the docs and fully qualified enums
2017-11-24 11:53:49 +01:00
nirvn
a477ea3ae4
[processing] move grass & saga version number to tooltips
2017-11-24 17:16:25 +07:00
rldhont
49b23127ca
[BUGFIX][Spatialite] Setting default value in loadFields with the right index
...
Because Geomtry field is not added to fields list, the index do not respect the index in the table. It's necessary to have a realFieldIndex.
2017-11-24 10:58:07 +01:00
Alessandro Pasotti
cdca0dd17e
Merge pull request #5720 from elpaso/bugfix-17442-null-categories
...
[bugfix] Categorized style issue using numeric fields with NULL values
2017-11-24 09:25:10 +01:00
Alessandro Pasotti
29abd9d3f9
[bugfix] Categorized style issue using numeric fields with NULL values
...
Fixes #17442
2017-11-24 08:54:13 +01:00
Nyall Dawson
8b15c73d2b
Merge pull request #5680 from DelazJ/hidefields
...
[Save As] Set fields export options visible only when compatible
2017-11-24 17:51:24 +11:00
Nyall Dawson
b786ed03b2
Add a unit test
2017-11-24 16:26:41 +10:00
Nyall Dawson
6b4b9fe9e3
Fix closest vertex z/m doesn't show in identify tool for multiline
...
geometries, remove duplicate closest M value attribute
2017-11-24 16:18:33 +10:00
Nyall Dawson
ff900c0b05
[processing] Make translate algorithm native
...
And add option to translate z/m values
2017-11-24 16:18:13 +10:00
Nyall Dawson
dd223d9b08
Allow transform methods in QgsAbstractGeometry/QgsGeometry to also
...
transform z/m values via scale/translate arguments
2017-11-24 15:34:35 +10:00
Mathieu Pellerin
1fcadb72ff
[processing] fix for import into spatialite and execute sql algorithms
2017-11-24 12:22:19 +07:00
Nyall Dawson
03ec2d8a98
Merge pull request #5702 from nyalldawson/dxf_improve
...
[dxf] Add option to export labels as text elements, instead of mtext
2017-11-24 15:58:46 +11:00
Nyall Dawson
2b5aca5518
Merge pull request #5689 from nyalldawson/gpkg_alg
...
[processing] Fixes to non flat-file exports
2017-11-24 11:54:44 +11:00
Nyall Dawson
6278245949
Merge pull request #5713 from lejedi76/fix_remove_fromOldWkbType
...
[db_manager] remove fromOldWkbType (api_break) from vlayer
2017-11-24 11:03:20 +11:00
Nyall Dawson
5b66ea7674
Rename some static variables to use 's' prefix
...
To match QGIS code conventions
2017-11-24 09:35:54 +10:00
Even Rouault
e0bdd26e58
[OGR provider] When creating a new layer with createEmptyLayer(), make sure the opened datasets do not get reused
2017-11-24 09:32:46 +10:00
Nyall Dawson
0a092cc38a
[processing] Throw an exception when sinks cannot be created
...
Gives users debugging information messages on why the layers could
not be created
Also allow overwriting existing layers in geopackage outputs
2017-11-24 09:31:50 +10:00
Nyall Dawson
c04b91f4f3
Fix some memory leaks
2017-11-24 09:31:50 +10:00
Nyall Dawson
117842802a
Fix running processing tests multiple times
2017-11-24 09:31:50 +10:00
Nyall Dawson
e3198c052f
Fix ui build warnings
2017-11-24 09:31:50 +10:00
Nyall Dawson
aca22663d0
[processing] Change save as spatialite option to save as GeoPackage
...
Since it's much more useful. Also add a prompt for layer name, so that
you can save the results of an algorithm into an existing geopackage
without wiping existing layers.
2017-11-24 09:31:50 +10:00
Nyall Dawson
abcdd48580
[ogr] Fix cannot create layers for geopackage datasets when
...
the database does not yet exist
2017-11-24 09:31:50 +10:00
Nyall Dawson
8775aff71b
Fix error in Geometry by Expression
...
We can't depend on preparing the expression, as we may not have
enough context to do this during the algorithm preparation step
2017-11-24 09:31:50 +10:00
Nyall Dawson
59d55fc44c
[processing] Ensure correct sublayer is loaded when saving output
...
to destination with multiple sublayers
2017-11-24 09:31:50 +10:00
Nyall Dawson
f7a317be78
[processing] Fix saving outputs to non-file formats
2017-11-24 09:31:50 +10:00
JD LOMENEDE
13cb8e4e0b
remove fromOldWkbType (api_break)
2017-11-24 00:21:33 +01:00
Matthias Kuhn
cd0ba918ba
Use layer context in RefactorFields algorithm
...
Fix #17533
2017-11-23 15:24:40 +01:00
Matthias Kuhn
851adb0a3d
Allow adding sources to processing expression context
2017-11-23 15:24:40 +01:00