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
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
Nyall Dawson
3aa4968f93
Optimise geometry conversion to/from geos
2018-05-30 18:52:41 +10: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
Denis Rouzaud
65bb60e96c
run sipify
2018-05-28 10:39:34 -08:00
Nyall Dawson
4c3a9ef7be
Ensure that class \brief comes before \since ( #7081 )
...
Otherwise it breaks the Python docstrings, which require
the brief to come first
2018-05-28 04:03:46 -08:00
Nyall Dawson
b6f2f7bd40
Don't use QgsVectorLayer::selectedFeatures() to check for a selection
...
in a layer
This is incredibly inefficient, because selectedFeatures() actually
fetches a full copy of all selected features (including all
attributes and geometry). Instead use selectedFeatureIds(), which
is just a list of numbers.
Add warning note to docs cautioning against this practice.
Fixes massive ui lockup when right clicking on a layer with
selected features in the layer tree
2018-05-28 10:59:48 +10:00
Nyall Dawson
e552ce62be
Add warning note to QgsLayoutPageCollection::shouldExportPage
2018-05-28 10:06:23 +10:00
Harrissou Sant-anna
f0b72ae62e
Set the dpi default to -1 to use layout dpi
2018-05-28 08:56:32 +10:00
Nyall Dawson
f8bc97030b
Remove extra space added before first line of docstring
2018-05-28 08:22:11 +10:00
Juergen E. Fischer
499459be4b
fix build with SIP <4.19
2018-05-27 19:17:12 +02:00
Nyall Dawson
7a1a787c0a
Fix incorrect returns docstring when doxygen \returns has extra trailing spaces or uses tabs
2018-05-27 18:54:09 +10:00