278 Commits

Author SHA1 Message Date
Nyall Dawson
a534286c89 Since 3.4->3.2 2018-06-13 14:54:40 +10:00
Nyall Dawson
a69274ac6d Add contains check to QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
d435a7a0fb Add bounds type handling to QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
a2042a4ace Expose a method to Python 2018-06-13 14:54:40 +10:00
Nyall Dawson
0ab63274f6 Documentation for QgsRasterRange 2018-06-13 14:54:40 +10:00
Denis Rouzaud
e899849def
Merge pull request #7199 from 3nids/vertex_tool
vertex tool fixes
2018-06-11 19:12:15 -08:00
Denis Rouzaud
5cb86be6a2 rename some arguments and variables 2018-06-11 23:11:03 -04:00
nirvn
d1fa1508c0 followup 5c267f2: apply @wonder-sk 's comments 2018-06-11 18:23:51 +07:00
nirvn
5c267f22fb Create a QgsLayerStyleOverride and use it for the job renderer 2018-06-11 12:00:16 +07:00
Nyall Dawson
ce6ea18280 Dox and indentation updates 2018-06-11 12:55:20 +10:00
Nyall Dawson
798408b6ba Silence a clazy warning 2018-06-11 12:55:20 +10:00
Nyall Dawson
3b89ee07ce Update dox, bindings 2018-06-11 12:55:20 +10:00
Denis Rouzaud
6d1d1498f7 fix documentation in QgsRectangle 2018-06-08 08:03:03 -04:00
Denis Rouzaud
59202acc45 [vertex editor] set extent of map canvas on the whole selection of nodes 2018-06-07 15:13:13 -04:00
Blottiere Paul
0e7238448a
Merge pull request #7078 from arnaud-morvan/server_proper_literal_convertion
[server] Proper convertion of literals in Filters
2018-06-05 16:22:08 +01:00
Even Rouault
370bac9935
Merge pull request #7152 from rouault/fix_memleaks_qgsstyle
Fix various memleaks in QgsStyle
2018-06-05 17:03:55 +02:00
arnaud.morvan@camptocamp.com
b07c334723 [server] Proper convertion of literals in Filters
Convert OGC Filter's literals accordings to field type.
This can have a huge impact on performance in some cases.
For example for a filter like "num_char" = '+2' converted to "num_char" = 2,
this result with PostgreSQL provider in a fallback to client side evaluation for the whole filter,
including the bbox if present.
2018-06-05 14:26:37 +02:00
Alessandro Pasotti
e3f02eac72
Merge pull request #7012 from elpaso/python-provider
Python provider QEP 122
2018-06-05 12:51:17 +02:00
Nyall Dawson
2ed144ac59 Apply clang-tidy readability-avoid-const-params-in-decls fixit
Checks whether a function declaration has parameters that are
top level const.

const values in declarations do not affect the signature of a
function, so they should not be put there.
2018-06-05 10:19:13 +10:00
Nyall Dawson
e91aed6617 [processing] Force model outputs to respect constraints set by
their underlying algorithm's provider

E.g. for model outputs generated by a saga algorithm, only
sdat and shp files are valid outputs. So only give users choices
of these instead of all formats.

Also fixes temporary file names generated as part of model
execution may use formats which are not compatible with the
algorithm's provider.

Fixes #18908
2018-06-05 10:05:32 +10:00
Alessandro Pasotti
a8ce494529 NULL -> nullptr in sip code 2018-06-04 18:20:48 +02:00
Alessandro Pasotti
6ece1aa543 registerProvider now returns a bool 2018-06-04 14:26:22 +02:00
Even Rouault
0304ec49b6
qgsstyle.cpp: change protected to private 2018-06-04 14:13:15 +02:00
Alessandro Pasotti
0430a8d59c Better comment to explain why the ref needs to be incremented 2018-06-04 11:51:11 +02:00
Matthias Kuhn
36712b9ed2
Merge pull request #7118 from m-kuhn/stringCompOperators
Cast left node to text on string comparison
2018-06-04 09:25:10 +02:00
Matthias Kuhn
715edb126d
Change docstring order 2018-06-04 09:02:45 +02:00
Matthias Kuhn
6c72d7e33b
Make doctest happy 2018-06-04 08:59:33 +02:00
Matthias Kuhn
b5b16dfaa5
Adjust docstrings 2018-06-04 08:59:33 +02:00
Matthias Kuhn
6a265d4a5c
Fix docstring 2018-06-04 08:59:31 +02:00
Matthias Kuhn
6049e4074f
Make QgsVectorDataProvider::hasFeatures() final 2018-06-04 08:59:30 +02:00
Matthias Kuhn
5fb9d14ce7
QgsFeatureSource::hasFeatures() -> Yes, No, Maybe
This method allows to determine if a feature source has content or not
(or maybe).

This method works for "generator" sources as well as for "collection"
sources.

Collection sources like QgsVectorDataProvider which allow to easily and
in a cheap way determine if features are available can return
FeaturesAvailable or NoFeaturesAvailable, generators will return
FeaturesMaybeAvailable.

QgsVectorDataProvider also implements an empty() method.
2018-06-04 08:59:30 +02:00
Matthias Kuhn
cb4de25001
Improve API docs 2018-06-04 08:59:29 +02:00
Matthias Kuhn
b568d6be55
Add optimized version of QgsPostgresProvider::empty() 2018-06-04 08:59:28 +02:00
Matthias Kuhn
381a7661ba
Add optimized versions of empty() to QgsVectorDataProvider 2018-06-04 08:59:27 +02:00
Matthias Kuhn
e252cc0ce9
Add empty() and emptyUnknown() to QgsFeatureSource 2018-06-04 08:59:27 +02:00
Nyall Dawson
1395dc0e9c Add missing license headers 2018-06-04 11:30:32 +10:00
Even Rouault
d5afc71adf
Merge branch 'master' into fix_memleaks_qgsstyle 2018-06-04 00:07:52 +02:00
Even Rouault
b21701b5d7
Add QgsStyle::cleanDefaultStyle() and use it in QgsApplication::exitQgis() 2018-06-03 21:15:22 +02:00
Denis Rouzaud
7cb18cd5f1 [sipify] allow to define python operator in headers
sipify will take care of injecting them in python/{module}/__init__.py
2018-06-03 11:07:09 -08:00
Even Rouault
8aeb2f6d14
qgsstyle.cpp: avoid minor memleaks in use of sqlite3_mprintf() 2018-06-03 21:01:19 +02:00
Nyall Dawson
9115d7f2f2 Add note to use QgsApplication::authManager() 2018-06-03 15:50:23 +10:00
Alessandro Pasotti
3aa630ca25 Added QgsDataProvider::ProviderOptions to the bindings 2018-06-01 14:18:44 +02:00
Denis Rouzaud
dc9fb90b01 add note on how to invalidate results 2018-06-01 03:31:39 -08:00
Alessandro Pasotti
2f41d32e98 Added test to cmake 2018-06-01 10:55:17 +02:00
Alessandro Pasotti
6f3be9fa3d SIP updates 2018-06-01 10:55:17 +02:00
Alessandro Pasotti
324fd7d522 Allow python creation of QgsFeatureIterator from an abstract one 2018-06-01 10:53:46 +02:00
Alessandro Pasotti
7ffdab2d09 Do not dec ref in methodcode 2018-06-01 10:53:46 +02:00
Alessandro Pasotti
839a889038 SIP wrappers for QgsProviderMetadata 2018-06-01 10:53:46 +02:00
Alessandro Pasotti
9d66eb8db4 API to register new vector data providers 2018-06-01 10:53:46 +02:00
Nyall Dawson
f6416a1990 [processing] Fix missing vector inputs when run in batch mode
Fix incorrect definition of compatibleVectorLayers, which was
using layer WKB type values instead of processing source types.
2018-06-01 15:55:11 +10:00