Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] edit geom tool feedback

I performed the same test under two different conditions.

1. Using the natural earth counties layer … Zoom into a small island on the east coast of the united states.
2. Change to the edit geometry tool
3. Clock on the island to start editing, the geometry coordinates for the island will each be represented as a vertex
4. Click on a vertex (it should look selected)
5. Click and drag that single vertex (this usually works)
6. Click and drag a box around all the vertex shown for the island (they all look selected)
7. Click and drag all the vertex to move the island (this usually works).

Now I perform the same tests but zoomed out, so that each vertex represents many geometry coordinates

1. Zoom out so that the island is only a couple pixels big
2. Change to the edit geometry tool
3. Clock on the island to start editing, the geometry coordinates for the island will be represented as 2 or 3 vertex
6. Click and drag a box around all the vertex shown for the island (they all look selected)
7. Click and drag all the vertex to move the island (this fails and is how the screen snap shown earlier was produced).

I did not look for a NPE, only noted the failure.

Jody

Hi, let me check my understood.
Steps:
1 - Select Edit Geometry tool
2 - Select a Geometry
3 - Zoom out
4 - Select all point to move (bbox selection strategy)
5- Drag the geometry
Result: the poligon is shown in the new position but one vertex is presented
in the original position (was not moved)

A Null Pointer exception is thrown

!ENTRY net.refractions.udig.project 1 0 2013-02-14 09:10:01.376
!MESSAGE [Snap To Vertex Command] failed to run
!STACK 0
java.lang.NullPointerException: No points associated with (384,114)
at
net.refractions.udig.tools.edit.support.EditBlackboard.setCoords(EditBlackboard.java:1286)
at
net.refractions.udig.tools.edit.commands.MoveVertexCommand.run(MoveVertexCommand.java:77)
at
net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:82)
at
net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:395)
at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:326)
at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:312)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Even though I have done that step sequence many times this exception doesn't
appear.

(More testing / debug this afternoon)


cheers


--
Mauricio Pazos


Back to the top