@@ -61,7 +61,37 @@ pip install stac-merkle-tree-cli
61
61
62
62
## Directory Structure
63
63
64
- Ensure your STAC catalog follows the directory structure below for optimal processing:
64
+ Ensure your STAC catalog follows one of the directory structures below for optimal processing:
65
+
66
+ ### Standard Flat Structure
67
+
68
+ In this structure, all items are at the same level as the ` collection.json ` file:
69
+
70
+ ``` bash
71
+ collection/
72
+ ├── collection.json
73
+ ├── item1.json
74
+ ├── item2.json
75
+ └── ...
76
+ ```
77
+
78
+ ### Nested Structure
79
+
80
+ In this structure, items can be nested inside their own subdirectories within a collection:
81
+
82
+ ``` bash
83
+ collection/
84
+ ├── collection.json
85
+ ├── item1/
86
+ │ └── item1.json
87
+ ├── item2/
88
+ │ └── item2.json
89
+ └── ...
90
+ ```
91
+
92
+ ### Catalog with Collections and Nested Items
93
+
94
+ A full STAC catalog with collections, where items can be either at the same level as the ` collection.json ` or nested within subdirectories:
65
95
66
96
``` bash
67
97
catalog/
@@ -70,13 +100,14 @@ catalog/
70
100
│ ├── collection1/
71
101
│ │ ├── collection.json
72
102
│ │ ├── item1.json
73
- │ │ ├── item2.json
74
- │ │ └── ...
103
+ │ │ ├── item2/
104
+ │ │ │ └── item2.json
75
105
│ ├── collection2/
76
106
│ │ ├── collection.json
77
- │ │ ├── item1.json
78
- │ │ └── ...
79
- │ └── ...
107
+ │ │ ├── item1/
108
+ │ │ │ └── item1.json
109
+ │ │ └── item2.json
110
+ └── ...
80
111
```
81
112
82
113
- ** Catalog Level** :
@@ -86,7 +117,7 @@ catalog/
86
117
- Each collection has its own directory inside ` collections/ ` , named after the collection.
87
118
- Inside each collection directory:
88
119
- ` collection.json ` : Collection metadata.
89
- - ` item.json ` , ` item2.json ` , ...: Items belonging to the collection.
120
+ - ` item.json ` , ` item2.json ` , ...: Items belonging to the collection, either at the same level or nested within subdirectories .
90
121
91
122
## Usage
92
123
@@ -97,7 +128,7 @@ After installing the package, you can use the `stac-merkle-tree-cli` command to
97
128
Navigate to the directory containing your catalog.json file and run the command as follows:
98
129
99
130
``` bash
100
- stac-merkle-cli path/to/catalog.json
131
+ stac-merkle-tree- cli path/to/catalog.json
101
132
```
102
133
103
134
### Example
@@ -111,18 +142,19 @@ my_stac_catalog/
111
142
│ ├── collection1/
112
143
│ │ ├── collection.json
113
144
│ │ ├── item1.json
114
- │ │ └── item2.json
145
+ │ │ └── item2/
146
+ │ │ └── item2.json
115
147
│ └── collection2/
116
148
│ ├── collection.json
117
- │ ├── item1.json
149
+ │ ├── item1/
150
+ │ │ └── item1.json
118
151
│ └── item2.json
119
-
120
152
```
121
153
122
154
Run the tool:
123
155
124
156
``` bash
125
- stac-merkle-tree-cli ./ my_stac_catalog/catalog.json
157
+ stac-merkle-tree-cli my_stac_catalog/catalog.json
126
158
```
127
159
128
160
Expected Output:
0 commit comments