File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1721,7 +1721,7 @@ def _normalize_collection_metadata(metadata: dict, api_version: ComparableVersio
1721
1721
dim ["extent" ] = interval
1722
1722
1723
1723
# Make sure some required fields are set.
1724
- metadata .setdefault ("stac_version" , "0.9.0" if api_version . at_least ( "1.0.0" ) else "0.6.2" )
1724
+ metadata .setdefault ("stac_version" , "0.9.0" )
1725
1725
metadata .setdefault (
1726
1726
"stac_extensions" ,
1727
1727
[
@@ -1748,16 +1748,10 @@ def _normalize_collection_metadata(metadata: dict, api_version: ComparableVersio
1748
1748
# Warn about missing fields where simple defaults are not feasible.
1749
1749
fallbacks = {
1750
1750
"extent" : {"spatial" : {"bbox" : [default_bbox ]}, "temporal" : {"interval" : [default_temporal_interval ]}},
1751
- } if api_version .at_least ("1.0.0" ) else {
1752
- "extent" : {"spatial" : default_bbox , "temporal" : default_temporal_interval },
1753
1751
}
1754
1752
if full :
1755
- if api_version .at_least ("1.0.0" ):
1756
- fallbacks ["cube:dimensions" ] = {}
1757
- fallbacks ["summaries" ] = {}
1758
- else :
1759
- fallbacks ["properties" ] = {}
1760
- fallbacks ["other_properties" ] = {}
1753
+ fallbacks ["cube:dimensions" ] = {}
1754
+ fallbacks ["summaries" ] = {}
1761
1755
1762
1756
for key , value in fallbacks .items ():
1763
1757
if key not in metadata :
You can’t perform that action at this time.
0 commit comments