Skip to content

Commit 739aa71

Browse files
Merge pull request #194 from Open-EO/issue72_openeo-geotrellis-extensions_put_proj_bbox_for_item_level_on_separate_field
Add proj:bbox to BatchJobsMetadata
2 parents 72df087 + 5b37cca commit 739aa71

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

openeo_driver/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.48.1a1"
1+
__version__ = "0.49.0a1"

openeo_driver/backend.py

+2
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ class BatchJobMetadata(NamedTuple):
298298
# TODO: #190 openEO API associates `links` with the job *result* metadata, not the job itself
299299
links: List[Dict] = None
300300
usage: Dict = None
301+
# TODO #190 the STAC projection extension fields "proj:..." are not batch job metadata, but batch job *result* metadata:
301302
proj_shape: List[int] = None
303+
proj_bbox: List[int] = None
302304

303305
@property
304306
def duration(self) -> Union[timedelta, None]:

openeo_driver/views.py

+5
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ def _properties_from_job_info(job_info: BatchJobMetadata) -> dict:
744744
if job_info.epsg:
745745
properties["proj:epsg"] = job_info.epsg
746746

747+
if job_info.proj_bbox:
748+
properties["proj:bbox"] = job_info.proj_bbox
749+
747750
if job_info.proj_shape:
748751
properties["proj:shape"] = job_info.proj_shape
749752

@@ -1178,6 +1181,8 @@ def _get_job_result_item(job_id, item_id, user_id):
11781181

11791182
if job_info.proj_shape:
11801183
properties["proj:shape"] = job_info.proj_shape
1184+
if job_info.proj_bbox:
1185+
properties["proj:bbox"] = job_info.proj_bbox
11811186

11821187
stac_item = {
11831188
"type": "Feature",

0 commit comments

Comments
 (0)