Item#
- class geodesic.stac.Item(**obj)[source]#
Class representing a STAC item.
Implements additional STAC properties on top of a
geodesic.stac.feature
- Parameters:
obj – A python object representing a STAC item.
dataset – The dataset object this Item belongs to.
Attributes
assets
(dict,
Asset
) - the assets for this itembbox
BBoxDescr is a bounding box field descriptor for a
geodesic.bases.APIObject
.collection
(str) - what collection this item belongs to
datetime
(str,
datetime
,datetime64
) - the timestamp of this itemend_datetime
(str,
datetime
,datetime64
) - the end timestamp of this itemgeometry
Geometry field descriptor for a geodesic.bases.APIObject.
id
(str) - the string id for this item
links
ListDescr is a list field, such as links in a GeoJSON feature collection object.
properties
DictDescr is a dictionary field, such as properties in a GeoJSON object.
stac_extensions
ListDescr is a list field, such as links in a GeoJSON feature collection object.
start_datetime
(str,
datetime
,datetime64
) - the start timestamp of this itemtype
the type is always Feature.
Methods
clear
()copy
()from_image
(path, **item)Creates a new Item using the EXIF header to locate the image.
fromkeys
([value])Create a new dictionary with keys from iterable and values set to value.
get
(key[, default])Return the value for key if key is in the dictionary, else default.
items
()keys
()new
([dataset])Create a new Item with blank fields
pop
(k[,d])If key is not found, default is returned if given, otherwise KeyError is raised
popitem
()Remove and return a (key, value) pair as a 2-tuple.
setdefault
(key[, default])Insert key with a value of default if key is not in the dictionary.
update
(*mapping, **kwargs)values
()