File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -113,15 +113,6 @@ def __str__(self) -> str:
113
113
return self .value
114
114
115
115
116
- def get_catalog (data_dict : Dict [str , Any ], r_session : Session ) -> Catalog :
117
- stac_io = StacIO .default ()
118
- if r_session .headers and r_session .headers .get ("Authorization" ):
119
- stac_io .headers = {"Authorization" : r_session .headers ["Authorization" ]}
120
- catalog = Catalog .from_dict (data_dict )
121
- catalog ._stac_io = stac_io
122
- return catalog
123
-
124
-
125
116
class BaseErrors :
126
117
def __init__ (self ) -> None :
127
118
self .errors : List [Tuple [str , str ]] = []
@@ -285,6 +276,15 @@ def is_geojson_type(maybe_type: Optional[str]) -> bool:
285
276
)
286
277
287
278
279
+ def get_catalog (data_dict : Dict [str , Any ], r_session : Session ) -> Catalog :
280
+ stac_io = StacIO .default ()
281
+ if r_session .headers and r_session .headers .get ("Authorization" ):
282
+ stac_io .headers = {"Authorization" : r_session .headers ["Authorization" ]}
283
+ catalog = Catalog .from_dict (data_dict )
284
+ catalog ._stac_io = stac_io
285
+ return catalog
286
+
287
+
288
288
# def is_json_or_geojson_type(maybe_type: Optional[str]) -> bool:
289
289
# return maybe_type and (is_json_type(maybe_type) or is_geojson_type(maybe_type))
290
290
You can’t perform that action at this time.
0 commit comments