You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
- Support for collection search via `CollectionSearch` class and associated client methods [#735](https://github.com/stac-utils/pystac-client/pull/735)
13
+
10
14
### Removed
11
15
12
16
- Python 3.9 support [#724](https://github.com/stac-utils/pystac-client/pull/724)
Copy file name to clipboardExpand all lines: docs/tutorials/pystac-client-introduction.ipynb
+47-3
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,9 @@
40
40
"cell_type": "code",
41
41
"execution_count": null,
42
42
"id": "98942e75",
43
-
"metadata": {},
43
+
"metadata": {
44
+
"scrolled": true
45
+
},
44
46
"outputs": [],
45
47
"source": [
46
48
"# STAC API root URL\n",
@@ -74,6 +76,48 @@
74
76
" print(collection)"
75
77
]
76
78
},
79
+
{
80
+
"cell_type": "markdown",
81
+
"id": "ebab2724-cab3-4fba-b25b-fdfb4e537014",
82
+
"metadata": {},
83
+
"source": [
84
+
"# Collection Search\n",
85
+
"\n",
86
+
"Sometimes, it can be challenging to identify which collection you want to work with. The `collection_search` method allows you to discover collections by applying search filters that will help you find the specific collection(s) you need. Since many STAC APIs have not implemented the collection search extension, `pystac-client` will perform a limited client-side filter if the API does not conform to the collection search spec."
87
+
]
88
+
},
89
+
{
90
+
"cell_type": "code",
91
+
"execution_count": null,
92
+
"id": "a23a53ec-5b5f-421d-9f0e-01dbde8c3697",
93
+
"metadata": {},
94
+
"outputs": [],
95
+
"source": [
96
+
"collection_search = cat.collection_search(\n",
97
+
" q=\"ASTER\",\n",
98
+
")"
99
+
]
100
+
},
101
+
{
102
+
"cell_type": "markdown",
103
+
"id": "90b3d014-9c8f-4c5b-a94e-bfb7f17380ad",
104
+
"metadata": {},
105
+
"source": [
106
+
"The `collections` method lets you iterate through the results of the search so you can inspect the details of matching collections."
107
+
]
108
+
},
109
+
{
110
+
"cell_type": "code",
111
+
"execution_count": null,
112
+
"id": "006f13fd-5e58-4f3f-bd5a-707cd830caa1",
113
+
"metadata": {},
114
+
"outputs": [],
115
+
"source": [
116
+
"for result in collection_search.collections():\n",
0 commit comments