Shortcuts

Feature

class geodesic.stac.Feature(**obj)[source]

Bases: geodesic.bases._APIObject

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.

id

the string id for this item

Descriptor: _StringDescr

StringDescr is a string field, raises attribute error if the string isn’t set

Args:

one_of: is a list of possible values this string can be.

coerce: stringify whatever the input

Methods:

__get__: returns the string

__set__: sets the string after validating that it is a string/unicode

datetime

the timestamp of this item

Descriptor: _DatetimeDescr

DatetimeDescr is a UTC datetime field and is setable through typical python datetime objects, numpy datetime64, or pandas.Timestamp objects, pandas datetime objects, and RFC3339 strings

Methods:

__get__: returns the datetime, raise an AttributeError if missing

__set__: sets the datetime, storing internally as an RFC3339 string

start_datetime

the start timestamp of this item

Descriptor: _DatetimeDescr

DatetimeDescr is a UTC datetime field and is setable through typical python datetime objects, numpy datetime64, or pandas.Timestamp objects, pandas datetime objects, and RFC3339 strings

Methods:

__get__: returns the datetime, raise an AttributeError if missing

__set__: sets the datetime, storing internally as an RFC3339 string

end_datetime

the end timestamp of this item

Descriptor: _DatetimeDescr

DatetimeDescr is a UTC datetime field and is setable through typical python datetime objects, numpy datetime64, or pandas.Timestamp objects, pandas datetime objects, and RFC3339 strings

Methods:

__get__: returns the datetime, raise an AttributeError if missing

__set__: sets the datetime, storing internally as an RFC3339 string

property type

the type is always Feature. This fills in for improperly constructed GeoJSON that doesn’t have the “type” field set.

Docs

Developer documentation for Seer AI APIs

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources