Documentation ¶
Index ¶
- Constants
- func AboveTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func AboveTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func AdjacentTemporalTemporal[T1 Temporal, T2 Temporal](temp1 T1, temp2 T2) bool
- func AdjacentTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func AfterTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func AfterTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func AlwaysContainsGeoTPoint(gs *Geom, temp Temporal) bool
- func AlwaysDWithinTPointGeo(temp Temporal, gs *Geom, dist float64) bool
- func AlwaysDWithinTPointTPoint(temp1, temp2 Temporal, dist float64) bool
- func AlwaysDisjointTPointGeo(temp Temporal, gs *Geom) bool
- func AlwaysDisjointTPointTPoint(temp1, temp2 Temporal) bool
- func AlwaysEqTBoolBool[TB TBool](tb TB, value bool) bool
- func AlwaysEqTFloatFloat[TF TFloat](tf TF, value float64) bool
- func AlwaysEqTIntInt[TI TInt](ti TI, value int) bool
- func AlwaysEqTPointPoint(temp Temporal, gs *Geom) bool
- func AlwaysEqTTextText[TT TText](tt TT, value string) bool
- func AlwaysEqTemporalTemporal[T1 Temporal, T2 Temporal](temp1 T1, temp2 T2) bool
- func AlwaysGeTFloatFloat[TF TFloat](tf TF, value float64) bool
- func AlwaysGeTIntInt[TI TInt](ti TI, value int) bool
- func AlwaysGeTTextText[TT TText](tt TT, value string) bool
- func AlwaysGeTemporalTemporal[T Temporal](t1, t2 T) bool
- func AlwaysGtTFloatFloat[TF TFloat](tf TF, value float64) bool
- func AlwaysGtTIntInt[TI TInt](ti TI, value int) bool
- func AlwaysGtTTextText[TT TText](tt TT, value string) bool
- func AlwaysGtTemporalTemporal[T Temporal](t1, t2 T) bool
- func AlwaysIntersectsTPointGeo(temp Temporal, gs *Geom) bool
- func AlwaysIntersectsTPointTPoint(temp1, temp2 Temporal) bool
- func AlwaysLeTFloatFloat[TF TFloat](tf TF, value float64) bool
- func AlwaysLeTIntInt[TI TInt](ti TI, value int) bool
- func AlwaysLeTTextText[TT TText](tt TT, value string) bool
- func AlwaysLeTemporalTemporal[T Temporal](t1, t2 T) bool
- func AlwaysLtTFloatFloat[TF TFloat](tf TF, value float64) bool
- func AlwaysLtTIntInt[TI TInt](ti TI, value int) bool
- func AlwaysLtTTextText[TT TText](tt TT, value string) bool
- func AlwaysLtTemporalTemporal[T Temporal](t1, t2 T) bool
- func AlwaysNeTFloatFloat[TF TFloat](tf TF, value float64) bool
- func AlwaysNeTIntInt[TI TInt](ti TI, value int) bool
- func AlwaysNeTPointPoint(temp Temporal, gs *Geom) bool
- func AlwaysNeTTextText[TT TText](tt TT, value string) bool
- func AlwaysNeTemporalTemporal[T Temporal](t1, t2 T) bool
- func AlwaysTouchesTPointGeo(temp Temporal, gs *Geom) bool
- func BackTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func BackTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func BearingPointPoint(g1 *Geom, g2 *Geom) bool
- func BeforeTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func BeforeTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func BelowTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func BelowTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func ContainedTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func ContainedTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func ContainsTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func ContainsTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func DateADTToDate(d C.DateADT) time.Time
- func DateToDateADT(t time.Time) C.DateADT
- func DatetimeToTimestamptz(t time.Time) C.TimestampTz
- func EverContainsGeoTPoint(gs *Geom, temp Temporal) bool
- func EverDWithinTPointGeo(temp Temporal, gs *Geom, dist float64) bool
- func EverDWithinTPointTPoint(temp1, temp2 Temporal, dist float64) bool
- func EverDisjointTPointGeo(temp Temporal, gs *Geom) bool
- func EverDisjointTPointTPoint(temp1, temp2 Temporal) bool
- func EverEqTBoolBool[TB TBool](tb TB, value bool) bool
- func EverEqTFloatFloat[TF TFloat](tf TF, value float64) bool
- func EverEqTIntInt[TI TInt](ti TI, value int) bool
- func EverEqTPointPoint(temp Temporal, gs *Geom) bool
- func EverEqTTextText[TT TText](tt TT, value string) bool
- func EverEqTemporalTemporal[T1 Temporal, T2 Temporal](temp1 T1, temp2 T2) bool
- func EverGeTFloatFloat[TF TFloat](tf TF, value float64) bool
- func EverGeTIntInt[TI TInt](ti TI, value int) bool
- func EverGeTTextText[TT TText](tt TT, value string) bool
- func EverGeTemporalTemporal[T Temporal](t1, t2 T) bool
- func EverGtTFloatFloat[TF TFloat](tf TF, value float64) bool
- func EverGtTIntInt[TI TInt](ti TI, value int) bool
- func EverGtTTextText[TT TText](tt TT, value string) bool
- func EverGtTemporalTemporal[T Temporal](t1, t2 T) bool
- func EverIntersectsTPointGeo(temp Temporal, gs *Geom) bool
- func EverIntersectsTPointTPoint(temp1, temp2 Temporal) bool
- func EverLeTFloatFloat[TF TFloat](tf TF, value float64) bool
- func EverLeTIntInt[TI TInt](ti TI, value int) bool
- func EverLeTTextText[TT TText](tt TT, value string) bool
- func EverLeTemporalTemporal[T Temporal](t1, t2 T) bool
- func EverLtTFloatFloat[TF TFloat](tf TF, value float64) bool
- func EverLtTIntInt[TI TInt](ti TI, value int) bool
- func EverLtTTextText[TT TText](tt TT, value string) bool
- func EverLtTemporalTemporal[T Temporal](t1, t2 T) bool
- func EverNeTFloatFloat[TF TFloat](tf TF, value float64) bool
- func EverNeTIntInt[TI TInt](ti TI, value int) bool
- func EverNeTPointPoint(temp Temporal, gs *Geom) bool
- func EverNeTTextText[TT TText](tt TT, value string) bool
- func EverNeTemporalTemporal[T Temporal](t1, t2 T) bool
- func EverTouchesTPointGeo(temp Temporal, gs *Geom) bool
- func FrontTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func FrontTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func GeoAsEWKT(g *Geom, precision int) string
- func GeoAsGeojson(g *Geom, option int, precision int, srs string) string
- func GeoAsHexEwkb(g *Geom, endian string) string
- func GeoAsText(g *Geom, precision int) string
- func GeoSame(g1 *Geom, g2 *Geom) bool
- func IntervalToTimeDelta(interval C.Interval) timeutil.Timedelta
- func LeftTNumberNumspan[TN TNumber, NS NumSpan](tn TN, ns NS) bool
- func LeftTNumberTBox[TN TNumber](tn TN, tbox *TBox) bool
- func LeftTNumberTNumber[TN1 TNumber, TN2 TNumber](tn TN1, tn2 TNumber) bool
- func LeftTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func LeftTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func MeosFinalize()
- func MeosInitialize(tz string)
- func NADTFloatFloat[TF TFloat](tf TF, value float64) float64
- func NADTFloatTFloat[TF1 TFloat, TF2 TFloat](tf1 TF1, tf2 TF2) float64
- func NadTIntInt[TI TInt](tf TI, value int) float64
- func NadTIntTInt[TI1 TInt, TI2 TInt](tf1 TI1, tf2 TI2) float64
- func OverAfterTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func OverAfterTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func OverBeforeTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func OverBeforeTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func OverLeftTNumberNumspan[TN TNumber, NS NumSpan](tn TN, ns NS) bool
- func OverLeftTNumberTBox[TN TNumber](tn TN, tbox *TBox) bool
- func OverLeftTNumberTNumber[TN1 TNumber, TN2 TNumber](tn1 TN1, tn2 TN2) bool
- func OverRightTNumberNumspan[TN TNumber, NS NumSpan](tn TN, ns NS) bool
- func OverRightTNumberTBox[TN TNumber](tn TN, tbox *TBox) bool
- func OverRightTNumberTNumber[TN1 TNumber, TN2 TNumber](tn1 TN1, tn2 TN2) bool
- func OveraboveTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func OveraboveTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func OverbackTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func OverbackTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func OverbelowTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func OverbelowTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func OverfrontTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func OverfrontTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func OverlapsTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func OverlapsTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func OverleftTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func OverleftTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func OverrightTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func OverrightTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func RightTNumberNumspan[TN TNumber, NS NumSpan](tn TN, ns NS) bool
- func RightTNumberTBox[TN TNumber](tn TN, tbox *TBox) bool
- func RightTNumberTNumber[TN1 TNumber, TN2 TNumber](tn TN1, tn2 TNumber) bool
- func RightTPointSTBox[TP TPoint](tp TP, stbox *STBox) bool
- func RightTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) bool
- func STBoxAsHexWKB(stbox *STBox) (string, error)
- func STBoxAsWKB(stbox *STBox) ([]byte, error)
- func STBoxHasT(stbox *STBox) bool
- func STBoxHasX(stbox *STBox) bool
- func STBoxHasZ(stbox *STBox) bool
- func STBoxIsGeodetic(stbox *STBox) bool
- func STBoxOut(stbox *STBox, max_decimals int) string
- func SameTemporalTemporal[T1, T2 Temporal](temp1 T1, temp2 T2) bool
- func SameTemporalTsTzSpan[T Temporal](temp T, tsTzSpan TsTzSpan) bool
- func SpansetUnionFinalfn[SS SpanSet](state SS, output SS) SS
- func SpansetUnionTransfn[SS SpanSet](state SS, ss SS, output SS) SS
- func TBoolEndValue[TB TBool](tb TB) bool
- func TBoolFromBaseTemporal[T1 Temporal, T2 Temporal](value bool, base T1, output T2) T2
- func TBoolFromMFJSON[TB TBool](input string, output TB) TB
- func TBoolIn[TB TBool](input string, output TB) TB
- func TBoolOut[TB TBool](tb TB) string
- func TBoolStartValue[TB TBool](tb TB) bool
- func TBoolValueAtTimestamp[TB TBool](tb TB, ts time.Time) bool
- func TBoolValueSet[TB TBool](tb TB) ([]bool, error)
- func TBoxAsHexWKB(tbox *TBox) (string, error)
- func TBoxAsWKB(tbox *TBox) ([]byte, error)
- func TBoxOut(tbox *TBox, max_decimals int) string
- func TFloatEndValue[TB TFloat](tb TB) float64
- func TFloatFromBaseTemporal[T1 Temporal, T2 Temporal](value float64, base T1, output T2) T2
- func TFloatFromMFJSON[TF TFloat](input string, output TF) TF
- func TFloatIn[TF TFloat](input string, output TF) TF
- func TFloatMaxValue[TB TFloat](tb TB) float64
- func TFloatMinValue[TB TFloat](tb TB) float64
- func TFloatOut[TF TFloat](tf TF, maxdd int) string
- func TFloatScaleValue[TF TFloat](ti TF, width int, output TF) TF
- func TFloatShiftValue[TF TFloat](ti TF, delta int, output TF) TF
- func TFloatShitScaleValue[TF TFloat](ti TF, shift int, width int, output TF) TF
- func TFloatStartValue[TB TFloat](tb TB) float64
- func TFloatToTInt[TF TFloat, TI TInt](tf TF, ti TI) (TI, error)
- func TFloatValueAtTimestamp[TF TFloat](tf TF, ts time.Time) float64
- func TFloatValues[TF TFloat](tf TF) ([]float64, error)
- func TGeogPointFromMFJSON[TG TGeogPoint](input string, output TG) TG
- func TGeogPointIn[TG TGeogPoint](input string, output TG) TG
- func TGeomPointFromMFJSON[TG TGeomPoint](input string, output TG) TG
- func TGeomPointIn[TG TGeomPoint](input string, output TG) TG
- func TIntEndValue[TB TInt](tb TB) int
- func TIntFromBaseTemporal[T1 Temporal, T2 Temporal](value int, base T1, output T2) T2
- func TIntFromMFJSON[TI TInt](input string, output TI) TI
- func TIntIn[TI TInt](input string, output TI) TI
- func TIntMaxValue[TB TInt](tb TB) int
- func TIntMinValue[TB TInt](tb TB) int
- func TIntOut[TI TInt](ti TI) string
- func TIntScaleValue[TI TInt](ti TI, width int, output TI) TI
- func TIntShiftValue[TI TInt](ti TI, delta int, output TI) TI
- func TIntShitScaleValue[TI TInt](ti TI, shift int, width int, output TI) TI
- func TIntStartValue[TB TInt](tb TB) int
- func TIntToTFloat[TI TInt, TF TFloat](ti TI, output TF) TF
- func TIntValueAtTimestamp[TF TInt](tf TF, ts time.Time) int
- func TIntValues[TF TInt](tf TF) ([]int, error)
- func TNotTBool[TB TBool](tb TB, output TB) TB
- func TNumberAbs[TN TNumber](tn TN, output TN) TN
- func TNumberIntegral[TN TNumber](tn TN) float64
- func TNumberToSpan[TN TNumber, S Span](tn TN, output S) S
- func TNumberTwavg[TN TNumber](temp TN) float64
- func TNumberValueSpans[TN TNumber, SS SpanSet](tn TN, ss SS) SS
- func TPointAsEWKT[T TPoint](temp T, maxdd int) string
- func TPointAsGeoJson[TP TPoint](temp TP, option int, precision int, srs string) string
- func TPointAsText[TP TPoint](tp TP, maxdd int) string
- func TPointGeoAsEWKT[T TPoint](temp T, maxdd int) string
- func TPointIsSimple[TP TPoint](tp TP) bool
- func TPointLength[TP TPoint](tp TP) float64
- func TPointOut[TP TPoint](tp TP, maxdd int) string
- func TPointSetSrid[TP TPoint](tp TP, srid int, output TP) TP
- func TPointSrid[TP TPoint](tp TP) int
- func TPointTransform[T TPoint](temp T, output T, srid_to int) T
- func TSequenceLowerInclude[TS TSequence](temp TS) bool
- func TSequenceMake[TI TInstant, TS TSequence](instants []TI, count int, lower_inc bool, upper_inc bool, interp Interpolation, ...) TS
- func TSequenceUpperInclude[TS TSequence](temp TS) bool
- func TTextEndValue[TT TText](tt TT) string
- func TTextFromBaseTemporal[T1 Temporal, T2 Temporal](value string, base T1, output T2) T2
- func TTextFromMFJSON[TF TText](input string, output TF) TF
- func TTextIn[TF TText](input string, output TF) TF
- func TTextLower[TT TText](tt TT, output TT) TT
- func TTextMaxValue[TT TText](tt TT) string
- func TTextMinValue[TT TText](tt TT) string
- func TTextOut[TF TText](tf TF) string
- func TTextStartValue[TT TText](tt TT) string
- func TTextUpper[TT TText](tt TT, output TT) TT
- func TTextValueAtTimestamp[TT TText](tt TT, ts time.Time) string
- func TemporalAsHexWKB[T Temporal](temp T) (string, error)
- func TemporalAsMFJSON[T Temporal](temp T, with_bbox bool, flags int, precision int, srs string) string
- func TemporalAsWKB[T Temporal](temp T) ([]byte, error)
- func TemporalDuration[T Temporal](temp T, ignore_gaps bool) timeutil.Timedelta
- func TemporalDyntimewarpDistance[T Temporal](temp1 T, temp2 T) float64
- func TemporalEndInstant[T Temporal, TI TInstant](temp T, inst TI) TI
- func TemporalEndTimestamptz[T Temporal](temp T) time.Time
- func TemporalFrechetDistance[T Temporal](temp1 T, temp2 T) float64
- func TemporalFromHexWKB[T Temporal](s string, output T) T
- func TemporalHash[T Temporal](temp T) int
- func TemporalHausdorffDistance[T Temporal](temp1 T, temp2 T) float64
- func TemporalInstantN[T Temporal, TI TInstant](temp T, inst TI, n int) TI
- func TemporalInstants[T Temporal, TI TInstant](temp T, insts []TI) []TI
- func TemporalInterpolation[T Temporal](temp T) string
- func TemporalMaxInstant[T Temporal, TI TInstant](temp T, inst TI) TI
- func TemporalMinInstant[T Temporal, TI TInstant](temp T, inst TI) TI
- func TemporalNumInstants[T Temporal](temp T) int
- func TemporalNumTimestamps[T Temporal](temp T) int
- func TemporalScaleTime[T Temporal](temp T, duration timeutil.Timedelta, output T) T
- func TemporalSetInterp[T Temporal](temp T, interp Interpolation, output T) T
- func TemporalShiftScaleTime[T Temporal](temp T, shift timeutil.Timedelta, duration timeutil.Timedelta, output T) T
- func TemporalShiftTime[T Temporal](temp T, delta timeutil.Timedelta, output T) T
- func TemporalSimplifyDP[T Temporal](temp T, new_temp T, dist float64, syncdist bool) T
- func TemporalStartInstant[T Temporal, TI TInstant](temp T, inst TI) TI
- func TemporalStartTimestamptz[T Temporal](temp T) time.Time
- func TemporalTimestampN[T Temporal](temp T, n int) time.Time
- func TemporalTimestamps[T Temporal](temp T) []time.Time
- func TimeDeltaToInterval(td timeutil.Timedelta) C.Interval
- func TimestamptzIn(timeStr string) C.TimestampTz
- func TimestamptzOut(ts C.TimestampTz) string
- func TimestamptzToDatetime(tstz C.TimestampTz) time.Time
- func TpointAtGeomTime[T Temporal](temp T, new_temp T, geom *Geom) T
- func TpointMinusGeomTime[T Temporal](temp T, new_temp T, geom *Geom) T
- type DateSet
- func (g_ds *DateSet) Add(other interface{}) (Dates, error)
- func (g_ds *DateSet) Contains(other interface{}) (bool, error)
- func (g_ds *DateSet) DateSetOut() string
- func (g_ds *DateSet) Distance(other interface{}) (timeutil.Timedelta, error)
- func (g_ds *DateSet) Duration() timeutil.Timedelta
- func (g_ds *DateSet) ElementN(n int) time.Time
- func (g_ds *DateSet) Elements() []time.Time
- func (g_ds *DateSet) EndElement() time.Time
- func (g_ds *DateSet) Intersection(other interface{}) (interface{}, error)
- func (g_ds *DateSet) IsLeft(other interface{}) (bool, error)
- func (g_ds *DateSet) IsOverOrLeft(other interface{}) (bool, error)
- func (g_ds *DateSet) IsOverOrRight(other interface{}) (bool, error)
- func (g_ds *DateSet) IsRight(other interface{}) (bool, error)
- func (g_ds *DateSet) Minus(other interface{}) (Dates, error)
- func (g_ds *DateSet) NumElements() int
- func (ds DateSet) Output() string
- func (g_ds *DateSet) Overlaps(other interface{}) (bool, error)
- func (g_ds *DateSet) Scale(duration interface{}) (*DateSet, error)
- func (g_ds *DateSet) Shift(delta interface{}) (*DateSet, error)
- func (g_ds *DateSet) ShiftScale(shift interface{}, duration interface{}) (*DateSet, error)
- func (g_ds *DateSet) StartElement() time.Time
- func (g_ds *DateSet) Sub(other interface{}) (Dates, error)
- func (g_ds *DateSet) ToSpan() *DateSpan
- func (g_ds *DateSet) ToSpanSet() *DateSpanSet
- func (g_ds *DateSet) Union(other interface{}) (Dates, error)
- type DateSpan
- func (g_ds *DateSpan) Contains(other interface{}) (bool, error)
- func (g_ds *DateSpan) DateSpanOut() string
- func (g_ds *DateSpan) Distance(other interface{}) (timeutil.Timedelta, error)
- func (g_ds *DateSpan) Duration() timeutil.Timedelta
- func (g_ds *DateSpan) Intersection(other interface{}) (Dates, error)
- func (g_ds *DateSpan) IsAdjacent(other interface{}) (bool, error)
- func (g_ds *DateSpan) IsLeft(other interface{}) (bool, error)
- func (g_ds *DateSpan) IsOverOrLeft(other interface{}) (bool, error)
- func (g_ds *DateSpan) IsOverOrRight(other interface{}) (bool, error)
- func (g_ds *DateSpan) IsRight(other interface{}) (bool, error)
- func (g_ds *DateSpan) Lower() time.Time
- func (g_ds *DateSpan) Minus(other interface{}) (*DateSpanSet, error)
- func (ds DateSpan) Output() string
- func (g_ds *DateSpan) Overlaps(other interface{}) (bool, error)
- func (g_ds *DateSpan) Scale(duration interface{}) (*DateSpan, error)
- func (g_ds *DateSpan) Shift(delta interface{}) (*DateSpan, error)
- func (g_ds *DateSpan) ShiftScale(shift interface{}, duration interface{}) (*DateSpan, error)
- func (g_ds *DateSpan) ToSpanSet() *DateSpanSet
- func (g_ds *DateSpan) ToTstzspan() *TsTzSpan
- func (g_ds *DateSpan) Union(other interface{}) (*DateSpanSet, error)
- func (g_ds *DateSpan) Upper() time.Time
- type DateSpanSet
- func (g_dss *DateSpanSet) Add(other interface{}) (*DateSpanSet, error)
- func (g_dss *DateSpanSet) Contains(other interface{}) (bool, error)
- func (g_dss *DateSpanSet) DateN(n int) time.Time
- func (g_dss *DateSpanSet) DateSpanSetOut() string
- func (g_dss *DateSpanSet) Dates() []time.Time
- func (g_dss *DateSpanSet) Distance(other interface{}) (timeutil.Timedelta, error)
- func (g_dss *DateSpanSet) Duration(ignore_gap bool) timeutil.Timedelta
- func (g_dss *DateSpanSet) EndDate() time.Time
- func (g_dss *DateSpanSet) EndSpan() DateSpan
- func (g_dss *DateSpanSet) Intersection(other interface{}) (*DateSpanSet, error)
- func (g_dss *DateSpanSet) IsAdjacent(other interface{}) (bool, error)
- func (g_ds *DateSpanSet) IsLeft(other interface{}) (bool, error)
- func (g_ds *DateSpanSet) IsOverOrLeft(other interface{}) (bool, error)
- func (g_ds *DateSpanSet) IsOverOrRight(other interface{}) (bool, error)
- func (g_ds *DateSpanSet) IsRight(other interface{}) (bool, error)
- func (g_dss *DateSpanSet) Minus(other interface{}) (*DateSpanSet, error)
- func (g_dss *DateSpanSet) Mul(other interface{}) (*DateSpanSet, error)
- func (g_dss *DateSpanSet) NumDates() int
- func (g_dss *DateSpanSet) NumSpans() int
- func (ds DateSpanSet) Output() string
- func (g_dss *DateSpanSet) Overlaps(other interface{}) (bool, error)
- func (g_ds *DateSpanSet) Scale(duration interface{}) (*DateSpanSet, error)
- func (g_ds *DateSpanSet) Shift(delta interface{}) (*DateSpanSet, error)
- func (g_ds *DateSpanSet) ShiftScale(shift interface{}, duration interface{}) (*DateSpanSet, error)
- func (g_dss *DateSpanSet) SpanN(n int) DateSpan
- func (g_dss *DateSpanSet) Spans() []DateSpan
- func (g_dss *DateSpanSet) StartDate() time.Time
- func (g_dss *DateSpanSet) StartSpan() DateSpan
- func (g_dss *DateSpanSet) Sub(other interface{}) (*DateSpanSet, error)
- func (g_dss *DateSpanSet) ToSpan() *DateSpan
- func (g_dss *DateSpanSet) ToTsTzSpanSet() *TsTzSpanSet
- func (g_dss *DateSpanSet) Union(other interface{}) (*DateSpanSet, error)
- type Dates
- type FloatSet
- func (g_fs *FloatSet) Add(other interface{}) (*FloatSet, error)
- func (g_fs *FloatSet) Contains(other interface{}) (bool, error)
- func (g_fs *FloatSet) Distance(other interface{}) (float64, error)
- func (g_fs FloatSet) ElementN(n int) float64
- func (g_fs FloatSet) Elements() []float64
- func (g_fs FloatSet) EndElement() float64
- func (g_fs *FloatSet) FloatSetOut(max_decimal int) string
- func (g_fs *FloatSet) Intersection(other interface{}) (*FloatSet, error)
- func (g_fs *FloatSet) IsLeft(other interface{}) (bool, error)
- func (g_fs *FloatSet) IsOverOrLeft(other interface{}) (bool, error)
- func (g_fs *FloatSet) IsOverOrRight(other interface{}) (bool, error)
- func (g_fs *FloatSet) IsRight(other interface{}) (bool, error)
- func (g_fs *FloatSet) Minus(other interface{}) (*FloatSet, error)
- func (g_fs *FloatSet) Mul(other interface{}) (*FloatSet, error)
- func (g_fs FloatSet) NumElements() int
- func (g_fs FloatSet) Scale(width float64) FloatSet
- func (g_fs FloatSet) Shift(delta float64) FloatSet
- func (g_fs FloatSet) ShiftScale(d float64, w float64) FloatSet
- func (g_fs FloatSet) StartElement() float64
- func (g_fs *FloatSet) Sub(other interface{}) (*FloatSet, error)
- func (g_fs FloatSet) ToIntSet() IntSet
- func (g_fs FloatSet) ToSpanSet() FloatSpanSet
- func (g_fs *FloatSet) Union(other interface{}) (*FloatSet, error)
- type FloatSpan
- func (g_fs *FloatSpan) Add(other interface{}) (*FloatSpanSet, error)
- func (g_fs *FloatSpan) Contains(other interface{}) (bool, error)
- func (g_fs *FloatSpan) Distance(other interface{}) (float64, error)
- func (g_fs FloatSpan) FloatSpanOut(max_decimal int) string
- func (g_fs *FloatSpan) Init(c_span *C.Span)
- func (g_fs *FloatSpan) Inner() *C.Span
- func (g_fs *FloatSpan) Intersection(other interface{}) (*FloatSpan, error)
- func (g_fs *FloatSpan) IsAdjacent(other interface{}) (bool, error)
- func (g_fs *FloatSpan) IsLeft(other interface{}) (bool, error)
- func (g_fs *FloatSpan) IsNumSpan() bool
- func (g_fs *FloatSpan) IsOverOrLeft(other interface{}) (bool, error)
- func (g_fs *FloatSpan) IsOverOrRight(other interface{}) (bool, error)
- func (g_fs *FloatSpan) IsRight(other interface{}) (bool, error)
- func (g_fs *FloatSpan) IsSame(other interface{}) (bool, error)
- func (g_fs FloatSpan) Lower() float64
- func (g_fs *FloatSpan) Minus(other interface{}) (*FloatSpanSet, error)
- func (g_fs *FloatSpan) Mul(other interface{}) (*FloatSpan, error)
- func (g_fs FloatSpan) Scale(width float64) FloatSpan
- func (g_fs FloatSpan) Shift(delta float64) FloatSpan
- func (g_fs FloatSpan) ShiftScale(d float64, w float64) FloatSpan
- func (g_fs *FloatSpan) Sub(other interface{}) (*FloatSpanSet, error)
- func (g_fs FloatSpan) ToIntSpan() IntSpan
- func (g_fs FloatSpan) ToSpanSet() FloatSpanSet
- func (g_fs *FloatSpan) Union(other interface{}) (*FloatSpanSet, error)
- func (g_fs FloatSpan) Upper() float64
- func (g_fs FloatSpan) Width() float32
- type FloatSpanSet
- func (g_fss *FloatSpanSet) Add(other interface{}) (*FloatSpanSet, error)
- func (g_fss *FloatSpanSet) Contains(other interface{}) (bool, error)
- func (g_fss *FloatSpanSet) Distance(other interface{}) (float32, error)
- func (g_fss FloatSpanSet) EndSpan() FloatSpan
- func (g_fss *FloatSpanSet) FloatSpanSetOut(max_decimal int) string
- func (fss *FloatSpanSet) Init(ss *C.SpanSet)
- func (fss *FloatSpanSet) Inner() *C.SpanSet
- func (g_fss *FloatSpanSet) Intersection(other interface{}) (*FloatSpanSet, error)
- func (g_fss *FloatSpanSet) IsAdjacent(other interface{}) (bool, error)
- func (g_fss *FloatSpanSet) IsLeft(other interface{}) (bool, error)
- func (g_fss *FloatSpanSet) IsOverOrLeft(other interface{}) (bool, error)
- func (g_fss *FloatSpanSet) IsOverOrRight(other interface{}) (bool, error)
- func (g_fss *FloatSpanSet) IsRight(other interface{}) (bool, error)
- func (g_fss *FloatSpanSet) IsSame(other interface{}) (bool, error)
- func (fss *FloatSpanSet) IsSpanSet() bool
- func (g_fss *FloatSpanSet) Minus(other interface{}) (*FloatSpanSet, error)
- func (g_fss *FloatSpanSet) Mul(other interface{}) (*FloatSpanSet, error)
- func (g_fss FloatSpanSet) NumSpans() int
- func (g_fss FloatSpanSet) Scale(width float64) FloatSpanSet
- func (g_fss FloatSpanSet) Shift(delta float64) FloatSpanSet
- func (g_fss FloatSpanSet) ShiftScale(d float64, w float64) FloatSpanSet
- func (g_fss FloatSpanSet) SpanN(n int) FloatSpan
- func (g_fss FloatSpanSet) Spans() []FloatSpan
- func (g_fss FloatSpanSet) StartSpan() FloatSpan
- func (g_fss *FloatSpanSet) Sub(other interface{}) (*FloatSpanSet, error)
- func (g_fss FloatSpanSet) ToIntSpanSet() IntSpanSet
- func (g_fss FloatSpanSet) ToSpan() FloatSpan
- func (g_fss *FloatSpanSet) Union(other interface{}) (*FloatSpanSet, error)
- func (g_fss FloatSpanSet) Width(ignore_gap bool) float64
- type Geo
- type Geom
- func GeoFromGeojson(input string) *Geom
- func GeographyFromHexEwkb(input string) *Geom
- func GeographyFromText(input string, srid int) *Geom
- func GeometryFromHexEwkb(input string) *Geom
- func GeometryFromText(input string, srid int) *Geom
- func NewGeom(geom_str string, typemod int) Geom
- func PgisGeographyIn(input string, typemod int) *Geom
- func PgisGeometryIn(input string, typemod int) *Geom
- func STBoxToGeo(stbox *STBox) *Geom
- func TPointEndValue[TP TPoint](tp TP) *Geom
- func TPointStartValue[TP TPoint](tp TP) *Geom
- func TPointTrajectory[TP TPoint](tp TP) *Geom
- func TPointTwcentroid[TP TPoint](tp TP) *Geom
- func TPointValueAtTimestamp[TP TPoint](tp TP, ts time.Time) *Geom
- func TPointValueSet[TP TPoint](tp TP) ([]*Geom, error)
- type IntSet
- func (g_is *IntSet) Add(other interface{}) (*IntSet, error)
- func (g_is *IntSet) Contains(other interface{}) (bool, error)
- func (g_is *IntSet) Distance(other interface{}) (int, error)
- func (g_is IntSet) ElementN(n int) int
- func (g_is IntSet) Elements() []int
- func (g_is IntSet) EndElement() int
- func (g_is *IntSet) IntSetOut() string
- func (g_is *IntSet) Intersection(other interface{}) (*IntSet, error)
- func (g_is *IntSet) IsLeft(other interface{}) (bool, error)
- func (g_is *IntSet) IsOverOrLeft(other interface{}) (bool, error)
- func (g_is *IntSet) IsOverOrRight(other interface{}) (bool, error)
- func (g_is *IntSet) IsRight(other interface{}) (bool, error)
- func (g_is *IntSet) Minus(other interface{}) (*IntSet, error)
- func (g_is *IntSet) Mul(other interface{}) (*IntSet, error)
- func (g_is IntSet) NumElements() int
- func (g_is IntSet) Scale(width int) IntSet
- func (g_is IntSet) Shift(delta int) IntSet
- func (g_is IntSet) ShiftScale(d int, w int) IntSet
- func (g_is IntSet) StartElement() int
- func (g_is *IntSet) Sub(other interface{}) (*IntSet, error)
- func (g_is IntSet) ToFloatSet() FloatSet
- func (g_is IntSet) ToSpanSet() IntSpanSet
- func (g_is *IntSet) Union(other interface{}) (*IntSet, error)
- type IntSpan
- func (g_is *IntSpan) Add(other interface{}) (*IntSpanSet, error)
- func (g_is *IntSpan) Contains(other interface{}) (bool, error)
- func (g_is *IntSpan) Distance(other interface{}) (int, error)
- func (g_fs *IntSpan) Init(c_span *C.Span)
- func (g_fs *IntSpan) Inner() *C.Span
- func (g_is *IntSpan) IntSpanOut() string
- func (g_is *IntSpan) Intersection(other interface{}) (*IntSpan, error)
- func (g_is *IntSpan) IsAdjacent(other interface{}) (bool, error)
- func (g_is *IntSpan) IsLeft(other interface{}) (bool, error)
- func (g_fs *IntSpan) IsNumSpan() bool
- func (g_is *IntSpan) IsOverOrLeft(other interface{}) (bool, error)
- func (g_is *IntSpan) IsOverOrRight(other interface{}) (bool, error)
- func (g_is *IntSpan) IsRight(other interface{}) (bool, error)
- func (g_is *IntSpan) IsSame(other interface{}) (bool, error)
- func (g_is *IntSpan) Lower() int
- func (g_is *IntSpan) Minus(other interface{}) (*IntSpanSet, error)
- func (g_is *IntSpan) Mul(other interface{}) (*IntSpan, error)
- func (g_is *IntSpan) Scale(width int) IntSpan
- func (g_is *IntSpan) Shift(delta int) IntSpan
- func (g_is *IntSpan) ShiftScale(d int, w int) IntSpan
- func (g_is *IntSpan) Sub(other interface{}) (*IntSpanSet, error)
- func (g_is *IntSpan) ToFloatSpan() FloatSpan
- func (g_is *IntSpan) ToSpanSet() IntSpanSet
- func (g_is *IntSpan) Union(other interface{}) (*IntSpanSet, error)
- func (g_is *IntSpan) Upper() int
- func (g_is *IntSpan) Width() float32
- type IntSpanSet
- func (g_iss *IntSpanSet) Add(other interface{}) (*IntSpanSet, error)
- func (g_iss *IntSpanSet) Contains(other interface{}) (bool, error)
- func (g_iss *IntSpanSet) Distance(other interface{}) (int, error)
- func (g_iss IntSpanSet) EndSpan() IntSpan
- func (g_iss *IntSpanSet) IntSpanSetOut() string
- func (g_iss *IntSpanSet) Intersection(other interface{}) (*IntSpanSet, error)
- func (g_iss *IntSpanSet) IsAdjacent(other interface{}) (bool, error)
- func (g_iss *IntSpanSet) IsLeft(other interface{}) (bool, error)
- func (g_iss *IntSpanSet) IsOverOrLeft(other interface{}) (bool, error)
- func (g_iss *IntSpanSet) IsOverOrRight(other interface{}) (bool, error)
- func (g_iss *IntSpanSet) IsRight(other interface{}) (bool, error)
- func (g_iss *IntSpanSet) IsSame(other interface{}) (bool, error)
- func (g_iss *IntSpanSet) Minus(other interface{}) (*IntSpanSet, error)
- func (g_iss *IntSpanSet) Mul(other interface{}) (*IntSpanSet, error)
- func (g_iss IntSpanSet) NumSpans() int
- func (g_iss IntSpanSet) Scale(width int) IntSpanSet
- func (g_iss IntSpanSet) Shift(delta int) IntSpanSet
- func (g_iss IntSpanSet) ShiftScale(d int, w int) IntSpanSet
- func (g_iss IntSpanSet) SpanN(n int) IntSpan
- func (g_iss IntSpanSet) Spans() []IntSpan
- func (g_iss IntSpanSet) StartSpan() IntSpan
- func (g_iss *IntSpanSet) Sub(other interface{}) (*IntSpanSet, error)
- func (g_iss IntSpanSet) ToFloatSpanSet() FloatSpanSet
- func (g_iss IntSpanSet) ToSpan() IntSpan
- func (g_iss *IntSpanSet) Union(other interface{}) (*IntSpanSet, error)
- func (g_iss IntSpanSet) Width(ignore_gap bool) int
- type Interpolation
- type NumSpan
- type STBox
- func GeoTimestamptzToSTBox(geom *Geom, t time.Time) *STBox
- func GeoToSTBox(geom *Geom) *STBox
- func STBoxCopy(stbox *STBox) *STBox
- func STBoxFromHexWKB(s string) *STBox
- func STBoxFromWKB(wkb []byte) *STBox
- func STBoxIn(s string) *STBox
- func STBoxMake(hasx bool, hasz bool, geodetic bool, srid int, xmin float64, xmax float64, ...) *STBox
- func TPointExpandSpace[TP TPoint](tp TP, other float64) *STBox
- func TPointSTBoxes[TP TPoint](tp TP, max_count int) ([]*STBox, error)
- func TPointToSTBox[TP TPoint](tp TP) *STBox
- func TimestamptzToSTBox(t time.Time) *STBox
- func TsTzSetToSTBox(tstzset *TsTzSet) *STBox
- func TsTzSpanSetToSTBox(tstzspanset *TsTzSpanSet) *STBox
- func TsTzSpanToSTBox(tstzspan *TsTzSpan) *STBox
- type Set
- type Span
- type SpanSet
- type TBool
- type TBoolInst
- type TBoolSeq
- type TBoolSeqSet
- type TBox
- func FloatTimestamptzToTBox(value float64, t time.Time) *TBox
- func FloatToTBox(value float64) *TBox
- func FloatTsTzSpanToTBox[S Span](value float64, span S) *TBox
- func IntTimestamptzToTBox(value int, t time.Time) *TBox
- func IntToTBox(value int) *TBox
- func IntTsTzSpanToTBox[S Span](value int, span S) *TBox
- func NumSpanTimestamptzToTBox[S NumSpan](numspan S, t time.Time) *TBox
- func NumSpanTsTzSpanToTBox[S NumSpan](numspan S, tstzspan *TsTzSpan) *TBox
- func SetToTBox[S Set](s S) *TBox
- func SpanSetToTBox[S SpanSet](s S) *TBox
- func SpanToTBox[S Span](s S) *TBox
- func TBoxCopy(tbox *TBox) *TBox
- func TBoxFromHexWKB(s string) *TBox
- func TBoxFromWKB(wkb []byte) *TBox
- func TBoxIn(s string) *TBox
- func TBoxMake[S Span](s S, ts *TsTzSpan) *TBox
- func TNumberToTBox[TN TNumber](tn TN) *TBox
- func TimestamptzToTBox(ts time.Time) *TBox
- type TFloat
- type TFloatInst
- func (tf *TFloatInst) Init(c_temp *C.Temporal)
- func (tf *TFloatInst) Inner() *C.Temporal
- func (tf *TFloatInst) IsTFloat() bool
- func (tf *TFloatInst) IsTInstant() bool
- func (tf *TFloatInst) IsTNumber() bool
- func (tf *TFloatInst) String() string
- func (tf *TFloatInst) TPointOut(maxdd int) string
- func (tf *TFloatInst) Type() string
- type TFloatSeq
- func (tf *TFloatSeq) Init(c_temp *C.Temporal)
- func (tf *TFloatSeq) Inner() *C.Temporal
- func (tf *TFloatSeq) IsTFloat() bool
- func (tf *TFloatSeq) IsTNumber() bool
- func (tf *TFloatSeq) IsTSequence() bool
- func (tf *TFloatSeq) String() string
- func (tf *TFloatSeq) TPointOut(maxdd int) string
- func (tf *TFloatSeq) Type() string
- type TFloatSeqSet
- func (tf *TFloatSeqSet) Init(c_temp *C.Temporal)
- func (tf *TFloatSeqSet) Inner() *C.Temporal
- func (tf *TFloatSeqSet) IsTFloat() bool
- func (tf *TFloatSeqSet) IsTNumber() bool
- func (tf *TFloatSeqSet) String() string
- func (tf *TFloatSeqSet) TPointOut(maxdd int) string
- func (tf *TFloatSeqSet) Type() string
- type TGeogPoint
- type TGeogPointInst
- func (tgmpi *TGeogPointInst) Init(c_temp *C.Temporal)
- func (tgmpi *TGeogPointInst) Inner() *C.Temporal
- func (tgmpi *TGeogPointInst) IsTGeogPoint() bool
- func (tgmpi *TGeogPointInst) IsTInstant() bool
- func (tgmpi *TGeogPointInst) IsTPoint() bool
- func (tgmpi *TGeogPointInst) String() string
- func (tgmpi *TGeogPointInst) TPointOut(maxdd int) string
- func (tgmpi *TGeogPointInst) Type() string
- type TGeogPointSeq
- func (tgmpi *TGeogPointSeq) Init(c_temp *C.Temporal)
- func (tgmpi *TGeogPointSeq) Inner() *C.Temporal
- func (tgmpi *TGeogPointSeq) IsTGeogPoint() bool
- func (tgmpi *TGeogPointSeq) IsTPoint() bool
- func (tgmpi *TGeogPointSeq) IsTSequence() bool
- func (tgmpi *TGeogPointSeq) String() string
- func (tgmpi *TGeogPointSeq) TPointOut(maxdd int) string
- func (tgmpi *TGeogPointSeq) Type() string
- type TGeogPointSeqSet
- func (tgmpi *TGeogPointSeqSet) Init(c_temp *C.Temporal)
- func (tgmpi *TGeogPointSeqSet) Inner() *C.Temporal
- func (tgmpi *TGeogPointSeqSet) IsTGeogPoint() bool
- func (tgmpi *TGeogPointSeqSet) IsTPoint() bool
- func (tgmpi *TGeogPointSeqSet) String() string
- func (tgmpi *TGeogPointSeqSet) TPointOut(maxdd int) string
- func (tgmpi *TGeogPointSeqSet) Type() string
- type TGeomPoint
- type TGeomPointInst
- func (tb *TGeomPointInst) Init(c_temp *C.Temporal)
- func (tb *TGeomPointInst) Inner() *C.Temporal
- func (tb *TGeomPointInst) IsTGeomPoint() bool
- func (tgmpi *TGeomPointInst) IsTInstant() bool
- func (tgmpi *TGeomPointInst) IsTPoint() bool
- func (tgmpi *TGeomPointInst) String() string
- func (tgmpi *TGeomPointInst) TInstantOut(maxdd int) string
- func (tgmpi *TGeomPointInst) TPointOut(maxdd int) string
- func (tgmpi *TGeomPointInst) TimestampOut() string
- func (tgmpi *TGeomPointInst) Timestamptz() time.Time
- func (tgmpi *TGeomPointInst) Type() string
- type TGeomPointSeq
- func (tgmpi *TGeomPointSeq) Init(c_temp *C.Temporal)
- func (tgmpi *TGeomPointSeq) Inner() *C.Temporal
- func (tgmpi *TGeomPointSeq) IsTGeomPoint() bool
- func (tgmpi *TGeomPointSeq) IsTPoint() bool
- func (tgmpi *TGeomPointSeq) IsTSequence() bool
- func (tgmpi *TGeomPointSeq) NewInit(c_temp *C.Temporal) *TGeomPointSeq
- func (tgmpi *TGeomPointSeq) String() string
- func (tgmpi *TGeomPointSeq) TPointOut(maxdd int) string
- func (tgmpi *TGeomPointSeq) Type() string
- type TGeomPointSeqSet
- func (tb *TGeomPointSeqSet) Init(c_temp *C.Temporal)
- func (tb *TGeomPointSeqSet) Inner() *C.Temporal
- func (tb *TGeomPointSeqSet) IsTGeomPoint() bool
- func (tgmpi *TGeomPointSeqSet) IsTPoint() bool
- func (tgmpi *TGeomPointSeqSet) String() string
- func (tgmpi *TGeomPointSeqSet) TPointOut(maxdd int) string
- func (tgmpi *TGeomPointSeqSet) Type() string
- type TInstant
- type TInt
- type TIntInst
- type TIntSeq
- type TIntSeqSet
- type TNumber
- type TPoint
- type TSequence
- type TSequenceSet
- type TText
- type TTextInst
- type TTextSeq
- type TTextSeqSet
- type Temporal
- func AddFloatTFloat[TF TFloat](value float64, tf TF) Temporal
- func AddIntTInt[TI TInt](value int, ti TI) Temporal
- func AddTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func AddTIntInt[TI TInt](ti TI, value int) Temporal
- func AddTNumberTNumber[TN1 TNumber, TN2 TNumber](tn1 TN1, tn2 TN2) Temporal
- func BearingTPointPoint[TP TPoint](tp TP, g *Geom, invert bool) Temporal
- func BearingTPointTPoint[TP1 TPoint, TP2 TPoint](tp1 TP1, tp2 TP2) Temporal
- func CreateTemporal(inner *C.Temporal) Temporal
- func CumulativeLength[TP TPoint](tp TP) Temporal
- func DistanceTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func DistanceTNumberTNumber[TN1 TNumber, TN2 TNumber](tn1 TN1, tn2 TN2) Temporal
- func DistanceTPointPoint[TP TPoint](temp TP, gs *Geom) Temporal
- func DistanceTPointTPoint[TP1 TPoint, TP2 TPoint](temp1 TP1, temp2 TP2) Temporal
- func DivFloatTFloat[TF TFloat](value float64, tf TF) Temporal
- func DivIntTInt[TI TInt](value int, ti TI) Temporal
- func DivTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func DivTIntInt[TI TInt](ti TI, value int) Temporal
- func DivTNumberTNumber[TN1 TNumber, TN2 TNumber](tn1 TN1, tn2 TN2) Temporal
- func MultFloatTFloat[TF TFloat](value float64, tf TF) Temporal
- func MultIntTInt[TI TInt](value int, ti TI) Temporal
- func MultTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func MultTIntInt[TI TInt](ti TI, value int) Temporal
- func MultTNumberTNumber[TN1 TNumber, TN2 TNumber](tn1 TN1, tn2 TN2) Temporal
- func SubFloatTFloat[TF TFloat](value float64, tf TF) Temporal
- func SubIntTInt[TI TInt](value int, ti TI) Temporal
- func SubTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func SubTIntInt[TI TInt](ti TI, value int) Temporal
- func SubTNumberTNumber[TN1 TNumber, TN2 TNumber](tn1 TN1, tn2 TN2) Temporal
- func TAndTBoolBool[TB TBool](tb TB, value bool) Temporal
- func TAndTBoolTBool[TB TBool](tb TB, other TB) Temporal
- func TBoolAtValue[TB TBool](tb TB, value bool) Temporal
- func TBoolMinusValue[TB TBool](tb TB, value bool) Temporal
- func TContainsGeoTPoint[TP TPoint](gs *Geom, temp TP, restr, atvalue bool) Temporal
- func TDWithinTPointGeo[TP TPoint](temp TP, gs *Geom, dist float64, restr, atvalue bool) Temporal
- func TDWithinTPointTPoint[TP1 TPoint, TP2 TPoint](temp1 TP1, temp2 TP2, dist float64, restr, atvalue bool) Temporal
- func TDisjointTPointGeo[TP TPoint](temp TP, gs *Geom, restr, atvalue bool) Temporal
- func TDisjointTPointTPoint[TP1 TPoint, TP2 TPoint](temp1 TP1, temp2 TP2, restr, atvalue bool) Temporal
- func TEqTBoolBool[TB TBool](tb TB, value bool) Temporal
- func TEqTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func TEqTIntInt[TI TInt](ti TI, value int) Temporal
- func TEqTPointPoint[TP TPoint](temp TP, gs *Geom) Temporal
- func TEqTTextText[TT TText](tt TT, value string) Temporal
- func TEqTemporalTemporal[T1 Temporal, T2 Temporal](temp1 T1, temp2 T2) Temporal
- func TFloatAtValue[TF TFloat](tf TF, value float64) Temporal
- func TFloatDerivative[TF TFloat](tf TF) Temporal
- func TFloatMinusValue[TF TFloat](tf TF, value float64) Temporal
- func TFloatRound[TF TFloat](tf TF, max_decimals int) Temporal
- func TFloatToDegrees[TF TFloat](tf TF, normalize bool) Temporal
- func TFloatToRadians[TF TFloat](tf TF) Temporal
- func TGeTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func TGeTIntInt[TI TInt](ti TI, value int) Temporal
- func TGeTTextText[TT TText](tt TT, value string) Temporal
- func TGtTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func TGtTIntInt[TI TInt](ti TI, value int) Temporal
- func TGtTTextText[TT TText](tt TT, value string) Temporal
- func TIntAtValue[TI TInt](tf TI, value int) Temporal
- func TIntMinusValue[TI TInt](tf TI, value int) Temporal
- func TIntersectsTPointGeo[TP TPoint](temp TP, gs *Geom, restr, atvalue bool) Temporal
- func TIntersectsTPointTPoint[TP1 TPoint, TP2 TPoint](temp1 TP1, temp2 TP2, restr, atvalue bool) Temporal
- func TLeTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func TLeTIntInt[TI TInt](ti TI, value int) Temporal
- func TLeTTextText[TT TText](tt TT, value string) Temporal
- func TLtTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func TLtTIntInt[TI TInt](ti TI, value int) Temporal
- func TLtTTextText[TT TText](tt TT, value string) Temporal
- func TNEqTBoolBool[TB TBool](tb TB, value bool) Temporal
- func TNEqTemporalTemporal[T1 Temporal, T2 Temporal](temp1 T1, temp2 T2) Temporal
- func TNeTFloatFloat[TF TFloat](tf TF, value float64) Temporal
- func TNeTIntInt[TI TInt](ti TI, value int) Temporal
- func TNeTPointPoint[TP TPoint](temp TP, gs *Geom) Temporal
- func TNeTTextText[TT TText](tt TT, value string) Temporal
- func TNumberAtSpan[TN TNumber, S Span](tn TN, span S) Temporal
- func TNumberAtSpanSet[TN TNumber, SS SpanSet](tn TN, spanset SS) Temporal
- func TNumberAtTBox[TN TNumber](tn TN, tbox *TBox) Temporal
- func TNumberDeltaValue[TN TNumber](tn TN) Temporal
- func TNumberMinusSpan[TN TNumber, S Span](tn TN, span S) Temporal
- func TNumberMinusSpanSet[TN TNumber, SS SpanSet](tn TN, spanset SS) Temporal
- func TNumberMinusTBox[TN TNumber](tn TN, tbox *TBox) Temporal
- func TOrTBoolBool[TB TBool](tb TB, value bool) Temporal
- func TOrTBoolTBool[TB TBool](tb TB, other TB) Temporal
- func TPointAngularDifference[TP TPoint](tp TP) Temporal
- func TPointAtStbox[TP TPoint](tp TP, stbox *STBox, border_inc bool) Temporal
- func TPointAtValue[TP TPoint](tp TP, value *Geom) Temporal
- func TPointAzimuth[TP TPoint](tp TP) Temporal
- func TPointGetX[TP TPoint](tp TP) Temporal
- func TPointGetY[TP TPoint](tp TP) Temporal
- func TPointGetZ[TP TPoint](tp TP) Temporal
- func TPointMinusStbox[TP TPoint](tp TP, stbox *STBox, border_inc bool) Temporal
- func TPointMinusValue[TP TPoint](tp TP, value *Geom) Temporal
- func TPointRound[TP TPoint](tp TP, max_decimals int) Temporal
- func TPointSpeed[TP TPoint](tp TP) Temporal
- func TTextAtValue[TT TText](tt TT, value string) Temporal
- func TTextMinusValue[TT TText](tt TT, value string) Temporal
- func TTouchesTPointGeo[TP TPoint](temp TP, gs *Geom, restr, atvalue bool) Temporal
- func TemporalAppendTInstant[T Temporal, TI TInstant](temp T, inst TI, max_dist float64, max_time timeutil.Timedelta, expand bool) Temporal
- func TemporalAppendTSequence[T Temporal, TS TSequence](temp T, seq TS, expand bool) Temporal
- func TemporalAtMax[T Temporal](temp T) Temporal
- func TemporalAtMin[T Temporal](temp T) Temporal
- func TemporalAtTimestamptz[T Temporal](temp T, ts time.Time) Temporal
- func TemporalAtTsTzSet[T Temporal](temp T, tstzset TsTzSet) Temporal
- func TemporalAtTsTzSpan[T Temporal](temp T, tstzspan TsTzSpan) Temporal
- func TemporalAtTsTzSpanSet[T Temporal](temp T, tstzspanset TsTzSpanSet) Temporal
- func TemporalAtValues[T Temporal, S Set](temp T, set S) Temporal
- func TemporalDeleteTimestamptz[T Temporal](temp T, ts time.Time, connect bool) Temporal
- func TemporalDeleteTsTzSet[T Temporal](temp T, set TsTzSet, connect bool) Temporal
- func TemporalDeleteTsTzSpan[T Temporal](temp T, span TsTzSpan, connect bool) Temporal
- func TemporalDeleteTsTzSpanSet[T Temporal](temp T, spanset TsTzSpanSet, connect bool) Temporal
- func TemporalFromWKB(wkb []byte) Temporal
- func TemporalInsert[T1 Temporal, T2 Temporal](temp1 T1, temp2 T2, connect bool) Temporal
- func TemporalMinusMax[T Temporal](temp T) Temporal
- func TemporalMinusMin[T Temporal](temp T) Temporal
- func TemporalMinusTimestamptz[T Temporal](temp T, ts time.Time) Temporal
- func TemporalMinusTsTzSet[T Temporal](temp T, tstzset TsTzSet) Temporal
- func TemporalMinusTsTzSpan[T Temporal](temp T, tstzspan TsTzSpan) Temporal
- func TemporalMinusTsTzSpanSet[T Temporal](temp T, tstzspanset TsTzSpanSet) Temporal
- func TemporalTPrecision[T Temporal](temp T, duration timeutil.Timedelta, start time.Time) Temporal
- func TemporalTSample[T Temporal](temp T, duration timeutil.Timedelta, start time.Time, interp Interpolation) Temporal
- func TemporalUpdate[T1 Temporal, T2 Temporal](temp1 T1, temp2 T2, connect bool) Temporal
- func TextcatTTextTText[TT1 TText, TT2 TText](tt1 TT1, tt2 TT2) Temporal
- func TextcatTTextText[TT TText](tt TT, value string) Temporal
- type TsTzSet
- func (g_tts *TsTzSet) Duration() timeutil.Timedelta
- func (g_tss *TsTzSet) ElementN(n int) time.Time
- func (g_tss *TsTzSet) Elements() []time.Time
- func (g_tts *TsTzSet) EndElement() time.Time
- func (g_tss *TsTzSet) NumElements() int
- func (g_tss *TsTzSet) Scale(duration interface{}) (*TsTzSet, error)
- func (g_tss *TsTzSet) Shift(delta interface{}) (*TsTzSet, error)
- func (g_tss *TsTzSet) ShiftScale(shift interface{}, duration interface{}) (*TsTzSet, error)
- func (g_tts *TsTzSet) StartElement() time.Time
- func (g_tts *TsTzSet) TsTzSetOut() string
- type TsTzSpan
- func (g_tts *TsTzSpan) Duration() timeutil.Timedelta
- func (g_tts *TsTzSpan) Lower() time.Time
- func (g_tss *TsTzSpan) Scale(duration interface{}) (*TsTzSpan, error)
- func (g_tss *TsTzSpan) Shift(delta interface{}) (*TsTzSpan, error)
- func (g_tss *TsTzSpan) ShiftScale(shift interface{}, duration interface{}) (*TsTzSpan, error)
- func (g_tts *TsTzSpan) ToSpanSet() TsTzSpanSet
- func (g_tts *TsTzSpan) TsTzSpanOut() string
- func (g_tts *TsTzSpan) Upper() time.Time
- type TsTzSpanSet
- func (g_tts *TsTzSpanSet) Duration(ignore_gap bool) timeutil.Timedelta
- func (g_tts *TsTzSpanSet) EndSpan() TsTzSpan
- func (g_tts *TsTzSpanSet) EndTimestamp() time.Time
- func (g_tts *TsTzSpanSet) NumSpans() int
- func (g_tts *TsTzSpanSet) NumTimestamps() int
- func (g_tts *TsTzSpanSet) Scale(duration interface{}) (*TsTzSpanSet, error)
- func (g_tts *TsTzSpanSet) Shift(delta interface{}) (*TsTzSpanSet, error)
- func (g_tts *TsTzSpanSet) ShiftScale(shift interface{}, duration interface{}) (*TsTzSpanSet, error)
- func (g_tts *TsTzSpanSet) SpanN(n int) TsTzSpan
- func (g_tts *TsTzSpanSet) Spans() []TsTzSpan
- func (g_tts *TsTzSpanSet) StartSpan() TsTzSpan
- func (g_tts *TsTzSpanSet) StartTimestamp() time.Time
- func (g_tts *TsTzSpanSet) TimestampN(n int) time.Time
- func (g_tts *TsTzSpanSet) Timestamps() []time.Time
- func (g_tts *TsTzSpanSet) ToSpan() *TsTzSpan
- func (g_tts *TsTzSpanSet) ToTsTzSpan() *TsTzSpan
- func (g_tts *TsTzSpanSet) TsTzSpanSetOut() string
Examples ¶
- EverEqTBoolBool
- EverEqTemporalTemporal
- FloatSet.Add
- FloatSet.Contains
- FloatSet.Distance
- FloatSet.ElementN
- FloatSet.Elements
- FloatSet.EndElement
- FloatSet.Intersection
- FloatSet.IsLeft
- FloatSet.IsOverOrLeft
- FloatSet.IsOverOrRight
- FloatSet.IsRight
- FloatSet.Minus
- FloatSet.Mul
- FloatSet.NumElements
- FloatSet.Scale
- FloatSet.Shift
- FloatSet.ShiftScale
- FloatSet.StartElement
- FloatSet.Sub
- FloatSet.ToIntSet
- FloatSet.ToSpanSet
- FloatSet.Union
- FloatSpan.Contains
- FloatSpan.Distance
- FloatSpan.Intersection
- FloatSpan.IsAdjacent
- FloatSpan.IsLeft
- FloatSpan.IsOverOrLeft
- FloatSpan.IsOverOrRight
- FloatSpan.IsRight
- FloatSpan.IsSame
- FloatSpan.Lower
- FloatSpan.Minus
- FloatSpan.Scale
- FloatSpan.ShiftScale
- FloatSpan.ToIntSpan
- FloatSpan.Union
- FloatSpan.Upper
- FloatSpan.Width
- FloatSpanSet.FloatSpanSetOut
- FloatSpanSet.NumSpans
- FloatSpanSet.ToIntSpanSet
- FloatSpanSet.ToSpan
- FloatSpanSet.Width
- GeoAsEWKT
- GeoAsGeojson
- GeoAsHexEwkb
- GeoAsText
- IntSet.Add
- IntSet.Contains
- IntSet.Distance
- IntSet.ElementN
- IntSet.Elements
- IntSet.EndElement
- IntSet.Intersection
- IntSet.IsLeft
- IntSet.IsOverOrLeft
- IntSet.IsOverOrRight
- IntSet.IsRight
- IntSet.Minus
- IntSet.Mul
- IntSet.NumElements
- IntSet.Scale
- IntSet.Shift
- IntSet.ShiftScale
- IntSet.StartElement
- IntSet.Sub
- IntSet.ToFloatSet
- IntSet.ToSpanSet
- IntSet.Union
- IntSpan.Add
- IntSpan.Contains
- IntSpan.Distance
- IntSpan.IntSpanOut
- IntSpan.IsAdjacent
- IntSpan.IsLeft
- IntSpan.IsOverOrLeft
- IntSpan.IsOverOrRight
- IntSpan.IsRight
- IntSpan.IsSame
- IntSpan.Minus
- IntSpan.ToFloatSpan
- IntSpan.ToSpanSet
- IntSpan.Union
- NewFloatSet
- NewFloatSpan
- NewIntSet
- TAndTBoolBool
- TBoolFromBaseTemporal
- TBoolOut
- TBoolSeqSetFromBaseTstzspanset
- TBoolValueAtTimestamp
- TBoolWhenTrue
- TEqTBoolBool
- TEqTemporalTemporal
- TFloatFromBaseTemporal
- TFloatToTInt
- TFloatValueAtTimestamp
- TFloatValues
- TNEqTBoolBool
- TNEqTemporalTemporal
- TNotTBool
- TNumberIntegral
- TNumberToSpan
- TNumberToTBox
- TNumberTwavg
- TNumberValueSpans
- TPointAsGeoJson
- TPointSTBoxes
- TPointToSTBox
- TPointValueSet
- TemporalAsHexWKB
- TemporalAsWKB
Constants ¶
const ( INTERP_NONE Interpolation = C.INTERP_NONE DISCRETE Interpolation = C.DISCRETE STEP Interpolation = C.STEP LINEAR = C.LINEAR ANYTEMPSUBTYPE = C.ANYTEMPSUBTYPE /**< Any temporal subtype */ TINSTANT = C.TINSTANT /**< Temporal instant subtype */ TSEQUENCE = C.TSEQUENCE /**< Temporal sequence subtype */ TSEQUENCESET = C.TSEQUENCESET /**< Temporal sequence set subtype */ T_TBOOL = C.T_TBOOL /**< temporal boolean type */ T_TFLOAT = C.T_TFLOAT /**< temporal float type */ T_TINT = C.T_TINT /**< temporal integer type */ T_TTEXT = C.T_TTEXT /**< temporal text type */ T_TGEOMPOINT = C.T_TGEOMPOINT /**< temporal geometry point type */ T_TGEOGPOINT = C.T_TGEOGPOINT /**< temporal geography point type */ )
Variables ¶
This section is empty.
Functions ¶
func AboveTPointSTBox ¶ added in v0.1.10
AboveTPointSTBox returns true if a temporal point is above a spatiotemporal box.
func AboveTPointTPoint ¶ added in v0.1.10
AboveTPointTPoint returns true if the first temporal point is above the second temporal point.
func AdjacentTemporalTemporal ¶ added in v0.1.10
AdjacentTemporalTemporal Return true if the time spans of two temporal values are adjacent
func AdjacentTemporalTsTzSpan ¶ added in v0.1.10
AdjacentTemporalTsTzSpan Return true if the time span of a temporal value and a timestamptz span are adjacent
func AfterTemporalTemporal ¶ added in v0.1.10
AfterTemporalTemporal checks if one temporal value is after another
func AfterTemporalTsTzSpan ¶ added in v0.1.10
AfterTemporalTsTzSpan checks if a temporal value is after a timestamptz span
func AlwaysContainsGeoTPoint ¶ added in v0.1.10
AlwaysContainsGeoTPoint returns true if the geometry contains the temporal point.
func AlwaysDWithinTPointGeo ¶ added in v0.1.10
AlwaysDWithinTPointGeo returns true if the temporal point is within the specified distance of the geometry.
func AlwaysDWithinTPointTPoint ¶ added in v0.1.10
AlwaysDWithinTPointTPoint returns true if the two temporal points are within the specified distance.
func AlwaysDisjointTPointGeo ¶ added in v0.1.10
AlwaysDisjointTPointGeo returns true if the temporal point is disjoint from the geometry.
func AlwaysDisjointTPointTPoint ¶ added in v0.1.10
AlwaysDisjointTPointTPoint returns true if the two temporal points are disjoint.
func AlwaysEqTBoolBool ¶ added in v0.1.9
AlwaysEqTBoolBool Return true if a temporal boolean is always equal to a boolean
func AlwaysEqTFloatFloat ¶ added in v0.1.9
AlwaysEqTFloatFloat Return true if a temporal float is always equal to a float
func AlwaysEqTIntInt ¶ added in v0.1.9
AlwaysEqTIntInt Return true if a temporal integer is always equal to an integer
func AlwaysEqTPointPoint ¶ added in v0.1.10
func AlwaysEqTTextText ¶ added in v0.1.10
AlwaysEqTTextText Return true if a temporal text is always equal to a text
func AlwaysEqTemporalTemporal ¶ added in v0.1.9
AlwaysEqTemporalTemporal Return true if two temporal values are always equal
func AlwaysGeTFloatFloat ¶ added in v0.1.9
AlwaysGeTFloatFloat Return true if a temporal float is always greater than or equal to a float
func AlwaysGeTIntInt ¶ added in v0.1.9
AlwaysGeTIntInt Return true if a temporal integer is always greater than or equal to an integer
func AlwaysGeTTextText ¶ added in v0.1.10
AlwaysGeTTextText Return true if a temporal text is always greater than or equal to a text
func AlwaysGeTemporalTemporal ¶ added in v0.1.9
AlwaysGeTemporalTemporal returns true if one temporal value is always greater than or equal to another temporal value
func AlwaysGtTFloatFloat ¶ added in v0.1.9
AlwaysGtTFloatFloat Return true if a temporal float is always greater than a float
func AlwaysGtTIntInt ¶ added in v0.1.9
AlwaysGtTIntInt Return true if a temporal integer is always greater than an integer
func AlwaysGtTTextText ¶ added in v0.1.10
AlwaysGtTTextText Return true if a temporal text is always greater than a text
func AlwaysGtTemporalTemporal ¶ added in v0.1.9
AlwaysGtTemporalTemporal returns true if one temporal value is always greater than another temporal value
func AlwaysIntersectsTPointGeo ¶ added in v0.1.10
AlwaysIntersectsTPointGeo returns true if the temporal point intersects the geometry.
func AlwaysIntersectsTPointTPoint ¶ added in v0.1.10
AlwaysIntersectsTPointTPoint returns true if the two temporal points intersect.
func AlwaysLeTFloatFloat ¶ added in v0.1.9
AlwaysLeTFloatFloat Return true if a temporal float is always less than or equal to a float
func AlwaysLeTIntInt ¶ added in v0.1.9
AlwaysLeTIntInt Return true if a temporal integer is always less than or equal to an integer
func AlwaysLeTTextText ¶ added in v0.1.10
AlwaysLeTTextText Return true if a temporal text is always less than or equal to a text
func AlwaysLeTemporalTemporal ¶ added in v0.1.9
AlwaysLeTemporalTemporal returns true if one temporal value is always less than or equal to another temporal value
func AlwaysLtTFloatFloat ¶ added in v0.1.9
AlwaysLtTFloatFloat Return true if a temporal float is always less than a float
func AlwaysLtTIntInt ¶ added in v0.1.9
AlwaysLtTIntInt Return true if a temporal integer is always less than an integer
func AlwaysLtTTextText ¶ added in v0.1.10
AlwaysLtTTextText Return true if a temporal text is always less than a text
func AlwaysLtTemporalTemporal ¶ added in v0.1.9
AlwaysLtTemporalTemporal returns true if one temporal value is always less than another temporal value
func AlwaysNeTFloatFloat ¶ added in v0.1.9
AlwaysNeTFloatFloat Return true if a temporal float is always not equal to a float
func AlwaysNeTIntInt ¶ added in v0.1.9
AlwaysNeTIntInt Return true if a temporal integer is always not equal to an integer
func AlwaysNeTPointPoint ¶ added in v0.1.10
func AlwaysNeTTextText ¶ added in v0.1.10
AlwaysNeTTextText Return true if a temporal text is always not equal to a text
func AlwaysNeTemporalTemporal ¶ added in v0.1.9
AlwaysNeTemporalTemporal returns true if one temporal value is always not equal to another temporal value
func AlwaysTouchesTPointGeo ¶ added in v0.1.10
AlwaysTouchesTPointGeo returns true if the two temporal points touch.
func BackTPointSTBox ¶ added in v0.1.10
BackTPointSTBox returns true if a temporal point is behind a spatiotemporal box.
func BackTPointTPoint ¶ added in v0.1.10
BackTPointTPoint returns true if the first temporal point is behind the second temporal point.
func BearingPointPoint ¶ added in v0.1.10
BearingPointPoint Return the temporal bearing between two geometry/geography points
func BeforeTemporalTemporal ¶ added in v0.1.10
BeforeTemporalTemporal checks if one temporal value is before another
func BeforeTemporalTsTzSpan ¶ added in v0.1.10
BeforeTemporalTsTzSpan checks if a temporal value is before a timestamptz span
func BelowTPointSTBox ¶ added in v0.1.10
BelowTPointSTBox returns true if a temporal point is below a spatiotemporal box.
func BelowTPointTPoint ¶ added in v0.1.10
BelowTPointTPoint returns true if the first temporal point is below the second temporal point.
func ContainedTemporalTemporal ¶ added in v0.1.10
ContainedTemporalTemporal checks if one temporal value is contained within another
func ContainedTemporalTsTzSpan ¶ added in v0.1.10
ContainedTemporalTsTzSpan checks if a temporal value is contained within a timestamptz span
func ContainsTemporalTemporal ¶ added in v0.1.10
ContainsTemporalTemporal checks if one temporal value contains another
func ContainsTemporalTsTzSpan ¶ added in v0.1.10
ContainsTemporalTsTzSpan checks if a temporal value contains a timestamptz span
func DatetimeToTimestamptz ¶
func DatetimeToTimestamptz(t time.Time) C.TimestampTz
Transform time.Time to TimestampTz
func EverContainsGeoTPoint ¶ added in v0.1.10
func EverDWithinTPointGeo ¶ added in v0.1.10
func EverDWithinTPointTPoint ¶ added in v0.1.10
func EverDisjointTPointGeo ¶ added in v0.1.10
func EverDisjointTPointTPoint ¶ added in v0.1.10
func EverEqTBoolBool ¶ added in v0.1.9
EverEqTBoolBool Return true if a temporal boolean is always equal to a boolean
Example ¶
tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") tb2 := true res := EverEqTBoolBool(tb1, tb2) fmt.Println(res)
Output: false
func EverEqTFloatFloat ¶ added in v0.1.9
EverEqTFloatFloat Return true if a temporal float is ever equal to a float
func EverEqTIntInt ¶ added in v0.1.9
EverEqTIntInt Return true if a temporal integer is ever equal to an integer
func EverEqTPointPoint ¶ added in v0.1.10
func EverEqTTextText ¶ added in v0.1.10
EverEqTTextText Return true if a temporal text is ever equal to a text
func EverEqTemporalTemporal ¶ added in v0.1.9
EverEqTemporalTemporal Return true if two temporal values are ever equal
Example ¶
MeosInitialize("UTC") tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") tb2 := NewTBoolInst("TRUE@2022-10-01") res := EverEqTemporalTemporal(tb1, tb2) fmt.Println(res)
Output: false
func EverGeTFloatFloat ¶ added in v0.1.9
EverGeTFloatFloat Return true if a temporal float is ever greater than or equal to a float
func EverGeTIntInt ¶ added in v0.1.9
EverGeTIntInt Return true if a temporal integer is ever greater than or equal to an integer
func EverGeTTextText ¶ added in v0.1.10
EverGeTTextText Return true if a temporal text is ever greater than or equal to a text
func EverGeTemporalTemporal ¶ added in v0.1.9
EverGeTemporalTemporal returns true if one temporal value is ever greater than or equal to another temporal value
func EverGtTFloatFloat ¶ added in v0.1.9
EverGtTFloatFloat Return true if a temporal float is ever greater than a float
func EverGtTIntInt ¶ added in v0.1.9
EverGtTIntInt Return true if a temporal integer is ever greater than an integer
func EverGtTTextText ¶ added in v0.1.10
EverGtTTextText Return true if a temporal text is ever greater than a text
func EverGtTemporalTemporal ¶ added in v0.1.9
EverGtTemporalTemporal returns true if one temporal value is ever greater than another temporal value
func EverIntersectsTPointGeo ¶ added in v0.1.10
func EverIntersectsTPointTPoint ¶ added in v0.1.10
func EverLeTFloatFloat ¶ added in v0.1.9
EverLeTFloatFloat Return true if a temporal float is ever less than or equal to a float
func EverLeTIntInt ¶ added in v0.1.9
EverLeTIntInt Return true if a temporal integer is ever less than or equal to an integer
func EverLeTTextText ¶ added in v0.1.10
EverLeTTextText Return true if a temporal text is ever less than or equal to a text
func EverLeTemporalTemporal ¶ added in v0.1.9
EverLeTemporalTemporal returns true if one temporal value is ever less than or equal to another temporal value
func EverLtTFloatFloat ¶ added in v0.1.9
EverLtTFloatFloat Return true if a temporal float is ever less than a float
func EverLtTIntInt ¶ added in v0.1.9
EverLtTIntInt Return true if a temporal integer is ever less than an integer
func EverLtTTextText ¶ added in v0.1.10
EverLtTTextText Return true if a temporal text is ever less than a text
func EverLtTemporalTemporal ¶ added in v0.1.9
EverLtTemporalTemporal returns true if one temporal value is ever less than another temporal value
func EverNeTFloatFloat ¶ added in v0.1.9
EverNeTFloatFloat Return true if a temporal float is ever not equal to a float
func EverNeTIntInt ¶ added in v0.1.9
EverNeTIntInt Return true if a temporal integer is ever not equal to an integer
func EverNeTPointPoint ¶ added in v0.1.10
func EverNeTTextText ¶ added in v0.1.10
EverNeTTextText Return true if a temporal text is ever not equal to a text
func EverNeTemporalTemporal ¶ added in v0.1.9
EverNeTemporalTemporal returns true if one temporal value is ever not equal to another temporal value
func EverTouchesTPointGeo ¶ added in v0.1.10
func FrontTPointSTBox ¶ added in v0.1.10
FrontTPointSTBox returns true if a temporal point is in front of a spatiotemporal box.
func FrontTPointTPoint ¶ added in v0.1.10
FrontTPointTPoint returns true if the first temporal point is in front of the second temporal point.
func GeoAsEWKT ¶
Example ¶
g := createGeom() result := GeoAsEWKT(g, 5) fmt.Println(result)
Output: POLYGON((1 1,1 2,2 2,2 1,1 1))
func GeoAsGeojson ¶
Example ¶
g := createGeom() result := GeoAsGeojson(g, 1, 6, "EPSG:4326") fmt.Println(result)
Output: {"type":"Polygon","crs":{"type":"name","properties":{"name":"EPSG:4326"}},"bbox":[1.000000,1.000000,2.000000,2.000000],"coordinates":[[[1,1],[1,2],[2,2],[2,1],[1,1]]]}
func GeoAsHexEwkb ¶
Example ¶
g := createGeom() result := GeoAsHexEwkb(g, "XDR") fmt.Println(result)
Output: 000000000300000001000000053FF00000000000003FF00000000000003FF000000000000040000000000000004000000000000000400000000000000040000000000000003FF00000000000003FF00000000000003FF0000000000000
func GeoAsText ¶
Example ¶
g := createGeom() result := GeoAsText(g, 5) fmt.Println(result)
Output: POLYGON((1 1,1 2,2 2,2 1,1 1))
func LeftTNumberNumspan ¶ added in v0.1.10
LeftTNumberNumspan Return true if a temporal number is to the left of a number span
func LeftTNumberTBox ¶ added in v0.1.10
LeftTNumberTBox Return true if a temporal number is to the left of a temporal box
func LeftTNumberTNumber ¶ added in v0.1.10
LeftTNumberTNumber Return true if the first temporal number is to the left of the second one
func LeftTPointSTBox ¶ added in v0.1.10
LeftTPointSTBox Return true if the first temporal point is to the left of the second one
func LeftTPointTPoint ¶ added in v0.1.10
LeftTPointTPoint Return true if a temporal point is to the left of a spatiotemporal box
func MeosFinalize ¶
func MeosFinalize()
func MeosInitialize ¶
func MeosInitialize(tz string)
func NADTFloatFloat ¶ added in v0.1.10
NADTFloatFloat returns the nearest approach distance between a temporal float and a constant float.
func NADTFloatTFloat ¶ added in v0.1.10
NADTFloatTFloat returns the nearest approach distance between two temporal floats.
func NadTIntInt ¶ added in v0.1.9
NadTIntInt Return the nearest approach distance between a temporal number and a number
func NadTIntTInt ¶ added in v0.1.9
NadTIntTInt Return the nearest approach distance between two temporal integers
func OverAfterTemporalTemporal ¶ added in v0.1.10
OverAfterTemporalTemporal checks if one temporal value is over and after another
func OverAfterTemporalTsTzSpan ¶ added in v0.1.10
OverAfterTemporalTsTzSpan checks if a temporal value is over and after a timestamptz span
func OverBeforeTemporalTemporal ¶ added in v0.1.10
OverBeforeTemporalTemporal checks if one temporal value is over and before another
func OverBeforeTemporalTsTzSpan ¶ added in v0.1.10
OverBeforeTemporalTsTzSpan checks if a temporal value is over and before a timestamptz span
func OverLeftTNumberNumspan ¶ added in v0.1.10
OverLeftTNumberNumspan returns true if a temporal number is overleft of a number span.
func OverLeftTNumberTBox ¶ added in v0.1.10
OverLeftTNumberTBox returns true if a temporal number is overleft of a temporal box.
func OverLeftTNumberTNumber ¶ added in v0.1.10
OverLeftTNumberTNumber returns true if the first temporal number is overleft of the second one.
func OverRightTNumberNumspan ¶ added in v0.1.10
OverRightTNumberNumspan returns true if a temporal number is overright of a number span.
func OverRightTNumberTBox ¶ added in v0.1.10
OverRightTNumberTBox returns true if a temporal number is overright of a temporal box.
func OverRightTNumberTNumber ¶ added in v0.1.10
OverRightTNumberTNumber returns true if the first temporal number is overright of the second one.
func OveraboveTPointSTBox ¶ added in v0.1.10
OveraboveTPointSTBox returns true if a temporal point is overabove a spatiotemporal box.
func OveraboveTPointTPoint ¶ added in v0.1.10
OveraboveTPointTPoint returns true if the first temporal point is overabove the second temporal point.
func OverbackTPointSTBox ¶ added in v0.1.10
OverbackTPointSTBox returns true if a temporal point is overback of a spatiotemporal box.
func OverbackTPointTPoint ¶ added in v0.1.10
OverbackTPointTPoint returns true if the first temporal point is overback of the second temporal point.
func OverbelowTPointSTBox ¶ added in v0.1.10
OverbelowTPointSTBox returns true if a temporal point is overbelow a spatiotemporal box.
func OverbelowTPointTPoint ¶ added in v0.1.10
OverbelowTPointTPoint returns true if the first temporal point is overbelow the second temporal point.
func OverfrontTPointSTBox ¶ added in v0.1.10
OverfrontTPointSTBox returns true if a temporal point is overfront of a spatiotemporal box.
func OverfrontTPointTPoint ¶ added in v0.1.10
OverfrontTPointTPoint returns true if the first temporal point is overfront of the second temporal point.
func OverlapsTemporalTemporal ¶ added in v0.1.10
OverlapsTemporalTemporal checks if two temporal values overlap
func OverlapsTemporalTsTzSpan ¶ added in v0.1.10
OverlapsTemporalTsTzSpan checks if a temporal value overlaps with a timestamptz span
func OverleftTPointSTBox ¶ added in v0.1.10
OverleftTPointSTBox returns true if a temporal point is overleft of a spatiotemporal box.
func OverleftTPointTPoint ¶ added in v0.1.10
OverleftTPointTPoint returns true if the first temporal point is overleft of the second temporal point.
func OverrightTPointSTBox ¶ added in v0.1.10
OverrightTPointSTBox returns true if a temporal point is overright of a spatiotemporal box.
func OverrightTPointTPoint ¶ added in v0.1.10
OverrightTPointTPoint returns true if the first temporal point is overright of the second temporal point.
func RightTNumberNumspan ¶ added in v0.1.10
RightTNumberNumspan Return true if a temporal number is to the right of a number span
func RightTNumberTBox ¶ added in v0.1.10
RightTNumberTBox Return true if a temporal number is to the right of a temporal box
func RightTNumberTNumber ¶ added in v0.1.10
RightTNumberTNumber Return true if the first temporal number is to the right of the second one
func RightTPointSTBox ¶ added in v0.1.10
RightTPointSTBox returns true if a temporal point is to the right of a spatiotemporal box.
func RightTPointTPoint ¶ added in v0.1.10
RightTPointTPoint returns true if the first temporal point is to the right of the second temporal point.
func STBoxAsHexWKB ¶ added in v0.1.17
STBoxAsHexWKB Return the hex-encoded ASCII Well-Known Binary (HexWKB) representation of a stbox
func STBoxAsWKB ¶ added in v0.1.17
STBoxAsWKB Returns the stbox object as a hex-encoded WKB string.
func STBoxIsGeodetic ¶ added in v0.1.17
func SameTemporalTemporal ¶ added in v0.1.10
SameTemporalTemporal checks if two temporal values are the same
func SameTemporalTsTzSpan ¶ added in v0.1.10
SameTemporalTsTzSpan checks if a temporal value is the same as a timestamptz span
func SpansetUnionFinalfn ¶
func SpansetUnionFinalfn[SS SpanSet](state SS, output SS) SS
func SpansetUnionTransfn ¶
func SpansetUnionTransfn[SS SpanSet](state SS, ss SS, output SS) SS
func TBoolEndValue ¶
TBoolEndValue Return the end value of a temporal boolean
func TBoolFromBaseTemporal ¶ added in v0.1.9
TBoolFromBaseTemporal Create a temporal Boolean from a Boolean value and the time frame of another temporal object.
Example ¶
tb_seq := TBoolIn("{FALSE@2022-10-01, FALSE@2022-10-02,TRUE@2022-10-03}", &TBoolSeq{}) res := TBoolFromBaseTemporal(true, tb_seq, &TBoolSeq{}) fmt.Println(TBoolOut(res))
Output: {t@2022-10-01 00:00:00+00, t@2022-10-02 00:00:00+00, t@2022-10-03 00:00:00+00}
func TBoolFromMFJSON ¶
TBoolFromMFJSON Return a temporal boolean from its MF-JSON representation
func TBoolOut ¶
Example ¶
g_is := NewTBoolInst("TRUE@2022-10-01") fmt.Println(TBoolOut(g_is))
Output: t@2022-10-01 00:00:00+00
func TBoolStartValue ¶
TBoolStartValue Return the start value of a temporal boolean
func TBoolValueAtTimestamp ¶
TBoolValueAtTimestamp Return the value of a temporal boolean at a timestamptz
Example ¶
g_is := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,TRUE@2022-10-03}") ts, _ := time.Parse("2006-01-02", "2022-10-01") res := TBoolValueAtTimestamp(g_is, ts) fmt.Println(res)
Output: false
func TBoolValueSet ¶
TBoolValueSet Return the array of base values of a temporal boolean
func TBoxAsHexWKB ¶ added in v0.1.11
TBoxAsHexWKB Return the hex-encoded ASCII Well-Known Binary (HexWKB) representation of a tbox
func TFloatEndValue ¶ added in v0.1.9
TFloatEndValue Return the end value of a temporal float
func TFloatFromBaseTemporal ¶ added in v0.1.9
TFloatFromBaseTemporal Return a temporal float from a float and the time frame of another temporal value
Example ¶
tb_seq := TBoolIn("{FALSE@2022-10-01, FALSE@2022-10-02,TRUE@2022-10-03}", &TBoolSeq{}) res := TFloatFromBaseTemporal(2, tb_seq, &TFloatSeq{}) fmt.Println(TFloatOut(res, 10))
Output: {2@2022-10-01 00:00:00+00, 2@2022-10-02 00:00:00+00, 2@2022-10-03 00:00:00+00}
func TFloatFromMFJSON ¶
TFloatFromMFJSON Return a temporal float from its MF-JSON representation
func TFloatMaxValue ¶ added in v0.1.9
TFloatMaxValue Return the maximum value of a temporal float
func TFloatMinValue ¶ added in v0.1.9
TFloatMinValue Return the minimum value of a temporal float
func TFloatScaleValue ¶ added in v0.1.10
TFloatScaleValue Return a temporal number whose value dimension is scaled by a value
func TFloatShiftValue ¶ added in v0.1.10
TFloatShiftValue Return a temporal integer whose value dimension is shifted by a value
func TFloatShitScaleValue ¶ added in v0.1.10
TFloatShitScaleValue Return a temporal number whose value dimension is scaled by a value
func TFloatStartValue ¶ added in v0.1.9
TFloatStartValue Return the start value of a temporal float
func TFloatToTInt ¶
TFloatToTInt Return a temporal float converted to a temporal integer
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) res, _ := TFloatToTInt(tf_seq, &TIntSeq{}) fmt.Println(TIntOut(res))
Output: {1@2022-10-01 00:00:00+00, 2@2022-10-02 00:00:00+00, 3@2022-10-03 00:00:00+00}
func TFloatValueAtTimestamp ¶ added in v0.1.9
TFloatValueAtTimestamp Return the value of a temporal float at a timestamptz
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) ts, _ := time.Parse("2006-01-02", "2022-10-01") res := TFloatValueAtTimestamp(tf_seq, ts) fmt.Println(res)
Output: 1.2
func TFloatValues ¶ added in v0.1.9
TFloatValues Return the array of base values of a temporal float
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) res, _ := TFloatValues(tf_seq) fmt.Println(res)
Output: [1.2 2.3 3.4]
func TGeogPointFromMFJSON ¶
func TGeogPointFromMFJSON[TG TGeogPoint](input string, output TG) TG
func TGeogPointIn ¶
func TGeogPointIn[TG TGeogPoint](input string, output TG) TG
func TGeomPointFromMFJSON ¶
func TGeomPointFromMFJSON[TG TGeomPoint](input string, output TG) TG
func TGeomPointIn ¶
func TGeomPointIn[TG TGeomPoint](input string, output TG) TG
func TIntEndValue ¶ added in v0.1.9
TIntEndValue Return the end value of a temporal int
func TIntFromBaseTemporal ¶ added in v0.1.9
TIntFromBaseTemporal Return a temporal int from a int and the time frame of another temporal value
func TIntFromMFJSON ¶
TIntFromMFJSON Return a temporal integer from its MF-JSON representation
func TIntMaxValue ¶ added in v0.1.9
TIntMaxValue Return the maximum value of a temporal int
func TIntMinValue ¶ added in v0.1.9
TIntMinValue Return the minimum value of a temporal int
func TIntScaleValue ¶ added in v0.1.10
TIntScaleValue Return a temporal number whose value dimension is scaled by a value
func TIntShiftValue ¶ added in v0.1.10
TIntShiftValue Return a temporal integer whose value dimension is shifted by a value
func TIntShitScaleValue ¶ added in v0.1.10
TIntShitScaleValue Return a temporal number whose value dimension is scaled by a value
func TIntStartValue ¶ added in v0.1.9
TIntStartValue Return the start value of a temporal int
func TIntToTFloat ¶ added in v0.1.9
TIntToTFloat Return a temporal integer converted to a temporal float
func TIntValueAtTimestamp ¶ added in v0.1.9
TIntValueAtTimestamp Return the value of a temporal int at a timestamptz
func TIntValues ¶ added in v0.1.9
TIntValues Return the array of base values of a temporal integer
func TNotTBool ¶ added in v0.1.9
func TNotTBool[TB TBool](tb TB, output TB) TB
TNotTBool Return the boolean not of a temporal boolean
Example ¶
tb1 := NewTBoolSeq("{TRUE@2022-10-01, TRUE@2022-10-02,TRUE@2022-10-03}") res := TNotTBool(tb1, &TBoolSeq{}) fmt.Println(res.String())
Output: {f@2022-10-01 00:00:00+00, f@2022-10-02 00:00:00+00, f@2022-10-03 00:00:00+00}
func TNumberAbs ¶ added in v0.1.10
func TNumberAbs[TN TNumber](tn TN, output TN) TN
TNumberAbs Return the absolute value of a temporal number
func TNumberIntegral ¶
TNumberIntegral Return the integral (area under the curve) of a temporal number
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) res := TNumberIntegral(tf_seq) fmt.Println(res)
Output: 0
func TNumberToSpan ¶ added in v0.1.9
TNumberToSpan Return the value span of a temporal number
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) fs := TNumberToSpan(tf_seq, &FloatSpan{}) fmt.Println(fs.FloatSpanOut(10))
Output: [1.2, 3.4]
func TNumberTwavg ¶ added in v0.1.10
TNumberTwavg Return the time-weighted average of a temporal number
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) res := TNumberTwavg(tf_seq) fmt.Println(res)
Output: 2.3000000000000003
func TNumberValueSpans ¶ added in v0.1.9
TNumberValueSpans Return the base values of a temporal number as a span set
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) fs := TNumberValueSpans(tf_seq, &FloatSpanSet{}) fmt.Println(fs.FloatSpanSetOut(10))
Output: {[1.2, 1.2], [2.3, 2.3], [3.4, 3.4]}
func TPointAsEWKT ¶
TPointAsEWKT Return the Extended Well-Known Text (EWKT) representation of a temporal point
func TPointAsGeoJson ¶ added in v0.1.10
TPointAsGeoJson Return the GeoJson representation of the geometry of a temporal point
Example ¶
tf_seq := TGeomPointIn("{POINT(1 1)@2022-10-01 00:00:00+00, POINT(2 2)@2022-10-02 00:00:00+00}", &TGeomPointSeq{}) res := TPointAsGeoJson(tf_seq, 1, 15, "EPSG:4326") fmt.Println(res)
Output: {"type":"MultiPoint","crs":{"type":"name","properties":{"name":"EPSG:4326"}},"bbox":[1.000000000000000,1.000000000000000,2.000000000000000,2.000000000000000],"coordinates":[[1,1],[2,2]]}
func TPointAsText ¶
TPointAsText Return the Well-Known Text (WKT) representation of a temporal point
func TPointGeoAsEWKT ¶
TPointGeoAsEWKT Return the Extended Well-Known Text (EWKT) representation of the geometry of a temporal point
func TPointIsSimple ¶ added in v0.1.10
TPointIsSimple Return true if a temporal point does not self-intersect
func TPointLength ¶
TPointLength Returns the length of the trajectory.
func TPointOut ¶
TPointOut Return a temporal geometry/geography point from its Well-Known Text (WKT) representation
func TPointSetSrid ¶ added in v0.1.10
TPointSetSrid Return a temporal point with the coordinates set to an SRID
func TPointSrid ¶ added in v0.1.10
TPointSrid Return the SRID of a temporal point
func TPointTransform ¶
TPointTransform Return a temporal point transformed to another SRID
func TSequenceLowerInclude ¶
func TSequenceMake ¶
func TSequenceMake[TI TInstant, TS TSequence](instants []TI, count int, lower_inc bool, upper_inc bool, interp Interpolation, normalize bool, output TS) TS
TSequenceMake Return a temporal sequence from an array of temporal instants
func TSequenceUpperInclude ¶
func TTextEndValue ¶ added in v0.1.10
TTextEndValue Return the end value of a temporal text
func TTextFromBaseTemporal ¶ added in v0.1.10
TTextFromBaseTemporal Return a temporal text from a text and the time frame of another temporal value
func TTextFromMFJSON ¶
TTextFromMFJSON Return a temporal text from its MF-JSON representation
func TTextLower ¶ added in v0.1.10
func TTextLower[TT TText](tt TT, output TT) TT
TTextLower Return a temporal text transformed to lowercase
func TTextMaxValue ¶ added in v0.1.10
TTextMaxValue Return the maximum value of a temporal text
func TTextMinValue ¶ added in v0.1.10
TTextMinValue Return the minimum value of a temporal text
func TTextStartValue ¶ added in v0.1.10
TTextStartValue Return the start value of a temporal text
func TTextUpper ¶ added in v0.1.10
func TTextUpper[TT TText](tt TT, output TT) TT
TTextUpper Return a temporal text transformed to uppercase
func TTextValueAtTimestamp ¶ added in v0.1.10
TTextValueAtTimestamp Return the value of a temporal text at a timestamptz
func TemporalAsHexWKB ¶ added in v0.1.10
TemporalAsHexWKB Return the hex-encoded ASCII Well-Known Binary (HexWKB) representation of a temporal
Example ¶
tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") wkb, _ := TemporalAsHexWKB(tb1) fmt.Println(wkb)
Output: 011A000603000000030000E06E8FEC8C020000004046AD008D02000000A01DCB148D0200
func TemporalAsMFJSON ¶
func TemporalAsMFJSON[T Temporal](temp T, with_bbox bool, flags int, precision int, srs string) string
TemporalAsMFJSON Returns the temporal object as a MF-JSON string.
func TemporalAsWKB ¶ added in v0.1.10
TemporalAsWKB Returns the temporal object as a hex-encoded WKB string.
Example ¶
tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") wkb, _ := TemporalAsWKB(tb1) res := TemporalFromWKB(wkb) fmt.Println(res.String())
Output: {f@2022-10-01 00:00:00+00, f@2022-10-02 00:00:00+00, f@2022-10-03 00:00:00+00}
func TemporalDuration ¶
TemporalDuration Return the duration of a temporal value
func TemporalDyntimewarpDistance ¶
TemporalDyntimewarpDistance Return the Dynamic Time Warp distance between two temporal values
func TemporalEndInstant ¶
TemporalEndInstant Return a copy of the end instant of a temporal value
func TemporalEndTimestamptz ¶
TemporalEndTimestamptz Return the end timestamptz of a temporal value
func TemporalFrechetDistance ¶
TemporalFrechetDistance Return the Frechet distance between two temporal values
func TemporalFromHexWKB ¶
TemporalFromHexWKB Returns a temporal object from a hex-encoded WKB string.
func TemporalHash ¶
TemporalHash Return the 32-bit hash value of a temporal value
func TemporalHausdorffDistance ¶
TemporalHausdorffDistance Return the Hausdorf distance between two temporal values
func TemporalInstantN ¶
TemporalInstantN Return a copy of the n-th instant of a temporal value
func TemporalInstants ¶
TemporalInstants Return a copy of the distinct instants of a temporal value
func TemporalInterpolation ¶
TemporalInterpolation Return the string representation of the interpolation of a temporal value
func TemporalMaxInstant ¶
TemporalMaxInstant Return a copy of the instant with maximum base value of a temporal value
func TemporalMinInstant ¶
TemporalMinInstant Return a copy of the instant with minimum base value of a temporal value
func TemporalNumInstants ¶
TemporalNumInstants Returns the number of instants
func TemporalNumTimestamps ¶
TemporalNumTimestamps Return the number of distinct timestamps of a temporal value
func TemporalScaleTime ¶ added in v0.1.10
TemporalScaleTime Return a temporal value scaled by an interval
func TemporalSetInterp ¶ added in v0.1.10
func TemporalSetInterp[T Temporal](temp T, interp Interpolation, output T) T
TemporalSetInterp Return a temporal value transformed to a given interpolation
func TemporalShiftScaleTime ¶ added in v0.1.10
func TemporalShiftScaleTime[T Temporal](temp T, shift timeutil.Timedelta, duration timeutil.Timedelta, output T) T
TemporalShiftScaleTime Return a temporal value shifted and/or scaled by two intervals
func TemporalShiftTime ¶ added in v0.1.10
TemporalShiftTime Return a temporal value shifted by an interval
func TemporalSimplifyDP ¶
TemporalSimplifyDP Return a temporal float/point simplified using the Douglas-Peucker line simplification algorithm
func TemporalStartInstant ¶
TemporalStartInstant Returns the first instant
func TemporalStartTimestamptz ¶
TemporalStartTimestamptz Return the start timestamp of a temporal value
func TemporalTimestampN ¶
TemporalTimestampN Return the n-th distinct timestamp of a temporal value in the last argument
func TemporalTimestamps ¶
TemporalTimestamps Return the array of timestamps of a temporal value
func TimestamptzIn ¶
func TimestamptzIn(timeStr string) C.TimestampTz
func TimestamptzOut ¶
func TimestamptzOut(ts C.TimestampTz) string
func TimestamptzToDatetime ¶
func TimestamptzToDatetime(tstz C.TimestampTz) time.Time
Transform TimestampTz to time.Time
func TpointAtGeomTime ¶
TPointAtGeomTime Return a temporal point restricted to a geometry
func TpointMinusGeomTime ¶
TPointMinusGeomTime Return a temporal point minus a geometry
Types ¶
type DateSet ¶
type DateSet struct {
// contains filtered or unexported fields
}
func FalseDateSet ¶
func FalseDateSet() *DateSet
func NewDateSet ¶
func (*DateSet) DateSetOut ¶
func (*DateSet) EndElement ¶
func (*DateSet) Intersection ¶
func (*DateSet) IsOverOrLeft ¶
func (*DateSet) IsOverOrRight ¶
func (*DateSet) NumElements ¶
func (*DateSet) ShiftScale ¶
func (*DateSet) StartElement ¶
func (*DateSet) ToSpanSet ¶
func (g_ds *DateSet) ToSpanSet() *DateSpanSet
type DateSpan ¶
type DateSpan struct {
// contains filtered or unexported fields
}
DateSpan wraps the C Span type
func NewDateSpan ¶
func (*DateSpan) DateSpanOut ¶
func (*DateSpan) Intersection ¶
func (*DateSpan) IsAdjacent ¶
func (*DateSpan) IsOverOrLeft ¶
func (*DateSpan) IsOverOrRight ¶
func (*DateSpan) Minus ¶
func (g_ds *DateSpan) Minus(other interface{}) (*DateSpanSet, error)
func (*DateSpan) ShiftScale ¶
func (*DateSpan) ToSpanSet ¶
func (g_ds *DateSpan) ToSpanSet() *DateSpanSet
func (*DateSpan) ToTstzspan ¶
func (*DateSpan) Union ¶
func (g_ds *DateSpan) Union(other interface{}) (*DateSpanSet, error)
type DateSpanSet ¶
type DateSpanSet struct {
// contains filtered or unexported fields
}
func NewDateSpanSet ¶
func NewDateSpanSet(g_dss_in string) *DateSpanSet
func (*DateSpanSet) Add ¶
func (g_dss *DateSpanSet) Add(other interface{}) (*DateSpanSet, error)
func (*DateSpanSet) Contains ¶
func (g_dss *DateSpanSet) Contains(other interface{}) (bool, error)
func (*DateSpanSet) DateSpanSetOut ¶
func (g_dss *DateSpanSet) DateSpanSetOut() string
func (*DateSpanSet) Dates ¶
func (g_dss *DateSpanSet) Dates() []time.Time
func (*DateSpanSet) Distance ¶
func (g_dss *DateSpanSet) Distance(other interface{}) (timeutil.Timedelta, error)
func (*DateSpanSet) Duration ¶
func (g_dss *DateSpanSet) Duration(ignore_gap bool) timeutil.Timedelta
func (*DateSpanSet) EndDate ¶
func (g_dss *DateSpanSet) EndDate() time.Time
func (*DateSpanSet) EndSpan ¶
func (g_dss *DateSpanSet) EndSpan() DateSpan
func (*DateSpanSet) Intersection ¶
func (g_dss *DateSpanSet) Intersection(other interface{}) (*DateSpanSet, error)
func (*DateSpanSet) IsAdjacent ¶
func (g_dss *DateSpanSet) IsAdjacent(other interface{}) (bool, error)
func (*DateSpanSet) IsLeft ¶
func (g_ds *DateSpanSet) IsLeft(other interface{}) (bool, error)
func (*DateSpanSet) IsOverOrLeft ¶
func (g_ds *DateSpanSet) IsOverOrLeft(other interface{}) (bool, error)
func (*DateSpanSet) IsOverOrRight ¶
func (g_ds *DateSpanSet) IsOverOrRight(other interface{}) (bool, error)
func (*DateSpanSet) IsRight ¶
func (g_ds *DateSpanSet) IsRight(other interface{}) (bool, error)
func (*DateSpanSet) Minus ¶
func (g_dss *DateSpanSet) Minus(other interface{}) (*DateSpanSet, error)
func (*DateSpanSet) Mul ¶
func (g_dss *DateSpanSet) Mul(other interface{}) (*DateSpanSet, error)
func (*DateSpanSet) NumDates ¶
func (g_dss *DateSpanSet) NumDates() int
func (*DateSpanSet) NumSpans ¶
func (g_dss *DateSpanSet) NumSpans() int
func (DateSpanSet) Output ¶
func (ds DateSpanSet) Output() string
func (*DateSpanSet) Overlaps ¶
func (g_dss *DateSpanSet) Overlaps(other interface{}) (bool, error)
func (*DateSpanSet) Scale ¶
func (g_ds *DateSpanSet) Scale(duration interface{}) (*DateSpanSet, error)
func (*DateSpanSet) Shift ¶
func (g_ds *DateSpanSet) Shift(delta interface{}) (*DateSpanSet, error)
func (*DateSpanSet) ShiftScale ¶
func (g_ds *DateSpanSet) ShiftScale(shift interface{}, duration interface{}) (*DateSpanSet, error)
func (*DateSpanSet) SpanN ¶
func (g_dss *DateSpanSet) SpanN(n int) DateSpan
func (*DateSpanSet) Spans ¶
func (g_dss *DateSpanSet) Spans() []DateSpan
func (*DateSpanSet) StartDate ¶
func (g_dss *DateSpanSet) StartDate() time.Time
func (*DateSpanSet) StartSpan ¶
func (g_dss *DateSpanSet) StartSpan() DateSpan
func (*DateSpanSet) Sub ¶
func (g_dss *DateSpanSet) Sub(other interface{}) (*DateSpanSet, error)
func (*DateSpanSet) ToSpan ¶
func (g_dss *DateSpanSet) ToSpan() *DateSpan
func (*DateSpanSet) ToTsTzSpanSet ¶
func (g_dss *DateSpanSet) ToTsTzSpanSet() *TsTzSpanSet
func (*DateSpanSet) Union ¶
func (g_dss *DateSpanSet) Union(other interface{}) (*DateSpanSet, error)
type FloatSet ¶
type FloatSet struct {
// contains filtered or unexported fields
}
func NewFloatSet ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") fmt.Println(g_fs.FloatSetOut(5))
Output: {1.23, 2.9, 3.6}
func (*FloatSet) Add ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") added, _ := g_fs.Add(4.0) fmt.Println(added.FloatSetOut(10))
Output: {1.23, 2.9, 3.6, 4}
func (*FloatSet) Contains ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") con, _ := g_fs.Contains(2.0) fmt.Println(con) g_fs2 := NewFloatSet("{2.9, 4.70, 5.97, 1.23, 3.6}") conSet, _ := g_fs2.Contains(g_fs) fmt.Println(conSet)
Output: false false
func (*FloatSet) Distance ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") dist, _ := g_fs.Distance(5.0) fmt.Println(dist)
Output: 1.4
func (FloatSet) ElementN ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") fmt.Println(g_fs.ElementN(0)) fmt.Println(g_fs.ElementN(1)) fmt.Println(g_fs.ElementN(2))
Output: 1.23 2.9 3.6
func (FloatSet) Elements ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") fmt.Println(g_fs.Elements())
Output: [1.23 2.9 3.6]
func (FloatSet) EndElement ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") fmt.Println(g_fs.EndElement())
Output: 3.6
func (*FloatSet) FloatSetOut ¶
func (*FloatSet) Intersection ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") g_fs2 := NewFloatSet("{2.9, 4.70, 5.97, 1.23, 3.6}") inter, _ := g_fs.Intersection(&g_fs2) fmt.Println(inter.FloatSetOut(5))
Output: {1.23, 2.9, 3.6}
func (*FloatSet) IsLeft ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") left, _ := g_fs.IsLeft(4.0) fmt.Println(left)
Output: true
func (*FloatSet) IsOverOrLeft ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") overleft, _ := g_fs.IsOverOrLeft(3.0) fmt.Println(overleft)
Output: false
func (*FloatSet) IsOverOrRight ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") overright, _ := g_fs.IsOverOrRight(3.0) fmt.Println(overright)
Output: false
func (*FloatSet) IsRight ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") right, _ := g_fs.IsRight(0.0) fmt.Println(right)
Output: true
func (*FloatSet) Minus ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") g_fs2 := NewFloatSet("{2.9, 4.70, 5.97, 1.23, 3.6}") inter, _ := g_fs2.Intersection(&g_fs) fmt.Println(inter.FloatSetOut(5))
Output: {1.23, 2.9, 3.6}
func (*FloatSet) Mul ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") g_fs2 := NewFloatSet("{2.9, 4.70, 5.97, 1.23, 3.6}") mul, _ := g_fs.Mul(&g_fs2) fmt.Println(mul.FloatSetOut(5))
Output: {1.23, 2.9, 3.6}
func (FloatSet) NumElements ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") fmt.Println(g_fs.NumElements())
Output: 3
func (FloatSet) Scale ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") scale := g_fs.Scale(2.0) fmt.Println(scale.FloatSetOut(5))
Output: {1.23, 2.63928, 3.23}
func (FloatSet) Shift ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") shift := g_fs.Shift(1.0) fmt.Println(shift.FloatSetOut(5))
Output: {2.23, 3.9, 4.6}
func (FloatSet) ShiftScale ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") ss := g_fs.ShiftScale(1.0, 2.0) fmt.Println(ss.FloatSetOut(5))
Output: {2.23, 3.63928, 4.23}
func (FloatSet) StartElement ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") fmt.Println(g_fs.StartElement())
Output: 1.23
func (*FloatSet) Sub ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") sub, _ := g_fs.Sub(2.0) fmt.Println(sub.FloatSetOut(5))
Output: {1.23, 2.9, 3.6}
func (FloatSet) ToIntSet ¶
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") g_is := g_fs.ToIntSet() fmt.Println(g_is.IntSetOut())
Output: {1, 2, 3}
func (FloatSet) ToSpanSet ¶
func (g_fs FloatSet) ToSpanSet() FloatSpanSet
Example ¶
g_fs := NewFloatSet("{1.23, 2.9, 3.6}") g_fss := g_fs.ToSpanSet() fmt.Println(g_fss.FloatSpanSetOut(5))
Output: {[1.23, 1.23], [2.9, 2.9], [3.6, 3.6]}
type FloatSpan ¶
type FloatSpan struct {
// contains filtered or unexported fields
}
func NewFloatSpan ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") fmt.Println(g_fs.FloatSpanOut(10))
Output: [1.1, 3.3]
func TBoxToFloatSpan ¶ added in v0.1.11
TBoxToFloatSpan Return a temporal box converted to a float span
func (*FloatSpan) Add ¶
func (g_fs *FloatSpan) Add(other interface{}) (*FloatSpanSet, error)
func (*FloatSpan) Contains ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") contains, err := g_fs.Contains(2.2) fmt.Println(contains, err)
Output: true <nil>
func (*FloatSpan) Distance ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") g_fs_2 := NewFloatSpan("[2.2, 4.4]") distance, err := g_fs.Distance(g_fs_2) fmt.Println(distance, err) distance, err = g_fs.Distance(20) fmt.Println(distance, err)
Output: 0 <nil> 4.625393849793197e+18 <nil>
func (FloatSpan) FloatSpanOut ¶
func (*FloatSpan) Intersection ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") g_fs_2 := NewFloatSpan("[2.2, 4.4]") res, err := g_fs.Intersection(g_fs_2) fmt.Println(res.FloatSpanOut(5), err)
Output: [2.2, 3.3] <nil>
func (*FloatSpan) IsAdjacent ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") is_adj, err := g_fs.IsAdjacent(3.4) fmt.Println(is_adj, err)
Output: false <nil>
func (*FloatSpan) IsLeft ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") is_left, err := g_fs.IsLeft(4.4) fmt.Println(is_left, err)
Output: true <nil>
func (*FloatSpan) IsOverOrLeft ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") is_over_or_left, err := g_fs.IsOverOrLeft(3.3) fmt.Println(is_over_or_left, err)
Output: true <nil>
func (*FloatSpan) IsOverOrRight ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") is_over_or_right, err := g_fs.IsOverOrRight(2.2) fmt.Println(is_over_or_right, err)
Output: false <nil>
func (*FloatSpan) IsRight ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") is_right, err := g_fs.IsRight(0.0) fmt.Println(is_right, err)
Output: true <nil>
func (*FloatSpan) IsSame ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") is_same, err := g_fs.IsSame(2.2) fmt.Println(is_same, err)
Output: false <nil>
func (FloatSpan) Lower ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") fmt.Println(g_fs.Lower())
Output: 1.1
func (*FloatSpan) Minus ¶
func (g_fs *FloatSpan) Minus(other interface{}) (*FloatSpanSet, error)
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") res, err := g_fs.Minus(2.2) fmt.Println(res.FloatSpanSetOut(5), err)
Output: {[1.1, 2.2), (2.2, 3.3]} <nil>
func (FloatSpan) Scale ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") scaled := g_fs.Scale(2.2) fmt.Println(scaled.FloatSpanOut(5))
Output: [1.1, 3.3]
func (FloatSpan) ShiftScale ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") shiftedScaled := g_fs.ShiftScale(1.1, 2.2) fmt.Println(shiftedScaled.FloatSpanOut(5))
Output: [2.2, 4.4]
func (*FloatSpan) Sub ¶
func (g_fs *FloatSpan) Sub(other interface{}) (*FloatSpanSet, error)
func (FloatSpan) ToIntSpan ¶
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") g_is := g_fs.ToIntSpan() fmt.Println(g_is.IntSpanOut())
Output: [1, 4)
func (FloatSpan) ToSpanSet ¶
func (g_fs FloatSpan) ToSpanSet() FloatSpanSet
func (*FloatSpan) Union ¶
func (g_fs *FloatSpan) Union(other interface{}) (*FloatSpanSet, error)
Example ¶
g_fs := NewFloatSpan("[1.1, 3.3]") res, err := g_fs.Union(2.2) fmt.Println(res.FloatSpanSetOut(5), err)
Output: {[1.1, 3.3]} <nil>
type FloatSpanSet ¶
type FloatSpanSet struct {
// contains filtered or unexported fields
}
func NewFloatSpanSet ¶
func NewFloatSpanSet(g_fss_in string) *FloatSpanSet
func (*FloatSpanSet) Add ¶
func (g_fss *FloatSpanSet) Add(other interface{}) (*FloatSpanSet, error)
func (*FloatSpanSet) Contains ¶
func (g_fss *FloatSpanSet) Contains(other interface{}) (bool, error)
func (*FloatSpanSet) Distance ¶
func (g_fss *FloatSpanSet) Distance(other interface{}) (float32, error)
func (FloatSpanSet) EndSpan ¶
func (g_fss FloatSpanSet) EndSpan() FloatSpan
Returns the last span in FloatSpanSet. Returns:
A FloatSpan instance
MEOS Functions:
spanset_end_span
func (*FloatSpanSet) FloatSpanSetOut ¶
func (g_fss *FloatSpanSet) FloatSpanSetOut(max_decimal int) string
Return the string representation of the content of FloatSpanSet.
Returns:
String
MEOS Functions:
floatspanset_out
Example ¶
g_fss := NewFloatSpanSet("{[1.1,3.3]}") fmt.Println(g_fss.FloatSpanSetOut(10))
Output: {[1.1, 3.3]}
func (*FloatSpanSet) Init ¶
func (fss *FloatSpanSet) Init(ss *C.SpanSet)
func (*FloatSpanSet) Inner ¶
func (fss *FloatSpanSet) Inner() *C.SpanSet
func (*FloatSpanSet) Intersection ¶
func (g_fss *FloatSpanSet) Intersection(other interface{}) (*FloatSpanSet, error)
func (*FloatSpanSet) IsAdjacent ¶
func (g_fss *FloatSpanSet) IsAdjacent(other interface{}) (bool, error)
func (*FloatSpanSet) IsLeft ¶
func (g_fss *FloatSpanSet) IsLeft(other interface{}) (bool, error)
func (*FloatSpanSet) IsOverOrLeft ¶
func (g_fss *FloatSpanSet) IsOverOrLeft(other interface{}) (bool, error)
func (*FloatSpanSet) IsOverOrRight ¶
func (g_fss *FloatSpanSet) IsOverOrRight(other interface{}) (bool, error)
func (*FloatSpanSet) IsRight ¶
func (g_fss *FloatSpanSet) IsRight(other interface{}) (bool, error)
func (*FloatSpanSet) IsSame ¶
func (g_fss *FloatSpanSet) IsSame(other interface{}) (bool, error)
func (*FloatSpanSet) IsSpanSet ¶
func (fss *FloatSpanSet) IsSpanSet() bool
func (*FloatSpanSet) Minus ¶
func (g_fss *FloatSpanSet) Minus(other interface{}) (*FloatSpanSet, error)
func (*FloatSpanSet) Mul ¶
func (g_fss *FloatSpanSet) Mul(other interface{}) (*FloatSpanSet, error)
func (FloatSpanSet) NumSpans ¶
func (g_fss FloatSpanSet) NumSpans() int
Returns the number of spans in FloatSpanSet. Returns:
An int
MEOS Functions:
spanset_num_spans
Example ¶
g_fss := NewFloatSpanSet("{[1.1,4.4), [9.9,100.0]}") fmt.Println(g_fss.NumSpans())
Output: 2
func (FloatSpanSet) Scale ¶
func (g_fss FloatSpanSet) Scale(width float64) FloatSpanSet
Return a new “FloatSpanSet“ with the lower and upper bounds scaled so that the width is “width“.
Args:
width: The new width
Returns:
A new ``FloatSpanSet`` instance
MEOS Functions:
floatspanset_shift_scale
func (FloatSpanSet) Shift ¶
func (g_fss FloatSpanSet) Shift(delta float64) FloatSpanSet
Return a new “FloatSpanSet“ with the lower and upper bounds shifted by “delta“.
Args:
delta: The value to shift by
Returns:
A new ``FloatSpanSet`` instance
MEOS Functions:
floatspanset_shift_scale
func (FloatSpanSet) ShiftScale ¶
func (g_fss FloatSpanSet) ShiftScale(d float64, w float64) FloatSpanSet
Return a new “FloatSpanSet“ with the lower and upper bounds shifted by “delta“.
Args:
delta: The value to shift by
Returns:
A new ``FloatSpanSet`` instance
MEOS Functions:
floatspanset_shift_scale
func (FloatSpanSet) SpanN ¶
func (g_fss FloatSpanSet) SpanN(n int) FloatSpan
Returns the n-th span in FloatSpanSet. Returns:
A FloatSpan instance
MEOS Functions:
spanset_span_n
func (FloatSpanSet) Spans ¶
func (g_fss FloatSpanSet) Spans() []FloatSpan
Returns the list of spans in FloatSpanSet. Returns:
A FloatSpan instance
MEOS Functions:
spanset_spans
func (FloatSpanSet) StartSpan ¶
func (g_fss FloatSpanSet) StartSpan() FloatSpan
Returns the first span in spanset. Returns:
A FloatSpan instance
MEOS Functions:
spanset_start_span
func (*FloatSpanSet) Sub ¶
func (g_fss *FloatSpanSet) Sub(other interface{}) (*FloatSpanSet, error)
func (FloatSpanSet) ToIntSpanSet ¶
func (g_fss FloatSpanSet) ToIntSpanSet() IntSpanSet
Converts FloatSpanSet to an IntSpanSet instance.
Returns:
A new IntSpanSet instance
MEOS Functions:
floatspanset_to_intspanset
Example ¶
g_fss := NewFloatSpanSet("{[1.1,4.4), [9.9,100.0]}") ciss := g_fss.ToIntSpanSet() fmt.Println(ciss.IntSpanSetOut())
Output: {[1, 4), [9, 101)}
func (FloatSpanSet) ToSpan ¶
func (g_fss FloatSpanSet) ToSpan() FloatSpan
Returns a span that encompasses _inner.
Returns:
A new struct `FloatSpan` instance
MEOS Functions:
spanset_span
Example ¶
g_fss := NewFloatSpanSet("{[1.1,3.3]}") g_fs := g_fss.ToSpan() fmt.Println(g_fs.FloatSpanOut(10))
Output: [1.1, 3.3]
func (*FloatSpanSet) Union ¶
func (g_fss *FloatSpanSet) Union(other interface{}) (*FloatSpanSet, error)
func (FloatSpanSet) Width ¶
func (g_fss FloatSpanSet) Width(ignore_gap bool) float64
Returns the width of the spanset. By default, i.e., when the second argument is False, the function takes into account the gaps within, i.e., returns the sum of the widths of the spans within. Otherwise, the function returns the width of the spanset ignoring any gap, i.e., the width from the lower bound of the first span to the upper bound of the last span.
Parameters:
ignore_gaps: Whether to take into account potential gaps in the spanset.
Returns:
A `float` representing the duration of the spanset
MEOS Functions:
floatspanset_width
Example ¶
g_fss := NewFloatSpanSet("{[1.1,4.4), [9.9,100.0]}") fmt.Println(g_fss.Width(true)) fmt.Println(g_fss.Width(false))
Output: 98.9 93.39999999999999
type Geo ¶
type Geo interface { Inner() *C.GSERIALIZED IsGeo() bool }
type Geom ¶
type Geom struct {
// contains filtered or unexported fields
}
func GeoFromGeojson ¶
func GeographyFromHexEwkb ¶
func GeographyFromText ¶
func GeometryFromHexEwkb ¶
func GeometryFromText ¶
func PgisGeographyIn ¶
func PgisGeometryIn ¶
func STBoxToGeo ¶ added in v0.1.17
func TPointEndValue ¶ added in v0.1.10
TPointEndValue Return the end value of a temporal point
func TPointStartValue ¶ added in v0.1.10
TPointStartValue Return the start value of a temporal point
func TPointTrajectory ¶
TPointTrajectory Return the trajectory of a temporal point
func TPointTwcentroid ¶ added in v0.1.10
TPointTwcentroid Return the time-weighed centroid of a temporal geometry point
func TPointValueAtTimestamp ¶ added in v0.1.10
TPointValueAtTimestamp Return the value of a temporal point at a timestamptz
func TPointValueSet ¶ added in v0.1.10
TPointValueSet Return the array of base values of a temporal geometry point
Example ¶
tf_seq := TGeomPointIn("{POINT(1 1)@2022-10-01 00:00:00+00, POINT(2 2)@2022-10-02 00:00:00+00}", &TGeomPointSeq{}) geoms, _ := TPointValueSet(tf_seq) fmt.Println(GeoAsText(geoms[0], 10)) fmt.Println(GeoAsText(geoms[1], 10))
Output: POINT(1 1) POINT(2 2)
type IntSet ¶
type IntSet struct {
// contains filtered or unexported fields
}
func (*IntSet) Add ¶
Example ¶
g_is := createIntSet() added, _ := g_is.Add(4) fmt.Println(added.IntSetOut())
Output: {1, 2, 3, 4}
func (*IntSet) Contains ¶
Example ¶
g_is := createIntSet() con, _ := g_is.Contains(2) fmt.Println(con) g_is2 := createIntSet2() conSet, _ := g_is2.Contains(g_is) fmt.Println(conSet)
Output: true false
func (*IntSet) Distance ¶
Example ¶
g_is := createIntSet() dist, _ := g_is.Distance(5) fmt.Println(dist)
Output: 2
func (IntSet) ElementN ¶
Example ¶
g_is := createIntSet() fmt.Println(g_is.ElementN(0)) fmt.Println(g_is.ElementN(1)) fmt.Println(g_is.ElementN(2))
Output: 1 2 3
func (IntSet) Elements ¶
Example ¶
g_is := createIntSet() fmt.Println(g_is.Elements())
Output: [1 2 3]
func (IntSet) EndElement ¶
Example ¶
g_is := createIntSet() fmt.Println(g_is.EndElement())
Output: 3
func (*IntSet) Intersection ¶
Example ¶
g_is := createIntSet() g_is2 := createIntSet2() inter, _ := g_is.Intersection(&g_is2) fmt.Println(inter.IntSetOut())
Output: {3}
func (*IntSet) IsLeft ¶
Example ¶
g_is := createIntSet() left, _ := g_is.IsLeft(4) fmt.Println(left)
Output: true
func (*IntSet) IsOverOrLeft ¶
Example ¶
g_is := createIntSet() overleft, _ := g_is.IsOverOrLeft(3) fmt.Println(overleft)
Output: true
func (*IntSet) IsOverOrRight ¶
Example ¶
g_is := createIntSet() overright, _ := g_is.IsOverOrRight(3) fmt.Println(overright)
Output: false
func (*IntSet) IsRight ¶
Example ¶
g_is := createIntSet() right, _ := g_is.IsRight(0) fmt.Println(right)
Output: true
func (*IntSet) Minus ¶
Example ¶
g_is := createIntSet() g_is2 := createIntSet2() mins, _ := g_is.Minus(&g_is2) fmt.Println(mins.IntSetOut())
Output: {1, 2}
func (*IntSet) Mul ¶
Example ¶
g_is := createIntSet() g_is2 := createIntSet2() mul, _ := g_is.Mul(&g_is2) fmt.Println(mul.IntSetOut())
Output: {3}
func (IntSet) NumElements ¶
Example ¶
g_is := createIntSet() fmt.Println(g_is.NumElements())
Output: 3
func (IntSet) Scale ¶
Example ¶
g_is := createIntSet() g_is_scale := g_is.Scale(2) fmt.Println(g_is_scale.IntSetOut())
Output: {1, 2, 4}
func (IntSet) Shift ¶
Example ¶
g_is := createIntSet() g_is_shift := g_is.Shift(1) fmt.Println(g_is_shift.IntSetOut())
Output: {2, 3, 4}
func (IntSet) ShiftScale ¶
Example ¶
g_is := createIntSet() g_is_ss := g_is.ShiftScale(1, 2) fmt.Println(g_is_ss.IntSetOut())
Output: {2, 3, 5}
func (IntSet) StartElement ¶
Example ¶
g_is := createIntSet() fmt.Println(g_is.StartElement())
Output: 1
func (*IntSet) Sub ¶
Example ¶
g_is := createIntSet() sub, _ := g_is.Sub(2) fmt.Println(sub.IntSetOut())
Output: {1, 3}
func (IntSet) ToFloatSet ¶
Example ¶
g_is := createIntSet() g_fs := g_is.ToFloatSet() fmt.Println(g_fs.FloatSetOut(5))
Output: {1, 2, 3}
func (IntSet) ToSpanSet ¶
func (g_is IntSet) ToSpanSet() IntSpanSet
Example ¶
g_is := createIntSet() g_iss := g_is.ToSpanSet() fmt.Println(g_iss.IntSpanSetOut())
Output: {[1, 4)}
type IntSpan ¶
type IntSpan struct {
// contains filtered or unexported fields
}
func NewIntSpan ¶
func (*IntSpan) Add ¶
func (g_is *IntSpan) Add(other interface{}) (*IntSpanSet, error)
Example ¶
g_is := createIntSpan() res, err := g_is.Add(200) fmt.Println(res.IntSpanSetOut()) fmt.Println(err)
Output: {[4, 6), [200, 201)} <nil>
func (*IntSpan) Contains ¶
Example ¶
g_is := createIntSpan() g_is2 := createIntSpan2() res, err := g_is.Contains(g_is2) fmt.Println(res) fmt.Println(err) res, err = g_is.Contains(200) fmt.Println(res) fmt.Println(err)
Output: false <nil> false <nil>
func (*IntSpan) Distance ¶
Example ¶
g_is := createIntSpan() res, err := g_is.Distance(200) fmt.Println(res) fmt.Println(err)
Output: 195 <nil>
func (*IntSpan) IntSpanOut ¶
Example ¶
g_is := createIntSpan() fmt.Println(g_is.IntSpanOut())
Output: [4, 6)
func (*IntSpan) Intersection ¶
func (*IntSpan) IsAdjacent ¶
Example ¶
g_is := createIntSpan() g_is2 := createIntSpan2() res, err := g_is.IsAdjacent(g_is2) fmt.Println(res) fmt.Println(err) res, err = g_is.IsAdjacent(5) fmt.Println(res) fmt.Println(err)
Output: true <nil> false <nil>
func (*IntSpan) IsLeft ¶
Example ¶
g_is := createIntSpan() g_is2 := createIntSpan2() res, err := g_is.IsLeft(g_is2) fmt.Println(res) fmt.Println(err) res, err = g_is.IsLeft(6) fmt.Println(res) fmt.Println(err)
Output: false <nil> true <nil>
func (*IntSpan) IsOverOrLeft ¶
Example ¶
g_is := createIntSpan() g_is2 := createIntSpan2() res, err := g_is.IsOverOrLeft(g_is2) fmt.Println(res) fmt.Println(err) res, err = g_is.IsOverOrLeft(4) fmt.Println(res) fmt.Println(err)
Output: false <nil> false <nil>
func (*IntSpan) IsOverOrRight ¶
Example ¶
g_is := createIntSpan() g_is2 := createIntSpan2() res, err := g_is.IsOverOrRight(g_is2) fmt.Println(res) fmt.Println(err) res, err = g_is.IsOverOrRight(6) fmt.Println(res) fmt.Println(err)
Output: true <nil> false <nil>
func (*IntSpan) IsRight ¶
Example ¶
g_is := createIntSpan() g_is2 := createIntSpan2() res, err := g_is.IsRight(g_is2) fmt.Println(res) fmt.Println(err) res, err = g_is.IsRight(6) fmt.Println(res) fmt.Println(err)
Output: true <nil> false <nil>
func (*IntSpan) IsSame ¶
Example ¶
g_is := createIntSpan() res, err := g_is.IsSame(200) fmt.Println(res) fmt.Println(err) g_is2 := createIntSpan() res, err = g_is.IsSame(g_is2) fmt.Println(res) fmt.Println(err)
Output: false <nil> true <nil>
func (*IntSpan) Minus ¶
func (g_is *IntSpan) Minus(other interface{}) (*IntSpanSet, error)
Example ¶
g_is := createIntSpan() g_is2 := createIntSpan2() res, err := g_is.Minus(g_is2) fmt.Println(res.IntSpanSetOut()) fmt.Println(err)
Output: {[4, 6)} <nil>
func (*IntSpan) Sub ¶
func (g_is *IntSpan) Sub(other interface{}) (*IntSpanSet, error)
func (*IntSpan) ToFloatSpan ¶
Example ¶
g_is := createIntSpan() g_fs := g_is.ToFloatSpan() fmt.Println(g_fs.FloatSpanOut(10))
Output: [4, 5]
func (*IntSpan) ToSpanSet ¶
func (g_is *IntSpan) ToSpanSet() IntSpanSet
Example ¶
g_is := createIntSpan() g_iss := g_is.ToSpanSet() fmt.Println(g_iss.IntSpanSetOut())
Output: {[4, 6)}
type IntSpanSet ¶
type IntSpanSet struct {
// contains filtered or unexported fields
}
func NewIntSpanSet ¶
func NewIntSpanSet(g_iss_in string) *IntSpanSet
func (*IntSpanSet) Add ¶
func (g_iss *IntSpanSet) Add(other interface{}) (*IntSpanSet, error)
func (*IntSpanSet) Contains ¶
func (g_iss *IntSpanSet) Contains(other interface{}) (bool, error)
func (*IntSpanSet) Distance ¶
func (g_iss *IntSpanSet) Distance(other interface{}) (int, error)
func (IntSpanSet) EndSpan ¶
func (g_iss IntSpanSet) EndSpan() IntSpan
Returns the last span in IntSpanSet. Returns:
A IntSpan instance
MEOS Functions:
spanset_end_span
func (*IntSpanSet) IntSpanSetOut ¶
func (g_iss *IntSpanSet) IntSpanSetOut() string
Return the string representation of the content of IntSpanSet.
Returns:
String
MEOS Functions:
intspanset_out
func (*IntSpanSet) Intersection ¶
func (g_iss *IntSpanSet) Intersection(other interface{}) (*IntSpanSet, error)
func (*IntSpanSet) IsAdjacent ¶
func (g_iss *IntSpanSet) IsAdjacent(other interface{}) (bool, error)
func (*IntSpanSet) IsLeft ¶
func (g_iss *IntSpanSet) IsLeft(other interface{}) (bool, error)
func (*IntSpanSet) IsOverOrLeft ¶
func (g_iss *IntSpanSet) IsOverOrLeft(other interface{}) (bool, error)
func (*IntSpanSet) IsOverOrRight ¶
func (g_iss *IntSpanSet) IsOverOrRight(other interface{}) (bool, error)
func (*IntSpanSet) IsRight ¶
func (g_iss *IntSpanSet) IsRight(other interface{}) (bool, error)
func (*IntSpanSet) IsSame ¶
func (g_iss *IntSpanSet) IsSame(other interface{}) (bool, error)
func (*IntSpanSet) Minus ¶
func (g_iss *IntSpanSet) Minus(other interface{}) (*IntSpanSet, error)
func (*IntSpanSet) Mul ¶
func (g_iss *IntSpanSet) Mul(other interface{}) (*IntSpanSet, error)
func (IntSpanSet) NumSpans ¶
func (g_iss IntSpanSet) NumSpans() int
Returns the number of spans in IntSpanSet. Returns:
An int
MEOS Functions:
spanset_num_spans
func (IntSpanSet) Scale ¶
func (g_iss IntSpanSet) Scale(width int) IntSpanSet
Return a new “IntSpanSet“ with the lower and upper bounds scaled so that the width is “width“.
Args:
width: The new width
Returns:
A new ``IntSpanSet`` instance
MEOS Functions:
intspanset_shift_scale
func (IntSpanSet) Shift ¶
func (g_iss IntSpanSet) Shift(delta int) IntSpanSet
Return a new “IntSpanSet“ with the lower and upper bounds shifted by “delta“.
Args:
delta: The value to shift by
Returns:
A new ``IntSpanSet`` instance
MEOS Functions:
intspanset_shift_scale
func (IntSpanSet) ShiftScale ¶
func (g_iss IntSpanSet) ShiftScale(d int, w int) IntSpanSet
Return a new “IntSpanSet“ with the lower and upper bounds shifted by “delta“.
Args:
delta: The value to shift by
Returns:
A new ``IntSpanSet`` instance
MEOS Functions:
intspanset_shift_scale
func (IntSpanSet) SpanN ¶
func (g_iss IntSpanSet) SpanN(n int) IntSpan
Returns the n-th span in IntSpanSet. Returns:
A IntSpan instance
MEOS Functions:
spanset_span_n
func (IntSpanSet) Spans ¶
func (g_iss IntSpanSet) Spans() []IntSpan
Returns the list of spans in IntSpanSet. Returns:
A IntSpan instance
MEOS Functions:
spanset_spans
func (IntSpanSet) StartSpan ¶
func (g_iss IntSpanSet) StartSpan() IntSpan
Returns the first span in spanset. Returns:
A IntSpan instance
MEOS Functions:
spanset_start_span
func (*IntSpanSet) Sub ¶
func (g_iss *IntSpanSet) Sub(other interface{}) (*IntSpanSet, error)
func (IntSpanSet) ToFloatSpanSet ¶
func (g_iss IntSpanSet) ToFloatSpanSet() FloatSpanSet
Converts IntSpanSet to a FloatSpanSet instance.
Returns:
A new FloatSpanSet instance
MEOS Functions:
intspanset_to_floatspanset
func (IntSpanSet) ToSpan ¶
func (g_iss IntSpanSet) ToSpan() IntSpan
Returns a span that encompasses _inner.
Returns:
A new struct `IntSpan` instance
MEOS Functions:
spanset_span
func (*IntSpanSet) Union ¶
func (g_iss *IntSpanSet) Union(other interface{}) (*IntSpanSet, error)
func (IntSpanSet) Width ¶
func (g_iss IntSpanSet) Width(ignore_gap bool) int
Returns the width of the spanset. By default, i.e., when the second argument is False, the function takes into account the gaps within, i.e., returns the sum of the widths of the spans within. Otherwise, the function returns the width of the spanset ignoring any gap, i.e., the width from the lower bound of the first span to the upper bound of the last span.
Parameters:
ignore_gaps: Whether to take into account potential gaps in the spanset.
Returns:
A `float` representing the duration of the spanset
MEOS Functions:
intspanset_width
type Interpolation ¶
type STBox ¶
type STBox struct {
// contains filtered or unexported fields
}
func GeoTimestamptzToSTBox ¶ added in v0.1.17
func GeoToSTBox ¶ added in v0.1.17
func STBoxFromHexWKB ¶ added in v0.1.17
STBoxFromHexWKB Return a temporal stbox from its hex-encoded ASCII Well-Known Binary (WKB) representation
func STBoxFromWKB ¶ added in v0.1.17
STBoxFromWKB Return a temporal stbox from its Well-Known Binary (WKB) representation
func TPointExpandSpace ¶ added in v0.1.10
TPointExpandSpace Return the bounding box of a temporal point expanded on the spatial dimension
func TPointSTBoxes ¶ added in v0.1.10
TPointSTBoxes Return an array of spatiotemporal boxes from the segments of a temporal point
Example ¶
tf_seq := TGeomPointIn("{POINT(1 1)@2022-10-01 00:00:00+00, POINT(2 2)@2022-10-02 00:00:00+00}", &TGeomPointSeq{}) stboxes, _ := TPointSTBoxes(tf_seq, 100) for i := 0; i < len(stboxes); i++ { fmt.Println(STBoxOut(stboxes[i], 10)) }
Output: STBOX XT(((1,1),(1,1)),[2022-10-01 00:00:00+00, 2022-10-01 00:00:00+00]) STBOX XT(((2,2),(2,2)),[2022-10-02 00:00:00+00, 2022-10-02 00:00:00+00])
func TPointToSTBox ¶
TPointToSTBox Return a temporal point converted to a spatiotemporal box
Example ¶
tg := TGeomPointIn("{POINT(1 1)@2022-10-01 00:00:00+00, POINT(2 2)@2022-10-02 00:00:00+00}", &TGeomPointSeq{}) stbox := TPointToSTBox(tg) fmt.Println(STBoxOut(stbox, 10))
Output: STBOX XT(((1,1),(2,2)),[2022-10-01 00:00:00+00, 2022-10-02 00:00:00+00])
func TimestamptzToSTBox ¶ added in v0.1.17
func TsTzSetToSTBox ¶ added in v0.1.17
func TsTzSpanSetToSTBox ¶ added in v0.1.17
func TsTzSpanSetToSTBox(tstzspanset *TsTzSpanSet) *STBox
func TsTzSpanToSTBox ¶ added in v0.1.17
type TBoolInst ¶
type TBoolInst struct {
// contains filtered or unexported fields
}
func NewTBoolInst ¶
func TBoolInstMake ¶ added in v0.1.9
TBoolInstMake Return a temporal boolean instant from a boolean and a timestamptz
func TemporalToTBoolInst ¶
type TBoolSeq ¶
type TBoolSeq struct {
// contains filtered or unexported fields
}
func NewTBoolSeq ¶
func TBoolSeqFromBaseTstzset ¶ added in v0.1.9
TBoolSeqFromBaseTstzset Return a temporal boolean discrete sequence from a boolean and a timestamptz set
func TBoolSeqFromBaseTstzspan ¶ added in v0.1.9
TBoolSeqFromBaseTstzspan Return a temporal boolean sequence from a boolean and a timestamptz span
func TemporalToTBoolSeq ¶
func (*TBoolSeq) IsTSequence ¶
type TBoolSeqSet ¶
type TBoolSeqSet struct {
// contains filtered or unexported fields
}
func NewTBoolSeqSet ¶
func NewTBoolSeqSet(tgmpi_in string) *TBoolSeqSet
func TBoolSeqSetFromBaseTstzspanset ¶ added in v0.1.9
func TBoolSeqSetFromBaseTstzspanset(value bool, base *TsTzSpanSet) *TBoolSeqSet
TBoolSeqSetFromBaseTstzspanset Return a temporal boolean sequence set from a boolean and a timestamptz span set
Example ¶
tstzspanset := NewTsTzSpanSet("{[2023-01-01 08:00:00+00, 2023-01-02 08:00:00+00), (2023-01-03 10:00:00+00, 2023-01-04 12:00:00+00]}") tss := TBoolSeqSetFromBaseTstzspanset(true, tstzspanset) fmt.Println(TBoolOut(tss))
Output: {[t@2023-01-01 08:00:00+00, t@2023-01-02 08:00:00+00), (t@2023-01-03 10:00:00+00, t@2023-01-04 12:00:00+00]}
func TemporalToTBoolSeqSet ¶
func TemporalToTBoolSeqSet[T Temporal](temp T) (*TBoolSeqSet, error)
func (*TBoolSeqSet) Init ¶
func (tb *TBoolSeqSet) Init(c_temp *C.Temporal)
func (*TBoolSeqSet) Inner ¶
func (tb *TBoolSeqSet) Inner() *C.Temporal
func (*TBoolSeqSet) IsTBool ¶
func (tb *TBoolSeqSet) IsTBool() bool
func (*TBoolSeqSet) String ¶
func (tb *TBoolSeqSet) String() string
func (*TBoolSeqSet) TBoolOut ¶
func (tgmpi *TBoolSeqSet) TBoolOut() string
func (*TBoolSeqSet) Type ¶
func (tb *TBoolSeqSet) Type() string
type TBox ¶
type TBox struct {
// contains filtered or unexported fields
}
func FloatTimestamptzToTBox ¶ added in v0.1.11
FloatTimestamptzToTBox Return a temporal box from a float and a timestamptz
func FloatToTBox ¶ added in v0.1.11
FloatToTBox Return a float converted to a temporal box
func FloatTsTzSpanToTBox ¶ added in v0.1.11
FloatTsTzSpanToTBox Return a temporal box from a float and a timestamptz span
func IntTimestamptzToTBox ¶ added in v0.1.11
IntTimestamptzToTBox Return a temporal box from an integer and a timestamptz
func IntTsTzSpanToTBox ¶ added in v0.1.11
IntTsTzSpanToTBox Return a temporal box from an integer and a timestamptz span
func NumSpanTimestamptzToTBox ¶ added in v0.1.11
NumSpanTimestamptzToTBox Return a temporal box from a number span and a timestamptz
func NumSpanTsTzSpanToTBox ¶ added in v0.1.11
NumSpanTsTzSpanToTBox Return a temporal box from a number span and a timestamptz span
func SpanSetToTBox ¶ added in v0.1.11
SpanSetToTBox Return a number spanset converted to a temporal box
func SpanToTBox ¶ added in v0.1.11
SpanToTBox Return a number span converted to a temporal box
func TBoxFromHexWKB ¶ added in v0.1.11
TBoxFromHexWKB Return a temporal box from its hex-encoded ASCII Well-Known Binary (WKB) representation
func TBoxFromWKB ¶ added in v0.1.11
TBoxFromWKB Return a temporal box from its Well-Known Binary (WKB) representation
func TBoxIn ¶ added in v0.1.11
TBoxIn Return a temporal box from its Well-Known Text (WKT) representation
func TBoxMake ¶ added in v0.1.11
TBoxMake Return a temporal box from a number span and a timestamptz span
func TNumberToTBox ¶
TNumberToTBox Return a temporal number converted to a temporal box
Example ¶
tf_seq := TFloatIn("{1.2@2022-10-01, 2.3@2022-10-02,3.4@2022-10-03}", &TFloatSeq{}) tbox := TNumberToTBox(tf_seq) fmt.Println(TBoxOut(tbox, 10))
Output: TBOXFLOAT XT([1.2, 3.4],[2022-10-01 00:00:00+00, 2022-10-03 00:00:00+00])
func TimestamptzToTBox ¶ added in v0.1.11
TimestamptzToTBox Return a timestamptz converted to a temporal box
type TFloatInst ¶
type TFloatInst struct {
// contains filtered or unexported fields
}
func NewTFloatInst ¶
func NewTFloatInst(tf_in string) *TFloatInst
func TFloatInstMake ¶ added in v0.1.9
func TFloatInstMake(value float64, base time.Time) *TFloatInst
TFloatInstMake Return a temporal float instant from a float and a timestamptz
func TemporalToTFloatInst ¶
func TemporalToTFloatInst[T Temporal](temp T) (*TFloatInst, error)
func (*TFloatInst) Init ¶
func (tf *TFloatInst) Init(c_temp *C.Temporal)
func (*TFloatInst) Inner ¶
func (tf *TFloatInst) Inner() *C.Temporal
func (*TFloatInst) IsTFloat ¶
func (tf *TFloatInst) IsTFloat() bool
func (*TFloatInst) IsTInstant ¶
func (tf *TFloatInst) IsTInstant() bool
func (*TFloatInst) IsTNumber ¶
func (tf *TFloatInst) IsTNumber() bool
func (*TFloatInst) String ¶
func (tf *TFloatInst) String() string
func (*TFloatInst) TPointOut ¶
func (tf *TFloatInst) TPointOut(maxdd int) string
func (*TFloatInst) Type ¶
func (tf *TFloatInst) Type() string
type TFloatSeq ¶
type TFloatSeq struct {
// contains filtered or unexported fields
}
func NewTFloatSeq ¶
func TFloatSeqFromBaseTstzset ¶ added in v0.1.9
TFloatSeqFromBaseTstzset Return a temporal float discrete sequence from a float and a timestamptz set
func TFloatSeqFromBaseTstzspan ¶ added in v0.1.9
func TFloatSeqFromBaseTstzspan(value float64, base TsTzSpan, interp Interpolation) *TFloatSeq
TFloatSeqFromBaseTstzspan Return a temporal float sequence from a float and a timestamptz span
func TemporalToTFloatSeq ¶
func (*TFloatSeq) IsTSequence ¶
type TFloatSeqSet ¶
type TFloatSeqSet struct {
// contains filtered or unexported fields
}
func NewTFloatSeqSet ¶
func NewTFloatSeqSet(tf_in string) *TFloatSeqSet
func TFloatSeqSetFromBaseTstzspanset ¶ added in v0.1.9
func TFloatSeqSetFromBaseTstzspanset(value float64, base *TsTzSpanSet, interp Interpolation) *TFloatSeqSet
TFloatSeqSetFromBaseTstzspanset Return a temporal float sequence set from a float and a timestamptz span set
func TemporalToTFloatSeqSet ¶
func TemporalToTFloatSeqSet[T Temporal](temp T) (*TFloatSeqSet, error)
func (*TFloatSeqSet) Init ¶
func (tf *TFloatSeqSet) Init(c_temp *C.Temporal)
func (*TFloatSeqSet) Inner ¶
func (tf *TFloatSeqSet) Inner() *C.Temporal
func (*TFloatSeqSet) IsTFloat ¶
func (tf *TFloatSeqSet) IsTFloat() bool
func (*TFloatSeqSet) IsTNumber ¶
func (tf *TFloatSeqSet) IsTNumber() bool
func (*TFloatSeqSet) String ¶
func (tf *TFloatSeqSet) String() string
func (*TFloatSeqSet) TPointOut ¶
func (tf *TFloatSeqSet) TPointOut(maxdd int) string
func (*TFloatSeqSet) Type ¶
func (tf *TFloatSeqSet) Type() string
type TGeogPoint ¶
type TGeogPointInst ¶
type TGeogPointInst struct {
// contains filtered or unexported fields
}
func NewTGeogPointInst ¶
func NewTGeogPointInst(tgmpi_in string) *TGeogPointInst
func TemporalToTGeogPointInst ¶
func TemporalToTGeogPointInst[T Temporal](temp T) (*TGeogPointInst, error)
func (*TGeogPointInst) Init ¶
func (tgmpi *TGeogPointInst) Init(c_temp *C.Temporal)
func (*TGeogPointInst) Inner ¶
func (tgmpi *TGeogPointInst) Inner() *C.Temporal
func (*TGeogPointInst) IsTGeogPoint ¶
func (tgmpi *TGeogPointInst) IsTGeogPoint() bool
func (*TGeogPointInst) IsTInstant ¶
func (tgmpi *TGeogPointInst) IsTInstant() bool
func (*TGeogPointInst) IsTPoint ¶
func (tgmpi *TGeogPointInst) IsTPoint() bool
func (*TGeogPointInst) String ¶
func (tgmpi *TGeogPointInst) String() string
func (*TGeogPointInst) TPointOut ¶
func (tgmpi *TGeogPointInst) TPointOut(maxdd int) string
func (*TGeogPointInst) Type ¶
func (tgmpi *TGeogPointInst) Type() string
type TGeogPointSeq ¶
type TGeogPointSeq struct {
// contains filtered or unexported fields
}
func NewTGeogPointSeq ¶
func NewTGeogPointSeq(tgmpi_in string) TGeogPointSeq
func TemporalToTGeogPointSeq ¶
func TemporalToTGeogPointSeq[T Temporal](temp T) (*TGeogPointSeq, error)
func (*TGeogPointSeq) Init ¶
func (tgmpi *TGeogPointSeq) Init(c_temp *C.Temporal)
func (*TGeogPointSeq) Inner ¶
func (tgmpi *TGeogPointSeq) Inner() *C.Temporal
func (*TGeogPointSeq) IsTGeogPoint ¶
func (tgmpi *TGeogPointSeq) IsTGeogPoint() bool
func (*TGeogPointSeq) IsTPoint ¶
func (tgmpi *TGeogPointSeq) IsTPoint() bool
func (*TGeogPointSeq) IsTSequence ¶
func (tgmpi *TGeogPointSeq) IsTSequence() bool
func (*TGeogPointSeq) String ¶
func (tgmpi *TGeogPointSeq) String() string
func (*TGeogPointSeq) TPointOut ¶
func (tgmpi *TGeogPointSeq) TPointOut(maxdd int) string
func (*TGeogPointSeq) Type ¶
func (tgmpi *TGeogPointSeq) Type() string
type TGeogPointSeqSet ¶
type TGeogPointSeqSet struct {
// contains filtered or unexported fields
}
func NewTGeogPointSeqSet ¶
func NewTGeogPointSeqSet(tgmpi_in string) *TGeogPointSeqSet
func (*TGeogPointSeqSet) Init ¶
func (tgmpi *TGeogPointSeqSet) Init(c_temp *C.Temporal)
func (*TGeogPointSeqSet) Inner ¶
func (tgmpi *TGeogPointSeqSet) Inner() *C.Temporal
func (*TGeogPointSeqSet) IsTGeogPoint ¶
func (tgmpi *TGeogPointSeqSet) IsTGeogPoint() bool
func (*TGeogPointSeqSet) IsTPoint ¶
func (tgmpi *TGeogPointSeqSet) IsTPoint() bool
func (*TGeogPointSeqSet) String ¶
func (tgmpi *TGeogPointSeqSet) String() string
func (*TGeogPointSeqSet) TPointOut ¶
func (tgmpi *TGeogPointSeqSet) TPointOut(maxdd int) string
func (*TGeogPointSeqSet) Type ¶
func (tgmpi *TGeogPointSeqSet) Type() string
type TGeomPoint ¶
type TGeomPointInst ¶
type TGeomPointInst struct {
// contains filtered or unexported fields
}
func NewEmptyTGeomPointInst ¶
func NewEmptyTGeomPointInst() TGeomPointInst
func NewTGeomPointInst ¶
func NewTGeomPointInst(tgmpi_in string) TGeomPointInst
func NewTGeomPointInstInner ¶
func NewTGeomPointInstInner(inner *C.Temporal) *TGeomPointInst
func TemporalToGeomPointInst ¶
func TemporalToGeomPointInst[T Temporal](temp T) (*TGeomPointInst, error)
func (*TGeomPointInst) Init ¶
func (tb *TGeomPointInst) Init(c_temp *C.Temporal)
func (*TGeomPointInst) Inner ¶
func (tb *TGeomPointInst) Inner() *C.Temporal
func (*TGeomPointInst) IsTGeomPoint ¶
func (tb *TGeomPointInst) IsTGeomPoint() bool
func (*TGeomPointInst) IsTInstant ¶
func (tgmpi *TGeomPointInst) IsTInstant() bool
func (*TGeomPointInst) IsTPoint ¶
func (tgmpi *TGeomPointInst) IsTPoint() bool
func (*TGeomPointInst) String ¶
func (tgmpi *TGeomPointInst) String() string
func (*TGeomPointInst) TInstantOut ¶
func (tgmpi *TGeomPointInst) TInstantOut(maxdd int) string
func (*TGeomPointInst) TPointOut ¶
func (tgmpi *TGeomPointInst) TPointOut(maxdd int) string
func (*TGeomPointInst) TimestampOut ¶
func (tgmpi *TGeomPointInst) TimestampOut() string
func (*TGeomPointInst) Timestamptz ¶
func (tgmpi *TGeomPointInst) Timestamptz() time.Time
func (*TGeomPointInst) Type ¶
func (tgmpi *TGeomPointInst) Type() string
type TGeomPointSeq ¶
type TGeomPointSeq struct {
// contains filtered or unexported fields
}
func NewTGeomPointSeq ¶
func NewTGeomPointSeq(tgmpi_in string) *TGeomPointSeq
func NewTGeomPointSeqFromWKB ¶
func NewTGeomPointSeqFromWKB(tgmpi_in string) *TGeomPointSeq
func TemporalToTGeomPointSeq ¶
func TemporalToTGeomPointSeq[T Temporal](temp T) (*TGeomPointSeq, error)
func (*TGeomPointSeq) Init ¶
func (tgmpi *TGeomPointSeq) Init(c_temp *C.Temporal)
func (*TGeomPointSeq) Inner ¶
func (tgmpi *TGeomPointSeq) Inner() *C.Temporal
func (*TGeomPointSeq) IsTGeomPoint ¶
func (tgmpi *TGeomPointSeq) IsTGeomPoint() bool
func (*TGeomPointSeq) IsTPoint ¶
func (tgmpi *TGeomPointSeq) IsTPoint() bool
func (*TGeomPointSeq) IsTSequence ¶
func (tgmpi *TGeomPointSeq) IsTSequence() bool
func (*TGeomPointSeq) NewInit ¶
func (tgmpi *TGeomPointSeq) NewInit(c_temp *C.Temporal) *TGeomPointSeq
func (*TGeomPointSeq) String ¶
func (tgmpi *TGeomPointSeq) String() string
func (*TGeomPointSeq) TPointOut ¶
func (tgmpi *TGeomPointSeq) TPointOut(maxdd int) string
func (*TGeomPointSeq) Type ¶
func (tgmpi *TGeomPointSeq) Type() string
type TGeomPointSeqSet ¶
type TGeomPointSeqSet struct {
// contains filtered or unexported fields
}
func NewTGeomPointSeqSet ¶
func NewTGeomPointSeqSet(tgmpi_in string) *TGeomPointSeqSet
func TemporalToTGeomPointSeqSet ¶
func TemporalToTGeomPointSeqSet[T Temporal](temp T) (*TGeomPointSeqSet, error)
func (*TGeomPointSeqSet) Init ¶
func (tb *TGeomPointSeqSet) Init(c_temp *C.Temporal)
func (*TGeomPointSeqSet) Inner ¶
func (tb *TGeomPointSeqSet) Inner() *C.Temporal
func (*TGeomPointSeqSet) IsTGeomPoint ¶
func (tb *TGeomPointSeqSet) IsTGeomPoint() bool
func (*TGeomPointSeqSet) IsTPoint ¶
func (tgmpi *TGeomPointSeqSet) IsTPoint() bool
func (*TGeomPointSeqSet) String ¶
func (tgmpi *TGeomPointSeqSet) String() string
func (*TGeomPointSeqSet) TPointOut ¶
func (tgmpi *TGeomPointSeqSet) TPointOut(maxdd int) string
func (*TGeomPointSeqSet) Type ¶
func (tgmpi *TGeomPointSeqSet) Type() string
type TIntInst ¶
type TIntInst struct {
// contains filtered or unexported fields
}
func NewTIntInst ¶
func TIntInstMake ¶ added in v0.1.9
TIntInstMake Return a temporal int instant from a int and a timestamptz
func TemporalToTIntInst ¶
type TIntSeq ¶
type TIntSeq struct {
// contains filtered or unexported fields
}
func NewTIntSeq ¶
func TIntSeqFromBaseTstzset ¶ added in v0.1.9
TIntSeqFromBaseTstzset Return a temporal int discrete sequence from a int and a timestamptz set
func TIntSeqFromBaseTstzspan ¶ added in v0.1.9
TIntSeqFromBaseTstzspan Return a temporal int sequence from a int and a timestamptz span
func TemporalToTIntSeq ¶
func (*TIntSeq) IsTSequence ¶
type TIntSeqSet ¶
type TIntSeqSet struct {
// contains filtered or unexported fields
}
func NewTIntSeqSet ¶
func NewTIntSeqSet(tf_in string) *TIntSeqSet
func TIntSeqSetFromBaseTstzspanset ¶ added in v0.1.9
func TIntSeqSetFromBaseTstzspanset(value int, base *TsTzSpanSet) *TIntSeqSet
TIntSeqSetFromBaseTstzspanset Return a temporal int sequence set from a int and a timestamptz span set
func TemporalToTIntSeqSet ¶
func TemporalToTIntSeqSet[T Temporal](temp T) (*TIntSeqSet, error)
func (*TIntSeqSet) Init ¶
func (tb *TIntSeqSet) Init(c_temp *C.Temporal)
func (*TIntSeqSet) Inner ¶
func (tb *TIntSeqSet) Inner() *C.Temporal
func (*TIntSeqSet) IsTInt ¶
func (tb *TIntSeqSet) IsTInt() bool
func (*TIntSeqSet) IsTNumber ¶
func (tb *TIntSeqSet) IsTNumber() bool
func (*TIntSeqSet) String ¶
func (tb *TIntSeqSet) String() string
func (*TIntSeqSet) TIntOut ¶
func (tf *TIntSeqSet) TIntOut() string
func (*TIntSeqSet) Type ¶
func (tb *TIntSeqSet) Type() string
type TSequenceSet ¶
type TTextInst ¶
type TTextInst struct {
// contains filtered or unexported fields
}
func TTextInstMake ¶ added in v0.1.10
TTextInstMake Return a temporal text instant from a text and a timestamptz
func TemporalToTTextInst ¶
type TTextSeq ¶
type TTextSeq struct {
// contains filtered or unexported fields
}
func TTextSeqFromBaseTstzset ¶ added in v0.1.10
TTextSeqFromBaseTstzset Return a temporal text discrete sequence from a text and a timestamptz set
func TTextSeqFromBaseTstzspan ¶ added in v0.1.10
TTextSeqFromBaseTstzspan Return a temporal text sequence from a text and a timestamptz span
func TemporalToTTextSeq ¶
func (*TTextSeq) IsTSequence ¶
type TTextSeqSet ¶
type TTextSeqSet struct {
// contains filtered or unexported fields
}
func TTextSeqSetFromBaseTstzspanset ¶ added in v0.1.10
func TTextSeqSetFromBaseTstzspanset(value string, base *TsTzSpanSet) *TTextSeqSet
TTextSeqSetFromBaseTstzspanset Return a temporal text sequence set from a text and a timestamptz span set
func TemporalToTTextSeqSet ¶
func TemporalToTTextSeqSet[T Temporal](temp T) (*TTextSeqSet, error)
func (*TTextSeqSet) Init ¶
func (tb *TTextSeqSet) Init(c_temp *C.Temporal)
func (*TTextSeqSet) Inner ¶
func (tb *TTextSeqSet) Inner() *C.Temporal
func (*TTextSeqSet) IsTText ¶
func (tb *TTextSeqSet) IsTText() bool
func (*TTextSeqSet) String ¶
func (tb *TTextSeqSet) String() string
func (*TTextSeqSet) TTextOut ¶
func (tb *TTextSeqSet) TTextOut() string
func (*TTextSeqSet) Type ¶
func (tb *TTextSeqSet) Type() string
type Temporal ¶
func AddFloatTFloat ¶ added in v0.1.10
AddFloatTFloat returns the temporal addition of a constant float and a temporal float.
func AddIntTInt ¶ added in v0.1.10
AddIntTInt returns the temporal addition of a constant integer and a temporal integer.
func AddTFloatFloat ¶ added in v0.1.10
AddTFloatFloat returns the temporal addition of a temporal float and a constant float.
func AddTIntInt ¶ added in v0.1.10
AddTIntInt returns the temporal addition of a temporal integer and a constant integer.
func AddTNumberTNumber ¶ added in v0.1.10
AddTNumberTNumber Return the temporal addition of the temporal numbers
func BearingTPointPoint ¶ added in v0.1.10
BearingTPointPoint Return the temporal bearing between a temporal point and a point
func BearingTPointTPoint ¶ added in v0.1.10
BearingTPointTPoint Return the temporal bearing between two temporal points
func CreateTemporal ¶
func CumulativeLength ¶ added in v0.1.10
CumulativeLength Returns the cumulative length of the trajectory.
func DistanceTFloatFloat ¶ added in v0.1.10
DistanceTFloatFloat returns the temporal distance between a temporal float and a constant float.
func DistanceTNumberTNumber ¶ added in v0.1.10
DistanceTNumberTNumber returns the temporal distance between two temporal numbers.
func DistanceTPointPoint ¶ added in v0.1.10
func DistanceTPointTPoint ¶ added in v0.1.10
func DivFloatTFloat ¶ added in v0.1.10
DivFloatTFloat returns the temporal division of a constant float by a temporal float.
func DivIntTInt ¶ added in v0.1.10
DivIntTInt returns the temporal division of a constant integer by a temporal integer.
func DivTFloatFloat ¶ added in v0.1.10
DivTFloatFloat returns the temporal division of a temporal float by a constant float.
func DivTIntInt ¶ added in v0.1.10
DivTIntInt returns the temporal division of a temporal integer by a constant integer.
func DivTNumberTNumber ¶ added in v0.1.10
DivTNumberTNumber returns the temporal division of two temporal numbers.
func MultFloatTFloat ¶ added in v0.1.10
MultFloatTFloat returns the temporal multiplication of a constant float and a temporal float.
func MultIntTInt ¶ added in v0.1.10
MultIntTInt returns the temporal multiplication of a constant integer and a temporal integer.
func MultTFloatFloat ¶ added in v0.1.10
MultTFloatFloat returns the temporal multiplication of a temporal float and a constant float.
func MultTIntInt ¶ added in v0.1.10
MultTIntInt returns the temporal multiplication of a temporal integer and a constant integer.
func MultTNumberTNumber ¶ added in v0.1.10
MultTNumberTNumber returns the temporal multiplication of two temporal numbers.
func SubFloatTFloat ¶ added in v0.1.10
SubFloatTFloat returns the temporal subtraction of a constant float from a temporal float.
func SubIntTInt ¶ added in v0.1.10
SubIntTInt returns the temporal subtraction of a constant integer from a temporal integer.
func SubTFloatFloat ¶ added in v0.1.10
SubTFloatFloat returns the temporal subtraction of a temporal float and a constant float.
func SubTIntInt ¶ added in v0.1.10
SubTIntInt returns the temporal subtraction of a temporal integer and a constant integer.
func SubTNumberTNumber ¶ added in v0.1.10
SubTNumberTNumber returns the temporal subtraction of two temporal numbers.
func TAndTBoolBool ¶ added in v0.1.9
TAndTBoolBool Return the boolean and of a temporal boolean and a boolean
Example ¶
tb1 := NewTBoolSeq("{TRUE@2022-10-01, TRUE@2022-10-02,TRUE@2022-10-03}") tb2 := true res := TAndTBoolBool(tb1, tb2) fmt.Println(res.String())
Output: {t@2022-10-01 00:00:00+00, t@2022-10-02 00:00:00+00, t@2022-10-03 00:00:00+00}
func TAndTBoolTBool ¶ added in v0.1.9
TAndTBoolTBool Return the boolean and of the temporal booleans
func TBoolAtValue ¶
TBoolAtValue Return a temporal boolean restricted to a boolean
func TBoolMinusValue ¶
TBoolMinusValue Return a temporal boolean restricted to the complement of a boolean
func TContainsGeoTPoint ¶ added in v0.1.10
func TDWithinTPointGeo ¶ added in v0.1.10
func TDWithinTPointTPoint ¶ added in v0.1.10
func TDisjointTPointGeo ¶ added in v0.1.10
func TDisjointTPointTPoint ¶ added in v0.1.10
func TEqTBoolBool ¶ added in v0.1.9
TEqTBoolBool Return the temporal equality of a temporal boolean and a boolean
Example ¶
tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") tb2 := false res := TEqTBoolBool(tb1, tb2) fmt.Println(res.String())
Output: {t@2022-10-01 00:00:00+00, t@2022-10-02 00:00:00+00, t@2022-10-03 00:00:00+00}
func TEqTFloatFloat ¶ added in v0.1.9
TEqTFloatFloat Return a temporal value that represents where the temporal float is equal to a constant float.
func TEqTIntInt ¶ added in v0.1.9
TEqTIntInt Return a temporal value that represents where the temporal integer is equal to a constant integer.
func TEqTPointPoint ¶ added in v0.1.10
func TEqTTextText ¶ added in v0.1.10
TEqTTextText Return a temporal value that represents where the temporal integer is equal to a constant text.
func TEqTemporalTemporal ¶ added in v0.1.9
TEqTemporalTemporal Return the temporal equality of two temporal values
Example ¶
MeosInitialize("UTC") tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") tb2 := NewTBoolInst("TRUE@2022-10-01") res := TEqTemporalTemporal(tb1, tb2) fmt.Println(res)
Output: f@2022-10-01 00:00:00+00
func TFloatAtValue ¶ added in v0.1.9
TFloatAtValue Return a temporal float restricted to a float
func TFloatDerivative ¶ added in v0.1.9
TFloatDerivative Return the derivative of a temporal number
func TFloatMinusValue ¶ added in v0.1.9
TFloatMinusValue Return a temporal float restricted to a float
func TFloatRound ¶ added in v0.1.9
TFloatRound Return a temporal float with the precision of the values set to a number of decimal places
func TFloatToDegrees ¶ added in v0.1.9
TFloatToDegrees Return a temporal number transformed from radians to degrees
func TFloatToRadians ¶ added in v0.1.9
TFloatToRadians Return a temporal number transformed from degrees to radians
func TGeTFloatFloat ¶ added in v0.1.9
TGeTFloatFloat Return a temporal value that represents where the temporal float is greater than or equal to a constant float.
func TGeTIntInt ¶ added in v0.1.9
TGeTIntInt Return a temporal value that represents where the temporal integer is greater than or equal to a constant integer.
func TGeTTextText ¶ added in v0.1.10
TGeTTextText Return a temporal value that represents where the temporal integer is greater than or equal to a constant text.
func TGtTFloatFloat ¶ added in v0.1.9
TGtTFloatFloat Return a temporal value that represents where the temporal float is greater than a constant float.
func TGtTIntInt ¶ added in v0.1.9
TGtTIntInt Return a temporal value that represents where the temporal integer is greater than a constant integer.
func TGtTTextText ¶ added in v0.1.10
TGtTTextText Return a temporal value that represents where the temporal integer is greater than a constant text.
func TIntAtValue ¶ added in v0.1.9
TIntAtValue Return a temporal int restricted to a int
func TIntMinusValue ¶ added in v0.1.9
TIntMinusValue Return a temporal int restricted to a int
func TIntersectsTPointGeo ¶ added in v0.1.10
func TIntersectsTPointTPoint ¶ added in v0.1.10
func TLeTFloatFloat ¶ added in v0.1.9
TLeTFloatFloat Return a temporal value that represents where the temporal float is less than or equal to a constant float.
func TLeTIntInt ¶ added in v0.1.9
TLeTIntInt Return a temporal value that represents where the temporal integer is less than or equal to a constant integer.
func TLeTTextText ¶ added in v0.1.10
TLeTTextText Return a temporal value that represents where the temporal integer is less than or equal to a constant text.
func TLtTFloatFloat ¶ added in v0.1.9
TLtTFloatFloat Return a temporal value that represents where the temporal float is less than a constant float.
func TLtTIntInt ¶ added in v0.1.9
TLtTIntInt Return a temporal value that represents where the temporal integer is less than a constant integer.
func TLtTTextText ¶ added in v0.1.10
TLtTTextText Return a temporal value that represents where the temporal integer is less than a constant text.
func TNEqTBoolBool ¶ added in v0.1.9
TNEqTBoolBool Return the temporal equality of a temporal boolean and a boolean
Example ¶
tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") tb2 := false res := TNEqTBoolBool(tb1, tb2) fmt.Println(res.String())
Output: {f@2022-10-01 00:00:00+00, f@2022-10-02 00:00:00+00, f@2022-10-03 00:00:00+00}
func TNEqTemporalTemporal ¶ added in v0.1.9
TNEqTemporalTemporal Return the temporal equality of two temporal values
Example ¶
MeosInitialize("UTC") tb1 := NewTBoolSeq("{FALSE@2022-10-01, FALSE@2022-10-02,FALSE@2022-10-03}") tb2 := NewTBoolInst("TRUE@2022-10-01") res := TNEqTemporalTemporal(tb1, tb2) fmt.Println(res)
Output: t@2022-10-01 00:00:00+00
func TNeTFloatFloat ¶ added in v0.1.9
TNeTFloatFloat Return a temporal value that represents where the temporal float is not equal to a constant float.
func TNeTIntInt ¶ added in v0.1.9
TNeTIntInt Return a temporal value that represents where the temporal integer is not equal to a constant integer.
func TNeTPointPoint ¶ added in v0.1.10
func TNeTTextText ¶ added in v0.1.10
TNeTTextText Return a temporal value that represents where the temporal integer is not equal to a constant text.
func TNumberAtSpan ¶ added in v0.1.9
TNumberAtSpan Return a temporal value restricted to a span of base values
func TNumberAtSpanSet ¶ added in v0.1.9
TNumberAtSpanSet Return a temporal value restricted to an array of spans of base values
func TNumberAtTBox ¶ added in v0.1.9
TNumberAtTBox Return a temporal number restricted to a temporal box
func TNumberDeltaValue ¶ added in v0.1.10
TNumberDeltaValue Return the delta value of a temporal number
func TNumberMinusSpan ¶ added in v0.1.9
TNumberMinusSpan Return a temporal value restricted to the complement of a span of base values
func TNumberMinusSpanSet ¶ added in v0.1.9
TNumberMinusSpanSet Return a temporal value restricted to the complement of an array of spans of base values
func TNumberMinusTBox ¶ added in v0.1.9
TNumberMinusTBox Return a temporal number restricted to a temporal box
func TOrTBoolBool ¶ added in v0.1.9
TOrTBoolBool Return the boolean or of a temporal boolean and a boolean
func TOrTBoolTBool ¶ added in v0.1.9
TOrTBoolTBool Return the boolean or of the temporal booleans
func TPointAngularDifference ¶ added in v0.1.10
TPointAngularDifference Return the temporal angular difference of a temporal geometry point
func TPointAtStbox ¶ added in v0.1.10
TPointAtStbox Return a temporal point restricted to a spatiotemporal box
func TPointAtValue ¶ added in v0.1.10
TPointAtValue Return a temporal point restricted to a point
func TPointAzimuth ¶ added in v0.1.10
TPointAzimuth Return the temporal azimuth of a temporal geometry point
func TPointGetX ¶ added in v0.1.10
TPointGetX Returns the x coordinate of the temporal point.
func TPointGetY ¶ added in v0.1.10
TPointGetY Returns the y coordinate of the temporal point.
func TPointGetZ ¶ added in v0.1.10
TPointGetZ Returns the z coordinate of the temporal point.
func TPointMinusStbox ¶ added in v0.1.10
TPointMinusStbox Return a temporal point minus a spatiotemporal box
func TPointMinusValue ¶ added in v0.1.10
TPointMinusValue Return a temporal point minus a point
func TPointRound ¶ added in v0.1.10
TPointRound Return a temporal point with the precision of the coordinates set to a number of decimal
func TPointSpeed ¶
TPointSpeed Returns the speed of the temporal point.
func TTextAtValue ¶ added in v0.1.10
TTextAtValue Return a temporal int restricted to a string
func TTextMinusValue ¶ added in v0.1.10
TTextMinusValue Return a temporal int restricted to a string
func TTouchesTPointGeo ¶ added in v0.1.10
func TemporalAppendTInstant ¶ added in v0.1.10
func TemporalAppendTInstant[T Temporal, TI TInstant](temp T, inst TI, max_dist float64, max_time timeutil.Timedelta, expand bool) Temporal
TemporalAppendTInstant Append an instant to a temporal value
func TemporalAppendTSequence ¶ added in v0.1.10
TemporalAppendTSequence Append a sequence to a temporal value
func TemporalAtMax ¶
TemporalAtMax Return a temporal value restricted to its maximum base value
func TemporalAtMin ¶
TemporalAtMin Return a temporal value restricted to its minimum base value
func TemporalAtTimestamptz ¶
TemporalAtTimestamptz Return a temporal value restricted to a timestamptz
func TemporalAtTsTzSet ¶
TemporalAtTsTzSet Return a temporal value restricted to a timestamptz set
func TemporalAtTsTzSpan ¶
TemporalAtTsTzSpan Return a temporal value restricted to a timestamptz span
func TemporalAtTsTzSpanSet ¶
func TemporalAtTsTzSpanSet[T Temporal](temp T, tstzspanset TsTzSpanSet) Temporal
TemporalAtTsTzSpanSet Return a temporal value restricted to a timestamptz span set
func TemporalAtValues ¶
TemporalAtValues Return a temporal value restricted to a set of values
func TemporalDeleteTimestamptz ¶ added in v0.1.10
TemporalDeleteTimestamptz Delete a timestamp from a temporal value
func TemporalDeleteTsTzSet ¶ added in v0.1.10
TemporalDeleteTsTzSet Delete a timestamp set from a temporal value connecting the instants before and after the given timestamp, if any
func TemporalDeleteTsTzSpan ¶ added in v0.1.10
TemporalDeleteTsTzSpan Delete a timestamptz span from a temporal value
func TemporalDeleteTsTzSpanSet ¶ added in v0.1.10
func TemporalDeleteTsTzSpanSet[T Temporal](temp T, spanset TsTzSpanSet, connect bool) Temporal
TemporalDeleteTsTzSpanSet Delete a timestamptz span set from a temporal value
func TemporalFromWKB ¶ added in v0.1.10
TemporalFromWKB Return a temporal value from its Well-Known Binary (WKB) representation
func TemporalInsert ¶ added in v0.1.10
TemporalInsert Insert the second temporal value into the first one
func TemporalMinusMax ¶
TemporalMinusMax Return a temporal value restricted to the complement of its maximum base value
func TemporalMinusMin ¶
TemporalMinusMin Return a temporal value restricted to the complement of its minimum base value
func TemporalMinusTimestamptz ¶
TemporalMinusTimestamptz Return a temporal value restricted to the complement of a timestamptz
func TemporalMinusTsTzSet ¶
TemporalMinusTsTzSet Return a temporal value restricted to the complement of a timestamptz set
func TemporalMinusTsTzSpan ¶
TemporalMinusTsTzSpan Return a temporal value restricted to the complement of a timestamptz span
func TemporalMinusTsTzSpanSet ¶
func TemporalMinusTsTzSpanSet[T Temporal](temp T, tstzspanset TsTzSpanSet) Temporal
TemporalMinusTsTzSpanSet Return a temporal value restricted to the complement of a timestamptz span set
func TemporalTPrecision ¶ added in v0.1.10
TemporalTPrecision Return a temporal value with the precision set to period buckets
func TemporalTSample ¶ added in v0.1.10
func TemporalTSample[T Temporal](temp T, duration timeutil.Timedelta, start time.Time, interp Interpolation) Temporal
TemporalTSample Return a temporal value sampled according to period buckets
func TemporalUpdate ¶ added in v0.1.10
TemporalUpdate Update the first temporal value with the second one
func TextcatTTextTText ¶ added in v0.1.10
TextcatTTextTText Return the concatenation of two temporal text values
func TextcatTTextText ¶ added in v0.1.10
Return the concatenation of a temporal text and a text
type TsTzSet ¶
type TsTzSet struct {
// contains filtered or unexported fields
}
func NewTsTzSet ¶
func (*TsTzSet) EndElement ¶
func (*TsTzSet) NumElements ¶
func (*TsTzSet) ShiftScale ¶
func (*TsTzSet) StartElement ¶
func (*TsTzSet) TsTzSetOut ¶
type TsTzSpan ¶
type TsTzSpan struct {
// contains filtered or unexported fields
}
func NewTsTzSpan ¶
func STBoxToTsTzSpan ¶ added in v0.1.17
func TBoxToTsTzSpan ¶ added in v0.1.11
TBoxToTsTzSpan Return a spatiotemporal box converted to a timestamptz span
func TemporalToTsTzSpan ¶
TemporalToTsTzSpan Return the bounding period of a temporal value
func (*TsTzSpan) ShiftScale ¶
func (*TsTzSpan) ToSpanSet ¶
func (g_tts *TsTzSpan) ToSpanSet() TsTzSpanSet
func (*TsTzSpan) TsTzSpanOut ¶
type TsTzSpanSet ¶
type TsTzSpanSet struct {
// contains filtered or unexported fields
}
func NewTsTzSpanSet ¶
func NewTsTzSpanSet(g_tts_in string) *TsTzSpanSet
func TBoolWhenTrue ¶ added in v0.1.9
func TBoolWhenTrue[TB TBool](tb TB) TsTzSpanSet
TBoolWhenTrue Return the time when the temporal boolean has value true
Example ¶
tb1 := NewTBoolSeq("{TRUE@2022-10-01, FALSE@2022-10-02,TRUE@2022-10-03}") res := TBoolWhenTrue(tb1) fmt.Println(res.TsTzSpanSetOut())
Output: {[2022-10-01 00:00:00+00, 2022-10-01 00:00:00+00], [2022-10-03 00:00:00+00, 2022-10-03 00:00:00+00]}
func TemporalTime ¶
func TemporalTime[T Temporal](temp T) *TsTzSpanSet
TemporalTime Return the time frame of a temporal value as a span set
func (*TsTzSpanSet) Duration ¶
func (g_tts *TsTzSpanSet) Duration(ignore_gap bool) timeutil.Timedelta
func (*TsTzSpanSet) EndSpan ¶
func (g_tts *TsTzSpanSet) EndSpan() TsTzSpan
func (*TsTzSpanSet) EndTimestamp ¶
func (g_tts *TsTzSpanSet) EndTimestamp() time.Time
func (*TsTzSpanSet) NumSpans ¶
func (g_tts *TsTzSpanSet) NumSpans() int
func (*TsTzSpanSet) NumTimestamps ¶
func (g_tts *TsTzSpanSet) NumTimestamps() int
func (*TsTzSpanSet) Scale ¶
func (g_tts *TsTzSpanSet) Scale(duration interface{}) (*TsTzSpanSet, error)
func (*TsTzSpanSet) Shift ¶
func (g_tts *TsTzSpanSet) Shift(delta interface{}) (*TsTzSpanSet, error)
func (*TsTzSpanSet) ShiftScale ¶
func (g_tts *TsTzSpanSet) ShiftScale(shift interface{}, duration interface{}) (*TsTzSpanSet, error)
func (*TsTzSpanSet) SpanN ¶
func (g_tts *TsTzSpanSet) SpanN(n int) TsTzSpan
func (*TsTzSpanSet) Spans ¶
func (g_tts *TsTzSpanSet) Spans() []TsTzSpan
func (*TsTzSpanSet) StartSpan ¶
func (g_tts *TsTzSpanSet) StartSpan() TsTzSpan
func (*TsTzSpanSet) StartTimestamp ¶
func (g_tts *TsTzSpanSet) StartTimestamp() time.Time
func (*TsTzSpanSet) TimestampN ¶
func (g_tts *TsTzSpanSet) TimestampN(n int) time.Time
func (*TsTzSpanSet) Timestamps ¶
func (g_tts *TsTzSpanSet) Timestamps() []time.Time
func (*TsTzSpanSet) ToSpan ¶
func (g_tts *TsTzSpanSet) ToSpan() *TsTzSpan
func (*TsTzSpanSet) ToTsTzSpan ¶
func (g_tts *TsTzSpanSet) ToTsTzSpan() *TsTzSpan
func (*TsTzSpanSet) TsTzSpanSetOut ¶
func (g_tts *TsTzSpanSet) TsTzSpanSetOut() string
Source Files ¶
- box_stbox.go
- box_tbox.go
- datetime_dateset.go
- datetime_datespan.go
- datetime_datespanset.go
- datetime_interface.go
- datetime_tstzset.go
- datetime_tstzspan.go
- datetime_tstzspanset.go
- datetime_utils.go
- geo.go
- gomeos.go
- interfaces.go
- main_tbool.go
- main_temporal.go
- main_tfloat.go
- main_tgeogpoint.go
- main_tgeompoint.go
- main_tint.go
- main_tnumber.go
- main_tpoint.go
- main_ttext.go
- meos_init.go
- number_floatset.go
- number_floatspan.go
- number_floatspanset.go
- number_intset.go
- number_intspan.go
- number_intspanset.go
- sss_spanset.go
- temp_tsequence.go