168 Commits

Author SHA1 Message Date
Nyall Dawson
58e31ad3c0
Revert "Restore default metadata from DB" 2024-02-23 09:12:26 +10:00
Alessandro Pasotti
1850b9b2e6
Merge pull request #55924 from elpaso/bugfix-gh55726-restore-default-metadata
Restore default metadata from DB
2024-02-20 18:14:51 +01:00
Even Rouault
d26b498192
Merge pull request #56223 from rouault/remove_obsolete_since
Remove obsolete "since QGIS 1.x/2.x/3.0" mentions
2024-02-19 14:52:21 +01:00
Vytax
88ac2056a3
ArcGIS URL's with web proxy prefix support
Support of the ArcGIS server links with WEB Proxy prefixes
2024-02-19 15:15:55 +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
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
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
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
179e2ca59a Promote some more enums to enum class to fix PyQt6 support 2024-02-02 04:59:04 +10:00
Alessandro Pasotti
6b18c7fb1d Restore default metadata from DB
Fix #55726
2024-01-22 16:00:00 +01:00
bdm-oslandia
d3604b5c0b feat(QgsDataProvider): handle 3D extent/boundingbox 2023-11-16 14:59:16 +01:00
Nyall Dawson
89f40b05f8 Move ::htmlMetadata from some data provider subclasses up to base class
Allows all layer types (including vector, mesh and point cloud)
providers to show custom metadata in the layer properties dialog.
Previously this was limited to raster/vector tile and tiled
scene layers only.

Also fix const for a lot of raster providers as a consequence.
2023-11-08 21:28:09 +10:00
Alessandro Pasotti
eaafa66353 flake8 2023-10-28 05:07:14 +10:00
Sandro Mani
9b095c5605 Revert "Revert "Allowing storing GPGK raster layer styles to DB""
This reverts commit 9d8a72256893bd31a51d85927e9abd9cdb5eed29.
2023-10-23 13:47:40 +10:00
Sandro Santilli
c99a33d224 Add QgsArcGisRestUtils::convertRectangle
See
https://github.com/qgis/QGIS/pull/54944#pullrequestreview-1680737873
2023-10-17 00:18:30 +02:00
Nyall Dawson
9d8a722568 Revert "Allowing storing GPGK raster layer styles to DB" 2023-10-06 12:15:46 +10:00
Sandro Mani
b308bceb83 Revert moving storageType to QgsDataProvider, reword style location labels in QgsMapLayerLoad/SaveStyleDialog 2023-09-18 14:16:02 +02:00
Sandro Mani
e2169be02f Introduce Qgis::ProviderStyleStorageCapabilities 2023-09-18 14:16:02 +02:00
Sandro Mani
ee357346bb Move isSaveAndLoadStyleToDatabaseSupported and isDeleteStyleFromDatabaseSupported to QgsDataProvider 2023-09-18 14:16:02 +02:00
Sandro Mani
1fb7e142c3 Rename QgsVectorLayerSaveStyleDialog to QgsMapLayerSaveStyleDialog and allow using it for non-vector layers 2023-09-18 14:16:01 +02:00
Nyall Dawson
9f57fb2ef0 Rename "tiled mesh" to "tiled scene"
Better reflects that these types can contain lines and point
data, not just meshes
2023-08-05 21:31:49 +10:00
vcloarec
c3611c60a1 create postgres RO connection in the thread where the provider live 2023-07-19 10:10:11 +02:00
Nyall Dawson
61a3f44e98 Provider registry tiled mesh file handling support 2023-06-28 17:39:09 +10:00
Nyall Dawson
80f97c5e72
Implement responsive cancelation also for fields retrieval 2023-06-13 10:55:38 +10:00
Nyall Dawson
e036570c77 Setup framework for data provider's to provide information about
elevation related properties to their layers

And use this to ensure that wms tiles with maptiler terrain
or terrarium terrain interpretation are always included by
default in elevation profile plots.

Most specifically, this ensures that projects containing the
out-of-the-box "Mapzen Global Terrain" layer will be automatically
included in elevation plots.
2023-05-19 23:06:21 +10:00
Vincent Cloarec
e2fa27e4a6
Load layers in parallel threads when opening project (#53069)
* load layers in parallel threads when opening project

* parallel loading by default and settingsin advanced settings

* fix freezing when no layer supports parallel loading

* clean leftover

* fix unwanted remove and typo

* typo

* fix flake8

* load OGR metadata under global mutex

* Revert "load OGR metadata under global mutex"

This reverts commit adcaf9e66ca432ee35143c45af2b383108770a63.

* remove parallel loading capability for OGR

* start application in server test

* import start_app

* fix flake8
2023-05-18 16:11:43 +02:00
Nyall Dawson
9aac2b8d8a [api] Add framework for setting field comments/aliases via
QgsAbstractDatabaseProviderConnection

When implemented by providers, will provide a method for
permanently setting field aliases/comments within a
database

Here we have no choice but to create a new Capability2
enum, as the original Capability has now consumed the
entire range of values for data types permitted by QFlag
2023-04-18 08:22:57 +10:00
Nyall Dawson
fd11e0b45d Add file filter handling for vector tile layers to QgsProviderMetadata
And move QgsProviderMetadata.FilterType to Qgis
2023-04-02 20:04:02 +10:00
Nyall Dawson
50c76929e1
Followup 30700f1, ensure links to Qgis members are set in docstrings 2023-03-31 10:46:24 +10:00
Martin Dobias
289f47690d
Refactor QgsMapLayer's encodedSource()/decodedSource() (#51901)
Conversion between relative and absolute paths when reading/writing project files
has been inconveniently done in subclasses of QgsMapLayer in encodedSource() and
decodedSource() methods, with a lot of provider specific code.

This is a refactoring to finally fix this - there is a new pair of functions added
to QgsProviderMetadata and QgsProviderRegistry:
- absoluteToRelativeUri()
- relativeToAbsoluteUri()

This new pair of functions delegates the actual conversion between absolute and
relative path to provider code - where it belongs.

The existing code from encodedSource() and decodedSource() functions has been moved
to providers. Unit tests were added to confirm the existing behavior.

There should be no change of behavior apart from removal of old compatibility code
for WMS provider for projects from QGIS < 1.9 (10 years ago).
2023-02-22 17:53:44 +10:00
Nyall Dawson
046883fa9c Promote QgsWkbTypes enums to enum class, move to Qgis 2023-02-22 12:39:21 +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
Even Rouault
bac117e4f1
Merge pull request #51144 from rouault/wfs_sublayers
[WFS] Improve support of layers with unknown geometry type with Deegree servers
2023-01-09 06:14:09 +01:00
Mathieu Pellerin
cf0dae76b2 [processing] Don't load default style when creating a memory sink 2023-01-07 10:21:37 +07:00
Even Rouault
8866b0cdad
QgsProviderSublayerTask: make it possible to restrict it to a particular provider
Avoids the 'ERROR: Status 2: File  pagingEnabled='false'
preferCoordinatesForWfsT11='false' restrictToRequestBBOX='1'
srsname='EPSG:25832' typename='dvg:nw_dvg1_bld'
url='https://www.wfs.nrw.de/geobasis/wfs_nw_dvg' version='auto' could
not be found' type of message in the scenario described by
https://github.com/qgis/QGIS/pull/51144#issuecomment-1345507627
2023-01-04 00:15:28 +01:00
Even Rouault
541da34602
Add a QgsProviderMetadata:suggestGroupNameForUri() method and implement it for WFS to have WFS sublayers put in a group 2023-01-04 00:15:27 +01:00
Nyall Dawson
108934648f Add method to get list of supported related table types for a connection 2022-12-01 12:03:12 +10:00
Nyall Dawson
026f3cdf7b Add api to retrieve illegal field names via connections api 2022-12-01 06:56:24 +10:00
Nyall Dawson
7a3a57a562 Add API to retrieve relationship capabilities for a provider connection 2022-12-01 06:56:03 +10:00
Nyall Dawson
30899be07d Add update and delete relationship api 2022-11-30 11:27:37 +10:00
Nyall Dawson
ff3048d19a [api] Add method for creating relationship to QgsAbstractDatabaseProviderConnection
and implement for OGR provider when built on GDAL >= 3.6
2022-11-30 11:27:37 +10:00
Nyall Dawson
44361ba352 Add flag to opt into including system tables in QgsAbstractDatabaseProviderConnection tables listings 2022-11-29 10:20:46 +01:00