Nyall Dawson
7236b50930
Add QgsAbstractDatabaseProviderConnection interface for retrieving relationships for a database
2022-08-02 15:44:40 +10:00
Nyall Dawson
4981f1846f
Expose QgsWeakRelation to PyQGIS
2022-08-02 15:44:40 +10:00
Nyall Dawson
89c613a112
Move relationship enums to Qgis, promote to enum class
2022-08-02 15:44:40 +10:00
Nyall Dawson
26eaa24934
Restore QgsFeature equality operators in Python
...
These were (accidentally?) ommited in 9050cc14d, and then
incorrectly marked as sip_skip when sipify was first introduced
as a result
2022-08-01 16:56:48 +10:00
Nyall Dawson
810f021469
Handle schema names in table sources in QgsSqlStatementParser
2022-08-01 16:17:20 +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
932cab02a7
Fix build
2022-08-01 13:17:43 +10:00
Nyall Dawson
4b8603748d
Fix build
2022-08-01 13:17:43 +10:00
Nyall Dawson
0a0c25eb31
Expand out the current layer path in the change data source/fix data
...
source dialog
Makes it much quicker to fix paths!!
2022-08-01 13:17:43 +10:00
Nyall Dawson
e7152239a1
Add method to retrieve root items from browser model
2022-08-01 13:17:43 +10:00
Nyall Dawson
bce59924df
Add method to expand out a directory path in the browser tree view
...
Gives us an easy way to automatically open a bunch of folders
to show a particular path as desired, instead of making users
always manually expand out the folder items themselves.
2022-08-01 13:17:43 +10:00
Nyall Dawson
460ac8b556
Ensure sort key is always correctly set for QgsDirectoryItem
2022-08-01 13:17:43 +10:00
Nyall Dawson
023c0e1cdf
Add method to split a path up to list of separate components
...
Suprisingly qt itself doesn't have a method for this!
2022-08-01 13:17:43 +10:00
Nyall Dawson
8c5dd2dc02
Add sip cast code for QgsBrowserTreeView
2022-08-01 13:17:43 +10:00
Nyall Dawson
b5170c1af9
Fix doxygen test'
2022-08-01 12:37:35 +10:00
Nyall Dawson
618978d8b2
Add QgsFeature::isUnsetValue for testing whether an attribute is an unset value
2022-08-01 12:37:35 +10:00
Nyall Dawson
81dc8769a7
Allow direct construction of QVariants from unset values
2022-08-01 12:37:35 +10:00
Nyall Dawson
306276bed1
Metatype QgsUnsetAttributeValue
2022-08-01 12:37:35 +10:00
Nyall Dawson
31ae975923
Introduce QgsUnsetAttributeValue
2022-08-01 12:37:35 +10:00
Zayne Tomlins
3f20c88a62
Fixed lint issue with unit tests
2022-08-01 12:35:58 +10:00
Alessandro Pasotti
f5487ecc6f
Merge pull request #49464 from elpaso/bugfix-gh47387
...
Fix relation editor ESC and referenced save
2022-07-28 09:18:09 +02:00
Jean Felder
b69feb0817
qgsphongtexturedmaterialsettings: Add support for opacity
...
Qt3DRender::QTexture2D does not handle opacity. Therefore, it is not
possible to use the default Qt3DExtras::QDiffuseSpecularMaterial
implementation. This problem is solved by using
Qt3DRender::QMaterial and copying the
Qt3DExtras::QDiffuseSpecularMaterial shaders from Qt3D source
code. Then, the texture color needs to be changed to set the correct
opacity. This is achieved in the fragement shader:
```
vec4 diffuseTextureColor = vec4(texture(diffuseTexture, texCoord).rgb,
opacity);
```
instead of the default:
```
vec4 diffuseTextureColor = vec4(texture(diffuseTexture, texCoord));
```
As far as the FrameGraph is concerned, this is already handled in
Qgs3DMapScene::finalizeNewEntity which checks for all material which
have an effect with an opacity parameter.
2022-07-25 07:38:12 -07:00
Alessandro Pasotti
5c7bf29afe
Fix relation editor ESC and referenced save
...
Fixes #47387 and another bug (unreported or #40549 ?)
where digitizing the referencing feature of a newly added
referenced feature (in transaction mode) failed due to the
form being closed and the reference feature not saved.
The new behavior is that the form is brought back after the
digitizing of the referencing feature has been completed or
user-interrupted, this way the referenced layer form can be
saved or dismissed as expected.
Funded by: ARPA Piemonte
2022-07-25 12:25:14 +02:00
Zayne Tomlins
dc2bad87c2
[feature] Added new ellipse marker shapes
...
Added Pentagon, Hexagon, Octagon, Third Circle, Quarter Circle & Star to ellipse marker shapes.
2022-07-25 18:51:13 +10:00
Nyall Dawson
4c5be9cb85
Dox++
2022-07-23 06:04:02 +10:00
Nyall Dawson
60bb4b321b
Add method to launder layer names to get them into a format
...
suitable for typical database layer naming
2022-07-23 06:04:02 +10:00
signedav
4b1d8b7fc3
update docstring
2022-07-21 06:46:57 +10:00
signedav
716f9b80fd
improve tests and remove unused debug log
2022-07-21 06:46:57 +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
a49f487b7f
Don't try to load missing cpt ramps, part 2
2022-07-20 13:59:13 +10:00
Jean Felder
11bb812f7d
qgsphongmaterialsettings: Fix setOpacity documentation
2022-07-19 08:04:39 -07:00
Andrea Giudiceandrea
8914ff52ba
Fix MetaSearch core plugin metadata
...
Update the issue tracker URL. Remove the outdated changelog and useless "experimental" and "deprecated" parameters.
2022-07-19 05:36:29 +10:00
Nyall Dawson
bd37677f6a
Add missing file
2022-07-18 21:21:12 +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
f821fefdf2
Add method to select a QgsDataItem directly in QgsBrowserTreeView
2022-07-18 12:50:18 +10:00
Nyall Dawson
f57f9485d1
Add browser tree view to QgsDataItemGuiContext
...
This allows the item gui providers to access the view associated
with an action, e.g. to automatically select something in that
view
2022-07-18 12:50:18 +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
Julien Cabieces
d5505e329d
Add missing Q_OBJECT macros and enable clazy check missing-qobject-macro
2022-07-13 08:24:23 +10:00
Nyall Dawson
8dc9635dbc
Only offer to create supported domain types
2022-07-13 06:44:58 +10:00
Nyall Dawson
8b15f59639
Force use of raster masking in layout designer preview
...
The vector masking (while great for output quality) is much slower,
so for the layout designer preview renders we just use the faster
raster approach.
2022-07-12 14:59:43 +10:00
Nyall Dawson
5a6b76abaf
Fix difference algorithm when differencing a point results in
...
a null geometry
Fixes #49291
2022-07-12 11:42:10 +10:00
Nyall Dawson
9b09445c08
Change project style disabling from being a project load flag
...
to a new project "capability"
This avoids the unwanted cost of initialising a blank style database
whenever QgsProject::clear is called and project styles are not
required (eg. for server)
2022-07-11 15:22:11 +10:00
Nyall Dawson
8d25fe973f
Indentation
2022-07-09 07:12:08 +10:00