7360 Commits

Author SHA1 Message Date
Nyall Dawson
278ccb8e85 Fix crash when trying to use meta enums on some platforms
Keeping references to static meta objects and meta enums around seems
to avoid the crash
2020-11-14 14:37:38 +10:00
Nyall Dawson
0056bb1580 Proxy QgsRasterLayer::setOpacity/opacity to QgsRasterRenderer::setOpacity
This allows layer opacity for raster layers to be set and retrieved using
the exact same API as all other map layer types
2020-11-13 21:27:06 +10:00
Nyall Dawson
f3648ba3f6 Move getters and setters for layer opacity from QgsVectorLayer to QgsMapLayer
All the logic for rendering non-opaque layers is handled in a layer
type agnostic way already, so this just allows the existing handling
to be used for mesh/point cloud/vector tile/etc layers also
2020-11-13 21:27:06 +10:00
Alessandro Pasotti
8c06a1ac43
Merge pull request #39872 from elpaso/hidden-layers-bugfix
Hidden layers bugfix
2020-11-13 10:40:14 +01:00
Alessandro Pasotti
3f11294dfd
Merge pull request #39778 from elpaso/bugfix-gh39757-shared-locale-sort
Bugfix gh39757 shared locale sort
2020-11-13 10:38:49 +01:00
Even Rouault
bd32aa8fbb
Merge pull request #39942 from rouault/ogrprovider_featurecount
OGR provider: feature count improvements
2020-11-12 18:49:25 +01:00
Nyall Dawson
5158922428 Default to a RGB renderer for point clouds with Red/Green/Blue attributes present 2020-11-13 02:59:05 +10:00
Nyall Dawson
9b8da23896 Add missing file 2020-11-13 02:59:05 +10:00
Nyall Dawson
948a7dc9bc Move some common code to base class 2020-11-13 02:59:05 +10:00
Nyall Dawson
3ca572c0e3 2D RGB Renderer for point clouds 2020-11-13 02:59:05 +10:00
Nyall Dawson
a6d61c000a Start on registry for 2d point cloud renderers 2020-11-13 02:59:05 +10:00
Nyall Dawson
70e6cc7304 Implement QgsMapLayer methods required for saving/loading renderer properties 2020-11-13 02:59:05 +10:00
Nyall Dawson
1feccd1ea1 Add more methods to QgsPointCloudRenderer class 2020-11-13 02:59:05 +10:00
Nyall Dawson
1a2d6ec5d5 Add scale, offset and counter for points rendered to QgsPointCloudRenderContext 2020-11-13 02:59:05 +10:00
Nyall Dawson
2c59facf0f Don't copy dox from base class methods 2020-11-13 02:59:05 +10:00
Nyall Dawson
0169347f5b Hookup API for point cloud data providers to create default renderers for associated layers 2020-11-13 02:59:05 +10:00
Nyall Dawson
c2fe0d3749 Hook QgsPointCloudRenderer into QgsPointCloudLayerRenderer (non-functional for now) 2020-11-13 02:59:05 +10:00
Nyall Dawson
abbd634b44 API shell for QgsPointCloudRenderer 2d point cloud renderer 2020-11-13 02:59:05 +10:00
Nyall Dawson
8bb7edbbc6 Expose QgsPointCloudBlock to Python 2020-11-13 02:59:05 +10:00
Nyall Dawson
5924ff7cf5 Move guts of qgspointcloudrenderer.* to qgspointcloudlayerrenderer.* 2020-11-13 02:59:05 +10:00
Even Rouault
32608075e5
Add QgsDataProvider::ReadFlag::SkipFeatureCount and implement it in OGR provider to avoid featureCount() to be called 2020-11-12 15:28:43 +01:00
Nyall Dawson
38e6b6b93e Add proxy model for filtering QgsPointCloudAttributeModel by attribute type 2020-11-12 17:33:37 +10:00
Nyall Dawson
d8f6a2e152 Add attribute index role to point cloud attribute model 2020-11-12 17:33:37 +10:00
Nyall Dawson
b9a7a365c0 Add attributes() member to QgsPointCloudDataProvider, QgsPointCloudLayer
Gives direct access to point cloud attributes
2020-11-12 17:33:37 +10:00
Nyall Dawson
819fc50b0e Don't use generic "QgsMapLayer" class name in map layer Python repr
strings

Rather use actual layer subclass type, e.g. QgsVectorLayer
2020-11-12 16:05:52 +10:00
Even Rouault
af9da65c23 Add QgsLayerItem::iconForWkbType() and QgsWkbTypes::translatedDisplayString()
and use them to avoid a lot of copy&paste in "New layer XXXX" dialogs and
providers.
2020-11-12 10:19:55 +10:00
signedav
f360838fbd
Merge pull request #39527 from signedav/offlineindicator
Indicator for offline layers
2020-11-11 16:16:21 +01:00
Alessandro Pasotti
cb43bd8bd2 Fix mutex visibility 2020-11-11 10:54:14 +01:00
nirvn
55eaaa7484 [layer tree] Fix corrupted tree when filter (by extent) is on with legend widget(s) enabled 2020-11-11 13:41:47 +07:00
vcloarec
0a2af53c28 fix spelling doc ans SIP 2020-11-10 15:11:48 +01:00
Alessandro Pasotti
8d7f540427 Fix tree model loading from xml 2020-11-10 14:44:34 +01:00
Nyall Dawson
8d54dc8f9a Fix sip build 2020-11-10 02:17:10 +10:00
Nyall Dawson
59601bf17d Add QgsPointCloudAttributeComboBox widget
A reusable widget for selecting an attribute from a point cloud layer
2020-11-10 02:17:10 +10:00
Nyall Dawson
aa428a060e Add QgsPointCloudAttributeModel model for display of attributes in
a point cloud layer
2020-11-10 02:17:10 +10:00
Nyall Dawson
d0d7aa6ca9 Expose QgsPointCloudAttribute/QgsPointCloudAttributeCollection to sip 2020-11-10 02:17:10 +10:00
Nyall Dawson
d5ef807ecd Add some more useful methods to QgsPointCloudAttribute 2020-11-10 02:17:10 +10:00
Alessandro Pasotti
02552e489a Raster shader: store label precision 2020-11-09 15:40:43 +01:00
nirvn
dcc53852c4 [temporal] Update the identify tool to take temporal range context into account 2020-11-09 13:10:55 +07:00
Nyall Dawson
9c55b8bd6f Add Python repr for QgsProviderRegistry::ProviderCandidateDetails 2020-11-07 07:57:00 +10:00
Nyall Dawson
51762dd0ef Add API to QgsProviderMetadata to determine valid layer types
which the provider can use to open a specified URI
2020-11-07 03:22:22 +10:00
Nyall Dawson
8254b7dd1f Add capabilities flags for QgsProviderMetadata
So that callers can determine which functionality in the metadata
is implemented for a particular object
2020-11-07 03:22:22 +10:00
signedav
9e5a67f9e7 sipified qgsmaplayer 2020-11-06 17:35:04 +01:00
Alessandro Pasotti
3e398e2ab4
Merge pull request #39577 from elpaso/hidden-layers
Hidden layers
2020-11-05 16:13:10 +01:00
Alessandro Pasotti
26a9cdf5fd Hidden layers -> Private layers 2020-11-05 12:59:27 +01:00
Alessandro Pasotti
414d938117 Fix raster paletted and pseudocolor various issues 2020-11-05 12:11:24 +01:00
Nyall Dawson
9ee235cfbd Spelling 2020-11-05 20:16:48 +10:00
Nyall Dawson
787230e460 Spelling 2020-11-05 20:16:48 +10:00
Nyall Dawson
d51e752e04 Add utility function to extract wildcards from a filter string 2020-11-05 20:16:48 +10:00
Nyall Dawson
04dc5f5e56 Add API for providers to test whether a particular URI should be
blocklisted and hidden from the QGIS interface, e.g. it is an internal
detail only (or sidecar file) and shouldn't be shown in things like the
browser panel

And adds blocklists for .aux.xml, .shp.xml and .tif.xml files for
the ogr/gdal providers
2020-11-05 20:16:48 +10:00
Nyall Dawson
7717a20af7 Mark some QgsProviderMetadata methods as const 2020-11-05 20:16:48 +10:00