Even Rouault
d72e2cc0ac
Add \deprecated
2024-02-18 20:57:23 +01:00
Even Rouault
844e2a953f
Add missing parameter documentation
2024-02-18 20:57:23 +01: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
Even Rouault
a5c8f01003
Header files: remove all mentions of '\since QGIS 1.'
2024-02-18 20:46:00 +01:00
Andrea Giudiceandrea
42f3a60743
Apply suggestions from code review
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
5eb58df57e
Fix typo
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
dbdf35be77
gdal:fillnodata Skip testing NO_MASK parameter if GDAL >= 3.4.0
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
3945c73b84
Rise an exception instead of an info message
2024-02-18 06:52:52 +10:00
Andrea Giudiceandrea
5a721c47c0
[processing] Fix GDAL "Fill NoData" algorithm
...
The gdal_fillnodata.py -nomask option is no longer supported since GDAL 3.4.0
2024-02-18 06:52:52 +10:00
Nyall Dawson
2357d80d25
Avoid sip property code for old api compatibility
...
This causes crashes on Qt6. Use Python monkey patching instead.
2024-02-17 05:38:14 +10:00
Nyall Dawson
9fd9b1ccab
Need to adjust geometry type filter depending on entity type
2024-02-15 12:39:11 +10:00
Nyall Dawson
b5c3857c94
Add button to retrieve available geometry type for source
...
Clicking this queries the backend for available types, taking the
guesswork out of selecting the geometry type
2024-02-15 12:39:11 +10:00
Nyall Dawson
edc26aeb0b
Restrict results to ONLY those matching the selected geometry types
2024-02-15 12:39:11 +10:00
Nyall Dawson
4b8e6c4e16
Add missing file
2024-02-15 12:39:11 +10:00
Nyall Dawson
298a2940cb
Fix sip
2024-02-15 12:39:11 +10:00
Nyall Dawson
926d6f90bd
Support load/save sensor things connections
2024-02-15 12:39:11 +10:00
Nyall Dawson
32b8f2fd56
Start on source properties widget for sensor things, support
...
changing entity type for existing layers
2024-02-15 12:39:11 +10:00
Nyall Dawson
b00c8d246a
Correctly parse geometry field to geo query
2024-02-15 12:39:11 +10:00
Nyall Dawson
5503e0232b
Only some entity types can have geometry attached
2024-02-15 12:39:11 +10:00
Nyall Dawson
a3b64fcb4d
Setup field structure for provider
2024-02-15 12:39:11 +10:00
Nyall Dawson
6a41ed7777
Add methods to convert strings to entity types
2024-02-15 12:39:11 +10:00
Nyall Dawson
90f180c07f
Start on utils class
2024-02-15 12:39:11 +10:00
Andrea Giudiceandrea
8309c5ecaa
[processing][grass] v.transform: add missing parameters
...
-t, -w, -x, -y, -a and -b missing parameters added
2024-02-14 10:40:09 +10:00
Nyall Dawson
0096246afe
Sipify
2024-02-13 20:51:03 +10:00
Nyall Dawson
763278f8ef
Don't use removed QDesktopWidget
2024-02-13 08:13:43 +10:00
Nyall Dawson
6d5ef5b961
processing plugin (mostly) works on qt6 builds now
2024-02-13 08:13:43 +10:00
Nyall Dawson
62cd14189f
Use proper enum flags type instead of int as return value
...
And promote enum to enum class. Notably fixes a bunch of startup
errors when loading the Processing plugin under Qt6
2024-02-13 08:13:43 +10:00
Nyall Dawson
cdada7c764
Add test variants for GEOS >= 3.11
2024-02-12 18:38:21 +10:00
Nyall Dawson
da7461ff77
Fix some processing tests on newer library versions
2024-02-12 18:38:21 +10:00
Nyall Dawson
20d5b34cd3
Rename test_definition_file to definition_file
...
Otherwise unittest thinks the function is a test itself and runs it
accordingly, and then raises a deprecation warning because
return values are not permitted from test functions
2024-02-12 16:44:06 +10:00
Nyall Dawson
4931f8ebe4
Gracefully handle NULL/not-NULL comparisons in QgisTestCase.checkLayersEqual
...
We always want NULL values sorted first, and never want to try
to directly compare NULL/not NULL values.
Doing so raises an exception on the PyQt6 builds, where NULL === None
and comparisons between None and not-None values are prohibited
in Python
2024-02-12 16:44:06 +10:00
Nyall Dawson
de0afb14db
Don't call QFontMetrics.width()
2024-02-12 14:22:37 +10:00
Nyall Dawson
ba7b7ac458
Add method to determine actual document size
2024-02-12 12:48:27 +10:00
Nyall Dawson
4aeecb4c42
Add QgsWebEnginePage::render( QPainter* ) method
...
Requires a PDF4Qt enabled build. This method exports the QWebEnginePage
to a PDF file, so that we get nicely vectorised objects and
text-as-text. It's the ONLY supported way in Qt API to do this, every
other method of rendering QWebEnginePage forces rasterisation of
the content.
We then use the QgsPdfRenderer class to render the temporary PDF
content to a QPainter device, which keeps vector objects as vectors.
2024-02-12 12:48:27 +10:00
Nyall Dawson
ff56801b8f
Create QgsWebEnginePage wrapper class around QWebEnginePage
...
Like QgsWebPage this provides additional functional over the
base Qt class to simplify tasks required in QGIS.
2024-02-12 12:48:27 +10:00
Nyall Dawson
eccf1198e8
Cleanup API
2024-02-12 12:48:27 +10:00
Nyall Dawson
fdfd7713c5
Lots of shortcuts to get a PDF -> QPainter renderer working
2024-02-12 12:48:27 +10:00
Nyall Dawson
0e00b5fcb0
Shell for QgsPdfRenderer class
2024-02-12 12:48:27 +10:00
Nyall Dawson
ad91789f9e
Fix pyqt5_to_pyqt6 double unnesting some enums
2024-02-12 12:19:10 +10:00
Nyall Dawson
814e6db3b4
Don't map non-list of QVariantMaps to QMap<QString,QVariant>
...
The original workaround was only supposed to apply to QList/
QVector of QVariantMaps. By replacing them all in sip we
break mapping of signals defined in c++ which are emitted
by Python code.
Fixes exceptions after running processing algorithms in Qt6
builds.
2024-02-12 12:16:14 +10:00
Nyall Dawson
87f117f47b
[sipify] Avoid leading and trailing newlines in enum value docstrings
2024-02-11 13:37:29 +10:00
Nyall Dawson
2b710b2617
[sipify] Don't write invalid escaped \d character to docstring
...
Instead correctly translate to ..deprecated python docstrings
2024-02-11 13:37:29 +10:00
Nyall Dawson
09dc6838a7
Upgrade another enum to get filtering working in processing toolbox
2024-02-10 17:25:22 +10:00
Nyall Dawson
e5f7accc6a
use another enum
2024-02-10 17:25:22 +10:00
Nyall Dawson
aeacb8fe07
Use enums, not raw ints
2024-02-10 17:25:22 +10: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
Andrea Giudiceandrea
247cadce38
[processing] Don't show hidden parameters in algorithmHelp
2024-02-10 09:24:07 +10:00
Nyall Dawson
45e51c2a55
Expose GEOS constrainedDelaunayTriangulation to QgsGeometry
...
Allows calling this method when QGIS is built against supported
GEOS versions (>= 3.11)
2024-02-10 08:04:51 +10:00
Nyall Dawson
fa6c41fd74
Add QgsGeometryCollection::extractPartsByType
...
Allows extraction of matching parts from a collection, returning
the corresponding collection subclass.
mixed_collection = QgsGeometryCollection()
mixed_collection.addGeometry(... mix of geometry types ...)
multi_line_string = mixed_collection.extractPartsByType(Qgis.WkbType.LineString)
In this case multi_line_string will be a QgsMultiLineString object,
containing just the line string parts from mixed_collection
2024-02-10 08:04:51 +10:00