File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,6 @@ def default_write_text_method(uri, txt):
14
14
with open (uri , 'w' ) as f :
15
15
f .write (txt )
16
16
17
- def default_stac_object_from_dict_method (d ):
18
- if 'type' in d :
19
- return Item .from_dict (d )
20
- elif 'extent' in d :
21
- return Collection .from_dict (d )
22
- else :
23
- return Catalog .from_dict (d )
24
-
25
17
"""Users of PySTAC can replace the read_text_method in order
26
18
to expand the ability of PySTAC to read different file systems.
27
19
For example, a client of the library might replace this class
@@ -39,7 +31,7 @@ def default_stac_object_from_dict_method(d):
39
31
write_text_method = default_write_text_method
40
32
41
33
# Replaced in __init__ to account for extension objects.
42
- stac_object_from_dict = default_stac_object_from_dict_method
34
+ stac_object_from_dict = None
43
35
44
36
# This is set in __init__.py
45
37
STAC_OBJECT_CLASSES = None
You can’t perform that action at this time.
0 commit comments