Skip to content

Multi node hanging problem fix - #301

Merged
fgdrf merged 2 commits into
locationtech:masterfrom
MSementsov-Ibk:multi-node-hanging-problem-fix
Oct 10, 2018
Merged

fgdrf merged 2 commits into
locationtech:masterfrom
MSementsov-Ibk:multi-node-hanging-problem-fix

Conversation

@MSementsov-Ibk

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

Copy link
Copy Markdown
Contributor

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>
@MSementsov-Ibk
MSementsov-Ibk force-pushed the multi-node-hanging-problem-fix branch from 8f0f432 to c378ffa Compare September 28, 2018 12:15
@nprigour

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Hi @nprigour,

yes I do mean vertices, sorry for the confusion.

@nprigour

nprigour commented Oct 1, 2018

Copy link
Copy Markdown
Contributor

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

MSementsov-Ibk commented Oct 1, 2018 •

Copy link
Copy Markdown
Contributor Author

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

nprigour commented Oct 6, 2018 •

Copy link
Copy Markdown
Contributor

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

MSementsov-Ibk commented Oct 8, 2018 •

Copy link
Copy Markdown
Contributor Author

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

@nprigour

nprigour commented Oct 9, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Formatting applied.

@fgdrf

fgdrf commented Oct 10, 2018

Copy link
Copy Markdown
Contributor

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

nprigour commented Oct 10, 2018 •

Copy link
Copy Markdown
Contributor

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.

3 participants