-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Altering the positions array of a feature that while it is being edited causes errors #253
Comments
I was able to replicate the issue. The editor manager is making a copy of the original feature. Any updates to the feature that are sent outside the editor manager are not getting detected and processed by the editor. This is why there are no control points. When the editing is committed the copy of the feature with the editing modifications overwrites any updates done to the feature while in edit mode. I found another issue when removing a feature that is getting edited, The feature remove request is sent to the engine and the feature is removed, but in the intent class it detects that the feature is in edit mode and it calls the editor manager's cancel function. The editor manager ends up re adding the original feature that was previously removed in another transaction. There are some decisions registered in Confluence about this case: What to do when a feature is removed during edit (https://confluence.di2e.net/display/EMP/What+to+do+when+a+feature+is+removed+during+edit )
What to do if an update comes for a feature under edit (https://confluence.di2e.net/display/EMP/What+to+do+when+a+feature+is+removed+during+edit ) What should a map engine do if a plot or update has zoom set to true while in edit or draw mode (https://confluence.di2e.net/display/EMP/What+to+do+when+a+feature+is+removed+during+edit )
What should a map engine do if an edit or draw command comes in if already in draw or edit mode (https://confluence.di2e.net/display/EMP/What+should+a+map+engine+do+if+an+edit+or+draw+command+comes+in+if+already+in+draw+or+edit+mode )
|
Test case: Use the dev branch. Plot an air corridor. edit the corridor. While in edit mode add an air corridor with the same identifier as the first. Then press the update button. The test is a success if the feature get updated and the control points correctly positioned. Go back to editFeature and press the commit button. The test is a success if the feature that renders on the map shows the last state of the updates to the feature. Plot an air corridor. edit the corridor. While in edit mode add an air corridor with the same identifier as the first. Then press the update button. The test is a success if the feature get updated and the control points correctly positioned. Go back to editFeature. edit the feature once more. then press the cancel button. The test is a success if the feature that renders on the map shows the last state of the external updates to the feature. |
What is your comment about the snapshot? |
Reintegrate |
Already merged into the dev branch. closing this issue. |
If the map is in edit mode and the feature that is being edited has its position array by adding or removing points the newly created lines will not have control points on them.
The following script will configure the map. Use a multi-point milstd line symbol for the graphic
The text was updated successfully, but these errors were encountered: