-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from opengisch/editNewLinkedFeature
Allow editing of newly added join features
- Loading branch information
Showing
16 changed files
with
476 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
## Linking Relation Editor plugin for QGIS | ||
Linking Relation Editor plugin for QGIS | ||
======================================= | ||
|
||
This plugin provides a relation editor widget with an alternative linking dialog that looks somewhat like a link manager dialog. features can be linked and unlinked by moving them left and right. The effective link is created or destroyed when the dialog is accepted. | ||
|
||
![Peek 2022-11-24 15-48](https://user-images.githubusercontent.com/9881900/203868099-90d8ceae-cbb9-488b-9564-b60930e0f82e.gif) | ||
|
||
|
||
### Configuration | ||
# Configuration | ||
|
||
In the attribute form configuration select `Linking relation editor widget` as widget type for a relation: | ||
In the attribute form configuration select `Linking relation editor widget` as widget type for a relation. The most options are the same as for the stock QGIS Relation Editor Widget, see the related [documentation](https://docs.qgis.org/3.28/en/docs/user_manual/working_with_vector/vector_properties.html). | ||
|
||
![image](https://user-images.githubusercontent.com/9881900/204229315-1f77d01f-1c00-4574-8ea5-0bcf0e804e6f.png) | ||
|
||
|
||
## One to one relationship | ||
|
||
Linking can be restricted to one linked feature per feature by setting the Cardinality combobox to `One to one relation`. | ||
|
||
![Configuration cardinality one to one](documentation/ConfigurationCardinalityOneToOne.png) | ||
|
||
|
||
## Show and edit join table attributes | ||
|
||
![Configuration show and edit join table attributes](documentation/ConfigurationShowAndEditJoinTableAttributes.png) | ||
|
||
When this option is enabled, the link manager dialog will show the linked features in a tree structure instead of a simple list. The tree elements can be expanded to show the attribute form of the join feature. The attribute form can be configured as usual in the layer properties of the join layer. | ||
|
||
![Join feature editing](documentation/JoinFeatureEditing.gif) | ||
|
||
**Note:** If a feature is not respecting the constraints, it will not be linked/modified when the dialog is accepted. Other features with valid attributes will still be linked. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.