426 Commits

Author SHA1 Message Date
Nyall Dawson
2af54ad057 Fix malformed python docstrings when enum value has \since annotation 2024-09-01 02:29:17 +10:00
Nyall Dawson
bc52832b47 Lazily hack around markdown title underline not being long enough
Causes a bunch of warnings when building the PyQGIS docs
2024-08-28 11:58:21 +10:00
Nyall Dawson
c797b83f6b Don't leak Qgis into gui, analysis modules 2024-08-19 11:16:01 +02:00
Nyall Dawson
3f481b568e Record header subfolders as __group__ attribute in PyQGIS classes
This will allow us to logically create subgroups for PyQGIS modules
in the API reference guide
2024-08-17 20:13:12 +10:00
Nyall Dawson
989e62a80f Handle docstrings for c++ structs
sip doesn't support the docstring directive for structs (only classes),
so patch these back in via sipify magic
2024-08-16 07:28:29 +10:00
Nyall Dawson
c23e35bb08 calculateStatistics is not unambiguously static 2024-08-14 22:08:41 +10:00
Nyall Dawson
1f27fc627a [pyqgis] Wrap unambiguously static methods in staticmethod
sip doesn't use the standard Python staticmethod type for defining
static methods, which means that standard means of testing
for a static method (like `isinstance(..., staticmethod)`) fail
with any PyQGIS static methods.

This causes issues with lint tools, which incorrectly flag
calls to QGIS static methods as missing self arguments. It also
breaks detection of static methods in the sphinx PyQGIS docs,
so all static methods are shown as non-static.

Work around this in sipify, by wrapping unambiguously static
methods in staticmethod wrappers.
2024-08-14 22:08:41 +10:00
Nyall Dawson
dc68f03f88 Be tolerant against optional sip modules 2024-08-14 13:05:46 +10:00
Nyall Dawson
ed19d996b2 Collect attribute docstrings for PyQGIS documentation 2024-08-14 13:05:46 +10:00
qgis-bot
a3751f5196 auto sipify 🍺 2024-08-13 11:56:33 +00:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
e7b26478e2 Valid fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
be8dce7d0d Valid improvements from new sipify 2024-08-13 20:28:55 +10:00
Jacky Volpes
fa961c7b5b fix(geometry_checker): do not call crs() on layer from another thread 2024-08-02 06:00:46 +10:00
Nyall Dawson
3d80ed996e Add thread safety notes for QgsFeaturePool documentation 2024-08-01 08:29:07 +10:00
qgis-bot
3aed037ce2 auto sipify 🍺 2024-07-25 08:00:08 +00:00
Nyall Dawson
c2c75f3b19
More no-value dox removal 2024-07-25 09:04:22 +10:00
qgis-bot
15fe04a289 auto sipify 🍺 2024-07-24 18:05:14 +00:00
Nyall Dawson
6f652d251b Drop no-value copy constructor dox 2024-07-25 04:02:55 +10:00
qgis-bot
612afa779a auto sipify 🍺 2024-07-22 16:10:48 +00:00
Nyall Dawson
28943f9c1b Remove a bunch of useless default constructor doxygen 2024-07-23 02:08:28 +10:00
Denis Rouzaud
6e9933145a
Adds a file to hold a map from class/method to headerfile (#58054)
* create map file for class / header files for PyQGIS API docs

* create map files

* install file

* add line numbers

* also add methods

* wait to sort

* more methods

* fix CMakeLists install

* fix sorting

* fix spell check

* remove map files for Qt6

* Revert "remove map files for Qt6"

This reverts commit 972f483410f556d1735a2070943b8ad9e2522c5e.

* do not test class_map files + auto sipify_all on branches

* fix warning
2024-07-16 11:40:25 +02:00
Even Rouault
a68422b982 Various typo fixes
Including 3 public methods, which are deprecated by this commit and replaced by a typo-fixed version
2024-02-29 06:03:03 +10:00
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0' 2024-02-18 20:57:23 +01:00
Even Rouault
02caeb9db7
Header files: remove all mentions of '\since QGIS 2.' 2024-02-18 20:46:01 +01:00
Nyall Dawson
ee53b9ae48 Port processing enums to enum class
A step towards a Qt6 compatible Processing framework
2024-02-10 17:25:22 +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
Alessandro Pasotti
27824078ad Introduce QgsProcessingProvider::Flag::FlagCompatibleWithVirtualRaster 2024-01-31 10:37:52 +10:00
Julien Cabieces
3e27ac5985 [PyQt6] Build PyQt6 2024-01-16 12:18:11 +10:00
Alexander Bruy
623e459867 fix patching 2023-09-14 10:46:54 +03:00
Alexander Bruy
79ea6d9936 address review 2023-09-13 13:01:59 +03:00
Alexander Bruy
b7c666db20 fix patching code 2023-08-23 08:40:12 +03:00
Alexander Bruy
00a543f504 move enum to Qgis 2023-08-23 08:37:26 +03:00
Alexander Bruy
bd627101c6 move some struct and enum defintions from analysis library to core in
order to make them accessible for Processing
2023-08-23 08:35:14 +03:00
Nyall Dawson
95dc22f6b5 Fix handling of ' in enum docstrings in sipify 2023-07-09 22:48:59 +10:00
Alexander Bruy
ed1378b527 do not require PDAL >= 2.5 for QGIS, make it requirement only for
processing provider
2023-03-22 16:04:01 +01:00
Alexander Bruy
21a16e4d3c add Processing provider for PDAL algorithms 2023-03-22 16:04:01 +01:00
Nyall Dawson
046883fa9c Promote QgsWkbTypes enums to enum class, move to Qgis 2023-02-22 12:39:21 +10:00
Harrissou Sant-anna
8761480128 Add missing class reference 2022-07-02 09:58:37 +10:00
Harrissou Sant-anna
7717f39d48 Update and cleanup of geometry_checker dox 2022-07-02 09:58:37 +10:00
Julien Cabieces
012b6a46db constify methods 2022-04-29 08:21:47 +10:00
Nyall Dawson
052c8eddea Fix seealso links 2022-03-07 19:13:27 +10:00
Nyall Dawson
86a4bf548d Fix documentation warning 2022-03-07 19:13:27 +10:00
Nyall Dawson
b025294246 Spelling 2022-03-07 19:13:27 +10:00
Nyall Dawson
d4eb6f524f [feature] Add support for georeferencing vector layers in georeferencer
Allows vector layers without spatial referencing to be interactively
georeferenced (or layers with referencing to be re-referenced!)

Sponsored by the Danish QGIS Usergroup
2022-03-07 19:13:27 +10:00
Nyall Dawson
ebf9fe1809 Start on QgsVectorWarper class 2022-03-07 19:13:27 +10:00
Nyall Dawson
8e79a41e7c Move QgsGcpPoint to analysis library 2022-03-07 19:13:27 +10:00
Juergen E. Fischer
a6d4f92359 fix windows build after 37b3eaa869587475c572c04bb15bc4986d533ece 2021-11-13 04:22:49 +01:00
Nyall Dawson
c15ff5e391 Fix const 2021-11-09 14:58:44 +11:00