|
| 1 | +{ |
| 2 | + "id": "GFM", |
| 3 | + "parameters": [ |
| 4 | + { |
| 5 | + "schema": { |
| 6 | + "type": "array", |
| 7 | + "subtype": "temporal-interval", |
| 8 | + "title": "Single temporal interval", |
| 9 | + "description": "Left-closed temporal interval, represented as two-element array with the following elements:\n\n1. The first element is the start of the temporal interval. The specified instance in time is **included** in the interval.\n2. The second element is the end of the temporal interval. The specified instance in time is **excluded** from the interval.\n\nThe specified temporal strings follow [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html). Although [RFC 3339 prohibits the hour to be '24'](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.7), **this process allows the value '24' for the hour** of an end time in order to make it possible that left-closed time intervals can fully cover the day. `null` can be used to specify open intervals.", |
| 10 | + "minItems": 2, |
| 11 | + "maxItems": 2, |
| 12 | + "items": { |
| 13 | + "description": "Processes and implementations may choose to only implement a subset of the subtypes specified here. Clients must check what back-ends / processes actually support.", |
| 14 | + "anyOf": [ |
| 15 | + { |
| 16 | + "type": "string", |
| 17 | + "subtype": "date-time", |
| 18 | + "format": "date-time", |
| 19 | + "title": "Date with Time", |
| 20 | + "description": "Date and time representation, as defined for `date-time` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6)." |
| 21 | + }, |
| 22 | + { |
| 23 | + "type": "string", |
| 24 | + "subtype": "date", |
| 25 | + "format": "date", |
| 26 | + "title": "Date only", |
| 27 | + "description": "Date only representation, as defined for `full-date` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6). The time zone is UTC." |
| 28 | + }, |
| 29 | + { |
| 30 | + "type": "string", |
| 31 | + "subtype": "time", |
| 32 | + "format": "time", |
| 33 | + "title": "Time only", |
| 34 | + "description": "Time only representation, as defined for `full-time` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6). Although [RFC 3339 prohibits the hour to be '24'](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.7), this definition allows the value '24' for the hour as end time in an interval in order to make it possible that left-closed time intervals can fully cover the day." |
| 35 | + }, |
| 36 | + { |
| 37 | + "type": "string", |
| 38 | + "subtype": "year", |
| 39 | + "minLength": 4, |
| 40 | + "maxLength": 4, |
| 41 | + "pattern": "^\\d{4}$", |
| 42 | + "title": "Year only", |
| 43 | + "description": "Year representation, as defined for `date-fullyear` by [RFC 3339 in section 5.6](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6)." |
| 44 | + }, |
| 45 | + { |
| 46 | + "type": "null" |
| 47 | + } |
| 48 | + ] |
| 49 | + }, |
| 50 | + "examples": [ |
| 51 | + [ |
| 52 | + "2015-01-01T00:00:00Z", |
| 53 | + "2016-01-01T00:00:00Z" |
| 54 | + ], |
| 55 | + [ |
| 56 | + "2015-01-01", |
| 57 | + "2016-01-01" |
| 58 | + ], |
| 59 | + [ |
| 60 | + "00:00:00Z", |
| 61 | + "12:00:00Z" |
| 62 | + ], |
| 63 | + [ |
| 64 | + "2015-01-01", |
| 65 | + null |
| 66 | + ] |
| 67 | + ] |
| 68 | + }, |
| 69 | + "name": "temporal", |
| 70 | + "description": "Scrediption" |
| 71 | + }, |
| 72 | + { |
| 73 | + "schema": { |
| 74 | + "type": "object", |
| 75 | + "subtype": "bounding-box", |
| 76 | + "title": "Bounding Box", |
| 77 | + "description": "A bounding box with the required fields `west`, `south`, `east`, `north` and optionally `base`, `height`, `crs`. The `crs` is a EPSG code, a WKT2:2018 string or a PROJ definition (deprecated).", |
| 78 | + "required": [ |
| 79 | + "west", |
| 80 | + "south", |
| 81 | + "east", |
| 82 | + "north" |
| 83 | + ], |
| 84 | + "properties": { |
| 85 | + "west": { |
| 86 | + "description": "West (lower left corner, coordinate axis 1).", |
| 87 | + "type": "number" |
| 88 | + }, |
| 89 | + "south": { |
| 90 | + "description": "South (lower left corner, coordinate axis 2).", |
| 91 | + "type": "number" |
| 92 | + }, |
| 93 | + "east": { |
| 94 | + "description": "East (upper right corner, coordinate axis 1).", |
| 95 | + "type": "number" |
| 96 | + }, |
| 97 | + "north": { |
| 98 | + "description": "North (upper right corner, coordinate axis 2).", |
| 99 | + "type": "number" |
| 100 | + }, |
| 101 | + "base": { |
| 102 | + "description": "Base (optional, lower left corner, coordinate axis 3).", |
| 103 | + "type": [ |
| 104 | + "number", |
| 105 | + "null" |
| 106 | + ] |
| 107 | + }, |
| 108 | + "height": { |
| 109 | + "description": "Height (optional, upper right corner, coordinate axis 3).", |
| 110 | + "type": [ |
| 111 | + "number", |
| 112 | + "null" |
| 113 | + ] |
| 114 | + }, |
| 115 | + "crs": { |
| 116 | + "description": "Coordinate reference system of the extent, specified as as [EPSG code](http://www.epsg-registry.org/), [WKT2 (ISO 19162) string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html) or [PROJ definition (deprecated)](https://proj.org/usage/quickstart.html). Defaults to `4326` (EPSG code 4326) unless the client explicitly requests a different coordinate reference system.", |
| 117 | + "anyOf": [ |
| 118 | + { |
| 119 | + "type": "integer", |
| 120 | + "subtype": "epsg-code", |
| 121 | + "title": "EPSG Code", |
| 122 | + "description": "Specifies details about cartographic projections as [EPSG](http://www.epsg.org) code.", |
| 123 | + "minimum": 1000, |
| 124 | + "examples": [ |
| 125 | + 3857 |
| 126 | + ] |
| 127 | + }, |
| 128 | + { |
| 129 | + "type": "string", |
| 130 | + "subtype": "wkt2-definition", |
| 131 | + "title": "WKT2 definition", |
| 132 | + "description": "Specifies details about cartographic projections as WKT2 string. Refers to the latest WKT2 version (currently [WKT2:2018](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html) / ISO 19162:2018) unless otherwise stated by the process." |
| 133 | + }, |
| 134 | + { |
| 135 | + "type": "string", |
| 136 | + "subtype": "proj-definition", |
| 137 | + "title": "PROJ definition", |
| 138 | + "description": "**DEPRECATED.** Specifies details about cartographic projections as [PROJ](https://proj.org/usage/quickstart.html) definition." |
| 139 | + } |
| 140 | + ], |
| 141 | + "default": 4326 |
| 142 | + } |
| 143 | + } |
| 144 | + }, |
| 145 | + "name": "spatial", |
| 146 | + "description": "epatial sxtant" |
| 147 | + } |
| 148 | + ], |
| 149 | + "process_graph": { |
| 150 | + "load1": { |
| 151 | + "process_id": "load_collection", |
| 152 | + "arguments": { |
| 153 | + "id": "GFM", |
| 154 | + "spatial_extent": { |
| 155 | + "from_parameter": "spatial" |
| 156 | + }, |
| 157 | + "temporal_extent": { |
| 158 | + "from_parameter": "temporal" |
| 159 | + }, |
| 160 | + "properties": {} |
| 161 | + } |
| 162 | + }, |
| 163 | + "reduce1": { |
| 164 | + "process_id": "reduce_dimension", |
| 165 | + "arguments": { |
| 166 | + "data": { |
| 167 | + "from_node": "load1" |
| 168 | + }, |
| 169 | + "reducer": { |
| 170 | + "process_graph": { |
| 171 | + "sum1": { |
| 172 | + "process_id": "sum", |
| 173 | + "arguments": { |
| 174 | + "data": { |
| 175 | + "from_parameter": "data" |
| 176 | + } |
| 177 | + }, |
| 178 | + "result": true |
| 179 | + } |
| 180 | + } |
| 181 | + }, |
| 182 | + "dimension": "time" |
| 183 | + } |
| 184 | + }, |
| 185 | + "save2": { |
| 186 | + "process_id": "save_result", |
| 187 | + "arguments": { |
| 188 | + "format": "GTIFF", |
| 189 | + "data": { |
| 190 | + "from_node": "reduce1" |
| 191 | + } |
| 192 | + }, |
| 193 | + "result": true |
| 194 | + } |
| 195 | + } |
| 196 | +} |
0 commit comments