49890 Commits

Author SHA1 Message Date
Nyall Dawson
4e3d61c3e9 Autoraise map unit scale tool buttons 2018-08-31 13:36:46 +10:00
Harrissou Sant-anna
91cebc4f85 [Processing][needs-docs] Improve some vector overlay algorithms description
* Some algorithms used almost the same label for the second layer and the output one (eg, "difference layer" vs "difference"), making hard to understand the description, in English and once translated.  Overlay label is now used to name the second layer, matching the parameter identifier
* Add more details to description and try to harmonize as far as possible (more convenient for readers and translators)
* The union algorithm behavior changed deeply but its description got no updates
2018-08-31 12:45:08 +10:00
Nyall Dawson
e0fa9eb9cf Add QStringLiteral(), QStringLiteral( "" ) and QLatin1String( "" )
to banned keywords

And replace use with QString()
2018-08-31 12:31:27 +10:00
Nyall Dawson
07037ec44a Fix some warnings 2018-08-31 10:44:51 +10:00
Matthias Kuhn
948a312acb Better error message 2018-08-31 09:59:15 +10:00
Luigi Pirelli
a092823eab
Merge pull request #7747 from cjmayo/check_init_py
Mark a Python plugin without an __init__.py as broken
2018-08-30 23:53:48 +02:00
Nyall Dawson
d683550b88 Fix crash when tasks are canceled before starting
Avoids an attempt to unlock an already unlocked mutex,
which causes a crash. Should fix a number of crash report
tickets...
2018-08-31 06:52:23 +10:00
Chris Mayo
051e4d1c02 Mark a Python plugin without an __init__.py as broken
utils.findPlugins() checks for the existence of an __init__.py which
results in an attempt to enable a plugin without an __init__.py being
blocked with the only notification being a message in the Plugins log:

WARNING    Plugin "<name>" is not compatible with this version of QGIS.
             It will be disabled.

This is not very informative, especially because it is the same message
used for a metadata version mismatch.

Adding this check to Plugins.getInstalledPlugin(), which already
duplicates the metadata checks from utils.findPlugins(), results in the
plugin being marked as broken in the Plugins dialog.
2018-08-30 19:32:53 +01:00
Luigi Pirelli
123f694013
Merge pull request #7742 from agiudiceandrea/fix-equals-SpatialJoin
[processing] Fix 'equals' predicate in SpatialJoin and SpatialJoinSummary
2018-08-30 16:10:14 +02:00
Andrea Giudiceandrea
e56da0e58a
Add test for Join by location (equals)
Adds a test for "Join attributes by location" processing algorithm 'equals' predicate
2018-08-30 09:59:26 +02:00
Harrissou Sant-anna
00b0e3b0bc [needs-docs] Fix parameter's label and some distance default value
more coherent with meters
2018-08-30 05:10:42 +10:00
Harrissou Sant-anna
4e1d29ee24 [Processing][Needs-docs] Allow optional "value" in "select by attribute" algorithm
because it's not needed to run null checks (fixes #19469 which is actually reported in the wrong way)
2018-08-30 05:10:21 +10:00
Nyall Dawson
e5e14dd680 Fix is_closed (and other expression functions) fail with multi* input geometries
Fixes #19704
2018-08-29 14:52:39 +10:00
Andrea Giudiceandrea
afcf048e23
Fix 'equals' predicate in SpatialJoinSummary
This fixes a typo in SpatialJoinSummary.py "Join attributes by location (summary)" algorithm that prevents the 'equals' predicate to work
2018-08-29 01:09:53 +02:00
Andrea Giudiceandrea
abd4d0ee11
Fix 'equals' predicate in SpatialJoin
This fixes a typo in SpatialJoin.py "Join attributes by location" algorithm that prevents the 'equals' predicate to work
2018-08-29 01:07:08 +02:00
Andrea Giudiceandrea
99696b6ee1 Fix Virtual layers display with empty subsetstring
Fixes #19721

Virtual layers incorrectly show no feature when the expression filter string is empty, instead of correctly showing all the features.

Subset string needs to be tested against Empty instead of Null in order to correctly populate the wheres list and prepare a well formed SQL query string.
2018-08-29 03:43:46 +10:00
rldhont
65f4bf1956
Merge pull request #7514 from rldhont/server-cache-manager
[Server][Feature][needs-docs] Server cache manager and WMTS service
2018-08-28 18:05:42 +02:00
rldhont
b3f9898ce7 [Server] Fix weird docs indetation 2018-08-28 14:26:18 +02:00
rldhont
6b8d04b081 [Server] Various code cleaning for server cache manager and WMTS service 2018-08-28 14:22:24 +02:00
rldhont
b82c30e2d6 [Server] Enhancing loop for 2018-08-28 14:17:10 +02:00
Denis Rouzaud
0475ff9e65 add layer filter in snapping configuration 2018-08-28 14:57:41 +03:00
Denis Rouzaud
2810c92f01
[mac] display icon in notification (#7734)
there is 2 icons in notifications, one from the app itself and one set from the notification
the icon application seems not to be set correctly on mac for now
only the windon icon is set in main.cpp with myApp.setWindowIcon
the icon defined in application plist does not seem to be correctly set
...so in this PR we set the notification icon to be the QGIS one, so it looks nicer
2018-08-28 14:56:22 +03:00
Nyall Dawson
5c7f13b3a4 Ensure context is passed with QTimer::singleShot 2018-08-28 18:43:48 +10:00
Peter Petrik
2855ccbeff add PeterPetrik to contributors map 2018-08-28 09:18:25 +02:00
Peter Petrik
d7afb710d7 [mesh] [feature] add opacity slider to mesh contours settings 2018-08-28 09:17:31 +02:00
Nyall Dawson
304033c916 [processing] Use distance parameter for Points Along Geometry offsets
and Topological Coloring distance parameters

Fixes #19712
2018-08-28 10:21:10 +10:00
Nyall Dawson
7a8bee2cec [processing] Reproject algorithm doesn't care about invalid features 2018-08-28 10:21:10 +10:00
Etienne Trimaille
98c51042f1 add myself to the map 2018-08-28 09:31:59 +10:00
Salvatore Larosa
8955684180 Fix the developers map in about dialog 2018-08-28 09:01:40 +10:00
Nyall Dawson
57997eb65d Fix failing spell checks 2018-08-28 08:50:43 +10:00
Mathieu Pellerin
f1fdbbbbf0 Fix references to contributors.json (#7722) 2018-08-27 23:12:40 +03:00
Harrissou Sant-anna
269edfd0df Fix parameter's label
Because all values are in layer units now and they can be overridden
2018-08-28 04:37:17 +10:00
Harrissou Sant-anna
236a53e77c Fix example display 2018-08-27 21:35:39 +10:00
Tim Sutton
9710c185d3
New Easter eggs which might actually be useful... (#7714)
Three new easter eggs:

world : Add a world map to your canvas - it is the same world map as used by the CRS chooser

contributors : Adds the contributors json (used to be in docs, now moved to resources/data)to the map canvas so you can quickly see the locations of QGIS developers in QGIS

hackfests : Adds qgis_hackfests.json (in resources/data) to the canvas so you can quickly see the locations of all historical QGIS hackfests. Note the attribute table has other interesting data too.
2018-08-27 10:44:37 +03:00
Nyall Dawson
0ad341a017 Use expression preview for variable values in variable editor widget
Means that values which are non-text, e.g. points, geometries,
lists, maps, etc show a value in the widget
2018-08-27 14:43:02 +10:00
Nyall Dawson
05a311bdcf Code modernization 2018-08-27 14:43:02 +10:00
Nyall Dawson
c8191ffd50 Allow unformatted preview text for expression results 2018-08-27 14:43:02 +10:00
Nyall Dawson
ff9e3890e0 [needs-docs] Rename map_layers_ids to map_layer_ids
It's more natural grammar
2018-08-27 14:43:02 +10:00
Nyall Dawson
820c40ac9d [FEATURE] map_layers variable for layout map items
Just like map_layers_ids, but returns direct layer values instead
of ids
2018-08-27 14:43:02 +10:00
Nyall Dawson
367d0befe4 Show preview text for map layer values in expressions 2018-08-27 14:43:02 +10:00
Andrea Giudiceandrea
3b9821f439 Update test_qgsdelimitedtextprovider_wanted.py
according to PR #7671
2018-08-27 11:55:33 +10:00
Andrea Giudiceandrea
379652d202 delimited text: let field names be numerical value
fixes #19638 "CSV: numeric header gets a trailing underscore + 1"
fixes #13187 "Numeric FIELD names are lost on CSV import"
2018-08-27 11:55:33 +10:00
Nyall Dawson
ee4cba06e8 [layouts] Fix printed pages are offset from top-left on some platforms
Fixes #19566
2018-08-27 11:42:16 +10:00
Nyall Dawson
5ba52e36e7 Hide CRS group box in vector properties for non-spatial layers
Fixes #19689
2018-08-27 11:35:57 +10:00
Nyall Dawson
7c805b4166 Rename vector layer 'CRS' group to 'Geometry and CRS'
Because the group box also contains non-CRS settings,
e.g. spatial index and extents
2018-08-27 11:35:57 +10:00
Nyall Dawson
f8f5fd1526 Fix bad test 2018-08-27 11:35:57 +10:00
Nyall Dawson
d84252c97c Fix project defaults to EPSG:4326 when a non-spatial layer is first
layer added

Fixes #19690
2018-08-27 11:35:57 +10:00
Nyall Dawson
1b560559e5 Non spatial layers do not have a CRS - API changes only, needs UI change
Refs #19689
2018-08-27 11:35:57 +10:00
Nyall Dawson
c87b625f08 Mark whole Auto Fixes group as disabled from geometryless layers
Results in nicer widget styling than disabling individual widgets
2018-08-27 10:09:41 +10:00
Nyall Dawson
e7b5d62cf6 Change geometry precision spin box to QgsDoubleSpinBox, with reset button 2018-08-27 10:09:41 +10:00