54378 Commits

Author SHA1 Message Date
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
128477d797
Merge pull request #9546 from m-kuhn/geometry-validation-dock-layout
Improve Geometry Validation Dock Layout
2019-03-18 15:28:00 +01:00
Matthias Kuhn
0c265d7f2d
Merge pull request #9297 from m-kuhn/geometry-validation-auto-resolution-experimental
[geometry validation] Tag automatic resolution of problems as experimental
2019-03-18 15:27:38 +01:00
Matthias Kuhn
24b8dcc692
Use a hidden setting for activating geomtery resolution 2019-03-18 13:23:30 +01:00
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
volaya
7653e45321 correctly close files executed from QgsPythonRunner 2019-03-18 19:05:43 +10: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
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
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
lbartoletti
1ac18f919e remove useless variable mSnappedToVertex 2019-03-12 17:56:49 +01:00
lbartoletti
2a2b7a6532 Needs to snap point too when CadDockWidget is enabled. Fixes #18138 2019-03-12 17:56:49 +01:00
Matthias Kuhn
60512e92df
Clear and load in getFeatures() 2019-03-12 14:28:52 +01:00
Matthias Kuhn
9a839c97f3
Copy data for background threads
reduce requirements to run code on main thread which risks freezes
because of deadlocks
2019-03-12 14:28:52 +01: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