84 Commits

Author SHA1 Message Date
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
Nyall Dawson
6c2d7bd7c9 Add driver name to QgsProviderSublayerDetails 2021-07-23 14:57:56 +10:00
Nyall Dawson
5246257e8a Cleaner API for QgsProviderUtils::sublayerDetailsAreIncomplete,
add flag to ignore unknown geometry types
2021-07-22 14:54:13 +10:00
Alessandro Pasotti
276d1980f8 Address PR comments and add ENUM for widget mode 2021-07-22 10:18:13 +10:00
Alessandro Pasotti
387c403c2f First nail in the coffin of DB Manager
Replace DB Manager legend custom menu action with
C++ implementation for SQL layer
2021-07-22 10:18:13 +10:00
Nyall Dawson
4bb7f82f2e [sipify] Add check that doxygen //!< command is only used for enum
documentation

sipify can't handle it in other contexts
2021-07-19 16:05:53 +10:00
nirvn
d10695cf77 QMap::unite is gone in Qt6, use QMultiMap 2021-07-17 16:59:20 +07:00
Nyall Dawson
bb354708da Only try to query sublayers for providers which support them
Fixes loading other layer types from browser
2021-07-15 19:23:34 +10:00
Vincent Cloarec
494735a482
create new mesh layer (#43873)
[mesh] [feature] adds a option to create blank/scratch mesh frame (vertices/faces)
2021-07-13 07:37:46 +02:00
Nyall Dawson
59f7b4cc07 Remove duplicate code 2021-07-13 06:39:11 +10:00
Nyall Dawson
220bcb0114 Rework QgsMapLayerFactory.createLayer API so that we can specify additional options 2021-07-13 06:39:11 +10:00
Nyall Dawson
9796aa3b88 Create new QgsProviderSublayersDialog class
Based on QgsProviderSublayerDetails, this new dialog nicely handles
mixed layer type files (e.g. mixed vector/raster/mesh layer formats).

It also:

- Resolves geometry types in a background thread, to avoid lengthy
application hangs whenever a full table scan is required to determine
available geometry types
- Shows a handy search filter box for filtering sublayers to matching
strings
- Shows icons representing sublayer types
- Has an interactive label showing the file path which can be clicked
to open a file explorer focused on the file
2021-07-13 06:39:11 +10:00
Nyall Dawson
3ff67896a5 Consider sublayers with unknown counts as incomplete details 2021-07-13 06:39:11 +10:00
Nyall Dawson
e685ad00b3 Add methods to return QgsProviderSublayerDetails corresponding
to QModelIndex
2021-07-13 06:39:11 +10:00
Nyall Dawson
c04140443b Equality operator for QgsProviderSublayerModel.NonLayerItem 2021-07-13 06:39:11 +10:00
Alessandro Pasotti
878b2436a5 Address PR comments - part 2 2021-07-07 12:43:14 +02:00
Alessandro Pasotti
78a42cf7e8 Address PR comments 2021-07-06 21:02:25 +02:00
Alessandro Pasotti
233a8097ba Add rowCount to connections API
+ fix memory leak in API fetcher
+ add progress bar to result widget
2021-07-06 21:00:54 +02:00
Alessandro Pasotti
9384c78939 Add base tests for create SQL layer 2021-07-06 21:00:54 +02:00
Alessandro Pasotti
927669df2b Move target to 3.22 2021-07-06 20:59:58 +02:00
Alessandro Pasotti
aa6c1bd5ed Add flag for select at id in the result dlg 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
27eb5743ad Provider QSCI APIs for sqlite and PG 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
34c5cdcf2d Handle fid and geom cols in GPKG exec sql 2021-07-06 20:58:35 +02:00
Alessandro Pasotti
cf260226a3 Create SQL layer and widget config based on enum 2021-07-06 20:56:07 +02:00