Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpatialExtent ¶ added in v0.1.0
type SpatialExtent interface {
ToProtoSpatialFilter() (*datasetsv1.SpatialFilter, error)
}
SpatialExtent is an interface for types that can be converted to a spatial extent, to be used in queries.
type SpatialFilter ¶ added in v0.1.0
type SpatialFilter struct {
Geometry orb.Geometry
Mode datasetsv1.SpatialFilterMode
CoordinateSystem datasetsv1.SpatialCoordinateSystem
}
func (*SpatialFilter) ToProtoSpatialFilter ¶ added in v0.1.0
func (s *SpatialFilter) ToProtoSpatialFilter() (*datasetsv1.SpatialFilter, error)
type TemporalExtent ¶
type TemporalExtent interface {
ToProtoTimeInterval() *tileboxv1.TimeInterval
ToProtoIDInterval() *tileboxv1.IDInterval
}
TemporalExtent is an interface for types that can be converted to a temporal extent, to be used in queries.
type TimeInterval ¶
type TimeInterval struct {
// Start is the start time of the interval.
Start time.Time
// End is the end time of the interval.
End time.Time
// We use exclusive for Start and inclusive for End, because that way when both are false,
// we have a half-open interval [Start, End) which is the default behavior we want to achieve.
StartExclusive bool
EndInclusive bool
}
TimeInterval represents a time interval.
Both the Start and End time can be exclusive or inclusive.
func NewEmptyTimeInterval ¶
func NewEmptyTimeInterval() *TimeInterval
func NewPointInTime ¶
func NewPointInTime(t time.Time) *TimeInterval
NewPointInTime creates a new TimeInterval that represents a single point in time.
func NewTimeInterval ¶
func NewTimeInterval(start, end time.Time) *TimeInterval
NewTimeInterval creates a new half-open TimeInterval which includes the start time but excludes the end time. In case you want to control the inclusivity of the start and end time, consider instantiating a TimeInterval struct directly.
func ProtoToTimeInterval ¶
func ProtoToTimeInterval(t *tileboxv1.TimeInterval) *TimeInterval
func (*TimeInterval) Equal ¶
func (t *TimeInterval) Equal(other *TimeInterval) bool
func (*TimeInterval) String ¶
func (t *TimeInterval) String() string
func (*TimeInterval) ToHalfOpen ¶
func (t *TimeInterval) ToHalfOpen() *TimeInterval
ToHalfOpen converts the TimeInterval to a half-open interval [Start, End).
func (*TimeInterval) ToProtoIDInterval ¶
func (t *TimeInterval) ToProtoIDInterval() *tileboxv1.IDInterval
func (*TimeInterval) ToProtoTimeInterval ¶
func (t *TimeInterval) ToProtoTimeInterval() *tileboxv1.TimeInterval