Skip to content
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

Multi node hanging problem fix #301

Merged

Conversation

MSementsov-Ibk
Copy link
Contributor

@MSementsov-Ibk MSementsov-Ibk commented Sep 28, 2018

When selecting a bunch of nodes in a dragging them around randomly, some nodes tend to get stuck on other nodes.

Signed-off-by: Michael Sementsov michael.sementsov@ibykus.de

Signed-off-by: Michael Sementsov <michael.sementsov@ibykus.de>
@nprigour
Copy link
Contributor

Hi @MSementsov-Ibk,

Just to clarify with the term nodes you mean i.e. vertices of a feature of type polygon, multipolygon etc or just single point features on a point layer?

@MSementsov-Ibk
Copy link
Contributor Author

Hi @nprigour,

yes I do mean vertices, sorry for the confusion.

@nprigour
Copy link
Contributor

nprigour commented Oct 1, 2018

Can you clarify the following:

  • the problem occurs when edit geometry tool is activated?
  • the problem may occur when selecting multiple vertices of the same feature or of different features?
  • should a certain snapping mode be active (or it is irrelevant)?

I tried to replicate the problem by dragging around some feature vertices while in edit mode but without luck.

  • Do you have an example shp layer (populated with features) that can be used to demonstrate the problem?

@MSementsov-Ibk
Copy link
Contributor Author

MSementsov-Ibk commented Oct 1, 2018

Sorry, I'm pretty bad at explaining things, so I made a video demonstrating the issue.

current

fixed

I hope that helps.

The .shp used in the video

@fgdrf fgdrf added the bug label Oct 5, 2018
@fgdrf fgdrf added this to the 2.1.0 milestone Oct 5, 2018
@nprigour
Copy link
Contributor

nprigour commented Oct 6, 2018

Hi @MSementsov-Ibk
I have some problems with loading as a layer the supplied test shp file. Can you add to the zip all the accompanied files (.dbf, .prj, .fix etc.)?

@MSementsov-Ibk
Copy link
Contributor Author

MSementsov-Ibk commented Oct 8, 2018

@nprigour
Sure, here you go. These are all the files I used.
all_test.zip

@nprigour
Copy link
Contributor

nprigour commented Oct 9, 2018

OK issue replicated. It seems that the problem occurs when selecting and moving coordinates of a feature that are very close one to the other.
Although I did not exhaustively reviewed the altered code from a few UI testing on the Map Editor it seems that after applyig the PR moving of features works pretty fine.

Note that If considered for merge code style must be corrected.

Signed-off-by: Michael Sementsov <michael.sementsov@ibykus.de>
@MSementsov-Ibk
Copy link
Contributor Author

Formatting applied.

@fgdrf
Copy link
Contributor

fgdrf commented Oct 10, 2018

Looks like the whole file was re-formated which hides modification for this bugfix a bit. However, thanks for the fix

@fgdrf fgdrf merged commit 3d4b241 into locationtech:master Oct 10, 2018
@nprigour
Copy link
Contributor

nprigour commented Oct 10, 2018

Since the formatting was applied as a separate commit we can infer the exact changes if we check the PR.
However @MSementsov-Ibk it would be good in general to apply formatting only to the part of the file you modify. If using eclipse this can be achieved by selecting only the modified fragment of code in the editor and then selecting source-->format from the popup menu :)

MSementsov-Ibk added a commit to MSementsov-Ibk/udig-platform that referenced this pull request Oct 17, 2018
* Multi node hanging problem fix

Signed-off-by: Michael Sementsov <michael.sementsov@ibykus.de>
fgdrf pushed a commit to fgdrf/udig-platform that referenced this pull request Dec 23, 2019
* Multi node hanging problem fix

Signed-off-by: Michael Sementsov <michael.sementsov@ibykus.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants