45482 Commits

Author SHA1 Message Date
Nyall Dawson
285bb0631b [processing] Fix duplicate parameter
And throw warnings when other duplicate parameters are registered.

GRASS has a lot.
2018-01-28 19:09:12 +11:00
Juergen E. Fischer
7e20fe4cdc make converting to multi geometries to fullfil provider geometry
constraints the last step and use earlier conversions (fixes #17643)
2018-01-28 00:51:25 +01:00
Salvatore Larosa
72ca8d7b9c
Merge pull request #6164 from slarosa/fix_ml_issue
update min/max values for singlebandgray raster renderer
2018-01-27 22:41:32 +01:00
Denis Rouzaud
54cd01ac7d use blue font for highlighted tree items 2018-01-26 16:15:47 -09:00
Denis Rouzaud
6be8249bec [options search] fix search not available in option tree 2018-01-26 16:15:47 -09:00
Nyall Dawson
71bdda5f83
Merge pull request #6176 from nyalldawson/gil
[python] Always release the GIL before calling PyQGIS c++ methods
2018-01-27 08:24:17 +11:00
Juergen E. Fischer
a265073344 update package*.cmd for 3 and GRASS 7.x 2018-01-26 20:29:35 +01:00
Juergen E. Fischer
7b959175e2 fix typo 2018-01-26 20:29:35 +01:00
Alexander Bruy
891ca3cd11 [processing] fix wrong variable name 2018-01-26 19:35:40 +02:00
nirvn
fd5388074b avoid startup warning, do not look for empty setting value 2018-01-26 16:33:43 +07:00
Alessandro Pasotti
bd6a1fa203
Merge pull request #6181 from elpaso/check-for-size-before-adding-to-model
Check for model items size before removing rows
2018-01-26 10:04:22 +01:00
Alessandro Pasotti
d4e8f63315 Check for model items size before removing rows
This was hitting an assert in Qt core libraries 5.9.3
2018-01-26 09:35:18 +01:00
nirvn
ac4be1b30f update the brasil flag svg to get rid of console warnings 2018-01-26 15:21:43 +07:00
Alessandro Pasotti
2997c3b4da
Merge pull request #6173 from elpaso/bugfix-17863-wrong-ogr-extent
[bugfix][ogr][spatialite] Update extent when subsetstring is set in the ctor
2018-01-26 09:15:08 +01:00
nirvn
b1a97e1736 fix stylesheet string for the qgsdatetimeedit widget 2018-01-26 14:38:30 +07:00
nirvn
fb3e4e1670 remove png flags 2018-01-26 13:45:08 +07:00
nirvn
af17f041a9 add two missing locale flags 2018-01-26 13:45:08 +07:00
nirvn
6d5dce22f6 [processing] properly size toolbar button for provider actions 2018-01-26 13:11:24 +07:00
Nyall Dawson
b3256ad2c3 [python] Always release the GIL before calling PyQGIS c++ methods
Switches on the sip "-g" switch, which forces sip to release the
Python Global Interpreter Lock before calling a qgis c++ method,
and reacquire it after.

While this flag is not a default sip flag, it is used when building
the PyQt API, so can't forsee any issues from enabling it.

The benefit however is extreme for PyQGIS based scripts which
rely on threads, potentially resulting in massive performance
boosts.

Without this switch, calling an expensive c++ method (say,
building a QgsSpatialIndex using a QgsFeatureIterator) would lock
the Python GIL for the duration of the c++ call... which could
potentially take minutes or more. With the switch, the lock
is released before all calls, so other Python threads are free
to merrily grab the lock and do other processing while the
original thread chugs away in c++ land.

Benchtests of worst-case scenarios (single thread calling
thousands of very inexpensive PyQGIS methods (simple getters))
regressed from mean of 154 seconds to 158 with this flag. But
that's worst case (and as Intel have recently demonstrated...
we can't take yesterday's computing speed as the benchmark
for todays ;). Given that best case scenarious (multi-threaded
operations calling slow c++ methods) will benefit so greatly
from this change, I think it's an acceptable trade off.

*This is a step toward potentially re-enabling background
execution of python based Processing algorithms, and also
should greatly improve QGIS responsiveness when using
python based renderers/symbols.
2018-01-26 14:55:31 +10:00
Salvatore Larosa
f4f89bbcbe [processing] resurrects matrix parameter 2018-01-25 21:54:22 +01:00
Werner Macho
dc564fb2d0
Merge pull request #6175 from zsiki/master
Hungarian translators list extended
2018-01-25 19:33:04 +01:00
Zoltan Siki
e77658fc2e
Hungarian translators list extended 2018-01-25 19:27:11 +01:00
Alessandro Pasotti
698befa9dd [gpkg] Add test for gpkg subsetstring don't unlock mutex twice
I wanted to add the test for gpkg subsetstring even if
it was not bugged, while testing that, I hit an assert
in Qt core that pointed me to double unlocked locks.
2018-01-25 15:16:53 +01:00
Alessandro Pasotti
cd0559dfde [bugfix][spatialite] Update extent when subsetstring is set in the ctor
Fixes #17863 - Zoom to layer has inconsistent behavior with filter
2018-01-25 14:38:34 +01:00
Alessandro Pasotti
e9c9b5dfb6 [bugfix][ogr] Update extent when subsetstring is set in the ctor
Fixes #17863 - Zoom to layer has inconsistent behavior with filter
2018-01-25 14:38:17 +01:00
Sandro Mani
8b682dad1a
Merge pull request #6172 from manisandro/master
[Globe] Adapt for API changes
2018-01-25 14:21:02 +01:00
Sandro Mani
0d1ef01850 [Globe] Adapt for API changes 2018-01-25 13:24:27 +01:00
Denis Rouzaud
6424ceb113 [options search] move Message bar items check to QgsSearchHighlightOptionWidget constructor 2018-01-25 03:19:58 -09:00
Denis Rouzaud
3b143805d8 [options search] use lambda method to search text in widgets 2018-01-25 03:19:58 -09:00
Mathieu Pellerin
34c2d32b3e
[processing] add actions when provider is registered / activated 2018-01-25 16:16:44 +07:00
Alessandro Pasotti
7ee4bb70e7
Merge pull request #6162 from elpaso/bugfix-17263-clip-double-show
[bugfix] Fixes Clip features to canvas extent displayed twice
2018-01-25 08:46:07 +01:00
Alessandro Pasotti
30043dbeb8
Merge pull request #6163 from elpaso/bugfix-17927-themes-group-visibility
[bugfix] Ensure parent group visibility when apply theme
2018-01-25 08:45:32 +01:00
Nyall Dawson
f0e01d81f0 Fix crash 2018-01-25 15:47:42 +11:00
Nyall Dawson
bf19eb6f35 [processing] Non-filed based outputs (e.g. postgis, geopackage)
options should be available for certain model outputs and script
algorithm outputs

We do this by swapping the test for non-file based output support
from checking only the algorithm's provider to instead checking
on a parameter-by-parameter basis.

This is done in order to support models. For models, depending
on what child algorithm a model output is based off, an individual
model may or may not have support for non-file based outputs. E.g
a model may generate outputs from a native qgis alg (supporting
these outputs) AND an output from a GDAL alg (with no support
for these outputs). In this case we need to enable or disable
the ui controls for non-file based outputs on an individual
output basis.

For scripts (for now) we blindly just say all outputs support
non-file based formats. This is going to be the case most of
the time, since scripts will usually be written using PyQGIS
API. For the exceptions (e.g. scripts which call other algs
like GDAL algs) we probably should add some way for the script
to indicate whether an individual output supports this, but
for now we just say they all do.

Fixes #17949
2018-01-25 15:47:42 +11:00
Nyall Dawson
723e0a1e73 Make saving ogr layers less debug noisy 2018-01-25 15:47:42 +11:00
Andrea Giudiceandrea
c91e33d332 Fixes a typo in syncDb()
Fixes a typo in QgsCoordinateReferenceSystem::syncDb() that improperly set "Imported from GDAL" as name for all geographical coordinate systems imported from GDAL/PROJ definitions during postintall CRS database synch.

Fixes #17941
2018-01-25 10:37:54 +10:00
Nyall Dawson
975ef8e899 Show field type in tooltip in attribute table header 2018-01-25 11:35:54 +11:00
Nyall Dawson
b91b9f6a6f Fix relation table shows some cells disabled (when they should
be enabled, but just not editable)
2018-01-25 09:52:26 +11:00
Nyall Dawson
237455a78f Use same relation parent/child order in list as in new relation dialog
Fixes #17939
2018-01-25 09:52:26 +11:00
Juergen E. Fischer
717a0f541f fix layer tooltip display 2018-01-24 22:58:30 +01:00
Salvatore Larosa
9fcfafdfda update min/max values for singlebandgray raster renderer 2018-01-24 20:28:33 +01:00
Alessandro Pasotti
b64444720c [bugfix] Ensure parent group visibility when apply theme
Fixes #17927  Group Layers not activating when Theme is selected.
2018-01-24 19:36:27 +01:00
Juergen E. Fischer
8c96eec25e fix detection of 2.x project crs (followup f2b5a595) 2018-01-24 19:15:25 +01:00
Alessandro Pasotti
37cd401e48 [bugfix] Fixes Clip features to canvas extent displayed twice
Fixes #17263
2018-01-24 19:04:15 +01:00
Mathieu Pellerin
cf35affedc
remove risky qApp->processEvents() call (#6161) 2018-01-24 23:29:33 +07:00
Denis Rouzaud
711eddcf8a [options search] correctly remove event filter 2018-01-24 04:24:49 -09:00
Denis Rouzaud
0e7cea2244 QgsGeometryUtils: rename 2 methods
- projPointOnSegment has been renamed to projectPointOnSegment
- getSelfIntersections has been renamed to selfIntersections
2018-01-24 03:38:59 -09:00
nirvn
5f5f1f9c05 [processing] don't modify output filename in build virtual raster 2018-01-24 18:18:32 +07:00
nirvn
746701bf33 [processing] add default extension to empty filter when available 2018-01-24 18:18:32 +07:00
Etienne Trimaille
c871e84e36 update XSD and XML according to #36bf093 2018-01-24 21:28:46 +11:00