7048 Commits

Author SHA1 Message Date
Nyall Dawson
d7abfb47ee Test thread safety of proj context generation
Sponsored by ICSM
2019-03-19 11:47:01 +10:00
Nyall Dawson
3ce0acc8b1 Remove another use of deprecated proj API 2019-03-19 11:47:01 +10:00
Nyall Dawson
09437bb957 Improve test 2019-03-19 11:47:01 +10:00
Matthias Kuhn
1f38b441e7
Merge pull request #9493 from m-kuhn/fix-geomvalidator-freeze
Fix freeze in geometry validator
2019-03-18 15:47:03 +01:00
Matthias Kuhn
87686cdd45
Update tests 2019-03-18 13:19:45 +01:00
Nyall Dawson
92c8fddac2 [FEATURE][processing] Add new algorithm "Print layout map extent to layer"
This algorithm creates a polygon layer containing the extent
of a print layout map item, with attributes specifying the map
size (in layout units), scale and rotatation.

The main use case is when you want to create an advanced overview
indicator and the inbuilt layout tools to do this don't suffice.
2019-03-18 18:24:18 +10:00
Nyall Dawson
a38e9e66fc [processing] Fix layerName= suffix is incorrectly passed to SAGA algorithms
Fixes #21569
2019-03-18 18:24:02 +10:00
Nyall Dawson
bdbb622bac Fix crash when using QgsLayoutItemComboBox when null values
are displayed

Turns out there is NO reliable way to create a proxy model
which adds new rows to a model, so just bite the bullet and
do it in the underlying model (yuck)
2019-03-18 17:32:31 +10:00
Nyall Dawson
719a225bca [processing] Port point widget wrapper to new API
And switch to a snapping canvas tool when selecting points from canvas
2019-03-17 16:19:40 +10:00
Peter Petrik
37faa0d883
Add option to format time in mesh layer (#9452)
[feature] [mesh] #20731 add option to format time in mesh layer

There is new settings dialog that can be opened by button next to time slider. User can set reference time and time format (e.g. 2019-03-21 22:01:11).
2019-03-15 08:42:28 +01:00
Hugo Mercier
a7d060bb96
Merge pull request #9494 from mhugo/force_provider_constraints
Allow the strength of provider constraints to be soft
2019-03-14 08:42:12 +01:00
Hugo Mercier
1eaa5bbf96 Allow the strength of provider constraints to be set to soft 2019-03-13 15:30:29 +01:00
Matthias Kuhn
78351effd9
Merge pull request #9500 from m-kuhn/disable_flaky_test_3d_mesh_text
Disable flaky 3D mesh rendering test
2019-03-13 08:11:29 +01:00
Nyall Dawson
46e3304d2c Fix naming collision 2019-03-13 16:52:29 +10:00
Nyall Dawson
32fbf0a92b [processing][FEATURE] New parameter type for map scales
This adds a new parameter type specifically for map scales,
QgsProcessingParameterScale. The values are evaluated using
self.parameterAsDouble, which returns the map scale
denominator (matching the standard in other parts of the
QGIS API).

Scale parameters are displayed to users using the standard
QgsScaleWidget, which includes the combo box of predefined
scales and a shortcut button to match the current map scale.
2019-03-13 16:52:29 +10:00
Nyall Dawson
ca7008c285 Add API to allow QgsScaleWidget to accept NULL values 2019-03-13 16:52:29 +10:00
Nyall Dawson
7c582063c1 Add API to allow null values in QgsScaleComboBox 2019-03-13 16:52:29 +10:00
Matthias Kuhn
2a41fd0c7d
Disable flaky 3D mesh rendering test 2019-03-13 07:31:37 +01:00
nirvn
b97ef936be [expression] Negative index support to point_n(), angle_at_vertex(), distance_to_vertex() functions 2019-03-13 11:20:04 +07:00
Matthias Kuhn
857fe53773
[FEATURE] Merge pull request #9460 from m-kuhn/labeling_geometry_generator
 Geometry generators for labeling 
2019-03-12 14:15:51 +01:00
Matthias Kuhn
8c676ba0b3
Disable flaky ogrprovider test 2019-03-12 10:56:11 +01:00
Nyall Dawson
41d8a9c20b Fix test 2019-03-12 08:16:52 +10:00
Nyall Dawson
422d0f7a2e Correctly sort items in QgsLayoutItemComboBOx 2019-03-12 08:16:52 +10:00
Nyall Dawson
021d1ef237 [FEATURE][processing] New parameter types for layouts and layout items
Allows processing algorithms which operate on a specific layout
and layout item selection
2019-03-12 08:16:52 +10:00
Nyall Dawson
f9fb4085b2 Tweaks to layout item combo box 2019-03-12 08:16:52 +10:00
Nyall Dawson
0003e91f27 Add methods to resolve parameters to layouts/layout items 2019-03-12 08:16:52 +10:00
Nyall Dawson
ba82954ac5 [processing] Add new parameter type for layout item objects 2019-03-12 08:16:52 +10:00
Nyall Dawson
dd49720863 [processing] Add new parameter type for print layout names 2019-03-12 08:16:52 +10:00
Nyall Dawson
5ec43cfdc1 [processing] Add project to QgsProcessingParameterWidgetContext 2019-03-12 08:16:52 +10:00
Nyall Dawson
8d77a6bdcc New gui class QgsLayoutComboBox
Shows a list of layouts
2019-03-12 08:16:52 +10:00
Nyall Dawson
cba22770dc Move layout manager model from app to core and add unit tests 2019-03-12 08:16:52 +10:00
Nyall Dawson
0b270f98fb
Merge pull request #9454 from nastasi-oq/distribute-equispaced2
[layout] add new vertical and horizontal equispaced distributions
2019-03-12 06:29:33 +10:00
Matthias Kuhn
f575656ddb
Merge pull request #9461 from m-kuhn/pal_cleanup
Some cleanup in labeling and pal
2019-03-11 07:38:47 +01:00
Nyall Dawson
b66b944535 [FEATURE][processing] New Raster Boolean logical OR/AND algorithms
These algorithms calculate the boolean OR or AND for a set of input
rasters. For AND, if all of the input rasters have a non-zero value
for a pixel, that pixel will be set to 1 in the output raster, otherwise
it will be set to 0. For OR, if ANY of the input rasters have a non-zero
value for a pixel, that pixel will be set to 1 in the output raster,
else 0.

A reference layer parameter specifies an existing raster layer to use
as a reference when creating the output raster. The output raster will
have the same extent, CRS, and pixel dimensions as this layer

By default, a nodata pixel in ANY of the input layers will result in
a nodata pixel in the output raster. If the 'Treat nodata values
as false' option is checked, then nodata inputs will be treated the
same as a 0 input value.

Makes for much simpler raster boolean logic calculation without
the complexity of using the raster calculator (and that's not
always possible to do anyway, e.g. when ANY of the input rasters
has a nodata pixel). It's also scalable dynamic to any number of
input rasters (unlike raster calc), so is more flexible when
used within models.
2019-03-11 07:45:44 +10:00
Martin Dobias
3b98331502 [3d] Fix crash if the input data contain some empty polygons 2019-03-10 22:44:14 +01:00
Matthias Kuhn
a133bcae45
Fix sip bindings and ignore missing docs 2019-03-10 18:37:41 +01:00
Matthias Kuhn
f4d5788313
Add test for geometry generator labeling 2019-03-10 15:03:36 +01:00
Matteo Nastasi
7c6b66be8a [FEATURE] [needs-docs] add new vertical and horizontal equispaced distributions 2019-03-09 18:18:07 +01:00
Alessandro Pasotti
06678ebda3 Added option to load/store from/to the filesystem
+ Added tooltips with full path to the gpkg file
+ Fixed a crash when removing a stored project
2019-03-09 16:02:12 +01:00
Alessandro Pasotti
6714819835
Merge pull request #9309 from elpaso/bugfix-21409-qgssettings-dont-store-unchanged
Do not store default values in user's QgsSettings
2019-03-08 14:46:36 +01:00
Alessandro Pasotti
c732dfdcbe
Merge pull request #9422 from elpaso/bugfix-21511-rastercalc-multiband
Fix raster calculator with multiband rasters
2019-03-08 12:16:28 +01:00
Alessandro Pasotti
ec0ff4abb5
Merge pull request #9417 from elpaso/bugfix-21497-make-features-compatible
Fix makeFeatureCompatible wrong field count
2019-03-08 12:16:06 +01:00
Nyall Dawson
cccf974211 [processing] Port enum widget wrapper to new API
Fixes:
- enum parameters set to "allow multiple" only allow a single
value selection when used in modeler
- optional enum parameters cannot be set to no value when
used outside of modeler

Fixes #20406
2019-03-08 15:46:59 +10:00
Matthias Kuhn
2be19fbe04
Disable flaky test 2019-03-07 20:41:54 +01:00
Alessandro Pasotti
c5ef988d08 Fix raster calculator with multiband rasters
Fixes #21151
2019-03-07 19:34:45 +01:00
Alessandro Pasotti
6ddf78c15e Fix tests 2019-03-07 17:34:07 +01:00
Alessandro Pasotti
0325a37ff9 Fix makeFeatureCompatible wrong field count
Fixes #21497 - Copying features from source layer to target layer - field values are not copied
2019-03-07 14:45:04 +01:00
Nyall Dawson
12ba41750f Fix paletted raster renderer does not respect correct band when rendering
Fixes #21505
2019-03-07 18:50:06 +10:00
Nyall Dawson
63d648738d [processing][needs-docs] By default, hide algorithms with known issues from toolbox
And add a Processing setting to allow these to be shown. When shown, they
are highlighted in red with a tooltip explaining that the algorithm
has known issues
2019-03-06 06:33:06 +10:00
Matthias Kuhn
a33bf306f5
Merge pull request #9048 from troopa81/fix_20872_postgres_multidim_arrays
Manage postgres multidimensionnal array
2019-03-05 09:36:34 +01:00