54738 Commits

Author SHA1 Message Date
Matthias Kuhn
cd33ee7d56
Make geometry validation automatic resolutions experimental
The automatic resolutions work unreliably (mostly due to geometry precision) and
therefore cannot be use reliably. Therefore they should rather be treated as a
technology preview which can be opted into for the moment.
2019-03-18 13:23:30 +01:00
Matthias Kuhn
2a02aa0433
Improve Geometry Validation Dock Layout
This reduces distance between the error list and the buttons to zoom to the location.
2019-03-18 13:23:28 +01:00
Matthias Kuhn
4e9c4b5a0c
Merge pull request #9504 from m-kuhn/geometry_validator_zoom_to_improvements
Disable automatic zoom to problem when fixing errors on geometries
2019-03-18 13:20:29 +01:00
Matthias Kuhn
87686cdd45
Update tests 2019-03-18 13:19:45 +01:00
Blottiere Paul
63c0278380 Use remove_if 2019-03-18 10:47:16 +00:00
Blottiere Paul
dad5b756b6 Some fixes 2019-03-18 09:56:07 +00:00
volaya
7653e45321 correctly close files executed from QgsPythonRunner 2019-03-18 19:05:43 +10:00
Blottiere Paul
ed31a32951 Add utils method for external layers 2019-03-18 08:44:25 +00:00
Blottiere Paul
ec3e15f024 Add doc 2019-03-18 08:44:25 +00:00
Blottiere Paul
cbc4270afb Add unit test for getprint and external layers 2019-03-18 08:44:25 +00:00
Blottiere Paul
216826bbf6 Add test for getmap and external layers 2019-03-18 08:44:25 +00:00
Blottiere Paul
d6c7c93a1c Manage external layers like highlight layers for consistency 2019-03-18 08:44:25 +00:00
Matthias Kuhn
1ab7925983
Merge pull request #9523 from m-kuhn/offline_editing_duplicate_layer_names
[offline editing] handle duplicate layer names
2019-03-18 09:24: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
Alessandro Pasotti
b85d5af0c0 Add test for plugin dependencies
Also made minor changes to the function and
class names, to be more consistent with QGIS
naming conventions.
2019-03-18 09:20:06 +01: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
nirvn
7cc903ac1e [ui] Fix missing 'Add Mesh layer' toolbar button 2019-03-18 15:46:28 +10:00
Håvard Tveite
1205fbfa71 [processing] Add missing RasterLayer input parameter 2019-03-18 07:51:15 +10:00
Alexandre Leroux
0f3f0dd68d update copyright to 2019
update copyright notice to 2002-2019
2019-03-17 16:20:01 +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
Alessandro Pasotti
1622d73e25 [feature][needs-docs] Plugin dependencies
Implementation of QEP 132:

Manage python cross-plugins dependencies

A new optional metadata entry will be added to metadata.txt: plugin_dependencies
The metadata will contain a comma separated list of plugin names, with a format similar
of the one used by pip, with optional version.
After a successful plugin installation, if the plugin has any unsatisfied dependency,
a dialog will pop-up with the list of unmet dependencies and the user
will be able to choose if she wants to install or upgrade the
dependencies or ignore them.

Example metadata:

plugin_dependencies = QuickMapServices==0.19.10.1,QuickWKT

Funded by GISCE-TI S.L.
2019-03-15 17:40:42 +01: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
Matthias Kuhn
8f38e86a8e
Make offline editing a Q_FOREACH free zone 2019-03-15 08:31:12 +01:00
Matthias Kuhn
525f0f01a2
[offline editing] Support for layers with identical names 2019-03-15 08:31:12 +01:00
Nyall Dawson
95930ed68c [processing] Fix IDW parameter value creation 2019-03-15 08:38:01 +10:00
Nyall Dawson
c24f51ece8 [processing] Fix exception in IDW interpolation
Fixes #21578
2019-03-15 08:38:01 +10:00
Nyall Dawson
db1645cf12 [processing] Fix processing.runAndLoadResults
Fixes #21551
2019-03-15 08:37:43 +10:00
Matthias Kuhn
ab530e4b04
Merge pull request #9495 from m-kuhn/default-enable-geometry-checks
Make default geometry checks configurable via settings [needs-docs]
2019-03-14 08:46:18 +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
Alessandro Pasotti
2be6c47d16
Merge pull request #9510 from nastasi-oq/gem-contributors
Gem contributors
2019-03-13 15:18:47 +01:00
Matteo Nastasi
cffe61250e layout: add new vertical and horizontal equispaced distributions 2019-03-13 14:52:25 +01:00
Matteo Nastasi
43c74c2a84 port of RedHat packaging from QGIS 2.0 to 3.0 2019-03-13 14:49:59 +01:00
Marco Bernasocchi
bee20785cc
Update mbernasocchi email in AUTHORS 2019-03-13 14:42:59 +01:00
Matthias Kuhn
d37546e903
Disable automatic zoom to problem when fixing errors on geometries
Single geomtry checks (is valid) are exuted on the fly, if the map canvas suddenly
changes the current extent while fixing a geometry this becomes very nervous for
a user.
2019-03-13 10:20:12 +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
60ad7f9ac2 Fix warning when opening attribute table
When init()ing QgsDualView through the attribute table it is
usually done BEFORE the model has been populated, so this code
has no effect and throws a warning.

There's no feature regression by removing this - the first
entry is still selected by default (elsewhere)
2019-03-13 16:57:14 +10:00
Nyall Dawson
e620b9cf63 Fix broken string 2019-03-13 16:57:14 +10:00
Matthias Kuhn
ee1e7385ce
Add dox 2019-03-13 07:56:55 +01:00
Nyall Dawson
1e5ae9cae7 Fix dox 2019-03-13 16:52:29 +10: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
Nyall Dawson
cf1f06eee6 Layer CRS validation is NOT thread safe, and can cause crashes
when a layer with unknown CRS is loaded in a background thread

We can't queue the connection to prompt for CRS (or warn via
messagebar), because the slot uses a modifiable reference which
may be deleted before the queued slot is called.

We also can't do ANY gui related stuff when this occurs. Best
we can do is log a warning and move on...
2019-03-13 16:37:07 +10:00
Matthias Kuhn
2a41fd0c7d
Disable flaky 3D mesh rendering test 2019-03-13 07:31:37 +01:00
Matthias Kuhn
1645799788
Make default geometry checks configurable via settings [needs-docs] 2019-03-13 07:23:26 +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
lbartoletti
ce9124710b apply martin's review 2019-03-12 17:56:49 +01:00