214 Commits

Author SHA1 Message Date
Nyall Dawson
8c9d008413 Spelling 2021-06-25 13:53:52 +10:00
Nyall Dawson
2d489737e2 [feature] Add a "redraw layer only" temporal mode for raster layers
Just like the equivalent setting for vector layers, this option
causes a raster layer to be redrawn on each new animation frame. It's
useful when the layer uses time-based expression values (e.g. data
defined renderer opacity, to fade/in out a raster layer)
2021-06-25 13:53:52 +10:00
Nyall Dawson
c013c78285 [api] Attach QgsPropertyCollection to QgsRasterPipe to allow
for data-defined raster pipeline properties
2021-06-25 13:53:52 +10:00
Nyall Dawson
f62ddb37a2 Promote QgsRasterPipe enums to enum classes in Qgis namespace
and add forward declares where possible
2021-06-23 17:30:47 +10:00
Nyall Dawson
e2b7f0712e Improve QgsRasterPipe docs 2021-06-23 17:30:47 +10:00
nirvn
01fe6c5b77 [FEATURE][rasters] Invert colors' raster rendering filter option 2021-06-20 21:29:55 -07:00
Blottiere Paul
a36e60884d Skip method from sip binding 2021-06-17 22:28:07 +02:00
Blottiere Paul
0924ae1b4e Update sip 2021-06-17 22:28:07 +02:00
Nyall Dawson
005a0ad093 Sipify 2021-05-27 13:44:15 +10:00
Nyall Dawson
b4fea529f1 Promote Qgis::DataType to enum class 2021-05-27 13:44:15 +10:00
Matthias Kuhn
ef3d9a2c32
Merge branch 'master' into unvirtualize-setdatasource 2021-05-05 08:01:26 +01:00
Mathieu Pellerin
8299547682 Address review 2021-05-03 20:43:37 +07:00
Mathieu Pellerin
8d1371f3e9 [layouts] Respect XYZ output zoom level when previewing map items in the layout designer 2021-05-03 18:01:24 +07:00
rldhont
4afa66af30 [API] Unvirtualize layer setDataSource method
Changes in the layer API:
* The setDatasource() methods become non-virtual public method
* The virtual private setDataSourcePrivate() method is defined and the provider setDataSource implementations have been moved to this new virtual method
2021-04-26 17:14:07 +02:00
Nyall Dawson
7715a12916 Fix spelling 2021-03-31 10:59:47 +10:00
Nyall Dawson
b85614e67e Spelling 2021-03-31 10:59:47 +10:00
Nyall Dawson
c4c8aab7b4 Improve documentation for raster pyramid creation methods/classes
The PyQGIS documentation for this workflow was very poorly documented
2021-03-31 10:59:47 +10:00
Nyall Dawson
929b7086b1 If a wms-t layer is the first temporal layer loaded into a project,
use the wms-t capabilities to set a sensible default time step
for the temporal controller (just like we do for mesh layers)
2021-03-25 17:55:04 +10:00
Nyall Dawson
cae8aae849 Add method to collate all used time ranges for layers in project
Unlike the existing methods, this new method does not return
a single overall time range, but rather (possibly with gaps)
containing all time ranges were we know data actually exists
in the project.
2021-03-25 13:35:52 +10:00
Nyall Dawson
894283b994 Add "allAvailableTemporalRanges" getter/setter to QgsRasterDataProviderTemporalCapabilities
So that we can store and retrieve a list of all available temporal
ranges for a raster data provider when that range of dates is
non-contiguous
2021-03-25 08:01:51 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Alessandro Pasotti
7b2fc4c1f8 More doxy nonsense, pt 2 2021-02-19 08:15:29 +10:00
Nyall Dawson
13fbcd1cff Expose additional GDAL supported resampling methods as options
for "early" raster resampling

Notably, this adds the "Average" resampling as an option for
early resampling methods. (A nice side effect is that we also
get mode, cubic spline, Lanczos, ... for free!)

Fixes #40746
2021-02-01 07:58:20 +10:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Denis Rouzaud
2cc632ee5d follow up QVariant 2021-01-03 20:16:56 +01:00
Mathieu Pellerin
14136a15cb
[ui] Insure color/value changes in the colormap tree are reflected in the color ramp button of the color ramp shader widget (#40671) 2020-12-28 20:01:48 +07:00
Juergen E. Fischer
7719668453 fix build (take II; followup 1c9d89a7c3d) 2020-12-19 22:57:54 +01:00
Nyall Dawson
a0accab0c2 Add QgsColorRampLegendNodeSettings to QgsSingleBandGrayRenderer 2020-12-18 12:03:26 +10:00
Nyall Dawson
45d2edda16 QgsColorRampShader can have color ramp legend node settings 2020-12-18 12:03:26 +10:00
Nyall Dawson
e48286c0d4 Pass QgsReadWriteContext onto QgsColorRampShader read/writeXml methods 2020-12-18 12:03:26 +10:00
Nyall Dawson
60aea700d1 Forward declare more classes 2020-12-18 12:03:26 +10:00
Nyall Dawson
0d7b95fa67 Generate more descriptive legends for raster layers
- include band name details where its useful
- create a legend for multiband raster renderer
2020-12-17 04:57:56 +10:00
Nyall Dawson
d7ce1a3167 Create color ramp legend nodes for pseudocolor or grayscale rasters or
point clouds using a Linear color ramp based renderer
2020-12-16 18:46:53 +10:00
Matthias Kuhn
0d55e61145 Add QgsRasterDataProvider::Capability::ReloadData for gdal, ams and wcs provider 2020-12-14 09:02:16 +10:00
Nyall Dawson
f21ca86a91 Cleanup api, fix crash 2020-12-07 11:42:39 +10:00
Nyall Dawson
60ce8eb9af Use new api to return nice legend items for raster contour renderer
Instead of no legend, we now create a legend with the contour symbols!
2020-12-07 11:42:39 +10:00
Nyall Dawson
6932985d82 Add api to allow raster layer renderers to create different legend node types,
instead of forcing them to always use the solid color blocks created by QgsRasterSymbolLegendNode
2020-12-07 11:42:39 +10:00
NEDJIMAbelgacem
7f26477c81 add comparison operator for QgsColorRampShader 2020-12-03 22:27:20 +01:00
Nyall Dawson
28c2788989 Spelling 2020-11-16 19:38:07 +10:00
Nyall Dawson
bf8ccad89e Add contrast enhancement options for point cloud RGB renderer 2020-11-16 19:38:07 +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
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
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
Alessandro Pasotti
02552e489a Raster shader: store label precision 2020-11-09 15:40:43 +01:00
Nyall Dawson
add4fec46a Improve QgsRasterIdentifyResult docs 2020-10-26 13:26:43 +10:00
Nyall Dawson
d3adc10ec3 Move some todos so they don't sit between member doxygen and declaration
Sipify doesn't handle this, and drops off the docstring from the python method
2020-10-21 09:32:15 +10:00
Nyall Dawson
746ee315bd Fix boolean literal presentation in dox/PyQGIS docs 2020-10-16 16:03:26 +10:00
Nyall Dawson
4ee9feb56b Sipify 2020-10-09 11:20:09 +10:00
Alessandro Pasotti
09fe306f80 Raster paletted/unique float support
Fixes #39058 an adds some small improvements in the
progress feedback.
2020-10-06 08:39:26 +10:00
vcloarec
299709994d change return type of QgsRasterDataProvider::clone() 2020-10-03 05:57:18 +10:00