Add filter to return exported results#71
Merged
mmacata merged 7 commits intoactinia-org:mainfrom Feb 17, 2026
Merged
Conversation
Co-authored-by: linakrisztian <106728040+linakrisztian@users.noreply.github.com>
This reverts commit 2deada7.
Member
Author
|
Tests for GRASS GIS 8.3 fail because base image is not updated (e.g with actinia-org/actinia-docker#130). @anikaweinmann what do you think - should we still support G83 in the tests? |
Member
|
FYI: the latest GRASS GIS 8.3.2 release is from 07 Mar 2024 (https://grass.osgeo.org/about/history/releases/), almost 2 years ago... |
Member
|
@mmacata I think we do not need the tests for G83. In |
Member
Author
|
I removed the tests for GRASS 8.3. I would only keep testing the latest version - the tests for GRASS 8.3 were added to test backward compatibility with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR
returnsitems from actinia module toparameters(as it really is a template placeholder value which needs to be filled, even though in the end an output is created)returnsarray for actinia modulesreturnsto both/modulesand/actinia_modulesendpointsreturns=exportis specified, it looks up export statements in the process chain template and adds them to the results arrayreturns=persistentwill be added in the future to add all parameters which have the'gisprompt.age' == 'new', value from GRASS GIS. This won't work out-of-the-box because only the GRASS GIS modules which have a placeholder in the template are requested for self-description yet.Example of new self description for default actinia module
slope_aspect{ "categories": [ "actinia-module", "global-template" ], "description": "Calculates slope and aspect of elevation map.", "id": "slope_aspect", "parameters": [ { "default": "FCELL", "description": "Type of output aspect and slope maps. Storage type for resultant raster map. [generated from r.slope.aspect_precision]", "name": "datatype", "optional": true, "schema": { "enum": [ "CELL", "FCELL", "DCELL" ], "type": "string" } }, { "description": "Name for output slope raster map. [generated from r.slope.aspect_slope]", "name": "name_of_output_slope", "optional": true, "schema": { "subtype": "cell", "type": "string" } }, { "description": "Name for output aspect raster map. [generated from r.slope.aspect_aspect]", "name": "name_of_output_aspect", "optional": true, "schema": { "subtype": "cell", "type": "string" } } ], "projects": [], "returns": [ { "description": [ "Exported result from exporter r.slope.aspect aspect parameter" ], "name": "{{ name_of_output_aspect }}", "schema": { "subtype": "GTiff", "type": "raster" } }, { "description": [ "Exported result from exporter exporter raster parameter" ], "name": "{{ name_of_output_slope }}", "schema": { "subtype": "GTiff", "type": "raster" } } ] }Example of new self description for default actinia module
point_in_polygon{ "categories": [ "actinia-module", "global-template" ], "description": "Imports point and polygon and checks if point is in polygon.", "id": "point_in_polygon", "parameters": [ { "description": "The input source that may be a landsat scene name, a sentinel2 scene name, a postGIS database string, or an URL that points to an accessible raster or vector file [generated from import_descr_source]", "name": "url_to_geojson_point", "optional": true, "schema": { "type": "string" } } ], "projects": [ "nc_spm_08" ], "returns": [ { "description": [ "Exported result from exporter exporter map parameter" ], "name": "point", "schema": { "subtype": "GeoJSON", "type": "vector" } } ] }