65381 Commits

Author SHA1 Message Date
Daniel Minor
bfd309606b Use zero to represent not applicable precision
The documentation for QgsField states that zero should be used for
an unset precision, but the database providers use -1 in some places
for that purpose.

Fixes #38360
2020-09-09 16:00:25 +10:00
Nyall Dawson
8abcf10fb0 Highlight @zoom_level variable when present 2020-09-09 13:22:02 +10:00
Nyall Dawson
5df98cfb67 When editing vector tile symbols, correctly populate the @zoom_level
variable to match the current canvas zoom level

Makes it easier to write and debug data defined expressions based
on zoom level.
2020-09-09 13:22:02 +10:00
Nyall Dawson
92c3a88da4 [feature][vectortiles] Add checkbox for showing only visible rules
in the vector tiles labeling and renderer widgets

Makes it much easier to locate troublesome rules or work with
complex vector tile styling
2020-09-09 13:22:02 +10:00
Nyall Dawson
c821288f18 [vectortiles] Show current canvas vector tile zoom level in vector tile
renderer and labeling widgets

Makes it much easier to troubleshoot styles and determine which
rules are currently being applied in the canvas
2020-09-09 13:22:02 +10:00
Nyall Dawson
688194688b Show tooltips in vector tile renderer/labeling lists
Otherwise it can be a pain to see the full text for filters/names
2020-09-09 13:22:02 +10:00
Nyall Dawson
b44df6d016 Fix sip silliness
SIP builds are very fragile right now -- adding new classes can
cause the build to fail for no good reason. This seems to fix it.
2020-09-09 13:21:44 +10:00
Nyall Dawson
ca3d53d3c2 [vectortiles] Convert fill-translate property to simple fill offset 2020-09-09 13:02:36 +10:00
Nyall Dawson
8e7db034cb Convert letter spacing, max text length 2020-09-09 13:02:36 +10:00
Nyall Dawson
4547d1cb4f Convert repeating line symbols to QGIS marker line layers 2020-09-09 13:02:36 +10:00
Nyall Dawson
b6846295fe Add support for parsing and converting MapBox GL raster fills to QGIS symbology 2020-09-09 13:02:36 +10:00
Nyall Dawson
dcf8728494 [FEATURE][vectortiles] Allow users to optionally specify the URL
for a default style to be applied to connections when they are
first loaded into QGIS

When setting up a vector tile source connection, there's a new option
to enter a URL to a MapBox GL JSON style configuration. If one has
been entered, then that style will be applied whenever the layers
from the connection are added to QGIS.

Works also with Arcgis vectortileservice connections -- in this
case the URL overrides the default style configuration specified
in the server configuration.
2020-09-09 12:08:25 +10:00
Nyall Dawson
0f044f9cdc Fix conversion of mapbox gl line cap/join styles 2020-09-09 11:58:24 +10:00
signedav
3ea6dff2f9 tests for QgsRelationReferenceSearchWidget including selecting NULL and getting proper expression 2020-09-09 11:02:22 +10:00
signedav
ab523dfed0 support selecting NULL in relationreference search widget if allowNull is active 2020-09-09 11:02:22 +10:00
signedav
a89765e9ce default flag on search widget for relation reference so it's selected when the value changes for the first time. reported here #37843 2020-09-09 11:02:22 +10:00
Nyall Dawson
029f0679dc [FEATURE][symbology] Allow data-defined offset for fill symbol layers
Any fill symbol layer which supports offsetting polygons (i.e. simple
fills, raster image fills, shapeburst and gradent fills) now allows
for data-defined offsets
2020-09-09 10:40:07 +10:00
Nyall Dawson
014de9614d Remove unused variables 2020-09-08 15:45:58 +10:00
Nyall Dawson
411d1d33e3 Auto launder URI 2020-09-08 15:45:58 +10:00
Nyall Dawson
142cda5ef4 [feature][vectortiles] Allow using authentication system and setting
custom referer string for vector tile connections
2020-09-08 15:45:58 +10:00
Nyall Dawson
6901d6f68a After loading an ArcGIS Vector Tile Service layer, automatically load
and set the default style and labels for the layer

Also populate the layer metadata with the available content from the
service definition (e.g. layer attribution)
2020-09-08 15:45:58 +10:00
Nyall Dawson
9114e91ff6 [feature][vectortiles] Add option to create connections for ArcGIS Vector
Tile Services to easily load vector tile layers from these servers

Adds new options in the Vector Tiles browser tree context menu
and Data Source Manager to create a connection to an ESRI VectorTileServer.
When loading the layer from the connection, the tile server parameters
will be automatically setup to suit the layer source.
2020-09-08 15:45:58 +10:00
Matthias Kuhn
b0dd568ca6
Merge pull request #38636 from rduivenvoorde/fix38071
Fix #38071: Clear mTreeInitialExpand and search upon new connection
2020-09-08 07:27:44 +02:00
Matthias Kuhn
5e9ac5b79b
Merge pull request #38601 from rduivenvoorde/temporalExtentsChanged_signal
Add temporalExtentsChanged signal to QgsTemporalNavigationObject
2020-09-08 07:17:50 +02:00
Denis Rouzaud
e31d4cd202
allow to define max number of results for some locator filters (#38628)
this allows to define:
*  maximum number of results for active layer
* global maximumum filter + per layer maximum numer of results of all layers features filter
2020-09-08 07:00:03 +02:00
Damiano Lombardi
a27420e7c8 Fix cmake config to find qca headers on Opensuse tumbleweed 2020-09-08 07:11:03 +10:00
Richard Duivenvoorde
edcc60857f Clear mTreeInitialExpand and search upon new connection 2020-09-07 17:55:20 +02:00
Richard Duivenvoorde
32b83a1271 Remove redundant check 2020-09-07 15:43:14 +02:00
nirvn
27422fd717 [ui] Improve the load style dialog
- Remove harmful horizontal spacer to fix expanding
widget issues and location of help button
- Relocate the file widget to sit on top of the category
list (to harmonize with the save style dialog)
2020-09-07 19:23:48 +07:00
Richard Duivenvoorde
34c035631f Implement != operator, update sip 2020-09-07 12:12:34 +02:00
Alessandro Pasotti
5c241c84be
Merge pull request #38560 from elpaso/server-standalone-post-data
Fix unreported server standalone POST data handling
2020-09-07 08:26:15 +02:00
Nyall Dawson
47fb11a478 Doxygen 2020-09-07 16:00:25 +10:00
Nyall Dawson
77492b1ea6 [FEATURE][vectortiles] Allow users to load MapBox GL Json style
configuration files when importing style for vector tile layers

From the standard layer properties -> Load Style dialog users
are now given the option of selecting a JSON MapBox GL style
file.
2020-09-07 16:00:25 +10:00
Nyall Dawson
ff883e0ab1 Fix alignment of buttons in vector layer load style dialog 2020-09-07 16:00:25 +10:00
Nyall Dawson
c359c9e272 [vectortiles] When importing style from QML, give option to pick
categories to import

Allows importing just symbology or just labels from a stored
vector tile style
2020-09-07 16:00:25 +10:00
Nyall Dawson
144ef62e0f Fix build 2020-09-07 16:00:25 +10:00
Nyall Dawson
ba23708f12 Start generalising QgsVectorLayerLoadStyleDialog to also handle other
map layer types
2020-09-07 16:00:25 +10:00
Nyall Dawson
d75ec1ab77 [vectortiles] Respect categories flags when saving/loading layer styles 2020-09-07 16:00:25 +10:00
Nyall Dawson
42e8903969 Fix crash 2020-09-07 16:00:25 +10:00
Nyall Dawson
0ea5f57c7c Generalise QgsMapLayerStyleCategoriesModel to also handle vector tile layers 2020-09-07 16:00:25 +10:00
Nyall Dawson
c4b344d47f Allow converting more types of MapBox GL text-field configuration 2020-09-07 14:36:00 +10:00
Nyall Dawson
1d1e1cc29d Fix label priority when using non-pixel sizes 2020-09-07 13:20:55 +10:00
Nyall Dawson
93d25d61e7 Fix conversion of multiplied pixel sizes for some interpolated values, improve interpolation expression results 2020-09-07 13:20:55 +10:00
Nyall Dawson
4ba21e0c22 Add metadata editing tab to vector tile layer properties
These layers can also have useful metadata which users may want to
set, e.g. access restrictions and attribution information
2020-09-07 12:52:14 +10:00
Nyall Dawson
88f9daee09 [vectortiles] Make information tab appearance/content consistent
with other layer types
2020-09-07 12:52:14 +10:00
Nyall Dawson
9eea1c0daf Fix inconsistent margins in vector tile layer properties window 2020-09-07 12:52:14 +10:00
Nyall Dawson
1de9254917 Fix unreported crash when clicking edit button in vector tile
renderer/labeling settings and no row is selected
2020-09-07 12:00:14 +10:00
Nyall Dawson
8976fda4cf
Merge pull request #38594 from nyalldawson/fix_38562_project_load
Fix project never completes loading layers when a layer has a missing dependancy
2020-09-07 11:46:24 +10:00
Nyall Dawson
dd82478e26 If a project is missing a layer dependancy, don't abort out loading it
Otherwise we've effectively destroyed the project. Rather, continue
to load whatever layers we possibly can

Fixes #38562
2020-09-07 09:34:52 +10:00
Nyall Dawson
08561d3717 Fix project load task never completes when project fails layer
dependancy tests

Refs #38562
2020-09-07 09:33:50 +10:00