-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #580 from crim-ca/echo-process+support-uom
- Loading branch information
Showing
49 changed files
with
4,005 additions
and
762 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
43 changes: 43 additions & 0 deletions
43
tests/functional/application-packages/EchoBoundingBox/deploy.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# YAML representation supported by WeaverClient | ||
processDescription: | ||
process: | ||
id: EchoBoundingBox | ||
title: Test Echo Bounding Box | ||
version: "1.0" # must be string, avoid interpretation as float | ||
description: Dummy process that simply echo's back the input bbox for testing purposes. | ||
keywords: | ||
- test | ||
inputs: | ||
bboxInput: | ||
schema: | ||
type: object | ||
format: ogc-bbox | ||
required: ["bbox"] | ||
properties: | ||
bbox: | ||
type: array | ||
items: | ||
type: number | ||
crs: | ||
type: string | ||
outputs: | ||
bboxOutput: | ||
schema: | ||
type: object | ||
format: ogc-bbox | ||
required: ["bbox"] | ||
properties: | ||
bbox: | ||
type: array | ||
items: | ||
type: number | ||
crs: | ||
type: string | ||
jobControlOptions: | ||
- async-execute | ||
outputTransmission: | ||
- reference | ||
executionUnit: | ||
# note: This does not work by itself! The test suite injects the file dynamically. | ||
- href: "tests/functional/application-packages/EchoBoundingBox/echo_bbox.cwl" | ||
deploymentProfileName: "http://www.opengis.net/profiles/eoc/dockerizedApplication" |
23 changes: 23 additions & 0 deletions
23
tests/functional/application-packages/EchoBoundingBox/echo_bbox.cwl
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cwlVersion: "v1.0" | ||
class: CommandLineTool | ||
baseCommand: cat | ||
requirements: | ||
DockerRequirement: | ||
dockerPull: "debian:stretch-slim" | ||
inputs: | ||
bboxInput: | ||
# for CWL, bbox is simply a JSON file! | ||
type: File | ||
format: "iana:application/json" | ||
inputBinding: | ||
position: 1 | ||
outputs: | ||
bboxOutput: | ||
# for CWL, bbox is simply a JSON file! | ||
type: File | ||
format: "iana:application/json" | ||
outputBinding: | ||
glob: "bbox.json" | ||
stdout: "bbox.json" | ||
$namespaces: | ||
iana: "https://www.iana.org/assignments/media-types/" |
11 changes: 11 additions & 0 deletions
11
tests/functional/application-packages/EchoBoundingBox/execute.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
bboxInput: | ||
# note: values can be integer, but use float here to make testing easier (values are auto-converted) | ||
bbox: [1., 2., 3., 4.] | ||
# note: | ||
# OGC-API BBOX definition is strict about needing an URI. | ||
# A simple namespaced CRS (eg: "urn:ogc:def:crs:EPSG::4326" or "EPSG:4326") is not sufficient. | ||
# Definitions can be loosened when using a nested qualified value, since bbox essentially becomes a generic object. | ||
# see: | ||
# - https://schemas.opengis.net/ogcapi/processes/part1/1.0/openapi/schemas/bbox.yaml | ||
# - https://github.com/opengeospatial/ogcapi-processes/blob/master/openapi/schemas/processes-core/bbox.yaml | ||
crs: "http://www.opengis.net/def/crs/OGC/1.3/CRS84" |
This file contains 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
Oops, something went wrong.