uDIG
  1. uDIG
  2. UDIG-1542

The Controls Point created by the edit geometry tool ( in previous interaction) are newly displayed when other tool is selected to edit the map

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: UDIG 1.2.M5
    • Fix Version/s: UDIG 1.2.M6
    • Component/s: tools and editing
    • Labels:
      None

      Description

      1- usr: Selects the edit geometry tool
      2- usr: clicks on a feature
      3- udig: presents the control points
      4- user: selects the tool "Select a feature at Point" (bbox) and selects another feature
      5- udig: presents the selection
      6- usr: selects the "create polygon tool" (or other tool that requires to use the EditBlackboard)
      7- udig: will present the first selection (selected in step 3)

        Activity

        Hide
        Mauricio Pazos added a comment - - edited
        In order to solve this issue we must change many tools. The general idea is that only the Edit tools (Edit vertex, add vertex, remove vertex, create hole) should present the last edit geometry (the yellow one) . Thus , creation tools don't take into account the last edit geom, actually they don't need to get that geometry to create a new one. So, the solution is very simple but need modify all tools.

        The following class has been created. It is responsible of delete the current selection from blackboard and leave the blackboard ready to create a new feature.

        ClearCurrentSelectionActivator.java


        This new activator is called by the following tools

        DefaultEditToolBehaviour.java
        RectangleTool.java
        PolygonTool.java
        LineTool.java
        PointTool.java
        FreeHandTool.java

        The ClearSelection.java's run method was modified to be used by the new created activator.

        This patch is available in
        http://svn.refractions.net/udig/udig/spike/axios/plugins/
        Show
        Mauricio Pazos added a comment - - edited In order to solve this issue we must change many tools. The general idea is that only the Edit tools (Edit vertex, add vertex, remove vertex, create hole) should present the last edit geometry (the yellow one) . Thus , creation tools don't take into account the last edit geom, actually they don't need to get that geometry to create a new one. So, the solution is very simple but need modify all tools. The following class has been created. It is responsible of delete the current selection from blackboard and leave the blackboard ready to create a new feature. ClearCurrentSelectionActivator.java This new activator is called by the following tools DefaultEditToolBehaviour.java RectangleTool.java PolygonTool.java LineTool.java PointTool.java FreeHandTool.java The ClearSelection.java's run method was modified to be used by the new created activator. This patch is available in http://svn.refractions.net/udig/udig/spike/axios/plugins/
        Hide
        Mauricio Pazos added a comment -
        Patch in Rev: 31393
        Show
        Mauricio Pazos added a comment - Patch in Rev: 31393

          People

          • Assignee:
            Unassigned
            Reporter:
            Mauricio Pazos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: