Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] Created: (UDIG-598) Edit tool creates 3 extra points when adding a new feature

Edit tool creates 3 extra points when adding a new feature
----------------------------------------------------------

         Key: UDIG-598
         URL: http://jira.codehaus.org/browse/UDIG-598
     Project: uDIG
        Type: Bug
  Components: tool edit  
    Versions: UDIG 1.0.1    
 Reporter: Cole Markham
 Assigned to: Jesse Eichar 
    Priority: Minor
     Fix For: UDIG 1.1


When adding a new feature with the edit tool, the first click creates a polygon with 4 points. 
The single point is used to create a JTS Polygon which is where the extra points come from.
This makes sense, because a polygon must be closed. It gives problems when editing this new
feature since there are now 3-4 duplicated points that the user isn't expecting to be there.

My proposed solution would be to remove the duplicated points at some point in the process. I am not
sure of the best point to do that. The obviously cannot be removed until the polygon would actually be
vaild, but at any time the user tries to move the affected point they will cause a problem.

The affected code begins in net.refractions.udig.tools.edit.FeatureEditTool.java line 259.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



Back to the top