Nyall Dawson
98eeb014d7
Port QgisApp::addVectorLayerPrivate to new api
2021-07-13 06:39:11 +10:00
Nyall Dawson
aba7f13919
Correctly handle tin wkb types when querying ogr sublayers
2021-07-13 06:39:11 +10:00
Nyall Dawson
59f7b4cc07
Remove duplicate code
2021-07-13 06:39:11 +10:00
Nyall Dawson
79b622f14a
If OGR uri specifies an explicit layer, only consider this layer
...
when querying sublayers
2021-07-13 06:39:11 +10:00
Nyall Dawson
61c842165d
Commit missed file
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
665f6a5b08
OGR provider MUST include layername even for single sublayer gpkg/etc, in case more layers are added in future
2021-07-13 06:39:11 +10:00
Nyall Dawson
352c050c51
Respect sublayer prompt setting
2021-07-13 06:39:11 +10:00
Nyall Dawson
0a74c97966
Fix logic
2021-07-13 06:39:11 +10:00
Nyall Dawson
98178e17df
Fix another warning
2021-07-13 06:39:11 +10:00
Nyall Dawson
5cb167b013
Fix warning
2021-07-13 06:39:11 +10:00
Nyall Dawson
d44412ddb8
Can't monkey patch from core into gui classes
2021-07-13 06:39:11 +10:00
Nyall Dawson
d0beaae3a4
Move QgsSublayersDialog::PromptMode enum to Qgis and rename
2021-07-13 06:39:11 +10:00
Nyall Dawson
e01dc5d769
Special handling for aigrid base/group names
2021-07-13 06:39:11 +10:00
Nyall Dawson
ecd185fd8f
Cleanup layer name handling
2021-07-13 06:39:11 +10:00
Nyall Dawson
829ef1f7a4
Don't return empty layer names for mdal sublayers
2021-07-13 06:39:11 +10:00
Nyall Dawson
d7d50c5154
Fix sublayer name of aigrid files with uris pointing to .adf file
2021-07-13 06:39:11 +10:00
Nyall Dawson
1321b33dde
Double click to add single layer
2021-07-13 06:39:11 +10:00
Nyall Dawson
5e41371f02
WIP
2021-07-13 06:39:11 +10:00
Nyall Dawson
b5a2b32053
Finish porting mesh sublayer handling
2021-07-13 06:39:11 +10:00
Nyall Dawson
41d2206890
Port mesh layer adding to new api/dialog
2021-07-13 06:39:11 +10:00
Nyall Dawson
d44f31000d
Start depreating
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
Nyall Dawson
94b7ef9ea9
Don't show an icon for unknown geometry types
2021-07-13 06:39:11 +10:00
Matthias Kuhn
49a9fec864
missing sip file
2021-07-12 22:26:15 +02:00
Matthias Kuhn
a4a100e376
sip_include
2021-07-12 18:32:00 +02:00
Damiano Lombardi
18bd5833bb
Moved settingsRespectScreenDPI to new settings registry gui
2021-07-12 15:51:30 +02:00
Mathieu Pellerin
f7646705cc
Merge pull request #44099 from domi4484/fix44087MissingTypeNamesForURIRegexMemoryProvider
...
Added missing type names to uri parsing regex for memory provider
2021-07-12 20:05:54 +07:00
Damiano Lombardi
bd22811db7
Regex as cons thread_local
2021-07-12 13:30:23 +02:00
Sandro Mani
7d13ccee5a
Merge pull request #44112 from qgis/collision
...
Rename _serialize -> __serialize
2021-07-12 12:05:26 +02:00
Vincent Cloarec
d2fae52497
adapt 3D for live update with mesh editing ( #44025 )
2021-07-12 11:17:39 +02:00
Damiano Lombardi
b2c28b03a4
Default length/precision for double/real fields
2021-07-11 15:11:49 +02:00
Damiano Lombardi
eaa9fa97b9
MemoryProvider respect field name when parsing a URI with unknown typeName
2021-07-11 12:01:50 +02:00
Damiano Lombardi
e74585c238
Update src/core/providers/memory/qgsmemoryprovider.cpp
...
Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
2021-07-11 10:48:03 +02:00
Alessandro Pasotti
aa64b29a5d
Merge pull request #43993 from elpaso/bugfix-gh43978-value-relation-qlr-load
...
Fix value relation QLR loading bug
2021-07-11 10:06:14 +02:00
Alessandro Pasotti
df604541b0
Merge pull request #43785 from elpaso/bugfix-gh43061-save-action-disabled-on-embedded-relation-form-when-transaction
...
Enable save icon for embedded relations in same transaction group
2021-07-11 10:05:44 +02:00
Alessandro Pasotti
91370a9082
Merge pull request #44051 from elpaso/connections-api-results-widget
...
Connections api results widget
2021-07-10 15:30:37 +02:00
Even Rouault
2071cd80d6
Merge pull request #44094 from nirvn/filedownloaderalg_throw_fix
...
[processing] Fix file download alg stuck in infinit loop when network errors occur
2021-07-10 11:49:59 +02:00
Sandro Mani
1d73fcb33f
Rename _serialize -> __serialize to fix collision with _serialize from serializeintrin.h
2021-07-10 11:19:27 +02:00
Harrissou Sant-anna
72626d17e6
Mention 3.20 url in c++ api website
2021-07-10 06:36:35 +10:00
Sandro Mani
3abd80cffa
Update qgspathresolver.sip.in
2021-07-10 06:35:19 +10:00
Sandro Mani
ed16882c18
Use $ rather than @ in documentation
2021-07-10 06:35:19 +10:00
Alessandro Pasotti
542806343c
Flake 8
2021-07-09 18:04:14 +02:00
Alessandro Pasotti
e79c3c3a16
Move test
2021-07-09 17:57:19 +02:00
Alessandro Pasotti
48deba5c1e
Fix value relation QLR loading bug
...
Fixes #43978
2021-07-09 17:56:42 +02:00
Alessandro Pasotti
a94e089490
Better logic for sql layer tests
2021-07-09 17:53:40 +02:00
Damiano Lombardi
48cc393dbd
Added missing type names to uri parsing regex for memory provider
...
- This was causing strange field names when cloning layers. fixes #44087
- Some code cleanup + QRegexp replaced with QRegularExpression
2021-07-09 13:12:26 +02:00