Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
theia-dumper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDOS-Pub
theia-dumper
Commits
d64a468b
Commit
d64a468b
authored
3 months ago
by
Cresson Remi
Browse files
Options
Downloads
Patches
Plain Diff
Update file README.md
parent
f717ab77
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Doc: ajout de doc pour Pablo
Pipeline
#270964
passed with warnings
3 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+58
-0
58 additions, 0 deletions
README.md
with
58 additions
and
0 deletions
README.md
+
58
−
0
View file @
d64a468b
...
...
@@ -28,6 +28,64 @@ theia_dumper publish /data/stac/collection.json # Publish collection
theia_dumper publish /data/stac/item_collection.json # Publish item collection
```
## Usage
### Prerequisites
The user must be allowed to push files and metadata into the spatial data infrastructure:
-
Files
-
STAC objects
In order to ask the permission to do so, the user must perform a
[
merge request
](
https://docs.gitlab.com/ee/user/project/merge_requests/
)
in
[
this repository
](
https://gitlab.irstea.fr/umr-tetis/cdos-ops
)
, modifying two files
(here we assure that the user is named
`jacques.chirac`
!):
-
`buckets.json`
: add a bucket and a path prefix where the files will be uploaded,
Typically, one should use the
`gdc-sm1`
bucket, with a path prefix which is not already
used, e.g.:
```
json
...,
"jacques.chirac"
:
[
{
"s3_endpoint"
:
"s3-data.meso.umontpellier.fr"
,
"buckets"
:
[
"sm1-gdc/collection1234"
,
"sm1-gdc/collection4567"
,
"sm1-gdc/collection_chirac/1"
,
"sm1-gdc/collection_chirac/2"
]
}
]
,
...
```
-
`transations_rules.json`
: itemize the STAC collections IDs that will be created and modified.
```
json
...,
"jacques.chirac"
:
[
"collectionXYZ"
,
"collection123"
]
,
...
```
Note that collections IDs and buckets/paths prefixes are completely independant.
### CLI
In the
`theia-dumper`
CLI, the
`--storage_bucket`
argument concatenates the actual bucket and
the path prefix.
For instance if jacques wants to upload a collection in
`sm1-gdc/collection1234`
, he will have to call:
```
commandLine
theia-dumper /home/jacques/stac/collection.json --storage_bucket sm1-gdc/collection1234
```
## Contact
remi cresson @ inrae
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment