Skip to content

core.add_raster_to_item: Make compute statistics and histogram optionalΒ #466

@thomas-maschler

Description

@thomas-maschler

Is your feature request related to a problem? Please describe.
When adding assets to an item using core.add_raster_to_item stactools always computes statistics and histogram. None of the values are required for the raster extension. When creating many items, computing statistics, and histograms can significantly slow the process. Giving users the ability to opt out of statistics and histograms will increase user experience.

Describe the solution you'd like
Add kwargs statistics:bool=True and histogram:bool=True to core.add_raster_to_item function and only compute statistics and histogram if values are set to true. This should assure backward compatibility and open up options to include additional fields in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions