Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: UDIG 1.2.RC2, UDIG 1.2.RC3
-
Fix Version/s: None
-
Component/s: tools and editing
-
Labels:None
-
Environment:win xp, jre 1.6.0_18
Description
1. enable "advanced editing" (window > preferences > tool > edit tool > advanced editing)
2. select "create polygon tool"
3. draw a polygon
4. commit
5. draw a second polygon. start drawing from a vertex of the previously created polygon.
result: Drawing doesn't begin as it should. See stacktrace from below.
- Works if "advanced editing" is not enabled.
- Current snapping behavior doesn't seem to have effect. You get error even if you have "no snapping".
- Works fine if the vertex to which you are snapping is not on same layer you are editing.
- Fails with point and line tools also.
Error from the log:
!ENTRY net.refractions.udig.project 1 0 2010-07-19 13:30:28.580
!MESSAGE [Select Geometry] failed to run
!STACK 0
java.util.NoSuchElementException
at net.refractions.udig.tools.edit.commands.SelectFeaturesAtPointCommand$IntersectTestingIterator.next(SelectFeaturesAtPointCommand.java:300)
at net.refractions.udig.tools.edit.commands.SelectFeaturesAtPointCommand$IntersectTestingIterator.next(SelectFeaturesAtPointCommand.java:1)
at net.refractions.udig.tools.edit.commands.SelectFeaturesAtPointCommand.runSelectionStrategies(SelectFeaturesAtPointCommand.java:188)
at net.refractions.udig.tools.edit.commands.SelectFeaturesAtPointCommand.run(SelectFeaturesAtPointCommand.java:111)
at net.refractions.udig.project.command.UndoableComposite.execute(UndoableComposite.java:81)
at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:394)
at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:325)
at net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:311)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Or actually, the above description is a wrong. A more correct description would be: You cannot starting drawing *inside* an existing feature.
1. enable advanced editing
2. draw a polygon
3. commit
4. draw a second polygon. start the drawing inside the first polygon.
result: Drawing doesn't start. See stacktrace from above.