Skip to content

Commit

Permalink
Add outputs to pygeoapi processes in core (geopython#1902)
Browse files Browse the repository at this point in the history
* Add outputs to OAProc

* Use **kwargs

cc geopython#1899

* Use named function arguments
  • Loading branch information
webb-ben authored Jan 29, 2025
1 parent 967dcf6 commit 26263c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygeoapi/process/echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(self, processor_def):

super().__init__(processor_def, PROCESS_METADATA)

def execute(self, data):
def execute(self, data, outputs=None):

mimetype = 'application/json'

Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/process/shapely_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def __init__(self, processor_def):
self.supported_formats = [fmt.value for fmt in SupportedFormats]
super().__init__(processor_def, PROCESS_METADATA)

def execute(self, data) -> Tuple[str, Dict[str, Any]]:
def execute(self, data, outputs=None) -> Tuple[str, Dict[str, Any]]:
mimetype = "application/json"
operation = data.get("operation")
output_format = data.get("output_format")
Expand Down

0 comments on commit 26263c8

Please sign in to comment.