File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
services/common/rs_server_common/utils
tests/resources/endpoints Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -258,10 +258,9 @@ def odata_to_stac(
258258 if stac_key == "id" :
259259 feature_template ["id" ] = value
260260 continue
261- if stac_key == "geometry" :
261+ if stac_key == "geometry" and value :
262262 feature_template ["geometry" ] = value
263- if feature_template ["geometry" ]:
264- feature_template ["bbox" ] = _bbox_from_geometry (feature_template ["geometry" ])
263+ feature_template ["bbox" ] = _bbox_from_geometry (feature_template ["geometry" ])
265264 continue
266265 if stac_key in feature_template ["assets" ]["file" ]:
267266 feature_template ["assets" ]["file" ][stac_key ] = value
Original file line number Diff line number Diff line change 7272 }
7373 ],
7474 "collection" : " S1A_L0_IW_RAW"
75- }
75+ }
You can’t perform that action at this time.
0 commit comments