Skip to content

Commit 26263c8

Browse files
authored
Add outputs to pygeoapi processes in core (#1902)
* Add outputs to OAProc * Use **kwargs cc #1899 * Use named function arguments
1 parent 967dcf6 commit 26263c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pygeoapi/process/echo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(self, processor_def):
115115

116116
super().__init__(processor_def, PROCESS_METADATA)
117117

118-
def execute(self, data):
118+
def execute(self, data, outputs=None):
119119

120120
mimetype = 'application/json'
121121

pygeoapi/process/shapely_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def __init__(self, processor_def):
249249
self.supported_formats = [fmt.value for fmt in SupportedFormats]
250250
super().__init__(processor_def, PROCESS_METADATA)
251251

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

0 commit comments

Comments
 (0)