stac-utils / stac-task

Provides a class interface for running custom algorithms on STAC ItemCollections
Apache License 2.0
21 stars 5 forks source link

Configure the filename for saving the item #129

Closed drnextgis closed 6 months ago

drnextgis commented 6 months ago

Related Issue(s):

I encountered a need to store an item with the name derived from its ID.

Proposed Changes:

The name of the item file to save can now be configured. If the file_name argument is not provided, item.json will be used (current behavior). If file_name is explicitly set to None, the file name will be inferred from the item’s ID, leveraging the stac-asset library (see infer_file_name parameter definition in the stac-asset documentation).

PR Checklist:

drnextgis commented 6 months ago

@philvarner I wanted to kindly ask if you could review this PR when you have a moment.

philvarner commented 6 months ago

Couple of minor changelog suggestions, but otherwise looks good.

drnextgis commented 6 months ago

Thanks for the review! I've accepted your suggestions and also made a minor update to the method names in the changelog.

drnextgis commented 6 months ago

@philvarner do you mind to merge and release :pray:

philvarner commented 6 months ago

@drnextgis https://github.com/stac-utils/stac-task/releases/tag/v0.5.1

drnextgis commented 6 months ago

Thank you!