107 Commits

Author SHA1 Message Date
Nyall Dawson
73692a6a41 Create QgsProviderSqlQueryBuilder
QgsProviderSqlQueryBuilder provides an interface for creation of SQL queries, which
can be overridden for backend provider specific SQL syntax.

Initially add a virtual method for creation of row limited select *
queries.
2022-08-28 15:37:15 +10:00
Nyall Dawson
fe7964bb1a Show sublayers in a tree, respecting schema/dataset groupings where known 2022-08-02 17:20:37 +10:00
Nyall Dawson
e9e6756c12 Add method to convert QgsProviderSublayerDetails to mime uris 2022-08-02 17:20:37 +10:00
Nyall Dawson
7236b50930 Add QgsAbstractDatabaseProviderConnection interface for retrieving relationships for a database 2022-08-02 15:44:40 +10:00
Nyall Dawson
6dfa7e260c Make provider connection multi type handling more granualar, and use
new API in GDAL 3.6 to determine whether or not the multi
linestring/polygon types should be exposed for new table creation
2022-08-01 13:18:58 +10:00
Nyall Dawson
65f700e700 Use enum classes for ArcGIS REST service types for clarity 2022-07-21 06:46:31 +10:00
Nyall Dawson
aa9c6f60c6 Add method to convert field to JSON definition 2022-07-18 21:21:12 +10:00
Nyall Dawson
fe7407b29c Add more fine-grained control of what to include when converting
features to JSON
2022-07-18 21:21:12 +10:00
Nyall Dawson
6da633d998 Allow skipping of geometry in json 2022-07-18 21:21:12 +10:00
Nyall Dawson
7da574fe36 Add QgsAbstractDatabaseProviderConnection interface for renaming fields
And implement for OGR connections. Also expose the ability to rename
existing fields for supported database connections via browser.
2022-07-18 17:26:13 +10:00
Nyall Dawson
6fd8f424a2 Handle time zones 2022-07-16 16:46:44 +10:00
Nyall Dawson
300e2b2d89 Add method to convert QgsFeatures to ArcGIS REST representation 2022-07-16 16:46:44 +10:00
Nyall Dawson
9548e767c4 Add method to convert crs to ArcGIS REST JSON 2022-07-16 16:46:44 +10:00
Nyall Dawson
484bea7c34 Add API methods to convert QgsGeometry to an ArcGIS REST representation 2022-07-16 16:46:44 +10:00
Nyall Dawson
2321ba41ce Add interface for QgsProviderMetadata::createDatabase
Can be used on a supported provider to create a new empty database
at a specified URI.
2022-07-14 11:54:21 +10:00
Nyall Dawson
8dc9635dbc Only offer to create supported domain types 2022-07-13 06:44:58 +10:00
Nyall Dawson
221e63cdfa Add icon to QgsProviderMetada 2022-06-16 13:55:09 +10:00
Nyall Dawson
21479e0814 Add QgsProviderRegistry.providersForLayerType method to list all providers supporting a layer type 2022-06-15 15:04:05 +10:00
Nyall Dawson
fc9b6053cf Add QgsProviderMetadata::supportedLayerTypes() so that we can
query the layer types supported by a data provider
2022-06-15 15:04:05 +10:00
NEDJIMAbelgacem
f9a7094a9c Fix CI 2022-05-24 10:04:33 +02:00
NEDJIMAbelgacem
9d008c3de5 Address reviews and discussion 2022-05-24 10:04:33 +02:00
Julien Cabieces
fb50f69e2b other const methods 2022-04-29 08:21:47 +10:00
Julien Cabieces
012b6a46db constify methods 2022-04-29 08:21:47 +10:00
Nyall Dawson
caee2cabbd Add Qgis::MapLayerProperty flag for layers which should be considered
as "basemap" layers

This flag identifies if the layer is considered a 'basemap' layer, where
certain properties of the layer should be ignored when calculating
project-level properties. For instance, the extent of basemap layers
should be ignored when calculating the overall extent of a project,
as these layers are typically global and extend outside of a project's
area of interest.
2022-02-24 16:20:51 +10:00
Nyall Dawson
c264eb50f5 Clarify removal 2022-02-20 06:48:03 +10:00
Nyall Dawson
063e059359 Add API to QgsAbstractDatabaseProviderConnection to create new field
domains on a database and set field domain associated with a field

And implement for OGR database provider connection class
2022-02-20 06:48:03 +10:00
Nyall Dawson
8036ea89ed Add API to retrieve field domain names and definitions to QgsAbstractDatabaseProviderConnection
and implement for GPKG connections
2022-02-20 06:48:03 +10:00
Nyall Dawson
6bd1a7eb7d Document new behaviour 2022-01-24 17:26:05 +10:00
Nyall Dawson
1be383a301 [api] Add QgsProviderMetadata method to test whether a style with
a specified ID already exists
2022-01-24 17:26:05 +10:00
Nyall Dawson
cddc522275 Deprecate older methods 2021-12-02 11:16:53 +10:00
Nyall Dawson
33a7bc7c18 Expose newer methods to Python 2021-12-02 11:16:53 +10:00
bdm-oslandia
61519ec834 remove dead code, fix comment, fixes from review
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2021-12-02 11:16:53 +10:00
bdm-oslandia
345dd4dd87 fix: replace referer http header by dedicated class QgsHttpHeader 2021-12-02 11:16:53 +10:00
Alessandro Pasotti
9791626734 Threaded implementation 2021-11-29 14:10:49 +10:00
Denis Rouzaud
93bdf53a00 add pure virtual QgsAbstractDbTableModel::setSql 2021-11-12 08:42:14 +01:00
Denis Rouzaud
0f68ec7249 fix typo 2021-11-09 14:14:34 +01:00
Denis Rouzaud
93bb188e2a add python bindings 2021-11-09 14:13:52 +01:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
ff302ca075 Fix api 2021-08-26 12:56:45 +10:00
Nyall Dawson
136faab91f Fix system tables disappear from dialog after task runs 2021-08-26 12:56:45 +10:00
Nyall Dawson
f2f40096ab Add support for filtering system tables in QgsProviderSublayerProxyModel 2021-08-26 12:56:45 +10:00
Nyall Dawson
7f090f64d1 [api] Add flags to QgsProviderSublayerDetails, to indicate that
a sublayer is a system or internal table
2021-08-26 12:56:45 +10:00
Vincent Cloarec
bd6ac0e54d
save mesh from URI (#44758)
[mesh] fix saving a mesh frame with URI
2021-08-19 09:06:57 +02:00
Vincent Cloarec
2cdc666fb5
fix maximum vertices count per face for mesh editing (#44759)
fix writing UGRID format (mesh layer)
2021-08-19 09:05:15 +02:00
Nyall Dawson
17fa48250a Expand docs 2021-08-09 05:55:05 +10:00
Nyall Dawson
52dff0f2ef Add api to QgsProviderMetadata to return any possible sidecar
files which may exist for the provider given a layer path
2021-08-09 05:55:05 +10:00
Nyall Dawson
6f942a70ac Add missing Q_DECLARE_OPERATORS_FOR_FLAGS for QgsProviderUtils::SublayerCompletenessFlags 2021-07-26 08:09:51 +10:00
Nyall Dawson
e28a0b7258 Add flag to QgsProviderSublayerDetails to indicate that the uri
may be a container for other sublayers but that indepth scanning
of the container was skipped
2021-07-23 14:57:56 +10:00