Denis Rouzaud
42c0b39812
[cmake] fix deprecated OLD policy CMP0048 ( #7193 )
2018-06-06 17:33:38 -08:00
Harrissou Sant-anna
2e5e20eb54
[needs-docs] Remove obsolete tooltip on "Move Feature(s)" tool ( #7191 )
...
now that it fully handles snapping
2018-06-06 05:00:35 -08:00
Nyall Dawson
71f3aaf39e
Fix crash in merge features dialog
...
Fixes #19119
2018-06-06 20:24:43 +10:00
Denis Rouzaud
b2274258a4
fix sip test
...
only check for Python file if it is produced
2018-06-05 17:02:17 -08:00
Nyall Dawson
4e38d0696e
Documentation
2018-06-06 06:27:33 +10:00
Nyall Dawson
40a2062ec1
[python] Don't install error hook by default
...
This error hook should only ever be used from QGIS app, never
from standalone scripts and applications, so we should default
to not using it and only install it when initializing python
from app.
Otherwise default behavior for standalone scripts based on
PyQGIS is to silently swallow exceptions - this leaves script
developers *no clues* to go off to debug their applications,
meaning that errors which would usually take a couple of seconds
to fix become horrible exercises in frustration for those
unaware of QGIS' exception handling and the
QGIS_DISABLE_MESSAGE_HOOKS environment variable.
Refs #19111
2018-06-06 06:27:33 +10:00
Nyall Dawson
cbbe905fae
[processing] Fix missing schemas in postgis destination selection panel
2018-06-06 06:27:03 +10:00
Tom Chadwin
9780068548
Avoid deprecated regex
...
Avoid invalid escape sequence via raw string:
`re.compile('^[^\s\(]+')` > `re.compile(r'^[^\s\(]+')`
2018-06-06 06:24:24 +10:00
Tom Chadwin
fab563fe71
Processing: avoid deprecated regex
...
Invalid escape sequence avoided via raw string:
`re.findall("\d+|[a-zA-Z]+", rep[0][0])` > `re.findall(r"\d+|[a-zA-Z]+", rep[0][0])`
2018-06-06 06:24:24 +10:00
Tom Chadwin
6a8a622ea4
Processing: Avoid deprecated regex
...
Escape sequence avoided in DefinProjection by using raw string:
`re.compile('\|.*')` > `re.compile(r'\|.*')`
2018-06-06 06:24:24 +10: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
Nyall Dawson
88a49e7e33
Fix zonal stats doesn't work with raster/vector in different CRS
...
Fixes #19027
2018-06-05 23:04:58 +10: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
Even Rouault
e94b1acd77
[OGR provider] Complementary fix for #18596 , related to adding a new field to a GeoJSON file
2018-06-05 14:26:23 +02:00
Denis Rouzaud
8ef0d1f7d9
[pyqgis] add missing install of __init__.py for modules
2018-06-05 03:25:47 -08:00
Alessandro Pasotti
e3f02eac72
Merge pull request #7012 from elpaso/python-provider
...
Python provider QEP 122
2018-06-05 12:51:17 +02:00
Luigi Pirelli
b2fce7364d
Merge pull request #7180 from luipir/processing_optional_value_default_in_batch_fix19115
...
[processing] Correct management of optional rasters in batch mode. Fixes #19115
2018-06-05 12:47:11 +02:00
nirvn
c61e4821b5
[ui] do not hide floating panel toolbars for map-only view
2018-06-05 17:06:37 +07:00
Luigi Pirelli
fa7879ade1
[processing] Correct management of optional rasters in batch mode. Fixes #19115
2018-06-05 11:53:52 +02:00
Alessandro Pasotti
73cfe04712
Add missing import QgsCsException
2018-06-05 11:48:53 +02:00
Alessandro Pasotti
b97e8351a2
Re-enable the test on travis with a fix
2018-06-05 08:44:23 +02:00
Nyall Dawson
8c689b2d36
[processing] Fix create constant raster layer modifies pixel size
...
Fixes #18446
2018-06-05 16:15:58 +10:00
Matthias Kuhn
d9336c24e7
Merge pull request #7176 from nyalldawson/cmp0040
...
Don't use old policy for CMP0040
2018-06-05 07:48:44 +02:00
Nyall Dawson
bd0ec6e4e9
Don't use old policy for CMP0040
...
Seems no longer required in any case
2018-06-05 14:08:30 +10:00
Nyall Dawson
b69389b650
Run clang-tidy modernization checks
2018-06-05 12:50:39 +10:00
Nyall Dawson
8f55093642
Add some missing dox
2018-06-05 10:19:13 +10: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
Harrissou Sant-anna
b8565386ea
Remove unnecessary space at the bottom of widgets
2018-06-05 08:41:10 +10:00
Harrissou Sant-anna
70cb120567
Remove unnecessary space at the bottom of Source tab
...
and do some ui cleanup
2018-06-05 08:41:10 +10:00
Even Rouault
6160e066d7
Merge pull request #7167 from rouault/gpkg_perf_improvements
...
[OGR provider] Performance improvements on huge GeoPackage database (fixes #18402 )
2018-06-04 21:34:30 +02:00
Nyall Dawson
8307264c3b
[processing][SAGA] Avoid unicode errors when parsing description files
...
Fixes #19062
2018-06-05 05:25:16 +10:00
Alessandro Pasotti
a8ce494529
NULL -> nullptr in sip code
2018-06-04 18:20:48 +02:00
Matthias Kuhn
ba796447ca
Merge pull request #7169 from m-kuhn/attrTableCrash19054
...
Fix crash when removing layer with attribute table open
2018-06-04 16:49:19 +02:00
Alessandro Pasotti
d7a6c229e3
Revert "Re-enable test that was failing on Travis"
...
This reverts commit c4d62ef05ff268d903b0a821b43573b161b3964c.
2018-06-04 16:24:36 +02:00
Alessandro Pasotti
4d0de09e8a
Removed debug message leftover
2018-06-04 16:24:15 +02:00
Matthias Kuhn
fcb6a74d23
Fix crash when removing layer with attribute table open
...
Fix #19054
2018-06-04 15:57:33 +02:00
Even Rouault
2502a3376e
[OGR provider] Custom GPKG implementation of GetExtent() only needed for GDAL < 2.4
2018-06-04 15:05:51 +02:00
Matthias Kuhn
0e4b595717
Merge pull request #7168 from m-kuhn/noTrDebugMessages
...
Do not translate debug messages
2018-06-04 14:57:40 +02:00
Alessandro Pasotti
c4d62ef05f
Re-enable test that was failing on Travis
2018-06-04 14:27:01 +02:00
Alessandro Pasotti
6ece1aa543
registerProvider now returns a bool
2018-06-04 14:26:22 +02:00
Matthias Kuhn
474809ecef
Do not translate debug messages
2018-06-04 14:24:06 +02:00
Even Rouault
4f531359ae
[OGR provider] Performance improvements on huge GeoPackage database ( fixes #18402 )
...
- Introduce an approximate feature count for GeoPackage in case there are
at least 100,000 rows in a table.
- Add a super fast implementation of GetExtent() for GeoPackage when there
is an RTree
- Do not require feature count when enumerating layers from the browser
2018-06-04 14:23:55 +02:00
Even Rouault
0304ec49b6
qgsstyle.cpp: change protected to private
2018-06-04 14:13:15 +02:00
Even Rouault
4af0e4410e
Merge pull request #7153 from rouault/remove_VSIReadDirRecursive1
...
Remove VSIReadDirRecursive1()
2018-06-04 14:11:06 +02:00
nirvn
783b6b8120
[geometry] optimize point distance to point
2018-06-04 18:31:37 +07:00
Nyall Dawson
84806b9161
[processing] Fix cannot use feature source as input for model crs or extent parameters
2018-06-04 21:30:12 +10:00
Nyall Dawson
3b2f690d26
[processing] Also add table output for raster unique values report algorithm
...
Allows values to be used within models
2018-06-04 21:30:12 +10:00
Alessandro Pasotti
0430a8d59c
Better comment to explain why the ref needs to be incremented
2018-06-04 11:51:11 +02:00