59687 Commits

Author SHA1 Message Date
Nyall Dawson
322eb3139f More test updates 2019-12-26 13:18:10 +10:00
Nyall Dawson
f44c229405 Fix dox test 2019-12-26 13:18:10 +10:00
Nyall Dawson
ad825c9126 Test updates 2019-12-26 13:18:10 +10:00
Nyall Dawson
1899f90a04 [needs-docs] Rework label engine "maximum line candidates" and "maximum polygon candidates"
settings and logic

The previous approach of a single fixed value which applied to ALL line and ALL polygon
features was... not ideal. It meant that all line features would be assigned the same
number of candidates, regardless of length. So a road of length 1 cm on the rendered
map would have an identical number of candidates as a 30cm road covering the length of the
whole map!! This resulted in both a lot of wasted calculations (generating a ridiculous
number of candidates for small lines at barely discernable distances from each other)
AND an insufficient number of candidates for lengthy features (resulting in worse label
placement for these features).

(The situation was similar, but even worse for polygons)

Now, the setting is reworked to "Number of line candidates per cm" and "number of
polygon candidates per cm2". This means that small features get much less candidates,
and large features get much more features! Both a win for map rendering speed in many
circumstances AND good cartography... now that's a nice Christmas gift for QGIS :)
2019-12-26 13:18:10 +10:00
Nyall Dawson
df102a98da [needs-docs] Drop setting for maximum number of point label candidates
This setting is easily replaced by automatically calculated, optimised
values for each separate point plcaement mode individually
2019-12-26 13:18:10 +10:00
Alessandro Pasotti
cd8b6be25d Fix stored expression remove 2019-12-25 23:46:35 +01:00
Matthias Kuhn
e23089ee3f Fix dxf test 2019-12-24 19:26:14 +01:00
Matthias Kuhn
f3e309406f Fix labeling offset 2019-12-24 17:39:51 +01:00
Samweli
e8c3a8c987 checking with case-insensitive the metadata tags, as suggested by @timlinux and @nyalldawson 2019-12-23 22:11:06 +01:00
Matthias Kuhn
10532accef
Code style 2019-12-23 16:38:00 +01:00
Matthias Kuhn
4f625ce733
Merge pull request #33476 from dmarteau/fix-project-relation-manager
Fix inconsistent dependency to project in QgsRelation/QgsRelationManager
2019-12-23 07:23:08 +01:00
Nyall Dawson
fb5b440d5d [FEATURE] Allow dropping a map layer from the layer tree onto
a projection selection widget to set the projection to match that layer

Just a little timesaving shortcut!
2019-12-23 05:17:40 +10:00
Nyall Dawson
1db193ed5f Add missing file 2019-12-22 20:33:55 +10:00
Nyall Dawson
97e212d753 Add "help" and "reset to defaults" actions to label engine settings panel 2019-12-22 20:33:55 +10:00
Nyall Dawson
d5821feb9f [api] Add api to allow panel widgets to show a "hamburger" style
menu in the top right of the panel

This gives the panel a place to add menu actions like help links
for the panel.
2019-12-22 20:33:55 +10:00
Nyall Dawson
16b981c287 Make label engine project settings dialog open as an inline panel
in the styling dock

Means that you can get instant feedback on changes without having to
close the dialog and refresh the map
2019-12-22 20:33:55 +10:00
Samweli
965cb1344e resolved conflicts 2019-12-21 22:18:44 +03:00
Samweli
93537d3a7e resolving conflicts with master branch 2019-12-21 22:11:56 +03:00
Matthias Kuhn
59c777fd60
Merge pull request #33498 from Samweli/wms_code_convention_refactor
Code refactor on wms capabilities files
2019-12-21 14:14:33 +01:00
David Marteau
907b27309c
Add missing parameter documentation 2019-12-21 13:28:31 +01:00
Matthias Kuhn
5eaaf739b5
Ignore test file in spell check 2019-12-21 12:30:51 +01:00
Samweli
d334e4705b refactored wms capabilities files to the project standards 2019-12-21 12:03:58 +03:00
David Marteau
5bf8d2cd26
Pass project when creating relation from Xml
Fix dependency inconsistency to project from QgsRelationManager
    by forcing  'QgsRelation::createFromXml' to rely on project passed
    to 'QgsRelationManager' instead of using 'QgisProject::instance()'
2019-12-20 23:56:17 +01:00
Matthias Kuhn
602febc39f
Merge pull request #33491 from m-kuhn/windows-server-crash-fix
[server][windows] Fix crash on startup
2019-12-20 20:15:48 +01:00
Nyall Dawson
2371b5d50a Don't run a test under proj 6 2019-12-21 05:07:39 +10:00
Nyall Dawson
3b4ccb42c0 Disable test on proj < 6 2019-12-21 05:07:39 +10:00
Nyall Dawson
9902b3cb14 Skip a test on travis 2019-12-21 05:07:39 +10:00
Nyall Dawson
8e64277c1c [FEATURE][processing] Allow selection of specific coordinate operation
to use when reprojecting vector layers via the "Reproject Layer" algorithm

On proj 6+ builds only!

Allows users to set a specific operation to use for a particular reprojection
task, instead of always forcing use of the current project's transformation
settings.

Useful when reprojecting a particular layer and control over the exact transformation
pipeline is required.
2019-12-21 05:07:39 +10:00
Nyall Dawson
6bb1ad034b Auto select operation in processing widget based on project transform context 2019-12-21 05:07:39 +10:00
Nyall Dawson
521080cd13 Add API to auto set QgsCoordinateOperationWidget selection to match
a QgsCoordinateTransformContext's state
2019-12-21 05:07:39 +10:00
Nyall Dawson
afc24b7957 Only expose coordinate operation parameter type on Proj 6+ builds 2019-12-21 05:07:39 +10:00
Nyall Dawson
b11cb7cce7 Correctly resolve project layers to CRS values in widget 2019-12-21 05:07:39 +10:00
Nyall Dawson
c59af52c27 No margins 2019-12-21 05:07:39 +10:00
Nyall Dawson
dbc175f131 Add test for proj < 6 logic 2019-12-21 05:07:39 +10:00
Nyall Dawson
f804a0a3a1 Dumbass Travis build 2019-12-21 05:07:39 +10:00
Nyall Dawson
6408aaa05a Fix build on crufty proj 2019-12-21 05:07:39 +10:00
Nyall Dawson
8531bc87ac Unit tests 2019-12-21 05:07:39 +10:00
Nyall Dawson
90f3abfcad [processing] Add gui widget wrappers for coordinate operation parameter 2019-12-21 05:07:39 +10:00
Nyall Dawson
84f8891b60 Fix warnings 2019-12-21 05:07:39 +10:00
Nyall Dawson
b8b668888c Allow algorithms to link to multiple depandant parameters in modeler scene 2019-12-21 05:07:39 +10:00
Nyall Dawson
3e9aaaa6ea Move variant to CRS resolution out to QgsProcessingUtils for wider
usability
2019-12-21 05:07:39 +10:00
Nyall Dawson
fe622dd24a [API][processing] New parameter type for coordinate operations
Allows selection of the proj coordinate operation to use when
reprojecting between two CRSes
2019-12-21 05:07:39 +10:00
Nyall Dawson
c04d4faf7f Allow double-clicking on coordinate operation to quickly select them 2019-12-21 05:07:39 +10:00
Nyall Dawson
96645261e5 Fix changing source or dest CRS when editing a coordinate operation
fails to correctly save the new operation
2019-12-21 05:07:39 +10:00
Nyall Dawson
f0f63d3802 Use QgsCoordinateOperationWidget in QgsDatumTransformDialog 2019-12-21 05:07:39 +10:00
Nyall Dawson
0cd49ca744 Avoid duplicate signals, add unit test 2019-12-21 05:07:39 +10:00
Nyall Dawson
cb8b4a8831 Move guts of datum transformation dialog to a new standalone widget
QgsCoordinateOperationWidget

This widget shows a list of the available operations between a source
and destination CRS along with their properties
2019-12-21 05:07:39 +10:00
Matthias Kuhn
ffd42d9dd7 [server][windows] Fix crash on startup 2019-12-20 18:15:53 +01:00
Matthias Kuhn
2a01772e46
Merge pull request #33436 from signedav/relating_values
List referenced layer values in Expression Builder
2019-12-20 17:29:10 +01:00
Samweli
e8fd26cc62 update on wcs docstring 2019-12-20 13:43:48 +03:00