87 Commits

Author SHA1 Message Date
Nyall Dawson
24cc226a64 Expose a useful method to python 2024-05-23 17:20:30 +10:00
Nyall Dawson
742fa6b486 [sensorthings] Support feature expansion
This change allows SensorThings entities to be expanded to contain
their related child feature attributes, exposing the relational
SensorThings model as a traditional "flat" GIS-friendly table
structure.

Eg when selecting Location entities, you can now opt to expand
to "Things > Datastreams > Observations". This would result in
multiple "stacked" point location features, one corresponding
to each observation, with the attributes for each point feature
containing the location, thing, datastream and observation
attributes.

(Best used combined with some extent, feature limit, or custom
filter option, as this can otherwise result in very heavy
requests to the backend service!)

Fixes #56805
2024-05-16 15:14:49 +10:00
Julien Cabieces
062ce03b6d [PyQt6] remove QTextCodec and rename pyqt5_from_qvariant_by_type
QTextCodec is no longer existing in PyQt6 (only in QtCoreCompat in C++)
2024-01-11 04:52:01 +10:00
Nyall Dawson
3e25c977a0 Use numeric IDs for tiled scene tiles instead of uuids 2023-08-10 10:32:55 +10:00
CodeBardian
cce4d2ff45
Fix for accessing the strength of field constraints (#52976) 2023-05-11 10:12:46 +10:00
Marc Ducobu
2458023031 Add type hinting for QList<qint64> (python binding) 2023-04-23 18:12:42 +10:00
Nyall Dawson
046883fa9c Promote QgsWkbTypes enums to enum class, move to Qgis 2023-02-22 12:39:21 +10:00
Nyall Dawson
2cdfd96b80 Fix longstanding crash when calling QgsUnitSelectionWidget methods
from python by adding new enum list conversion code
2023-02-19 13:29:06 +10:00
Nyall Dawson
1142e8ffac
Move QgsMapLayerType enum to Qgis.LayerType (#51874)
For consistency with other enums
2023-02-16 13:02:57 +01:00
Nyall Dawson
b03f2cd024 [sip] Fix conversion of null QgsLayoutItem* pointer variant values
on newer qt/sip versions

This was incorrectly returning a malformed/semi-null QVariant
...something?!?

We probably need to add more cases here, but this one was directly
causing a test failure and so was easy to identify
2022-08-09 12:59:01 +10:00
Nyall Dawson
f5f552aa61 Add a way for QgsSingleItemModel to have multiple column items 2022-05-17 16:36:00 +10:00
Nyall Dawson
904a312f40 Add method to sort a list of layers by layer type 2022-04-12 02:08:39 -07:00
Nyall Dawson
28bb05b0d5 Add method to retrieve axis order for a QgsCoordinateReferenceSystem 2022-04-06 11:45:32 +10:00
Nyall Dawson
eb22a25a96 Add sip conversion code for QPointer< QgsMapLayer >
Fixes #47955
2022-03-31 06:32:33 +10:00
Nyall Dawson
74db16608e Use map instead of hash 2022-03-25 10:08:11 +10:00
Nyall Dawson
87c3c911c0 Implement profile generation for point vector layers 2022-03-25 10:08:11 +10:00
Nyall Dawson
a7fd8e07f5 Revert 2021-02-25 11:08:56 +10:00
Nyall Dawson
4d4e7c95ca Better fix 2021-02-25 11:08:56 +10:00
Dmitry Shachnev
ae8b427fe9 Replace deprecated sipMappedType with sipTypeDef 2020-07-21 13:18:40 +10:00
Nyall Dawson
561a8326c5 Modernize language
And avoid insensitive/trigger words (as far as possible -- some are
coming from Qt or other external APIs)
2020-06-13 16:48:38 +10:00
Blottiere Paul
cc19c5fb7f Fix MappedType error 2020-06-12 08:45:13 +10:00
Even Rouault
9e9ddb587e
SIP: fix typemap for QVector<Type*> that was wrongly dropping a Python reference (refs #19885) 2018-09-21 15:31:28 +02:00
Nyall Dawson
273e664563 Fix some leaks in conversions 2018-03-12 14:30:53 +11:00
Nyall Dawson
a1a45536a2
Merge pull request #6221 from nyalldawson/var_leak
Fix massive memory leak in PyQGIS, pt 1
2018-02-13 13:18:42 +11:00
Nyall Dawson
0c6f22386b Drop some legacy sip conversion code 2018-02-13 12:02:50 +11:00
Denis Rouzaud
338a73b32e [sip] remove unused QPair conversion 2018-02-12 09:22:53 -04:00
Nyall Dawson
bbf3ed9d4e Fix massive memory leak in PyQGIS, pt 1 2018-01-30 16:00:39 +10:00
Nyall Dawson
f9a8161733 Fix some leaks and errors in sip conversions 2018-01-29 08:47:25 +11:00
Nyall Dawson
69c3debfc0 Nicer API for datum transforms
Instead of using QPairs of ints, use more descriptive structs, also
rename a lot of datum related methods for clarity and add docs
2017-12-15 14:16:59 +10:00
Nyall Dawson
cb693a72f9 Move caching to QgsCoordinateTransform
and remove no longer required QgsCoordinateTransformCache singleton
2017-12-15 14:14:08 +10:00
Nyall Dawson
8a0bd08e07 Start on QgsCoordinateTransformContext
Stores settings related to the correct datum transforms to use
when performing a coordinate transform.
2017-12-15 14:11:38 +10:00
Nyall Dawson
3ba2254503 Fix broken sip casting of nested QVectors
Old code was always forcing casting to QgsPointXY, regardless
of actual type
2017-11-14 21:08:21 +11:00
Nyall Dawson
87ffdabbb3 [processing] Fix crash in batch processing dialog
Fixes #17429
2017-11-10 11:11:32 +10:00
Matthias Kuhn
70dc92c4f2
conversions.sip does not need to be executable 2017-10-04 12:16:25 +02:00
Nyall Dawson
6bd37cc506 [processing] Fix crash when editing models on Windows (fix #17028) 2017-09-12 17:12:13 +10:00
Nyall Dawson
8d6d097ad8 Add conversion for QMap< QString, QList< TYPE > > for Python bindings 2017-06-30 12:50:38 +10:00
Matthias Kuhn
2bbadbacb7 Rename qgspoint.h and qgspointv2.h
To qgspointxy.h
And qgspoint.h
2017-06-02 19:53:37 +02:00
Matthias Kuhn
a9d7630a69 Rename QgsPointV2 to QgsPoint and QgsPoint to QgsPointXY
Because 3D coordinates should be the default.

References https://github.com/qgis/qgis3.0_api/issues/36
2017-06-02 19:53:37 +02:00
Denis Rouzaud
85f3b81b55 remove double spaces in sip files
fix indentation
2017-05-03 08:02:14 +02:00
Denis Rouzaud
93971d5ed3 [sip] align pointer and reference in blacklisted files
this will facilitate sip diff checking
2017-05-01 17:49:43 +02:00
Nyall Dawson
fbf99afd01 Add method to retrieve all valid srs ids from CRS databases 2017-02-14 05:49:23 +10:00
Denis Rouzaud
f7dbc054db more python 2 removal 2017-01-24 08:30:36 +01:00
Juergen E. Fischer
6a56cb0dd0 updates and fixes for windows qt5/py3 build 2017-01-24 01:25:59 +01:00
Denis Rouzaud
37ebcdd1cd [spellcheck] allow inwords checks and line skipping
spell check will be done automatically in words by default (when some conditions are fulfilled)
possibility to avoid in words checking by adding :* at the end in spelling.dat

one can add #spellok at the end of a line of code to skip spell check on this line
2017-01-10 20:18:37 +01:00
Nathan
6a4556ddd0 Add sip conversions for profile times 2016-06-05 14:16:30 +10:00
Matthias Kuhn
7dfc69657f Migrate provider test to python 3 2016-05-13 22:23:03 +02:00
Matthias Kuhn
89b7a4aaa2 Introduce NULL QVariant to PyQt5 2016-05-13 22:23:03 +02:00
Larry Shaffer
fc6559aa05 Remove conversions.sip conditionals meant for 4.12 but actually 4.18
- The hex version of 4.12 was not 0x041200 (current 4.18) but 0x040c00.
  Code was always skipped and has worked with recent sip versions.
2016-04-15 19:17:24 -06:00
Matthias Kuhn
5789dd8e99 python3 compatibility fix 2016-03-15 08:18:39 +01:00
Matthias Kuhn
cd0eb05ded [py3] Some compatibility fixes for python 3 2015-10-24 13:47:32 +02:00