Skip to content

meos.js


meos.js / TGeogPointInst

Class: TGeogPointInst

Defined in: core/types/basic/tgeogpoint/TGeogPointInst.ts:20

Temporal geography point - Instant subtype.

A single (geography, timestamp) pair.

Example

ts
const inst = TGeogPointInst.fromValue('POINT(2.35 48.85)', 60_000_000);
console.log(inst.startValue()); // POINT(2.35 48.85)

Extends

Constructors

Constructor

ts
new TGeogPointInst(inner): TGeogPointInst;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:99

Parameters

inner

number

Returns

TGeogPointInst

Inherited from

TGeogPoint.constructor

Accessors

inner

Get Signature

ts
get inner(): number;

Defined in: core/types/temporal/Temporal.ts:173

Raw WASM pointer. Use when passing this value to low-level functions.

Returns

number

Inherited from

TGeogPoint.inner

Methods

[dispose]()

ts
dispose: void;

Defined in: core/types/temporal/Temporal.ts:191

Explicit Resource Management support. Allows using t = TBool.fromString(...) to free automatically.

Returns

void

Inherited from

TGeogPoint.[dispose]


alwaysEq()

ts
alwaysEq(wkt): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:462

Returns true if the point always equals geometry wkt. MEOS: always_eq_tgeo_geo

Parameters

wkt

string

Returns

boolean

Inherited from

TGeogPoint.alwaysEq


alwaysEqTemporal()

ts
alwaysEqTemporal(other): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:488

Returns true if this always equals other TGeogPoint. MEOS: always_eq_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

boolean

Inherited from

TGeogPoint.alwaysEqTemporal


alwaysNe()

ts
alwaysNe(wkt): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:470

Returns true if the point is never equal to geometry wkt. MEOS: always_ne_tgeo_geo

Parameters

wkt

string

Returns

boolean

Inherited from

TGeogPoint.alwaysNe


alwaysNeTemporal()

ts
alwaysNeTemporal(other): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:493

Returns true if this never differs from other TGeogPoint. MEOS: always_ne_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

boolean

Inherited from

TGeogPoint.alwaysNeTemporal


angularDifference()

ts
angularDifference(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:362

Returns the angular difference at each instant as a TFloat (Ptr). MEOS: tpoint_angular_difference

Returns

number

Inherited from

TGeogPoint.angularDifference


appendInstant()

ts
appendInstant(
   inst, 
   maxdist?, 
   maxt?, 
   expand?): this;

Defined in: core/types/temporal/Temporal.ts:528

Appends an instant to this temporal, returning a new temporal. MEOS: temporal_append_tinstant

Parameters

inst

this

The instant to append (same subtype as this).

maxdist?

number = 0

Maximum distance gap allowed (0 = no limit).

maxt?

number = 0

Maximum time gap as interval pointer (0 = no limit).

expand?

boolean = false

Whether to expand the sequence in-place.

Returns

this

Inherited from

TGeogPoint.appendInstant


appendSequence()

ts
appendSequence(seq, expand?): this;

Defined in: core/types/temporal/Temporal.ts:538

Appends a sequence to this temporal, returning a new temporal. MEOS: temporal_append_tsequence

Parameters

seq

this

expand?

boolean = false

Returns

this

Inherited from

TGeogPoint.appendSequence


asEWKT()

ts
asEWKT(maxdd?): string;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:223

EWKT string (includes SRID prefix). MEOS: tspatial_as_ewkt

Parameters

maxdd?

number = 15

Returns

string

Inherited from

TGeogPoint.asEWKT


asHexWKB()

ts
asHexWKB(): string;

Defined in: core/types/temporal/Temporal.ts:213

Returns the hex-encoded WKB representation.

Uses the hand-written temporal_as_hexwkb_w wrapper which internally passes variant=4 (extended WKB) and discards size_out.

MEOS: temporal_as_hexwkb

Returns

string

Inherited from

TGeogPoint.asHexWKB


asMFJSON()

ts
asMFJSON(
   withBbox?, 
   flags?, 
   precision?, 
   srs?): string;

Defined in: core/types/temporal/Temporal.ts:235

Returns the MF-JSON representation.

The hand-written wrapper converts an empty srs string to C NULL so that callers can omit the SRS without passing a null pointer directly.

MEOS: temporal_as_mfjson

Parameters

withBbox?

boolean = true

Include bounding box in the output (default true)

flags?

number = 3

Output flags (default 3)

precision?

number = 6

Coordinate decimal precision (default 6)

srs?

string | null

Spatial Reference System string, or null to omit

Returns

string

Inherited from

TGeogPoint.asMFJSON


asText()

ts
asText(maxdd?): string;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:218

WKT string with coordinate precision. MEOS: tspatial_as_text

Parameters

maxdd?

number = 15

Returns

string

Inherited from

TGeogPoint.asText


atGeo()

ts
atGeo(wkt): TGeogPoint | null;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:426

Restrict to instants where the geometry equals wkt. MEOS: tgeo_at_geom

Parameters

wkt

string

Returns

TGeogPoint | null

Inherited from

TGeogPoint.atGeo


atGeom()

ts
atGeom(wkt): TGeogPoint | null;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:410

Restrict to instants inside geometry wkt. MEOS: tpoint_at_geom

Parameters

wkt

string

Returns

TGeogPoint | null

Inherited from

TGeogPoint.atGeom


atMax()

ts
atMax(): this;

Defined in: core/types/temporal/Temporal.ts:406

Restricts to instants where the value is the maximum. MEOS: temporal_at_max

Returns

this

Inherited from

TGeogPoint.atMax


atMin()

ts
atMin(): this;

Defined in: core/types/temporal/Temporal.ts:401

Restricts to instants where the value is the minimum. MEOS: temporal_at_min

Returns

this

Inherited from

TGeogPoint.atMin


atTsTzSet()

ts
atTsTzSet(s): this;

Defined in: core/types/temporal/Temporal.ts:425

Restricts to the given timestamp set. MEOS: temporal_at_tstzset

Parameters

s

number

Returns

this

Inherited from

TGeogPoint.atTsTzSet


atTsTzSpan()

ts
atTsTzSpan(s): this;

Defined in: core/types/temporal/Temporal.ts:430

Restricts to the given timestamp span. MEOS: temporal_at_tstzspan

Parameters

s

number

Returns

this

Inherited from

TGeogPoint.atTsTzSpan


atTsTzSpanSet()

ts
atTsTzSpanSet(ss): this;

Defined in: core/types/temporal/Temporal.ts:435

Restricts to the given timestamp span set. MEOS: temporal_at_tstzspanset

Parameters

ss

number

Returns

this

Inherited from

TGeogPoint.atTsTzSpanSet


azimuth()

ts
azimuth(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:336

Returns the azimuth at each instant as a TFloat (Ptr). MEOS: tpoint_azimuth

Returns

number

Inherited from

TGeogPoint.azimuth


bearingToPoint()

ts
bearingToPoint(wkt, invert?): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:344

Returns the bearing from each instant toward a fixed point as a TFloat (Ptr). MEOS: bearing_tpoint_point

Parameters

wkt

string

invert?

boolean = false

Returns

number

Inherited from

TGeogPoint.bearingToPoint


bearingToTemporal()

ts
bearingToTemporal(other): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:352

Returns the bearing between this and another TGeogPoint as a TFloat (Ptr). MEOS: bearing_tpoint_tpoint

Parameters

other

TGeogPoint

Returns

number

Inherited from

TGeogPoint.bearingToTemporal


copy()

ts
copy(): this;

Defined in: core/types/temporal/Temporal.ts:199

Returns a deep copy of this temporal value. MEOS: temporal_copy

Returns

this

Inherited from

TGeogPoint.copy


cumulativeLength()

ts
cumulativeLength(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:357

Returns the cumulative geodetic length as a TFloat (Ptr). MEOS: tpoint_cumulative_length

Returns

number

Inherited from

TGeogPoint.cumulativeLength


direction()

ts
direction(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:331

Returns the geodetic direction (azimuth) in radians. MEOS: tpoint_direction

Returns

number

Inherited from

TGeogPoint.direction


durationMs()

ts
durationMs(ignoreGaps?): number;

Defined in: core/types/temporal/Temporal.ts:385

Returns the total duration as a number of milliseconds.

Uses the hand-written temporal_duration_us_w wrapper which converts the MEOS Interval* return value to a plain int64 (total microseconds). The result is divided by 1000 to return milliseconds.

Pass ignoreGaps=true to sum only sequence durations, ignoring the time gaps between sequences in a SequenceSet.

MEOS: temporal_duration

Parameters

ignoreGaps?

boolean = false

Returns

number

Inherited from

TGeogPoint.durationMs


endInstant()

ts
endInstant(): this;

Defined in: core/types/temporal/Temporal.ts:286

Returns the last instant as a new instance of the same subtype. MEOS: temporal_end_instant

Returns

this

Inherited from

TGeogPoint.endInstant


endTimestamp()

ts
endTimestamp(): number;

Defined in: core/types/temporal/Temporal.ts:362

Returns the last timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_end_timestamptz

Returns

number

Inherited from

TGeogPoint.endTimestamp


endValue()

ts
endValue(): string;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:206

Returns the ending geometry as a WKT string. MEOS: tgeo_end_value + geo_as_text

Returns

string

Inherited from

TGeogPoint.endValue


equals()

ts
equals(other): boolean;

Defined in: core/types/temporal/Temporal.ts:558

Pointer-based identity check. For value equality, use the generated teq_* / temporal_eq functions.

Parameters

other

Temporal<string>

Returns

boolean

Inherited from

TGeogPoint.equals


everDisjoint()

ts
everDisjoint(wkt): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:522

Returns true if this is ever disjoint from geometry wkt. MEOS: edisjoint_tgeo_geo

Parameters

wkt

string

Returns

boolean

Inherited from

TGeogPoint.everDisjoint


everDisjointTemporal()

ts
everDisjointTemporal(other): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:546

Returns true if this is ever disjoint from other TGeogPoint. MEOS: edisjoint_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

boolean

Inherited from

TGeogPoint.everDisjointTemporal


everDWithin()

ts
everDWithin(wkt, dist): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:538

Returns true if this is ever within dist of geometry wkt. MEOS: edwithin_tgeo_geo

Parameters

wkt

string

dist

number

Returns

boolean

Inherited from

TGeogPoint.everDWithin


everDWithinTemporal()

ts
everDWithinTemporal(other, dist): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:556

Returns true if this is ever within dist of other TGeogPoint. MEOS: edwithin_tgeo_tgeo

Parameters

other

TGeogPoint

dist

number

Returns

boolean

Inherited from

TGeogPoint.everDWithinTemporal


everEq()

ts
everEq(wkt): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:446

Returns true if the point ever equals geometry wkt. MEOS: ever_eq_tgeo_geo

Parameters

wkt

string

Returns

boolean

Inherited from

TGeogPoint.everEq


everEqTemporal()

ts
everEqTemporal(other): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:478

Returns true if this ever equals other TGeogPoint. MEOS: ever_eq_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

boolean

Inherited from

TGeogPoint.everEqTemporal


everIntersects()

ts
everIntersects(wkt): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:530

Returns true if this ever intersects geometry wkt. MEOS: eintersects_tgeo_geo

Parameters

wkt

string

Returns

boolean

Inherited from

TGeogPoint.everIntersects


everIntersectsTemporal()

ts
everIntersectsTemporal(other): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:551

Returns true if this ever intersects other TGeogPoint. MEOS: eintersects_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

boolean

Inherited from

TGeogPoint.everIntersectsTemporal


everNe()

ts
everNe(wkt): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:454

Returns true if the point is ever not equal to geometry wkt. MEOS: ever_ne_tgeo_geo

Parameters

wkt

string

Returns

boolean

Inherited from

TGeogPoint.everNe


everNeTemporal()

ts
everNeTemporal(other): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:483

Returns true if this ever differs from other TGeogPoint. MEOS: ever_ne_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

boolean

Inherited from

TGeogPoint.everNeTemporal


free()

ts
free(): void;

Defined in: core/types/temporal/Temporal.ts:183

Frees the underlying MEOS allocation.

After calling free(), the instance must not be used. Calls the hand-written meos_free wrapper from res/bindings_c_header.txt.

Returns

void

Inherited from

TGeogPoint.free


getX()

ts
getX(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:367

Returns the longitude sequence as a TFloat (Ptr). MEOS: tpoint_get_x

Returns

number

Inherited from

TGeogPoint.getX


getY()

ts
getY(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:372

Returns the latitude sequence as a TFloat (Ptr). MEOS: tpoint_get_y

Returns

number

Inherited from

TGeogPoint.getY


getZ()

ts
getZ(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:377

Returns the altitude sequence as a TFloat (Ptr), or 0 if no Z. MEOS: tpoint_get_z

Returns

number

Inherited from

TGeogPoint.getZ


hasZ()

ts
hasZ(): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:398

Returns true if the points have a Z coordinate. MEOS: tspatial_to_stbox + stbox_hasz

Returns

boolean

Inherited from

TGeogPoint.hasZ


instantN()

ts
instantN(n): this;

Defined in: core/types/temporal/Temporal.ts:320

Returns the n-th instant (0-based index).

Uses the hand-written temporal_instant_n_w wrapper which converts the 0-based JS index to the 1-based index expected by MEOS internally.

MEOS: temporal_instant_n

Parameters

n

number

Returns

this

Inherited from

TGeogPoint.instantN


interpolation()

ts
interpolation(): TInterpolation;

Defined in: core/types/temporal/Temporal.ts:248

Returns the interpolation mode of this temporal value. MEOS: temporal_interp

Returns

TInterpolation

Inherited from

TGeogPoint.interpolation


isSimple()

ts
isSimple(): boolean;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:382

Returns true if the trajectory never self-intersects. MEOS: tpoint_is_simple

Returns

boolean

Inherited from

TGeogPoint.isSimple


length()

ts
length(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:321

Returns the total geodetic length in metres. MEOS: tpoint_length

Returns

number

Inherited from

TGeogPoint.length


maxInstant()

ts
maxInstant(): this;

Defined in: core/types/temporal/Temporal.ts:306

Returns the instant with the maximum value. MEOS: temporal_max_instant

Returns

this

Inherited from

TGeogPoint.maxInstant


merge()

ts
merge(other): this;

Defined in: core/types/temporal/Temporal.ts:546

Merges this temporal with another, returning a new temporal. MEOS: temporal_merge

Parameters

other

this

Returns

this

Inherited from

TGeogPoint.merge


minInstant()

ts
minInstant(): this;

Defined in: core/types/temporal/Temporal.ts:296

Returns the instant with the minimum value. MEOS: temporal_min_instant

Returns

this

Inherited from

TGeogPoint.minInstant


minusGeo()

ts
minusGeo(wkt): TGeogPoint | null;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:434

Restrict to instants where the geometry differs from wkt. MEOS: tgeo_minus_geom

Parameters

wkt

string

Returns

TGeogPoint | null

Inherited from

TGeogPoint.minusGeo


minusGeom()

ts
minusGeom(wkt): TGeogPoint | null;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:418

Restrict to instants outside geometry wkt. MEOS: tpoint_minus_geom

Parameters

wkt

string

Returns

TGeogPoint | null

Inherited from

TGeogPoint.minusGeom


minusMax()

ts
minusMax(): this;

Defined in: core/types/temporal/Temporal.ts:416

Excludes instants where the value is the maximum. MEOS: temporal_minus_max

Returns

this

Inherited from

TGeogPoint.minusMax


minusMin()

ts
minusMin(): this;

Defined in: core/types/temporal/Temporal.ts:411

Excludes instants where the value is the minimum. MEOS: temporal_minus_min

Returns

this

Inherited from

TGeogPoint.minusMin


minusTsTzSet()

ts
minusTsTzSet(s): this;

Defined in: core/types/temporal/Temporal.ts:440

Excludes the given timestamp set. MEOS: temporal_minus_tstzset

Parameters

s

number

Returns

this

Inherited from

TGeogPoint.minusTsTzSet


minusTsTzSpan()

ts
minusTsTzSpan(s): this;

Defined in: core/types/temporal/Temporal.ts:445

Excludes the given timestamp span. MEOS: temporal_minus_tstzspan

Parameters

s

number

Returns

this

Inherited from

TGeogPoint.minusTsTzSpan


minusTsTzSpanSet()

ts
minusTsTzSpanSet(ss): this;

Defined in: core/types/temporal/Temporal.ts:450

Excludes the given timestamp span set. MEOS: temporal_minus_tstzspanset

Parameters

ss

number

Returns

this

Inherited from

TGeogPoint.minusTsTzSpanSet


nad()

ts
nad(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:648

Returns the nearest approach distance (NAD) to geometry wkt. MEOS: nad_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.nad


nadSTBox()

ts
nadSTBox(box): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:656

Returns the nearest approach distance to an STBox (raw Ptr). MEOS: nad_tgeo_stbox

Parameters

box

number

Returns

number

Inherited from

TGeogPoint.nadSTBox


nadTemporal()

ts
nadTemporal(other): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:661

Returns the nearest approach distance to another TGeogPoint. MEOS: nad_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

number

Inherited from

TGeogPoint.nadTemporal


nai()

ts
nai(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:666

Returns the nearest approach instant to geometry wkt as a TGeogPoint (Ptr). MEOS: nai_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.nai


naiTemporal()

ts
naiTemporal(other): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:674

Returns the nearest approach instant to another TGeogPoint as a TGeogPoint (Ptr). MEOS: nai_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

number

Inherited from

TGeogPoint.naiTemporal


numInstants()

ts
numInstants(): number;

Defined in: core/types/temporal/Temporal.ts:263

Returns the number of distinct instants in this temporal value. MEOS: temporal_num_instants

Returns

number

Inherited from

TGeogPoint.numInstants


numTimestamps()

ts
numTimestamps(): number;

Defined in: core/types/temporal/Temporal.ts:334

Returns the number of distinct timestamps. MEOS: temporal_num_timestamps

Returns

number

Inherited from

TGeogPoint.numTimestamps


round()

ts
round(maxdd): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:390

Returns a new TGeogPoint with coordinates rounded to maxdd decimal digits. MEOS: temporal_round

Parameters

maxdd

number

Returns

TGeogPoint

Inherited from

TGeogPoint.round


scaleTime()

ts
scaleTime(duration): this;

Defined in: core/types/temporal/Temporal.ts:464

Scales the temporal domain to the given duration interval pointer. MEOS: temporal_scale_time

Parameters

duration

number

Returns

this

Inherited from

TGeogPoint.scaleTime


setInterp()

ts
setInterp(interp): this;

Defined in: core/types/temporal/Temporal.ts:478

Returns a new temporal with the interpolation changed to interp. Pass TInterpolation values as numbers: Discrete=0, Stepwise=1, Linear=2. MEOS: temporal_set_interp

Parameters

interp

TInterpolation

Returns

this

Inherited from

TGeogPoint.setInterp


setSrid()

ts
setSrid(srid): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:264

Returns a new TGeogPoint with the SRID set to srid. MEOS: tspatial_set_srid

Parameters

srid

number

Returns

TGeogPoint

Inherited from

TGeogPoint.setSrid


shiftScaleTime()

ts
shiftScaleTime(shift, duration): this;

Defined in: core/types/temporal/Temporal.ts:469

Shifts and scales the temporal domain. MEOS: temporal_shift_scale_time

Parameters

shift

number

duration

number

Returns

this

Inherited from

TGeogPoint.shiftScaleTime


shiftTime()

ts
shiftTime(shift): this;

Defined in: core/types/temporal/Temporal.ts:459

Shifts the temporal domain by the given interval pointer. MEOS: temporal_shift_time

Parameters

shift

number

Returns

this

Inherited from

TGeogPoint.shiftTime


speed()

ts
speed(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:326

Returns the instantaneous speed as a TFloat (Ptr). MEOS: tpoint_speed

Returns

number

Inherited from

TGeogPoint.speed


srid()

ts
srid(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:259

Returns the SRID. MEOS: tspatial_srid

Returns

number

Inherited from

TGeogPoint.srid


startInstant()

ts
startInstant(): this;

Defined in: core/types/temporal/Temporal.ts:276

Returns the first instant as a new instance of the same subtype. MEOS: temporal_start_instant

Returns

this

Inherited from

TGeogPoint.startInstant


startTimestamp()

ts
startTimestamp(): number;

Defined in: core/types/temporal/Temporal.ts:347

Returns the first timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_start_timestamptz

Returns

number

Inherited from

TGeogPoint.startTimestamp


startValue()

ts
startValue(): string;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:195

Returns the starting geometry as a WKT string. MEOS: tgeo_start_value + geo_as_text

Returns

string

Inherited from

TGeogPoint.startValue


temporalContainedIn()

ts
temporalContainedIn(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:581

Returns a TBool (Ptr) that is true at instants where wkt contains this. MEOS: tcontains_geo_tgeo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.temporalContainedIn


temporalContains()

ts
temporalContains(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:589

Returns a TBool (Ptr) that is true at instants where this contains wkt. MEOS: tcontains_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.temporalContains


temporalContainsTemporal()

ts
temporalContainsTemporal(other): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:615

Returns a TBool (Ptr) for temporal containment between two TGeogPoints. MEOS: tcontains_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

number

Inherited from

TGeogPoint.temporalContainsTemporal


temporalDisjoint()

ts
temporalDisjoint(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:565

Returns a TBool (Ptr) that is true at instants where this is disjoint from wkt. MEOS: tdisjoint_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.temporalDisjoint


temporalDisjointTemporal()

ts
temporalDisjointTemporal(other): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:605

Returns a TBool (Ptr) for temporal disjoint with other TGeogPoint. MEOS: tdisjoint_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

number

Inherited from

TGeogPoint.temporalDisjointTemporal


temporalDistance()

ts
temporalDistance(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:632

Returns a TFloat (Ptr) of the geodetic distance to geometry wkt at each instant. MEOS: tdistance_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.temporalDistance


temporalDistanceTemporal()

ts
temporalDistanceTemporal(other): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:643

Returns a TFloat (Ptr) of the distance to other TGeogPoint at each instant. MEOS: tdistance_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

number

Inherited from

TGeogPoint.temporalDistanceTemporal


temporalDWithin()

ts
temporalDWithin(wkt, dist): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:597

Returns a TBool (Ptr) that is true at instants where this is within dist of wkt. MEOS: tdwithin_tgeo_geo

Parameters

wkt

string

dist

number

Returns

number

Inherited from

TGeogPoint.temporalDWithin


temporalDWithinTemporal()

ts
temporalDWithinTemporal(other, dist): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:620

Returns a TBool (Ptr) for temporal dwithin with other TGeogPoint. MEOS: tdwithin_tgeo_tgeo

Parameters

other

TGeogPoint

dist

number

Returns

number

Inherited from

TGeogPoint.temporalDWithinTemporal


temporalEq()

ts
temporalEq(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:502

Returns a TBool (Ptr) that is true where this == wkt. MEOS: teq_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.temporalEq


temporalIntersects()

ts
temporalIntersects(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:573

Returns a TBool (Ptr) that is true at instants where this intersects wkt. MEOS: tintersects_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.temporalIntersects


temporalIntersectsTemporal()

ts
temporalIntersectsTemporal(other): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:610

Returns a TBool (Ptr) for temporal intersection with other TGeogPoint. MEOS: tintersects_tgeo_tgeo

Parameters

other

TGeogPoint

Returns

number

Inherited from

TGeogPoint.temporalIntersectsTemporal


temporalNe()

ts
temporalNe(wkt): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:510

Returns a TBool (Ptr) that is true where this != wkt. MEOS: tne_tgeo_geo

Parameters

wkt

string

Returns

number

Inherited from

TGeogPoint.temporalNe


toInstant()

ts
toInstant(): this;

Defined in: core/types/temporal/Temporal.ts:489

Converts to TInstant (must already be an instant). MEOS: temporal_to_tinstant

Returns

this

Inherited from

TGeogPoint.toInstant


toSequence()

ts
toSequence(interp): this;

Defined in: core/types/temporal/Temporal.ts:494

Converts to TSequence with the given interpolation. MEOS: temporal_to_tsequence

Parameters

interp

TInterpolation

Returns

this

Inherited from

TGeogPoint.toSequence


toSequenceSet()

ts
toSequenceSet(interp): this;

Defined in: core/types/temporal/Temporal.ts:505

Converts to TSequenceSet with the given interpolation. MEOS: temporal_to_tsequenceset

Parameters

interp

TInterpolation

Returns

this

Inherited from

TGeogPoint.toSequenceSet


toSTBox()

ts
toSTBox(): number;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:269

Returns the bounding STBox as a raw Ptr. MEOS: tspatial_to_stbox

Returns

number

Inherited from

TGeogPoint.toSTBox


toString()

ts
toString(maxdd?): string;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:187

WKT string representation.

Parameters

maxdd?

number = 15

Maximum decimal digits for coordinates (default 15).

Returns

string

Inherited from

TGeogPoint.toString


toTGeography()

ts
toTGeography(): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:293

Converts to a tgeography (removes point constraint, keeps geography). MEOS: tgeogpoint_to_tgeography

Returns

TGeogPoint

Inherited from

TGeogPoint.toTGeography


trajectory()

ts
trajectory(unaryUnion?): string;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:313

Returns the trajectory as a WKT string (geodetic LineString or Point). MEOS: tpoint_trajectory + geo_as_text

Parameters

unaryUnion?

boolean = false

Returns

string

Inherited from

TGeogPoint.trajectory


transform()

ts
transform(srid): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:278

Reprojects to the given SRID. MEOS: tspatial_transform

Parameters

srid

number

Returns

TGeogPoint

Inherited from

TGeogPoint.transform


transformPipeline()

ts
transformPipeline(
   pipelinestr, 
   srid, 
   isForward?): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:283

Reprojects using a PROJ pipeline string. MEOS: tspatial_transform_pipeline

Parameters

pipelinestr

string

srid

number

isForward?

boolean = true

Returns

TGeogPoint

Inherited from

TGeogPoint.transformPipeline


valueAtTimestamp()

ts
valueAtTimestamp(t): string | null;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:248

Evaluates the temporal geography at a specific timestamp. Returns the WKT string or null if outside the domain. MEOS: temporal_at_timestamptz + tgeo_start_value + geo_as_text

Parameters

t

number

Returns

string | null

Inherited from

TGeogPoint.valueAtTimestamp


valueN()

ts
valueN(n): string | null;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:235

Returns the n-th distinct geometry value (0-based) as a WKT string. MEOS: tgeo_value_n + geo_as_text

Parameters

n

number

Returns

string | null

Inherited from

TGeogPoint.valueN


fromBaseTemporal()

ts
static fromBaseTemporal(wkt, domain): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:141

Create a TGeogPoint with constant geometry wkt spanning the same domain as domain. MEOS: tpoint_from_base_temp

Parameters

wkt

string

domain

TGeogPoint

Returns

TGeogPoint

Inherited from

TGeogPoint.fromBaseTemporal


fromBaseTime()

ts
static fromBaseTime(
   wkt, 
   time, 
   type, 
   interp?): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:152

Create a TGeogPoint with constant geometry wkt over a time object. MEOS: tpointseq_from_base_tstzset / tstzspan / tpointseqset_from_base_tstzspanset

Parameters

wkt

string

time

number

type

"tstzset" | "tstzspan" | "tstzspanset"

interp?

number = 3

Returns

TGeogPoint

Inherited from

TGeogPoint.fromBaseTime


fromInstant()

ts
static fromInstant(wkt, timestamp): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:130

Create a TGeogPointInst from a WKT point string and a timestamp.

Parameters

wkt

string

WKT geography string (e.g. "POINT(2.35 48.85)").

timestamp

number

Microseconds since 2000-01-01 UTC. MEOS: tpointinst_make

Returns

TGeogPoint

Inherited from

TGeogPoint.fromInstant


fromMFJSON()

ts
static fromMFJSON(mfjson): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:119

Parse a TGeogPoint from a MF-JSON string. MEOS: tgeogpoint_from_mfjson

Parameters

mfjson

string

Returns

TGeogPoint

Inherited from

TGeogPoint.fromMFJSON


fromString()

ts
static fromString(wkt): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:111

Parse a TGeogPoint from a WKT/EWKT string. MEOS: tgeogpoint_in

Parameters

wkt

string

Returns

TGeogPoint

Inherited from

TGeogPoint.fromString


fromTGeography()

ts
static fromTGeography(temp): TGeogPoint;

Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:301

Converts from tgeography to TGeogPoint (requires point geography). MEOS: tgeography_to_tgeogpoint

Parameters

temp

number

Returns

TGeogPoint

Inherited from

TGeogPoint.fromTGeography


fromValue()

ts
static fromValue(wkt, timestamp): TGeogPointInst;

Defined in: core/types/basic/tgeogpoint/TGeogPointInst.ts:31

Constructs a TGeogPointInst from a WKT point string and a timestamp.

Parameters

wkt

string

WKT geography string (e.g. "POINT(2.35 48.85)").

timestamp

number

Microseconds since 2000-01-01 UTC. MEOS: tpointinst_make

Returns

TGeogPointInst