22440 Commits

Author SHA1 Message Date
Nyall Dawson
a739ad7097 Use nlohmann for json instead of QVariant
But leave QVariant version of util function for use in Python scripts
2023-07-12 14:58:33 +10:00
Nyall Dawson
b81e52dd43 Parse bounding region values from cesium tiles root tileset 2023-07-12 14:58:33 +10:00
Nyall Dawson
abeb8ae5fa Read tileset on creating cesium tiles data provider
And add some very basic provider metadata
2023-07-12 14:58:33 +10:00
Nyall Dawson
aa59687137 Setup framework for tiled mesh data providers to be cloned 2023-07-12 14:58:33 +10:00
Nyall Dawson
bc8c3a75b0 Add method to translate proj projection names
And abort crssync if unhandled projection strings are found
2023-07-11 14:57:04 +10:00
Nyall Dawson
95dc22f6b5 Fix handling of ' in enum docstrings in sipify 2023-07-09 22:48:59 +10:00
Nyall Dawson
71d6188e3d Add method to return CRS type, based on proj_get_type() values
And show in CRS details for layer properties
2023-07-09 22:48:59 +10:00
Nyall Dawson
31138aa970 Add method to retrieve list of known crs authorities 2023-07-09 18:14:10 +10:00
Nyall Dawson
3b1b6d56ec Correctly use horizontal vs single crs extraction methods in different
functions
2023-07-09 18:14:10 +10:00
Yoann Quenach de Quivillic
a49515abba Apply suggestions from code review 2023-07-08 04:53:44 +10:00
Yoann Quenach de Quivillic
8f3676dd80 Add search tolerance to QgsLayoutViewToolSelect 2023-07-08 04:53:44 +10:00
Nyall Dawson
325a5cb16a Fix lint 2023-07-07 14:29:28 +10:00
Nyall Dawson
394315955e Apply suggestions from code review 2023-07-07 14:29:28 +10:00
Matthias Kuhn
1626b7e928 Move tests to QgisUnitTests 2023-07-07 14:29:28 +10:00
Matthias Kuhn
54b45078b5 Monkey patch and deprecate API 2023-07-07 14:29:28 +10:00
Nyall Dawson
1a1d2a7a8d Alternative approach to a QGIS specific unittest class 2023-07-07 14:29:28 +10:00
Loïc Bartoletti
6339e5fb78
Merge pull request #53629 from ptitjano/feat/provider-extent-3d
Add some new methods to QgsBox3d
2023-07-06 17:33:31 +02:00
bdm-oslandia
80a9043cad
qgsbox3d: Add combineWith methods 2023-07-06 14:12:02 +02:00
bdm-oslandia
1bae6ee1f1
qgsbox3d: Add a new contains method based on x,y,z coordinates 2023-07-06 14:12:02 +02:00
bdm-oslandia
58c161f1b5
qgsbox3d: Add is3D method 2023-07-06 14:12:00 +02:00
Nyall Dawson
4595f65cde Implement tiled mesh source select widget 2023-07-06 18:10:46 +10:00
Nyall Dawson
8f4ec245c6 Standardise layer properties dialog title creation 2023-07-06 15:03:32 +10:00
AlisterH
75420dee18 remove unnecessary casts from last commit 2023-07-06 13:45:15 +10:00
AlisterH
158b0e2bae Use more pathlib instead of os module 2023-07-06 13:45:15 +10:00
AlisterH
0420b158ef More informative message if ext module fails to load 2023-07-06 13:45:15 +10:00
AlisterH
5e29c75d2f Update python/plugins/grassprovider/Grass7Utils.py
Co-authored-by: Loïc Bartoletti <lbartoletti@users.noreply.github.com>
2023-07-06 13:45:15 +10:00
AlisterH
47fa0c8197 Update python/plugins/grassprovider/Grass7AlgorithmProvider.py
Co-authored-by: Nicolas Godet <39594821+nicogodet@users.noreply.github.com>
2023-07-06 13:45:15 +10:00
AlisterH
75d204d766 Update python/plugins/grassprovider/Grass7AlgorithmProvider.py
Co-authored-by: Nicolas Godet <39594821+nicogodet@users.noreply.github.com>
2023-07-06 13:45:15 +10:00
AlisterH
6cc773d758 Add comments 2023-07-06 13:45:15 +10:00
AlisterH
c0ca40aebb add userDescriptionFolder() method 2023-07-06 13:45:15 +10:00
AlisterH
2c006b185d fix lint errors 2023-07-06 13:45:15 +10:00
AlisterH
f08e5e9469 support grass algorithms in profile folder 2023-07-06 13:45:15 +10:00
bdm-oslandia
06a09f83f3
qgsbox3d: Add support for toString method 2023-07-05 09:12:36 +02:00
bdm-oslandia
0773042adb
qgsbox3d: Add isEmpty method
This has is the following logic:

- QgSBox3d().isEmpty() == True
- QgSBox3d().isEmpty(0, 0, 0, 0, 0, 0) == True
- QgSBox3d().isEmpty(1, 1, 1, 1, 1, 1) == True
2023-07-05 09:12:36 +02:00
bdm-oslandia
0f961e890b
qgsbox3d: Add isNull method
This has is the following logic:

- QgSBox3d().isNull() == True
- QgSBox3d().isNull(0, 0, 0, 0, 0, 0) == False
- QgSBox3d().isNull(1, 1, 1, 1, 1, 1) == False
2023-07-05 09:12:36 +02:00
bdm-oslandia
6d1a08a5c3
qgsbox3d: Use nan for default values
This will be necessary to properly define `isNull` method in the next
commit.
This way, it behaves the same as `QgsPoint`.

Co-Authored by Jean Felder
2023-07-05 09:12:35 +02:00
Nyall Dawson
11817f0ebd Fix build 2023-07-05 12:37:46 +10:00
Nyall Dawson
9e12fd66aa De-duplicate config page widget handling 2023-07-05 12:37:46 +10:00
Nyall Dawson
db405bd640 Consolidate rollback code 2023-07-05 12:37:46 +10:00
Nyall Dawson
6a822cb710 Deprecate old methods 2023-07-05 12:37:46 +10:00
Nyall Dawson
32174125c0 Move more code to base class 2023-07-05 12:37:46 +10:00
Nyall Dawson
84f842d85b Move more common code to base class 2023-07-05 12:37:46 +10:00
Nyall Dawson
2f7cf5dcdc Move to inheritance instead, using QgsLayerPropertiesDialog base class 2023-07-05 12:37:46 +10:00
Nyall Dawson
b55b1790ac Start a new class for common functionality across layer properties
dialogs, and consolidate all duplicate metadata load from file
code in there
2023-07-05 12:37:46 +10:00
Nyall Dawson
6c4409d71f Expand documentation 2023-07-05 09:43:32 +10:00
Nyall Dawson
151ab7e886 Support tiled mesh layers in app layer creation functions 2023-07-05 09:43:32 +10:00
bdm-oslandia
5293002ad3
qgsbox3d: Add a setMinimal method 2023-07-05 00:39:11 +02:00
Loïc Bartoletti
c298bda614 Update python/plugins/processing/tools/dataobjects.py
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2023-07-05 06:06:10 +10:00
Loïc Bartoletti
e5ea4d2291 resolveDefaultEncoding: return UTF-8 as default in case of undefined locale or error 2023-07-05 06:06:10 +10:00
Loïc Bartoletti
09ac50fd36 move logic to QgsProcessingUtils and create a convenient method resolveDefaultEncoding() 2023-07-05 06:06:10 +10:00