Feature#

class geodesic.stac.Feature(skip_parse=False, **obj)[source]#

A Geospatial feature

Feature object, represented as an RFC7946 (https://datatracker.ietf.org/doc/html/rfc7946) GeoJSON Feature. Can be initialized using any compliant GeoJSON Feature.

Parameters:

skip_parse – If True, will not parse dict into a Feature object so no validation will be performed until an attribute is requested.

Attributes

bbox

BBoxDescr is a bounding box field descriptor for a geodesic.bases.APIObject.

datetime

(str, datetime, datetime64) - the timestamp of this item

end_datetime

(str, datetime, datetime64) - the end timestamp of this item

geometry

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.

start_datetime

(str, datetime, datetime64) - the start timestamp of this item

type

the type is always Feature.

Methods

clear()

copy()

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()

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()