File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1671
1671
],
1672
1672
"source" : [
1673
1673
" # get all items anywhere below this catalog on the STAC tree\n " ,
1674
- " list(cat.get_all_items( ))"
1674
+ " list(cat.get_items(recursive=True ))"
1675
1675
]
1676
1676
},
1677
1677
{
1812
1812
],
1813
1813
"source" : [
1814
1814
" print(\"\\ n**Items**\" )\n " ,
1815
- " for i in cat.get_all_items( ):\n " ,
1815
+ " for i in cat.get_items(recursive=True ):\n " ,
1816
1816
" print(i.id)"
1817
1817
]
1818
1818
},
6096
6096
}
6097
6097
],
6098
6098
"source" : [
6099
- " item = next(mycat.get_all_items( ))\n " ,
6099
+ " item = next(mycat.get_items(recursive=True ))\n " ,
6100
6100
" item.get_single_link(\" parent\" ).get_href()"
6101
6101
]
6102
6102
},
6135
6135
}
6136
6136
],
6137
6137
"source" : [
6138
- " item = next(mycat.get_all_items( ))\n " ,
6138
+ " item = next(mycat.get_items(recursive=True ))\n " ,
6139
6139
" item.get_single_link(\" parent\" ).get_href()"
6140
6140
]
6141
6141
}
Original file line number Diff line number Diff line change 250
250
"source" : [
251
251
" bounds = [\n " ,
252
252
" list(\n " ,
253
- " GeometryCollection([shape(s.geometry) for s in spacenet.get_all_items( )]).bounds\n " ,
253
+ " GeometryCollection([shape(s.geometry) for s in spacenet.get_items(recursive=True )]).bounds\n " ,
254
254
" )\n " ,
255
255
" ]\n " ,
256
256
" vegas.extent.spatial = pystac.SpatialExtent(bounds)"
Original file line number Diff line number Diff line change @@ -585,12 +585,12 @@ def get_all_items(self) -> Iterator[Item]:
585
585
child links.
586
586
"""
587
587
warnings .warn (
588
- "get_item is deprecated and will be removed in v2" ,
588
+ "get_all_items is deprecated and will be removed in v2" ,
589
589
DeprecationWarning ,
590
590
)
591
591
return chain (
592
592
self .get_items (),
593
- * (child .get_all_items ( ) for child in self .get_children ()),
593
+ * (child .get_items ( recursive = True ) for child in self .get_children ()),
594
594
)
595
595
596
596
def get_item_links (self ) -> List [Link ]:
You can’t perform that action at this time.
0 commit comments