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
164f662dc0
fix sipify and run
2018-06-03 11:07:09 -08:00
Denis Rouzaud
e5b02cd2a8
use dedicated files for auto additions
2018-06-03 11:07:09 -08: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
Nyall Dawson
32792d3409
Better dox, spelling
2018-06-01 08:53:20 +10:00
Nyall Dawson
f7a6864b9c
[processing] Fix invalid characters in HTML for 'Raster layer unique values' report
2018-06-01 08:53:20 +10:00
Matthias Kuhn
dbe4186a9c
Add tests for compiling string operators
2018-05-31 14:04:23 +02:00
Matthias Kuhn
497abfe797
Merge pull request #7120 from nyalldawson/opts
...
Optimise geometry conversion to/from geos
2018-05-31 11:30:40 +02:00
Nyall Dawson
59d425c5b0
[processing] Fix some incorrect formatting of algorithm titles
2018-05-31 15:27:51 +10:00
Nyall Dawson
0bbaa3b01e
[processing] Add method to retrieve list of accepted Python data types for a parameter type
2018-05-31 15:27:34 +10:00
Nyall Dawson
e8515d86ee
Fix crash in QgsNetworkContentFetcherRegistry
2018-05-31 10:50:24 +10:00
Peter Petrik
69fa26183f
fix travis errors
2018-05-30 12:26:36 +02:00
Nyall Dawson
3aa4968f93
Optimise geometry conversion to/from geos
2018-05-30 18:52:41 +10:00
Peter Petrik
7af2e68e23
misc optimization for geometries and fixes
2018-05-30 10:06:23 +02:00
Nyall Dawson
2a70c4bcca
Remove invalid ring handling from filterVertices, move to removeInvalidRings()
2018-05-30 05:01:40 +10:00
Nyall Dawson
0c7df170e1
Optimise QgsCurve::asQPolygonF for linestring geometries
2018-05-30 05:01:40 +10:00
Nyall Dawson
f092c7edb7
Add method to filter vertices for geometries in place, by providing a custom filter function
2018-05-30 05:01:40 +10:00
Nyall Dawson
8341b9b19c
Safer memory management for shapeburst fills
...
Fail gracefully if temporary image could not be allocated
TODO: use a maximum size for the image, and downsample to match
2018-05-30 05:01:40 +10:00
nirvn
5ab3fe4ba0
Add subsetStringChanged signal
2018-05-29 17:10:17 +07:00
Matthias Kuhn
b202d60672
const correctness QgsVectorLayer::deleteAttributes
2018-05-29 19:43:04 +10:00