5482 Commits

Author SHA1 Message Date
Nyall Dawson
4839740262 Spelling 2019-02-25 19:02:12 +10:00
Nyall Dawson
7eab74f803 Fix use of trailing */ in dox, which messes with sipify Python documentation output 2019-02-25 19:02:12 +10:00
uclaros
403a2e302e Ran scripts/astyle-all.sh and scripts/sipify_all.sh 2019-02-25 09:26:11 +10:00
Bas Couwenberg
371176357b Fix spelling errors.
* cancelation -> cancellation
 * overal      -> overall
2019-02-24 22:39:40 +01:00
Víctor Olaya
13bff9620c [processing] do not allow using unsupported file formats
Show warning message if user selects incompatible output file format

fixes #21089
2019-02-23 05:24:56 +10:00
Nyall Dawson
cdc622ef4c Freackin Amurican sppelling 2019-02-23 05:23:23 +10:00
Nyall Dawson
e31fb920e7 [processing] Add API to allow custom expression variables to be set
for a model
2019-02-23 05:23:23 +10:00
Matthias Kuhn
5b230ab820
Fix sip file too 2019-02-21 16:00:03 +01:00
Matthias Kuhn
5292efd082
Merge pull request #9221 from m-kuhn/relation-reference-field-formatter-cache
Add cache for relation reference field formatter
2019-02-21 09:52:54 +01:00
Alessandro Pasotti
17280c3e4d
Merge pull request #9203 from elpaso/bugfix-21305-paste-slow-no-provider
Cache unique values when creating features
2019-02-21 08:31:41 +01:00
Matthias Kuhn
5fe225bb4d
Add cache for relation reference field formatter
this speeds up tables with relation reference fields massively
2019-02-20 18:58:17 +01:00
Matthias Kuhn
968e08c6c9
Geometry validator: do not report result summary as error 2019-02-20 18:14:41 +01:00
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
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
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
Juergen E. Fischer
6090a932c2 dwg import: less noisy debugging 2019-02-19 19:56:40 +01:00
Alessandro Pasotti
d239ea2df9 Fix unique values when generating a set of features 2019-02-19 19:04:48 +01:00
Alessandro Pasotti
348e6837ac Fix docs for createFeatures 2019-02-19 11:17:48 +01:00
Alessandro Pasotti
490c1fedfb Rename QgsFeaturesData to QgsFeatureData and fix test case 2019-02-19 10:51:53 +01:00
Alessandro Pasotti
ba3d9ed066 Cache unique values when creating features
Fixes #21305 - pasting features is very slow

Aggressively optimize createFeature for speed
and introduces createFeatures for bulk creation.
2019-02-19 10:02:17 +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
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
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
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
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
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
Matthias Kuhn
2fb37042a5
Fix TODO and docstrings 2019-02-07 14:36:43 +01:00
Matthias Kuhn
90f7989f4d
Move QGIS 3 todos to QGIS 4 2019-02-07 09:10:03 +01:00
Matthias Kuhn
32b6599df0
Merge pull request #9074 from m-kuhn/til
Deprecate QgsGeometry::set for usage in Python
2019-02-07 09:07:14 +01:00
lbartoletti
b4d01e461f qgsRound: places should be of integer type instead of double 2019-02-07 17:00:41 +11:00
Nyall Dawson
d61694cb42 Deprecate QgsDataItem API for setting item CRS
This is no longer used by QGIS (it was only ever used by the standalone
browser)
2019-02-07 04:14:16 +11:00
Matthias Kuhn
2400050878
Deprecate for sip 2019-02-06 13:09:23 +01:00
Matthias Kuhn
89ea819938
Make sure Python wrappers of quasi-singletons are kept alive
If they are deleted, any other python wrappers which have been parented to these singletons are deleted too.

One of the most common issues with this is, that subclasses of registry items are deleted and lost.
2019-02-06 12:18:41 +01:00
Matthias Kuhn
5f1cea13c7
Add docstrings and modernize code 2019-02-05 17:57:27 +01:00
Matthias Kuhn
4612521c50
Const correctnes for QgsFeature in labeling
A feature is not modified while it's sent through the labeling pipeline.
2019-02-05 17:16:23 +01:00
Martin Dobias
4f905cc2e8 [vertex tool] right-click to loop through editable features
Until now mouse right-click could only select and deselect the highlighted
feature to "lock" vertex tool (and numerical editor) to it, so that it is
easier to focus only on editing of the particular feature. It was however
still difficult to pick the right feature in case there were multiple
features in one location or very close to each other. This is now solved
by the fact that repeated right button clicks will loop through the editable
features. So if there are two features in one location (A, B) then repeated
right-clicks will select: A - B - nothing - A - B - nothing ...
2019-02-05 09:07:58 +01:00
Nyall Dawson
715395aa47 Fix incorrect 'not available in Python' dox 2019-02-05 13:46:34 +11:00
Nyall Dawson
867e39947b Allow for exact calculation of symbol sizes with mixed layer units
Fixes #21143
2019-02-05 11:07:02 +11:00
Nyall Dawson
384d310233 Minor improvements to PyQGIS returns for SIP_OUT params 2019-02-05 04:55:34 +11:00