52755 Commits

Author SHA1 Message Date
Alex
69f6ea521b [mssql] Fix inserting features into tables with an after insert trigger attached
Fixes #20592
2019-01-07 11:48:41 +10:00
Nyall Dawson
efd54f862f [processing][SAGA] Resync Fill Sinks descriptions, add tests
Refs #20051
2019-01-07 09:55:46 +10:00
Nyall Dawson
45f8b863db [processing][SAGA] Resync parameters for resample tool
And add tests

Fixes #20882
2019-01-07 09:55:46 +10:00
Alessandro Pasotti
f6c7cdb4c8 Better check for QString::isEmpty() than for length() == 0
Not that it really makes any difference ...
2019-01-06 17:54:03 +01:00
Alessandro Pasotti
c6b0ae0aaf
Merge pull request #8795 from ismailsunni/clean_shortcut_list
Remove empty action in shortcut configuration list.
2019-01-06 15:58:43 +01:00
Ismail Sunni
48e4525abf Remove empty action in shortcut configuration list. 2019-01-06 12:59:01 +01:00
Denis Rouzaud
48db864836
add missing bits to API documentation (#8709)
* add missing bits to API documentation

* API docs

* mark function as deprecated

* Deprecate for Python

* Fix docstrings

* Fix see also link
2019-01-05 20:31:10 -05:00
Alessandro Pasotti
f075109d6a
Merge pull request #8793 from elpaso/bugfix-20693-server-LAYERTITLESPACE
[server] Respect layer title space when rendering legends
2019-01-05 21:40:07 +01:00
Alessandro Pasotti
7d592a01ba Add control image masks
Add more mask images (when image size does not match, generate_test_mask_image.py fails to update the mask)
2019-01-05 20:48:49 +01:00
Corentin Falcone
ed9c9b33af Add comment option on db_manager pluging postgis tables (#8734) [FEATURE]
Add possibility to create a comment on a postgres table when import or using the alter table button from db_manager.
2019-01-05 12:02:02 +01:00
Matthias Kuhn
be451d98c9
Merge pull request #8752 from anitagraser/patch-1
Refer to layers panel instead of legend
2019-01-05 12:00:52 +01:00
Nyall Dawson
e3c1d18f3a [layouts] Fix inefficient filtering in attribute tables
Set the expression filter on the request itself, rather than looping
through all features and testing on the filter. This allows providers
to hand off the filtering to the underlying datasource, and utilise
indices/etc where available.

Fixes #20908
2019-01-05 07:31:27 +10:00
Alessandro Pasotti
3c2392808d Update control images 2019-01-04 19:30:28 +01:00
Alessandro Pasotti
d49994005c [server] Respect layer title space when rendering legends
Fixes #20693 - LAYERTITLESPACE in GetLegendGraphic is not taken into account
2019-01-04 14:32:43 +01:00
nirvn
899dcbfff3 Fix assert crash for non-English UI locale (fixes #20834) 2019-01-04 13:56:39 +07:00
nirvn
b7a607c625 [themes] Move tab widget's pane up 1 pixel to improve border look 2019-01-04 10:11:07 +07:00
nirvn
b921378964 [themes] Adjust Night Mapping and Blend of Gray to improve display on windows
Fixes the combo box drop down list clipping text, as well as
the spinbox's up and down arrow.

Turns out having a single theme QSS that looks great across platforms
isn't straightforward.
2019-01-04 10:00:33 +07:00
Nyall Dawson
d59a346560 [processing][needs-docs] Standardize names of z/m value algorithms
Ensures consistent capitalization and (non)hyphenation of algorithm names
2019-01-04 05:01:40 +10:00
Nyall Dawson
cef9c4eaec [FEATURE][processing] New algorithms "Extract Z values" and "Extract m values"
These algorithms allow users to convert z or m values present in feature
geometries to attributes in the layer. By default the z/m value from the
first vertex in the feature is extracted, but optionally statistics
can be calculated on ALL the z/m values from the geometry (e.g. calculating
mean/min/max/sum/etc of z values).
2019-01-04 05:01:40 +10:00
Nyall Dawson
e99072b161 Add method to QgsStatisticalSummary to get a short name corresponding to a stat
Returns a short name, suitable for use in a field name
2019-01-04 05:01:40 +10:00
Nyall Dawson
5f817b4db3 Allow QgsStatisticalSummary to calculate first/last value
Trivial, but simplifies other code which desires to expose
a choice between first/last/min/max/mean/etc...
2019-01-04 05:01:40 +10:00
Nyall Dawson
5586352a13 [FEATURE][processing] New raster zonal stats algorithm
Like the vector zonal stats algorithm, but this one works with
the zones defined in another raster.

Iterates over the input rasters in blocks to be nice and
memory efficient.

From the algorithm help:

"This algorithm calculates statistics for a raster layer's
values, categorized by zones defined in another raster layer.

If the reference layer parameter is set to "Input layer",
then zones are determined by sampling the zone raster layer
value at the centroid of each pixel from the source raster
layer.

If the reference layer parameter is set to "Zones layer",
then the input raster layer will be sampled at the centroid
of each pixel from the zones raster layer.

If either the source raster layer or the zone raster layer
value is NODATA for a pixel, that pixel's value will be
skipped and not including in the calculated statistics."
2019-01-04 05:01:16 +10:00
Alessandro Pasotti
a7c3aadf3d
Merge pull request #8785 from elpaso/bugfix-20601-processing-side
Pick up all layer entries references from the project context
2019-01-03 09:59:27 +01:00
Tudor Bărăscu
f4aa9a493b respect attribute table behavior settings
Fixes undocumented bug of attribute table settings (Show features Visible on Map etc.)
not being respected. The settings were saved correctly but QGIS didn't make use of them.
2019-01-03 11:48:07 +10:00
Nyall Dawson
201523fb85 Test masks 2019-01-03 04:53:28 +10:00
Nyall Dawson
38450f0bef [FEATURE][layouts] Allow control over stacking position of map overview extents
Allows overview extents to be drawn below map labels (the new default),
but also adds choices for drawing them below all map layers, or
above/below a specific map layer.

This allows users to control exactly where in the map item's layer stack
the overview will be placed, e.g. allowing them to draw a overview
extent below some feature layers such as roads whilst drawing it
above other background layers.
2019-01-03 04:53:28 +10:00
Nyall Dawson
a441e2b14b [layouts] Add API allowing drawing map overviews under map layers
or under map labels
2019-01-03 04:53:28 +10:00
Nyall Dawson
12da3afa85 [layouts] Add method to alter list of map layers to render to include
overview layers
2019-01-03 04:53:28 +10:00
Nyall Dawson
97daa5080d Use qobject_cast 2019-01-03 04:53:28 +10:00
Nyall Dawson
1b309c6810 [layouts] Add setters/getters for map item stacking positions 2019-01-03 04:53:28 +10:00
Nyall Dawson
6eb49feddc [layouts] Add method to get overview item extent as a vector layer
The layer contains a single feature representing the linked map
extent, and set to render using the overview's symbol
2019-01-03 04:53:28 +10:00
Nyall Dawson
0f7d8c05e3 Split layout map overview tests into their own file, add masks 2019-01-03 04:53:28 +10:00
Nyall Dawson
9d800d4268 Sipify 2019-01-03 04:53:07 +10:00
Nyall Dawson
62f1bb7a20 Spelling 2019-01-03 04:53:07 +10:00
Nyall Dawson
d14a5bd1dd [layouts] Add inbuilt validity check to warn when scale bars are
not linked to a map item

(and remove test Web mercator projection warning check)
2019-01-03 04:53:07 +10:00
Nyall Dawson
ddd522b432 Rework validity check API to allow future background threaded use 2019-01-03 04:53:07 +10:00
Nyall Dawson
ec5530484a Add layout validity check for map crs 2019-01-03 04:53:07 +10:00
Nyall Dawson
102f075ad2 Run layout validity checks before export 2019-01-03 04:53:07 +10:00
Nyall Dawson
7ccaa3df32 [FEATURE][API] Add flexible framework for custom "validity checks"
Adds a new interface QgsAbstractValidityCheck which defines
a single "check" which can be performed on a given QgsValidityCheckContext.
A new application-wide QgsValidityCheckRegistry registers
and manages instances of all known checks, and allows running
of all registered checks of a specific type at once.

Initially the framework is focused toward print layout validity
checks, but the interface has been designed to be generic enough
to allow alternative types of validity checks (e.g. project save
validity checks, processing model validity checks, etc.).

The API is designed to be used both by internal validity checks
and also to be extended by custom, organisation-specific
validity checks. E.g., for print layout validity checks we could have:
2019-01-03 04:53:07 +10:00
Alessandro Pasotti
ecb6cde3aa Pick up all layer entries references from the project context
This is the processing side of the duplicate layer
names bug, while the core part was already fixed,
the processing logic was extended to handle inputs
from models and full-path references.

Fixes #20601
2019-01-02 16:59:03 +01:00
nirvn
ac6e674064 [themes] Apply OS-specific UI scale factor to em values 2019-01-02 15:42:18 +07:00
nirvn
883ae1aa9a Add palette file for the Blend of Gray theme 2019-01-02 13:51:56 +07:00
nirvn
d8803151c8 Add palette file for the Night Mapping theme 2019-01-02 13:51:56 +07:00
nirvn
96eb841146 [themes] Allow customization of palette role colors
This fixes the following issues:
- combo box drop down menu white top/bottom edges
- color button header background color
- white line at top of stacked dock area
2019-01-02 13:51:56 +07:00
Alexander Bruy
2f1efd8927
Merge pull request #8776 from alexbruy/gdal_tests
[processing] cover more GDAL algorithms with unittests
2019-01-02 08:17:19 +02:00
Juergen E. Fischer
196024ccba typo fixes 2019-01-01 21:53:37 +01:00
Alexander Bruy
f332233f6d remove obsolete tests 2019-01-01 19:28:09 +02:00
Alexander Bruy
6809d346ab [processing] add unittest for gdal_polygonize algorithm 2019-01-01 19:26:14 +02:00
Alexander Bruy
f447745b5f [processing] add unittest for gdal2xyz algorithm 2019-01-01 18:15:41 +02:00
Alexander Bruy
655dc1f567
Merge pull request #8773 from alexbruy/processing-gdal_sieve
[processing] fix handling of the mask layer in the gdal_sieve algorithm
2019-01-01 16:26:54 +02:00