Enhancement #961

Re-implement polygon import (as in v2)

Added by Blatti Yves over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:03/27/2015
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:SHOP
Target version:4.3.2
Sponsor: Ergonomic impact:
Functional impact:

Description

In v2, if a basket allows free perimeter selection, we can import a list of coordinates instead of drawing a polygon.
This is important for users with complex geometries.

We propose to place it as a tab in the perimeter definition popup.

The first tab named "selection tools" will propose the classic tools (see #943).
The second tab will have:
  • An explanation text
  • A textarea to paste the points list (one polygon)
  • A button to import

The second tab is only displayed if the basket allows free perimeter (if intersection of products perimeters list permits it).

This will be client-side only.

The process will be:
  • Click on "import tab"
  • Paste a list of coordinates, they'll have to be in the MAP projection system
  • On click of the "import" button, the system will:
    • Create a polygon from points
    • Close the polygon if necessary
    • Enter "polygon edit mode" (see #943)
    • Display error messages if needed (area limits, auto intersect #959, etc.)

Mockups:

Tab1

Tab2

Linked to #943

perimeter_tools_tab.png (384 KB) Blatti Yves, 03/27/2015 02:39 PM

perimeter_import_tab.png (386 KB) Blatti Yves, 03/27/2015 02:39 PM

History

#1 Updated by Van Hoecke Hélène over 4 years ago

  • Status changed from Request For Comments to Accepted
  • Assignee changed from Technical Committee to Blatti Yves

TC accepts but this functionnality should be activate/deactivate from administrator.

#2 Updated by Blatti Yves over 4 years ago

  • Status changed from Accepted to Affected

#3 Updated by Blatti Yves over 4 years ago

  • Status changed from Affected to Resolved
  • % Done changed from 0 to 100

Re-implemented.
If you paste 2 points: creates a rectangle, then selects the "rectangle edit mode"
If you paste 3+ point: creates a polygon, then selects the "polygon edit mode"

#4 Updated by Blatti Yves over 4 years ago

  • Status changed from Resolved to To merge
  • Assignee changed from Blatti Yves to Integrators

#5 Updated by Van Hoecke Hélène over 4 years ago

  • Assignee changed from Integrators to Van Hoecke Hélène
  • Target version set to 4.3.2

#6 Updated by Van Hoecke Hélène over 4 years ago

  • Status changed from To merge to Closed

#7 Updated by Van Hoecke Hélène over 4 years ago

  • Assignee deleted (Van Hoecke Hélène )

Also available in: Atom PDF