Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The /selection resource represents the selection capabilities of Weave. In Weave, selections are selections are a set of unique identifiers against an entity.

...

The /selection resource supports stateful operations, i.e. for an authenticated user session, Weave will add, delete or modify selections and perform other operations based on the selections that are stored in the user session.



Note

For /selection resource to function properly, the server must support user sessions. Additionally, the following parameter must be set:

Code Block
languagebash
themeConfluence
-Dcom.cohga.server.stateless=false




Sub-resources

1. /selection/sizes

...

type: String constant

accepted values: 

  • REPLACE - replaces any existing selections, if none exists, creates a new selection
  • ADD - adds the specified selections to the current selection
  • REMOVE - removes the specified selections from the current selection
  • REFINE - Keeps only those items found in the current selection that are contained in the specified selections
  • EXCHANGE - Implements the XOR operator between the current selection and the specified selection, "one or the other but not both"

shapeType - geometrical shape

type: integer constant

accepted values:

  • 0 - Point
  • 1 - Polygon with 4 vertices
  • 2 - Line connecting 2 points
  • 3 - Point with an optional buffer around it
  • 4 - Linestring - a line connecting 2 or more points
  • 5 - Linear ring - a closed linestring with 4 or more points

<map coordinate parameters> - depending on the shapeType, various map coordinate parameters may be provided

...