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
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
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
signedav
28706256be
Merge pull request #56189 from signedav/fix-apply-on
...
Fix double apply on update default values on volatile functions
2024-02-09 12:32:35 +01:00
Alessandro Pasotti
b32d4540fe
QgsField fix equality with editorWidgetSetup
...
Fix #55873
2024-02-09 08:13:08 +10:00
Alessandro Pasotti
11f083b6c0
sipify qt6
2024-02-08 14:52:49 +10:00
Nyall Dawson
eb81a07732
Correctly tag Qgis.WkbType as IntEnum
2024-02-07 19:46:16 +10:00
Even Rouault
9631b3d3cc
Merge pull request #56212 from rouault/QgsCsException
...
Catch potential QgsCsException at various places; improve qgscoordinatetransform.h doc
2024-02-07 06:01:35 +01:00
Even Rouault
d43ceb45b6
qgscoordinatetransform.h: add a couple missing SIP_THROW( QgsCsException ), and add Doxygen \throw hint to make it obvious exceptions might be thrown
2024-02-07 03:16:44 +01:00
jmkerloch
8e9267f584
feat(QgsLocatorWidget): define anchors for result container
2024-02-07 11:49:35 +10:00
Mathieu Pellerin
b6c7889f35
[attribute form] Insure that a field features multiple times in a feature form has its constraint properly reflected ( #56163 )
2024-02-06 20:27:38 +07:00
Alessandro Pasotti
f2f2840173
Merge pull request #55588 from elpaso/mssql-log-query-when-update-geometry-value
...
MSSQL: fix add/fill ring
2024-02-06 13:47:01 +01:00
Stefanos Natsis
4dc4bff923
Don't open layer properties when toggling visibility ( #56190 )
2024-02-06 21:23:24 +10:00
Nyall Dawson
de532a62aa
Fix doxygen warning
2024-02-06 21:04:43 +10:00
Nyall Dawson
ac2f1179c8
More item data role enum to enum class conversions
2024-02-06 21:04:43 +10:00
Nyall Dawson
feecb4017c
Make some custom model roles enum class for Qt6 compatibility
2024-02-06 21:04:43 +10:00
Loïc Bartoletti
67ea128ee0
DOX: better wording for createGeometryEngine
...
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-02-06 10:28:53 +01:00
Loïc Bartoletti
f5db8a765f
QgsGeos: Add precision when createGeometryEngine
2024-02-06 10:28:53 +01:00
Nyall Dawson
4ba4eae72a
[processing] Rename grass7 provider to grass provider
...
And transparently map requests for grass7 provider to grass provider
It's misleading putting an old version number in the provider name,
when this provider supports grass versions 8 +
2024-02-06 18:31:48 +10:00
Mathieu Pellerin
48033867fc
[dxf] When exporting to DXF, skip empty layers
2024-02-06 14:48:52 +07:00
Jorge Tornero
9195dbd057
Support for serial port sensor baudrate selection ( #55848 )
2024-02-06 13:53:11 +07:00
signedav
3d28ce1b39
remove static function to return volatile function, since it's not needed anymore
2024-02-05 15:40:29 +01:00
uclaros
a09b3d0341
Don't cache failed blocks
...
Address review
2024-02-05 09:11:56 +00:00
uclaros
1285a8dfe2
Add a static QCache to QgsPointCloudIndex for storing decoded data blocks
2024-02-05 09:11:56 +00:00
Nyall Dawson
c3fa3af175
[processing] Use safer provider://source syntax in more places
...
Use the safer method of explicitly including the provider type
when storing layer sources to string in more places, which eg
fixes running the copied qgis_process string when a non gdal
layer source is used for a raster layer. Also fixes the same
situation when restoring an algorithm from the history log.
Fixes #54264
2024-02-05 17:39:46 +10:00
Nyall Dawson
6db11e287d
Refactor QgsTessellator so that errors are stored
...
Instead of writing errors to QgsMessageLog and discarding, instead
make the QgsTessellator class store errors and make the callers
responsible for pushing to QgsMessageLog when appropriate.
Gives us more flexibility to show user facing tesselation errors,
eg in the processing log.
2024-02-05 17:39:24 +10:00
Nyall Dawson
6df159f2a2
Add missing compatibility code
2024-02-04 05:54:31 +10:00
Nyall Dawson
3e07b06d87
Fix broken old API compatibility code on Qt 6 builds
...
The old sip based approach to handling property -> getter/setter
conversion is broken on sip6, so move the patching into Python.
Also fix incorrect checks in tests, and add additional test
for compatiblity code.
2024-02-04 05:54:31 +10:00
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
f2c74f377d
Sipify
2024-01-31 17:16:18 +10:00
Nyall Dawson
078fd4f2ea
Make IntFlag enum type opt-in, rather than opt-out
...
And make sipify handle this nicely. This means that all our non-flag
style enums correctly map across to IntFlag python enums on Qt 6,
fixing issues with negative enum values for these and providing
a better match for the original c++ enum.
2024-01-31 17:16:18 +10:00
Nyall Dawson
12f4ce5978
Use correct enum type for enum with negative values
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
2d4c569b9c
Fix build
2024-01-31 13:48:49 +10:00
Nyall Dawson
b5aca7c0b5
Promote another enum to enum class
2024-01-31 13:48:49 +10:00
Nyall Dawson
09578d6a8f
Use templates to avoid ugly static_cast
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
Alessandro Pasotti
27824078ad
Introduce QgsProcessingProvider::Flag::FlagCompatibleWithVirtualRaster
2024-01-31 10:37:52 +10:00
Alexander Bruy
d9a0e1d4f9
Merge pull request #56057 from alexbruy/assistant-color-ramp-name
...
pass color ramp name to the color ramp transformer to generate correct expression (fix #48889 )
2024-01-30 19:41:57 +02:00
Nyall Dawson
703612f539
Fix generic exception is raised on PyQt6 builds instead of specific
...
exceptions
QgsException MUST be the last type defined, or it greedily prevents
the more specialized exceptions from being raised in PyQGIS
2024-01-31 03:08:47 +10:00
Alexander Bruy
0c338f1c09
address review
2024-01-30 14:55:58 +02:00
Alexander Bruy
81b1453b89
pass color ramp name to the color ramp transformer to generate correct
...
expression (fix #48889 )
2024-01-30 14:55:27 +02:00
Nyall Dawson
b85db241c7
Sipify
2024-01-30 19:10:43 +10:00