20 Commits

Author SHA1 Message Date
Nyall Dawson
74400c7ff8 Some fixes to numbered list handling in dox/PyQGIS API 2020-06-15 13:43:58 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Martin Dobias
b2da49b78b [vector tile] Fix issue with disappearing features (fixes #36982)
The issue was that renderer/labeling were only keeping "their" required fields,
but the final fields may have been extended by the other, making the field indices
cached in expressions invalid.

The fix is to keep the final QgsFields around and avoid creating those QgsFields on-the-fly
from previously requested fields.
2020-06-11 14:39:45 +02:00
Nyall Dawson
ae42850d08 Sipify 2020-06-11 13:29:59 +10:00
Nyall Dawson
c795ddb1e9 Updates 2020-06-11 13:29:59 +10:00
Martin Dobias
5d59048387 [vector tile] Add basic GUI support for labeling configuration
This adds a new tab in the layer styling dock widget for vector tile layers.

The new QgsVectorTileBasicLabelingWidget class is based on the code used for QgsVectorTileBasicRendererWidget
2020-05-14 21:14:27 +02:00
Martin Dobias
ac8b956640 Allow relative paths to vector tile layers in projects (fixes #36023) 2020-05-04 13:05:19 +02:00
Martin Dobias
c2a7f25829 Improvements to the vector tile writer
- filtering of input layers by expressions and min/max zoom level
- custom layer names in the output
- writing of custom metadata for MBTiles output
- auto-calculate output extent (instead of defaulting to the whole world's extent)
- passing transform context to the encoder
2020-04-27 12:09:25 +02:00
Martin Dobias
6f746b557e Add writing of vector tiles to MBTiles container 2020-04-25 14:31:10 +02:00
Martin Dobias
0973da69b1 Nyall's review suggestions, test fixes, windows build fix 2020-04-21 13:28:56 +02:00
Martin Dobias
da4764472e sip fix 2020-04-21 13:28:56 +02:00
Martin Dobias
41db54aa16 [FEATURE] Vector tiles writer API
Initial work... Currently supporting output to a directory based on XYZ template, using Mapbox vector tiles encoding.

New classes:
- QgsVectorTileMVTEncoder - low-level class that operates on a single tile, converts vector features to raw tile byte array, for internal use
- QgsVectorTileWriter - higher level class that manages generation of multiple tiles, for use by clients
- QgsVectorTileMVTUtils - assorted helper functions for MVT encoding/decoding
2020-04-21 13:28:56 +02:00
Martin Dobias
8ec0dc53fe Few bits from the review 2020-04-15 08:33:29 +10:00
Martin Dobias
f8a6b9fa3a Add support for labeling of vector tile layers 2020-04-15 08:33:29 +10:00
Martin Dobias
f713cc3559 Vector tiles: styling panel integration + widget for basic renderer 2020-04-07 13:25:49 +02:00
Martin Dobias
9e80f59f20 Use random colors, fix sip includes, fix warnings in server 2020-03-27 19:41:18 +01:00
Martin Dobias
3c33bf7863 Added a basic rendering test 2020-03-27 16:36:19 +01:00
Martin Dobias
5ec1890643 Moved to proper QgsMapLayer subclass + icon + optional tile borders 2020-03-27 12:08:40 +01:00
Martin Dobias
617db5919a Doxygen, spelling, sip fixes 2020-03-26 21:08:01 +01:00
Martin Dobias
bbc6af5ded Fixes to python bindings + some bits from code review 2020-03-26 19:31:00 +01:00