stac.collection

STAC Collection module.

Module Contents

Classes

Stats

The Stats object.

SpatialExtent

The Spatial Extent object.

TemporalExtent

The Temporal Extent object.

Extent

The Extent object.

Collection

The STAC Collection.

class stac.collection.Stats(data)

Bases: dict

The Stats object.

property min(self)
Returns

the min of Stats for a collection.

property max(self)
Returns

the max of Stats for a collection.

class stac.collection.SpatialExtent(data)

Bases: dict

The Spatial Extent object.

property bbox(self)
Returns

the bbox of the Spatial Extent.

class stac.collection.TemporalExtent(data)

Bases: dict

The Temporal Extent object.

property interval(self)
Returns

the interval of the Temporal Extent.

class stac.collection.Extent(data)

Bases: dict

The Extent object.

property spatial(self)
Returns

the spatial extent.

property temporal(self)
Returns

the temporal extent.

class stac.collection.Collection(data, validate=False)

Bases: stac.catalog.Catalog

The STAC Collection.

property keywords(self)
Returns

the Collection list of keywords.

property version(self)
Returns

the Collection version.

property license(self)
Returns

the Collection license.

property providers(self)
Returns

the Collection list of providers.

property extent(self)
Returns

the Collection extent.

property properties(self)
Returns

the Collection properties.

property summaries(self)
Returns

the Collection summaries.

property schema(self)
Returns

the Collection jsonschema.

get_items(self, item_id=None, filter=None)

Retrieve items of the collection.

Parameters
  • item_id (str) – (optional) a str with a STAC Item id.

  • filter (dict) – (optional) A dictionary with valid STAC query parameters.

Returns

A GeoJSON FeatureCollection of STAC Items from the collection.

_repr_html_(self)

HTML repr.