Constructor
new Builder(processes, parent, id)
Creates a Builder instance.
Each process passed to the constructor is made available as object method.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
processes |
array | object | Either an array containing processes or an object compatible with |
|
parent |
Builder | null | null | The parent builder, usually only used by the Builder itself. |
id |
string | A unique identifier for the process. |
- Source:
Methods
(async, static) fromURL(version) → {Builder}
Creates a Builder instance that can be used without connecting to a back-end.
It requests the processes for the version specified from the given URL. CORS needs to be implemented on the server-side for the URL given.
Parameters:
Name | Type | Description |
---|---|---|
version |
string | null |
- Source:
Throws:
Returns:
- Type
- Builder
(async, static) fromVersion(version) → {Builder}
Creates a Builder instance that can be used without connecting to a back-end.
It requests the processes for the version specified from processes.openeo.org. Requests the latest version if no version number is passed.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
version |
string | null | null |
- Source:
Throws:
Returns:
- Type
- Builder
math(formula) → {BuilderNode}
Adds a mathematical formula to the process.
See the Formula class for more information.
Parameters:
Name | Type | Description |
---|---|---|
formula |
string |
- Source:
Throws:
Returns:
- Type
- BuilderNode
process(processId, args, description) → {BuilderNode}
Adds another process call to the process chain.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
processId |
string | The id of the process to call. |
|
args |
object | array | The arguments as key-value pairs or as array. For objects, they keys must be the parameter names and the values must be the arguments. For arrays, arguments must be specified in the same order as in the corresponding process. |
|
description |
string | null | null | An optional description for the process call. |
- Source:
Returns:
- Type
- BuilderNode