Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STAC harvesting #143

Merged
merged 11 commits into from
Apr 13, 2021
Merged

STAC harvesting #143

merged 11 commits into from
Apr 13, 2021

Conversation

pandzel-zz
Copy link

@pandzel-zz pandzel-zz commented Mar 31, 2021

This pull request provides support for STAC harvesting.

STAC repositories are organized in catalogs which in turn could hold other sub-catalogs and/or items. Entire structure is expressed through JSON files i.e. one catalog which is defined as JSON has an array of URL's pointing to sub catalogs and separate array of URL's pointing to items. STAC broker crawls catalog structure and fetches fetches items, then it publishes it accordingly.

Testing

Current implementation has been tested with the following repositories:

Note, some other mentioned catalogs were unavailable at the time of development/testing:

Important !!!

By default Elastic Search refuses to accept documents with more than 1000 properties (fields) in it. More about that feature could be found: https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping-settings-limit.html. If this is a case then the workaround is to increase that limit. It could be done using freely available tools like POSTMAN or curl. The following example would increase that limit:

POST http://localhost:9200/metadata/_settings
{
  "index.mapping.total_fields.limit": 3000
}

@pandzel-zz pandzel-zz requested a review from zguo March 31, 2021 21:22
@pandzel-zz
Copy link
Author

@zguo Please, review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants