65774 Commits

Author SHA1 Message Date
Alessandro Pasotti
e79103e354 Spelling 2020-09-17 07:28:45 +10:00
Alessandro Pasotti
cbb0cb3f1c Add a warning about the usage of setInstance 2020-09-17 07:28:45 +10:00
Alessandro Pasotti
a782420153 Update SIP 2020-09-17 07:28:45 +10:00
Alessandro Pasotti
c80093c47a Expose QgsProject::setInstance to API
Fixes #38755

Needs forward porting to all active branches
2020-09-17 07:28:45 +10:00
Nyall Dawson
f018252023 Add a Legend category to the style selection widgets and allow
legend settings to be stored and restored in QML

Fixes #37683
2020-09-17 07:27:34 +10:00
Nyall Dawson
98c2000868 Reword Field option in style category menu to make it clearer that
it includes the widget configuration

Fixes #28087
2020-09-17 07:27:09 +10:00
Nyall Dawson
1ad2e78735 Use QgsVectorLayerSaveStyleDialog when saving style from main window
right click menu

Fixes #29145
2020-09-17 07:26:50 +10:00
Nyall Dawson
2eff061bf3 [browser] Correctly save expanded node state when closing QGIS
Otherwise browser expanded nodes are never saved, and the browser
always returns to some random previous state
2020-09-17 07:26:29 +10:00
Nyall Dawson
0234d4e9e1 [browser] Gpkg and other container types can be dragged to the map
to allow layers to be added from them

Otherwise it's impossible to select multiple gpkg files from the
browser to add them all at once, and users have to add them
one-by-one
2020-09-17 07:26:11 +10:00
Julien Cabieces
7e8c7b3d0e Fixes #38796 : Fix serialization of QgsWeakRelation field pair 2020-09-17 07:25:23 +10:00
Blottiere Paul
1bd78908ee Replace PS character. Fixes #37803 2020-09-17 07:24:21 +10:00
Alessandro Pasotti
4743c67420 Update tests and fix wfs exposed fields list 2020-09-16 18:41:51 +02:00
Alessandro Pasotti
2018edbec0 Set the line angle instead of the symbol angle
Fixes #38716
2020-09-16 18:25:48 +02:00
Alessandro Pasotti
5fc05e2d11
Merge pull request #38801 from elpaso/bugfix-gh38552-value-relation-null-with-linedit
Fixes value relation line edit not found values
2020-09-16 17:28:54 +02:00
Denis Rouzaud
bc3d8fd988
Merge pull request #38285 from uclaros/split-add-topo-all-layers
Add topological points to all editable layers on split feature
2020-09-16 17:19:43 +02:00
nirvn
bc1511cecf Skip line-pattern conversion, not supported yet 2020-09-16 20:18:46 +07:00
Matthias Kuhn
8929e74a57
Merge pull request #38101 from DelazJ/fixInstall
Typo, URL and formatting in the build instructions
2020-09-16 13:19:44 +02:00
Alessandro Pasotti
448f7d9d81 Fixes value relation line edit not found values
When there is no match in the relation layer,
show "(no selection)" instead of NOT updating
the widget (which was the reported issue).

Fixes #38552
2020-09-16 12:09:19 +02:00
Nyall Dawson
15975c1d51 Don't prompt for CRS for annotation layers
Fixes #38739
2020-09-16 19:45:41 +10:00
Alessandro Pasotti
49037e050a
Merge pull request #38763 from elpaso/bugfix-gh38567-pg-unrestricted-geometry-srid
PG unrestricted geometry: trust SRID from geometry_columns
2020-09-16 08:11:41 +02:00
Denis Rouzaud
f6c98ec5f1
Merge pull request #38730 from 3nids/conf-flag-check-cb
Use a checkable combobox for fields configuration flags
2020-09-16 07:02:17 +02:00
Even Rouault
40259f6e3e Fix typo in name of QgsFeaturePickerModelBase::identifierIsNull() method
This is a protected virtual method, not exposed to SIP. So this should cause
no compatibility issue.
2020-09-16 12:11:25 +10:00
Nyall Dawson
f1c0fe259f Fix calculation of zoom level for vector tiles
Previously the code was calculating the exact zoom level (a double
value) and then rounding this to an integer in order to determine
which rules should be applied.

This appears to violate the vector tile styling specifications,
which are designed to "round down" the zoom level, so that styling
rules like:

- layer zoom range: 12-22
- interpolated expression:
  case when @zoom_level > 12 and @zoom_level <= 14 then 1
  when @zoom_level > 14 and @zoom_level < 18 then 2
  when @zoom_level >=18 then 4 end

work correctly when the exact zoom level is just less than 12, e.g. 11.8

So now we use floor when converting a zoom level to int so that the
styling rules work correctly.

Additionally, this adds a new @vector_tile_zoom expression variable
which contains the original double value of the calculated tile zoom
(not the integer one used for layer visibility). Many mapbox GL styling
rules rely on non-integer zoom levels for interpolation, e.g.

Case when @vector_tile_zoom >= 11.2 then 4 ...

This change allows for smooth interpolation between zoom levels which
matches the web map appearance, instead of "jumpy" fixed level interpolation
we previously had.
2020-09-16 12:08:39 +10:00
Even Rouault
079f340e99 [GUI] Identification result: fix warning 'CRITICAL Qt : QTableWidget: cannot insert an item that is already owned by another QTableWidget' (fixes #37215) 2020-09-16 09:09:44 +10:00
Denis Rouzaud
ab6676755b put back old code 2020-09-15 23:51:55 +02:00
Even Rouault
53c5c337ec [Algorithms] JoinByNearest: accept max_distance == 0.0 (fixes #38761) 2020-09-16 06:15:11 +10:00
nirvn
11471bf88c Also convert mapbox gl icon-size values 2020-09-16 06:13:54 +10:00
Nyall Dawson
1e715580af [gps] Make GPS bearing line ellipsoid aware, instead of just a straight line drawn from the GPS point 2020-09-16 06:13:07 +10:00
Nyall Dawson
76cf6029a2 QgsMapCanvasLineSymbolItem can render linestrings 2020-09-16 06:13:07 +10:00
Nyall Dawson
252149375c Fix reading saved color map file when an item's label contains
a comma character

Fixes #24112
2020-09-16 06:12:35 +10:00
Nyall Dawson
afd7698460 Extract utility functions for saving and reading raster color map definitions
to file to new QgsRasterRendererUtils class
2020-09-16 06:12:35 +10:00
Nyall Dawson
4668927ce4 Fix diagram settings are not correctly restored when loading a QML file
The settings were being restored, but the dialog was not updating
the reflect the loaded settings, so clicking OK caused the previous
settings to overwrite the loaded ones immediately.

Fixes #35343
2020-09-16 06:12:04 +10:00
Alessandro Pasotti
3f1975ffb8 Server: prevents a crash non non-existent RULE
Checks for nullptr node from RULE, fixes #38766
2020-09-16 06:11:09 +10:00
Denis Rouzaud
834bcc79c2 restore old code 2020-09-15 21:22:46 +02:00
Alessandro Pasotti
235864fbc3 Fix test data (add SRID) 2020-09-15 19:46:42 +02:00
Denis Rouzaud
c738609d91 update test projects (open and save) 2020-09-15 17:33:53 +02:00
Alessandro Pasotti
194305b418 Do not set detected SRID from rquested 2020-09-15 16:59:44 +02:00
Alessandro Pasotti
7094614f79 Typo 2020-09-15 16:59:04 +02:00
Even Rouault
da71202590
[GUI] Raster histogram: restore behavior before #35465 changes
Commits 98261bcfd4bd05948bd1b2a68c741c80e4e2e515 and ebdb546c1044b793d25097ddc04ed34b5fb6d956
for #35465 have changed the logic to compute the default number of bins
for the histogram. While appropriate in the context of #35465, that tends
to augment the number of bins, which is inappropriate for the raster histogram
chart, where beyond 1000, the chart becomes unreadable.

However I think the logic for plotting the raster histogram should probably be
revised, but I'm not clear how: ask the user for a number of bins and/or take
into account the width in pixels of the chart to determine the number of bins
(should that depend if the user has zoomed in... ?)
2020-09-15 16:01:46 +02:00
Denis Rouzaud
4afe021f64
fix msissing negation 2020-09-15 14:56:56 +02:00
Denis Rouzaud
7265d9de96 fix sip 2020-09-15 12:23:30 +02:00
Alessandro Pasotti
aa79a84017 Fix server WFS-T 1.1.0 wrong case in transaction response
Fixes #38558
2020-09-15 11:44:07 +02:00
Alessandro Pasotti
1560d9aea8 PG unrestricted geometry: trust SRID from geometry_columns
Fixes #38567 where the SRID was not detected if the table was empty.

Also: do not override the SRID passed explicitly in the data source
URI.

Note: the logic in the provider is becoming a bit convoluted, there
are too many corner cases, at least the test coverage is pretty
good.
2020-09-15 11:07:50 +02:00
Juergen E. Fischer
44b4a75a0a fix #38720 2020-09-15 09:51:00 +02:00
Denis Rouzaud
39b78b4006
install supervisor in focal deps image 2020-09-15 09:44:08 +02:00
Denis Rouzaud
e2622ea56d
Update qgis3-build-deps.dockerfile 2020-09-15 09:43:29 +02:00
Denis Rouzaud
1836737858
install supervisor in focal deps images 2020-09-15 09:41:12 +02:00
Denis Rouzaud
fb7f7ba697 follow up renaming enum keys 2020-09-15 09:36:15 +02:00
Nyall Dawson
3e00dd5f6f Fix string 2020-09-15 14:06:21 +07:00
Nyall Dawson
4e00ebd6b5 Spelling 2020-09-15 14:06:21 +07:00