Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a function option to define a collector #209

Open
thorsten-reitz opened this issue Nov 6, 2016 · 0 comments
Open

Provide a function option to define a collector #209

thorsten-reitz opened this issue Nov 6, 2016 · 0 comments
Assignees

Comments

@thorsten-reitz
Copy link
Member

thorsten-reitz commented Nov 6, 2016

Currently, I can only create collectors in a Groovy function. Especially in conjunction with #185 it would make collectors much more powerful if it was possible to define a collector by piggy-backing it on any other function.

Using this feature, function #185 and enhancement #307 together enables use cases like these:

  1. Collect IDs of all Features of a specific Feature Type and then create local references, e.g. from a Network to its members
  2. Collect Geometries and then assign all of them together without requiring use of a computationally expensive Merge
  3. Collect IDs of Features and group them according to a value in the source data structure so as to create references to other features in a hierarchy, e.g. for lowerLevelUnits in AdministrativeUnits

Workflow:

  1. Select source and target schema element as need for the function, e.g. "Formatted String"
  2. Go through the regular steps of configuring the function
  3. On the "Additional Options" page, add option to collect results (checkbox) in a named collector (text input)
  4. Optionally, add a source mapping anchor (selector for a field in the source data structure) to store Key-Value pairs for the collected value and a key;

Enhancement: Differentiate between the initial function creation and later function editing steps. It might make sense to have a subset of options such as "Define Collector" only available in editing, so as not to make the initial function setup process too long.

@thorsten-reitz thorsten-reitz added this to the 3.2.0 milestone Nov 6, 2016
@thorsten-reitz thorsten-reitz modified the milestones: 3.1.1, 3.2.0 Dec 21, 2016
@thorsten-reitz thorsten-reitz changed the title Provide an augmentation function to define a collector Provide a function option to define a collector Jan 11, 2017
@stempler stempler modified the milestones: 3.2.0, 3.1.1 Jan 23, 2017
@florianesser florianesser modified the milestones: 3.4.0, 3.3.0 May 16, 2017
@thorsten-reitz thorsten-reitz removed this from the 3.4.0 milestone May 30, 2017
@florianesser florianesser added this to the 4.0.0 milestone Nov 29, 2018
@florianesser florianesser removed this from the 4.0.0 milestone Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants