82 Commits

Author SHA1 Message Date
Mathieu Pellerin
d2b117a3c8 [sensors] Brand new sensors framework (manager, registry, sensor types) 2023-03-24 15:28:47 +07:00
Julien Cabieces
8f32f07433 Treat review comments
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2023-02-27 09:24:40 +01:00
Nyall Dawson
f9c3da1e06 Move unit enums to Qgis, promote to enum class 2023-02-19 13:29:06 +10:00
Vincent Cloarec
3ca858af66
Global map terrain shading (#51535)
* QgsShadingRendering and pipe to render global elevation map

* gdal utils with datatype and resampling method enum

* raster layer elevation map

* optimize raster elevation map with rotation

* handle  no data value in the map elevation raster pipe

* mesh layer and some little fixes

* fix nodata and hillshading z factor

* render shading on layout

* activate/deactivate the shading from ui

* shading only for layer that have elevation

* apply Z scale and offset of layer elevation properties

* ui settings

* allow elevation from point cloud even edl is deactivate for pointcloud

* fix ui

* sipify

* Shading renderer widget in styling panel

* icone for shading renderer settings widget

* two methods to combin elevation

* rewording

* remove check box at the bottom of canvas

* use band of elevation properties

* fix styling pannel

* render shading in layout

* keep EDL point cloud shading individually

* add shading rendering tests

* add missing code for local EDL for point cloud

* shading inactive by default

* rework raster layer resampling

* improve nodata in elevation map

* don't allow elevation map with != size to be combined

* remove EDL from point cloud

* renaming

* sipify

* colorize tests

* renaming

* RGB32

* renaming leftover

* some ui fixes

* fix border for EDL alg

* fix EDL closed next to nodata value

* fix first shading when activated

* renaming and typo

* fixes for doc, doxygen, indentation and spelling

* remove leftover member

* fix clang-tidy

* fix edl tests

* fix dll export

* minor fixes

* adapt images of tests

* fix narrowing

* fix indentation

* sipify

* WIP

* minor ui changes
2023-01-26 15:02:16 +01:00
Nyall Dawson
ce6cf4a001 Move responsibility for managing GPS time stamp destination field
to QgsProjectGpsSettings, and store time stamp destination fields
in projects
2022-11-09 05:17:03 +10:00
Nyall Dawson
d0b4bcfc66 Resurrect option to follow layers 2022-11-07 18:24:52 +10:00
Nyall Dawson
544641c17f Add a destination layer property to QgsProjectGpsSettings 2022-11-07 18:24:52 +10:00
Nyall Dawson
8aa0857cba Spelling 2022-11-06 17:55:20 +10:00
Nyall Dawson
89c1952def Rename methods for consistency 2022-11-06 17:55:20 +10:00
Nyall Dawson
816eb16460 Create new QgsProjectGpsSettings class
Destinated for a storage location for GPS settings which are
project specific
2022-11-06 17:55:20 +10:00
Nyall Dawson
4a3e0b5b4b Add formal api for setting/retrieving project coordinate axis order
Instead of requiring informa fragile/slow project readEntry calls
2022-10-17 14:35:26 +10:00
Mathieu Pellerin
6b071d3be5 Apply suggestions 2022-09-05 11:18:38 +10:00
Mathieu Pellerin
2dae176bf5 Add missing dox 2022-09-05 11:18:38 +10:00
Mathieu Pellerin
b20cc301e7 Implement MapGeographic vs CustomCrs 2022-09-05 11:18:38 +10:00
Mathieu Pellerin
1570643d1d [api] Add project's default coordinate display type functions +
Q_PROPERTY for coordinate display type, distance units, and area units
2022-09-05 11:18:38 +10:00
Nyall Dawson
b79ca2951f Cleaner docs 2022-08-23 10:07:54 +10:00
Damiano Lombardi
67bdadfead
Fix rollback not leaving a consistent state for buffered transaction 2022-08-23 10:04:17 +10:00
Nyall Dawson
f9415af325 Add API to QgsProjectViewSettings to allow setting default map rotation
Provides a stable means for scripts to set the map rotation
2022-08-16 12:22:05 +10:00
Nyall Dawson
33788b6cb4 Remove more old qt fallbacks 2022-08-12 20:36:07 +10:00
Nyall Dawson
9b09445c08 Change project style disabling from being a project load flag
to a new project "capability"

This avoids the unwanted cost of initialising a blank style database
whenever QgsProject::clear is called and project styles are not
required (eg. for server)
2022-07-11 15:22:11 +10:00
Nyall Dawson
c6beb62216 Add project style database, which contains styles specific to each
individual project.

Project style database is embedded in the .qgz archive file
2022-05-17 16:36:00 +10:00
Nyall Dawson
190bdfbaa2 Don't offer to save new symbols in read only style databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
9fe94822b5 Add path role to model 2022-05-17 16:36:00 +10:00
Nyall Dawson
8462884554 Add model for project style databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
0d3ae97df0 Move QgsProject enums to Qgis, and add new read flag to skip style loading
Ensure that there's no speed regression when loading projects for
server and other special cases
2022-05-17 16:36:00 +10:00
Nyall Dawson
ab9c27a1b6 Allow retrieving matching project style by path 2022-05-17 16:36:00 +10:00
Nyall Dawson
1f63112e6d Allow project style paths to be xml exports of databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
6c3eb1df64 Add combined style model to project 2022-05-17 16:36:00 +10:00
Nyall Dawson
3c0f5e0fd5 add combined model 2022-05-17 16:36:00 +10:00
Nyall Dawson
9124d1acb6 Load project associated style databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
ca458a4e7d Add methods to set style database paths to QgsProjectStyleSettings 2022-05-17 16:36:00 +10:00
Mathieu Pellerin
383b2f9f78 Fix dox 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
366b88cae5 Address review 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
21f99d1234 Fix doxygen check 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
9e0d077d6e Migrate randomize fill color and default opacity settings 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
95b637520b Implement a QgsProjectStyleSettings class 2022-05-09 14:44:28 +10:00
Nyall Dawson
0ee1cee1d5 Rework project coordinate format handling to use numeric format instead
This now follows the approach used for bearing formats, where a user
can defined a default coordinate format for newly created projects
in the Settings - Options - Map Tools section.

New projects will inherit that setting, but the format can then
be changed through the Project Properties - Coordinate Format button.

This ultimately exposes more control to users for how coordinates
are formatted for a project, eg allowing them to control whether
direction suffixes are shown, and whether leading or trailing zeros
should be included.
2022-04-21 19:05:38 +10:00
Nyall Dawson
02829d5a3e Fix another documentation typo 2022-03-22 10:48:57 +10:00
Nyall Dawson
11c5547cbc Fix documentation warning 2022-03-22 10:48:57 +10:00
Nyall Dawson
9efe9f512c Change some boolean QgsProject properties to flags instead 2022-03-22 10:48:57 +10:00
Nyall Dawson
52c778f3a0 Remove offset/scale from project elevation properties as these were moved to terrain providers 2022-03-19 05:58:37 +10:00
Nyall Dawson
231596cd8d Make terrain provider classes generic and move outside of project 2022-03-19 05:58:37 +10:00
Nyall Dawson
22034f354e Project elevation properties framework 2022-03-19 05:58:37 +10:00
Denis Rouzaud
9b459d5de4
Merge pull request #46750 from domi4484/bufferedTransactionCore
Buffered Transactional Editing
2022-03-10 14:10:55 +01:00
Nyall Dawson
13949f932d Show a user-facing message bar warning when opening a project created in a
newer version of qgis, warning that the project may not be
completely loaded
2022-03-10 12:27:51 +10:00
Damiano Lombardi
8c5af4e194 SIP_OUT for output parameters 2022-03-04 08:41:10 +01:00
Damiano Lombardi
03f4740e65 More detailed error feedback for rollback 2022-03-04 08:41:10 +01:00
Damiano Lombardi
22de7e8a69 Fix docstrings since QGIS 3.24 to 3.26 2022-03-04 08:41:10 +01:00
Damiano Lombardi
cabf50d831 Buffered transactions rollback 2022-03-04 08:41:10 +01:00
Damiano Lombardi
b502da8bca Change transaction mode only if all layers are not in edit mode 2022-03-04 08:41:09 +01:00