63989 Commits

Author SHA1 Message Date
Nyall Dawson
04f51371fc Create new class QgsMapClippingRegion, for encapsulation of an area
and method to use to clip a map render
2020-07-02 12:07:51 +10:00
Mickael Savinaud
a9eb7181e6 Fix OTB icon which is not render into QGIS Processing 2020-07-02 08:27:55 +10:00
Alessandro Pasotti
9b13534c5d Browser: fix GPKG sublayers and empty DBs
Fixes #37519
2020-07-02 08:27:14 +10:00
Matthias Kuhn
9360515dc3 Immediately liberate connection of expression value gatherer
This fixes a deadlock

The iterator as a member as previously implemented kept connections
occupied for as long as the gatherer existed. This could lead to a
situation, where all connections have been reserved from finished
gatherers which were waiting to be deleted (through deleteLater),
but deleteLater would never happen because the main thread was
waiting for a connection to become available.

Fixes https://github.com/qgis/QGIS/issues/37496
2020-07-02 08:26:50 +10:00
Håvard Tveite
2a786aede2
[feature][processing] Random points in polygons C++ algorithm
Offers the same functionality as the Random points inside polygons
algorithm, and in addition it includes (possible to opt-out) the attributes
from the containing polygon and the ability to specify a seed for the random
number generator.

Could replace the Python algorithm Random points inside polygons, but
this C++ implementation only supports "Points count" ("number of points
for each feature") directly, while "Points density" is supported by allowing the
point count to be data defined (using the polygon area to calculate the
number of points).
2020-07-02 08:25:42 +10:00
Denis Rouzaud
0ea4fe0c87 small CMakeList cosmetic change 2020-07-02 05:06:32 +10:00
Vincent Cloarec
6be16a5bfe
Memory dataset group and possibility to persist it (#37389)
[FEATURE] Introduces memory dataset groups for mesh layer. These dataset groups are temporary and are not kept when the project is closed.

Memory dataset groups can be created from the mesh calculator with a new option.

Allows the possibility to remove or save these memory dataset groups to a file with specified driver.
2020-07-01 10:18:27 +02:00
Alexander Bruy
6068c64ce5
Merge pull request #37456 from alexbruy/gamma-correction
Gamma correction filter for raster layers
2020-07-01 10:44:41 +03:00
Alexander Bruy
6a6f7ff885 typo 2020-07-01 07:01:58 +03:00
uclaros
059f9fadd8
Vertex tool should not select invisible features
Fixes: #25259
2020-07-01 08:27:12 +10:00
Germán Carrillo
f758b96f54 Normalize action scope checkbox labels 2020-07-01 08:24:48 +10:00
Alexander Bruy
9734b76e59 doxymentation 2020-06-30 16:01:26 +03:00
Alexander Bruy
0214b4f01a move gamma correction code inside brightness/contrast filter 2020-06-30 15:42:33 +03:00
Alexander Bruy
cfa5c5bf83 fix tests 2020-06-30 15:42:33 +03:00
Alexander Bruy
e87aa998a7 fix some deprecation warnings in the QgsRasterLayer Python test 2020-06-30 15:41:57 +03:00
Alexander Bruy
ce3cc7c14a rendering test for raster brightness/contrast filter 2020-06-30 15:41:57 +03:00
Alexander Bruy
2f91b9782d fix comment 2020-06-30 15:41:57 +03:00
Alexander Bruy
af2870bb51 rendering test for gamma correction filter 2020-06-30 15:41:57 +03:00
Alexander Bruy
4b799171bd add gamma controls to the styling dock 2020-06-30 15:41:57 +03:00
Alexander Bruy
f37ac2ef2c add gamma controls to the raster layer properties 2020-06-30 15:41:57 +03:00
Alexander Bruy
ccae627afe add increase/decrease gamma buttons to the raster toolbar 2020-06-30 15:41:57 +03:00
Alexander Bruy
80544696b4 gamma correction filter pipe for rasters (fix #13512) 2020-06-30 15:41:57 +03:00
nirvn
c0197371fe Minimum year possible in project properties temporal extent should be 1 2020-06-30 14:29:59 +07:00
nirvn
4f04fbc129 Minimum year possible in layout map item temporal extent should be 1 2020-06-30 14:29:59 +07:00
Nyall Dawson
2ed914ff67 Minimum year possible in temporal controller should be 1
Fixes #37485
2020-06-30 12:48:56 +10:00
Nyall Dawson
5b85cb93c1 Sipify 2020-06-30 12:07:21 +10:00
Nyall Dawson
de74ef6d96 Some more detailed project loading time profiling for layout loading 2020-06-30 07:47:43 +10:00
Nyall Dawson
89298373e0 [mssql] Reallow creating connections with empty provider/dsn strings
Fixes #37427
2020-06-30 07:47:25 +10:00
Nyall Dawson
62b88463cc [processing] Fix default extent is not shown in extent widget
Fixes #37447
2020-06-30 07:47:03 +10:00
Alessandro Pasotti
1eb778eacf
Merge pull request #37477 from elpaso/bugfix-gh37463-gpkg-storage-utf8-on-windows
Fix GPKG project storage with UTF8 names on windows
2020-06-29 16:01:03 +02:00
Alessandro Pasotti
69bcbeee70 Fix GPKG project storage with UTF8 names on windows 2020-06-29 13:30:11 +02:00
Alessandro Pasotti
fb9df9f6de
Merge pull request #37457 from elpaso/bugfix-gh37449-raster-float64-quantile-histogram
Fix raster quantile with float
2020-06-29 08:58:11 +02:00
Alessandro Pasotti
b18b92728f
Merge pull request #37455 from elpaso/bugfix-gh37448-raster-quantile-broken
Fix raster quantile classification
2020-06-29 08:57:49 +02:00
Nyall Dawson
da8fa08af5 [feature][processing] Add modeler algorithm to create directories
This algorithm allows models to create new file directories. Useful for
models which have to output results to certain dynamically created paths
(e.g. a folder containing the current date)
2020-06-29 11:51:08 +10:00
Nyall Dawson
2204399f1c Add test 2020-06-29 11:50:34 +10:00
Nyall Dawson
c92354640c [processing] Use an editable combobox with current project layout names
when editing a model which uses the print layout parameter type

Instead of a plain text edit with no hints as to the current project's layouts
2020-06-29 11:50:34 +10:00
Nyall Dawson
d8337ea6ac Typo 2020-06-29 11:50:34 +10:00
Nyall Dawson
70e586322c Expose option to export as separate PDF layers in processing algorithm 2020-06-29 11:50:34 +10:00
Nyall Dawson
f75a9d21d5 [FEATURE][processing] Add algorithms to export a print layout as PDF or image
This allows for models which export print layouts from the current project. One
use case for this is allowing users to create an in-project model which exports
a particular set of layouts from the project to certain folders, so that they
can easily re-export the current project in a single operation instead of
having to manually open multiple layouts and export one-by-one.

Additionally, with the new capabilities to have expression based output files
inside models, you can automatically export the layouts to a folder with
the current date tag and include this in the exported file names!
2020-06-29 11:50:34 +10:00
uclaros
e30c4c4acf Fix restoring dialog geometry after minimize when enableAutoGeometryRestore is used 2020-06-29 08:50:47 +10:00
Matthias Kuhn
9e1edb0e42 Improve security warning for run script 2020-06-29 07:23:20 +10:00
Matthias Kuhn
af670a264e Improve security warning on console 2020-06-29 07:23:20 +10:00
Matthias Kuhn
dff0af41b0 Improvements to the security warning on plugin install dialog 2020-06-29 07:23:20 +10:00
Alessandro Pasotti
090e5daef2 Use qint64 instead of long 2020-06-28 20:52:55 +02:00
Alessandro Pasotti
67af97b876 Histogram: set an hard limit to bin count 2020-06-28 17:10:11 +02:00
Alessandro Pasotti
d49e140cf6 Fix raster quantile with float
Fixes #37449
2020-06-28 10:56:17 +02:00
nirvn
94bea56956 Provide a parent for a couple of toolbar button menus 2020-06-28 15:01:27 +07:00
Alessandro Pasotti
2a53faf8c2 Fix raster quantile classification
Fixes #37448
2020-06-28 10:00:26 +02:00
signedav
9b8e983d3c ITEM_NAME_ROLE in QgsExpressionItem to store the field name to use it on getting the example values in the expression builder
and still be able to store generic labels on the item (like the field name and the field alias)
This fixes that there has been no example values in the expression builder on the fields when an alias has been used
2020-06-28 15:55:44 +10:00
Nyall Dawson
7b2dc6e561 Add threading test 2020-06-28 15:50:10 +10:00