308 Commits

Author SHA1 Message Date
Nyall Dawson
f9ad9e4e25 Documentation 2024-02-02 04:59:04 +10:00
Nyall Dawson
6aae7380cd Cleanup int arguments which should be Qgis::RasterBandStatistic values
And ensure python compatibility remains intact
2024-02-02 04:59:04 +10:00
Nyall Dawson
503a95a1a1 Move enums to Qgis namespace for consistency 2024-02-02 04:59:04 +10:00
Nyall Dawson
179e2ca59a Promote some more enums to enum class to fix PyQt6 support 2024-02-02 04:59:04 +10:00
Nyall Dawson
fae7c83437 Fix doxygen 2024-01-31 17:16:18 +10:00
Nyall Dawson
f1e3ba9e2d Use correct sip method
And use INDENT-OFF annotations to avoid astyle messing up
formatting of enum with inline macros
2024-01-31 13:48:49 +10:00
Nyall Dawson
23f3af4290 Use enum classes for QgsProperty property keys
Should fix usage on Qt 6 builds
2024-01-31 13:48:49 +10:00
bdm-oslandia
fa2fe8f776 fix(QgsDataProvider): migrate members from QgsRasterDataProviderElevationProperties to parent class
This allows provider classes to have a useable elevation properties class, for example to know
if the provided data is 3D or 2D. This will be useful to compute 3D/2D extent.
2023-11-16 14:59:16 +01:00
Nyall Dawson
89f40b05f8 Move ::htmlMetadata from some data provider subclasses up to base class
Allows all layer types (including vector, mesh and point cloud)
providers to show custom metadata in the layer properties dialog.
Previously this was limited to raster/vector tile and tiled
scene layers only.

Also fix const for a lot of raster providers as a consequence.
2023-11-08 21:28:09 +10:00
Alessandro Pasotti
8b5a2b55d3 Move comment 2023-07-17 15:53:30 +02:00
Alessandro Pasotti
96e7f9eb5a Show raster band description
Fix #53831
2023-07-14 17:41:26 +02:00
Nyall Dawson
3641670b01 Add optional tile padding boundary to QgsRasterIterator
Allows returned blocks to overlap by the specified number of pixels.
Useful for algorithms which need to consider neighbouring pixels in
a tiled approach, without tile boundary artefacts.
2023-07-12 19:04:59 +10:00
Nyall Dawson
8838f894ef Fix accidental api break 2023-06-15 08:28:44 +10:00
Nyall Dawson
0601164102 Add missing documentation to QgsRasterFileWriter 2023-06-15 08:28:44 +10:00
Nyall Dawson
26493802dc Move some QgsRasterFileWriter enums to qgis 2023-06-15 08:28:44 +10:00
Julien Cabieces
cdd3a3a5bb Fixes #53412 : transfer back rasterblock back to python caller 2023-06-13 04:56:13 +10:00
Nyall Dawson
4c6018de92 Add option to limit the extent of "fill above" and "fill below"
elevation ranges for a layer in elevation profile plots

Fixes #51010
2023-05-22 14:48:57 +10:00
Nyall Dawson
55226f56ad Use some heuristics to guess when a raster layer looks like a DEM
and auto-set the "represents elevation" flag for these

We do this when:

- the layer contains only one band
- the data type is int or float (not complex, rgb or byte)
- the layer doesn't have an attribute table
- there's something "dem-like" in the layer's name (ie 'elevation',
  'dem', 'height', 'srtm')

This should help make the elevation profile tool more user-friendly,
as these layers will be included in the profiles by default
2023-05-19 23:06:21 +10:00
Nyall Dawson
e036570c77 Setup framework for data provider's to provide information about
elevation related properties to their layers

And use this to ensure that wms tiles with maptiler terrain
or terrarium terrain interpretation are always included by
default in elevation profile plots.

Most specifically, this ensures that projects containing the
out-of-the-box "Mapzen Global Terrain" layer will be automatically
included in elevation plots.
2023-05-19 23:06:21 +10:00
Nyall Dawson
50c76929e1
Followup 30700f1, ensure links to Qgis members are set in docstrings 2023-03-31 10:46:24 +10:00
Mathieu Pellerin
5813b65638 [api] Add non-geo image tag writing support in QgsExifTools 2023-02-06 07:11:53 +07:00
Nyall Dawson
32a84b1003 Update docs 2023-02-01 13:08:42 +10:00
Even Rouault
133a4f4cdc
Merge pull request #51587 from rouault/add_qgs_int8
[Raster] Add a Qgis::DataType::Int8 signed data type
2023-01-29 19:34:36 +01:00
Even Rouault
47182b5c0f
[Raster] Add a Qgis::DataType::Int8 signed data type 2023-01-27 13:09:48 +01:00
Denis Rouzaud
b3e4295ca4
[settings] migrate raster settings (#51600) 2023-01-27 08:35:33 +01:00
Denis Rouzaud
236ccce7e9 [doxygen] remove \returns for returning void methods 2023-01-12 15:00:51 +01:00
Alessandro Pasotti
8b5e9c4b29
Merge pull request #51218 from elpaso/bugfix-gh51200-rat-editing
Raster Attribute Table GUI enhancements/fixes
2022-12-16 13:45:35 +01:00
Nyall Dawson
c43b558901 Upgrade raster enums to enum class, and remove some completely unused
enums
2022-12-16 12:01:44 +10:00
Nyall Dawson
9a8b8b160d Fix thread safety in raster layer rendering
We were cloning the data provider correctly, but doing this on the
main thread means that the provider has thread affinity with the
main thread -- so we need to ensure it is moved over to the
actual rendering thread prior to the rendering.
2022-12-15 14:50:08 +10:00
Nyall Dawson
515ce71df2 Remove unused enum 2022-12-15 12:26:49 +10:00
Alessandro Pasotti
f09aabc96c Raster Attribute Table GUI enhancements/fixes
Fixes #51200 and more small GUI/UX related glitches:

- locale aware double input (consitent behavior with the vector attr
  table and the widgets)
- locale aware double formatting (same logic of the vector fields of type double.
- right-alignment of double fields
- wrong tooltip for last column
2022-12-14 16:07:55 +01:00
Alessandro Pasotti
f040c260bd Raster maptips 2022-11-09 09:48:02 +01:00
Alessandro Pasotti
25e94fa52d More raster maptips work
It should actually be moved to a generic maplayer implementation.
2022-11-09 09:48:02 +01:00
Alessandro Pasotti
92feff04ac Doxy 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
8e0a5e1cbe Address PR comments 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
31a5d632c4 Layout 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
0bcb75ff1b Missing sip includes 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
bbb045e2bb Getting closer... almost relase-ready 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
70c93d4aea Gui enhancements 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
3479a66e4e Handle other rat types 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
62dff87ccf RAT GUI 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
fc8cb922a7 Create RAT from raster and fix sip enum 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
41983fa99d Skip value and color fields on RAT identify 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
be9b8647ff Identify 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
5a88611b38 Paletted RAT auto-loading 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
df4f7fe84e RAT model 2022-11-09 09:46:13 +10:00
Nyall Dawson
bd895d526b Add missing sip cast for raster contour renderer 2022-11-08 15:34:57 +10:00
Mathieu Pellerin
69ee3bc0d3 [symbology] Fix group layer not rendering properly when magnifier != 100% or when effect is on 2022-10-25 14:16:17 +07:00
Alessandro Pasotti
9642121cb3 Layout 2022-10-22 08:52:37 +10:00
Alessandro Pasotti
f45cd59539 Layout and core export on structs 2022-10-22 08:52:37 +10:00