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

Clarify how OGC API-Processes receives vector feature data from implementations of OGC API - Features #91

Closed
ghobona opened this issue Aug 4, 2020 · 3 comments

Comments

@ghobona
Copy link
Contributor

ghobona commented Aug 4, 2020

Section 7.9.2 and 7.11.2 present examples that show "inlineValue": "<test/>". It is unclear, from the example, how features retrieved from an implementation OGC API - Features would be passed to an implementation of OGC API - Processes.

Does <test/> mean that one would add GML or GeoJSON to the request payload?...or does it mean that one would reference a GML or GeoJSON document via URL?

Please coordinate with the OGC API - Features SWG to identify a suitable example.

@ghobona ghobona changed the title Clarify how OGC API-Processes receives vector feature data from the Features API Clarify how OGC API-Processes receives vector feature data from implementations of OGC API - Features Aug 4, 2020
@jerstlouis
Copy link
Member

jerstlouis commented Aug 18, 2020

@ghobona @cportele @pvretano

In #47 , we propose an approach where Collections are inputs and outputs of processes, and where data can be exchanged using the best suited OGC API (including coverages, features, tiles, dggs...). This is the subject of our Modular OGC API Workflows project, and what may become a Workflows extension for OGC API - Processes.

An example MOAW workflow referring to an arbitrary OGC API - Features implementation would look simply like:

{
   "process" : "http://server.com/ogcapi/processes/BufferFeatures",
   "inputs" : {
      "data" : {
         "collection" : "http://somewhereelse.com/ogcapi/datasets/somedataset/collections/someFeatureCollection"
      },
      "distance" : { "value" : 30 }
   }
}

The result of which, if set up as a virtual collection or using deferred processing, may also be accessed using a Features API which is clueless about the fact that this is the result of a process being executed (or even through a Maps API or Map Tiles API rendering that resulting coverage). All this being client-driven (processing only on an as-needed basis).

@ghobona ghobona moved this from To do to In progress in OGC API - Cross SWG topics Feb 18, 2021
@ghobona
Copy link
Contributor Author

ghobona commented Mar 19, 2021

Based on the example is Section 7.9.2. Is this example correct?

{
	"id": "EchoProcess",
	"inputs": {
		"complexInputId": {
			"format": {
				"mediaType": "application/geo+json"
			},
			"href": "https://example.org/ogcapi/collections/DaraaRecreationPnt?f=json"
		}
	},
	"outputs": {
		"complexOutputsId": {
			"format": {
				"mediaType": "text/plain"
			},
			"transmissionMode": "reference"
		}
	},
	"response": "document",
	"mode": "async"
}

@jerstlouis
Copy link
Member

jerstlouis commented Jun 15, 2021

@ghobona For the Workflows extension, it should use collection instead of href, and not specify query parameters like e.g. f=json or a bounding box, (and not include e.g. /items -- you didn't in this example, but that was inconsistent with the GeoJSON mediaType) allowing the processing service and the data delivery service to negotiate proper encodings, area of interest, etc. Similarly, format is not provided for the input (the usual OGC API format negotiation applies).

mode is also gone in the latest version of Processes, and response and outputs are now optional.

@ghobona ghobona moved this from In progress to Write-up in OGC API - Cross SWG topics Aug 12, 2021
@ghobona ghobona moved this from Write-up to Done in OGC API - Cross SWG topics Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants