Skip to content

meos.js


meos.js / TGeogPointSeqSet

Class: TGeogPointSeqSet ​

Defined in: core/types/basic/tgeogpoint/TGeogPointSeqSet.ts:18

Temporal geography point - SequenceSet subtype.

A set of disjoint TGeogPointSeq sequences.

Example ​

ts
const s1 = TGeogPointSeq.fromInstants([i1, i2]);
const s2 = TGeogPointSeq.fromInstants([i3, i4]);
const ss = TGeogPointSeqSet.fromSequences([s1, s2]);

Extends ​

Constructors ​

Constructor ​

ts
new TGeogPointSeqSet(inner): TGeogPointSeqSet;

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

Parameters ​

inner ​

number

Returns ​

TGeogPointSeqSet

Inherited from ​

TGeogPoint.constructor

Accessors ​

inner ​

Get Signature ​

ts
get inner(): number;

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

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:250

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:516

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:542

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:524

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:547

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:416

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:606

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:616

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


asBinary() ​

ts
asBinary(variant?): Uint8Array;

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

Returns the Well-Known Binary (WKB) representation.

The default variant 0 writes plain WKB in the native byte order; 0x08 (WKB_NDR) and 0x10 (WKB_XDR) choose the byte order. The spatial types write their SRID through asEWKB.

MEOS: temporal_as_wkb

Parameters ​

variant? ​

number = 0

Returns ​

Uint8Array

Inherited from ​

TGeogPoint.asBinary


asEWKB() ​

ts
asEWKB(variant?): Uint8Array;

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

Returns the Extended Well-Known Binary (EWKB) representation, which carries the SRID. The default variant 0 writes the native byte order; 0x08 (WKB_NDR) and 0x10 (WKB_XDR) choose it. MEOS: tspatial_as_ewkb

Parameters ​

variant? ​

number = 0

Returns ​

Uint8Array

Inherited from ​

TGeogPoint.asEWKB


asEWKT() ​

ts
asEWKT(maxdd?): string;

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

EWKT string (includes SRID prefix). MEOS: tspatial_as_ewkt

Parameters ​

maxdd? ​

number = 15

Returns ​

string

Inherited from ​

TGeogPoint.asEWKT


asHexEWKB() ​

ts
asHexEWKB(variant?): string;

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

Returns the hex-encoded Extended Well-Known Binary (EWKB) representation, which carries the SRID. The default variant 0 writes the native byte order; 0x08 (WKB_NDR) and 0x10 (WKB_XDR) choose it. MEOS: tspatial_as_hexewkb

Parameters ​

variant? ​

number = 0

Returns ​

string

Inherited from ​

TGeogPoint.asHexEWKB


asHexWKB() ​

ts
asHexWKB(variant?): string;

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

Returns the hex-encoded Well-Known Binary (WKB) representation.

The default variant 0 writes plain WKB in the native byte order; 0x08 (WKB_NDR) and 0x10 (WKB_XDR) choose the byte order. The spatial types write their SRID through asHexEWKB.

MEOS: temporal_as_hexwkb

Parameters ​

variant? ​

number = 0

Returns ​

string

Inherited from ​

TGeogPoint.asHexWKB


asMFJSON() ​

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

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

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:252

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:480

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:464

Restrict to instants inside geometry wkt. MEOS: tgeo_at_geom

Parameters ​

wkt ​

string

Returns ​

TGeogPoint | null

Inherited from ​

TGeogPoint.atGeom


atMax() ​

ts
atMax(): this;

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

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:450

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:474

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:479

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:484

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:390

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:398

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:406

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:258

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

Returns ​

this

Inherited from ​

TGeogPoint.copy


cumulativeLength() ​

ts
cumulativeLength(spheroid?): number;

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

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

Parameters ​

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.cumulativeLength


direction() ​

ts
direction(): number;

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

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:433

Returns the total duration as a number of milliseconds, through the parts of the interval MEOS answers (interval_to_timedelta); an interval with months, which has no fixed length, is refused.

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:349

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(): bigint;

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

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

Returns ​

bigint

Inherited from ​

TGeogPoint.endTimestamp


endValue() ​

ts
endValue(): string;

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

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:636

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:576

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:600

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, 
   spheroid?): boolean;

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

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

Parameters ​

wkt ​

string

dist ​

number

spheroid? ​

boolean = true

Returns ​

boolean

Inherited from ​

TGeogPoint.everDWithin


everDWithinTemporal() ​

ts
everDWithinTemporal(
   other, 
   dist, 
   spheroid?): boolean;

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

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

Parameters ​

other ​

TGeogPoint

dist ​

number

spheroid? ​

boolean = true

Returns ​

boolean

Inherited from ​

TGeogPoint.everDWithinTemporal


everEq() ​

ts
everEq(wkt): boolean;

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

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:532

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:584

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:605

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:508

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:537

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:242

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:421

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:426

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:431

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:452

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:380

Returns the n-th instant (0-based index), MEOS's 1-based n + 1.

MEOS: temporal_instant_n

Parameters ​

n ​

number

Returns ​

this

Inherited from ​

TGeogPoint.instantN


interpolation() ​

ts
interpolation(): TInterpolation;

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

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:436

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

Returns ​

boolean

Inherited from ​

TGeogPoint.isSimple


length() ​

ts
length(spheroid?): number;

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

Returns the total geodetic length in metres. MEOS: tpoint_length

Parameters ​

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.length


maxInstant() ​

ts
maxInstant(): this;

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

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:624

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:359

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:488

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:472

Restrict to instants outside geometry wkt. MEOS: tgeo_minus_geom

Parameters ​

wkt ​

string

Returns ​

TGeogPoint | null

Inherited from ​

TGeogPoint.minusGeom


minusMax() ​

ts
minusMax(): this;

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

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:460

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:489

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:494

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:499

Excludes the given timestamp span set. MEOS: temporal_minus_tstzspanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TGeogPoint.minusTsTzSpanSet


nad() ​

ts
nad(wkt, spheroid?): number;

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

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

Parameters ​

wkt ​

string

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.nad


nadSTBox() ​

ts
nadSTBox(box, spheroid?): number;

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

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

Parameters ​

box ​

number

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.nadSTBox


nadTemporal() ​

ts
nadTemporal(other, spheroid?): number;

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

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

Parameters ​

other ​

TGeogPoint

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.nadTemporal


nai() ​

ts
nai(wkt, spheroid?): number;

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

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

Parameters ​

wkt ​

string

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.nai


naiTemporal() ​

ts
naiTemporal(other, spheroid?): number;

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

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

Parameters ​

other ​

TGeogPoint

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.naiTemporal


numInstants() ​

ts
numInstants(): number;

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

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:388

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:444

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:526

Scales the temporal domain to last duration, a Postgres interval string (e.g. '10 minutes') or a raw interval Ptr. MEOS: temporal_scale_time

Parameters ​

duration ​

string | number

Returns ​

this

Inherited from ​

TGeogPoint.scaleTime


setInterp() ​

ts
setInterp(interp): this;

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

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:318

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:540

Shifts then scales the temporal domain. shift and duration may each be a Postgres interval string (e.g. '1 hour', '10 minutes') or a raw Ptr. MEOS: temporal_shift_scale_time

Parameters ​

shift ​

string | number

duration ​

string | number

Returns ​

this

Inherited from ​

TGeogPoint.shiftScaleTime


shiftTime() ​

ts
shiftTime(shift): this;

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

Shifts the temporal domain by shift, a Postgres interval string (e.g. '1 hour', '-30 minutes') or a raw interval Ptr. MEOS: temporal_shift_time

Parameters ​

shift ​

string | number

Returns ​

this

Inherited from ​

TGeogPoint.shiftTime


speed() ​

ts
speed(spheroid?): number;

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

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

Parameters ​

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.speed


srid() ​

ts
srid(): number;

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

Returns the SRID. MEOS: tspatial_srid

Returns ​

number

Inherited from ​

TGeogPoint.srid


startInstant() ​

ts
startInstant(): this;

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

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(): bigint;

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

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

Returns ​

bigint

Inherited from ​

TGeogPoint.startTimestamp


startValue() ​

ts
startValue(): string;

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

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:635

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:643

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:669

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:619

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:659

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, spheroid?): number;

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

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

Parameters ​

wkt ​

string

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.temporalDistance


temporalDistanceTemporal() ​

ts
temporalDistanceTemporal(other, spheroid?): number;

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

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

Parameters ​

other ​

TGeogPoint

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.temporalDistanceTemporal


temporalDWithin() ​

ts
temporalDWithin(
   wkt, 
   dist, 
   spheroid?): number;

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

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

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.temporalDWithin


temporalDWithinTemporal() ​

ts
temporalDWithinTemporal(
   other, 
   dist, 
   spheroid?): number;

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

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

Parameters ​

other ​

TGeogPoint

dist ​

number

spheroid? ​

boolean = true

Returns ​

number

Inherited from ​

TGeogPoint.temporalDWithinTemporal


temporalEq() ​

ts
temporalEq(wkt): number;

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

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:627

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:664

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:564

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:567

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

Returns ​

this

Inherited from ​

TGeogPoint.toInstant


toSequence() ​

ts
toSequence(interp): this;

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

Converts to TSequence with the given interpolation. MEOS: temporal_as_tsequence

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TGeogPoint.toSequence


toSequenceSet() ​

ts
toSequenceSet(interp): this;

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

Converts to TSequenceSet with the given interpolation. MEOS: temporal_as_tsequenceset

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TGeogPoint.toSequenceSet


toSTBox() ​

ts
toSTBox(): number;

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

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:221

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:347

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:367

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:332

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:337

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:302

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 ​

bigint

Returns ​

string | null

Inherited from ​

TGeogPoint.valueAtTimestamp


valueN() ​

ts
valueN(n): string | null;

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

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:175

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:186

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


fromBinary() ​

ts
static fromBinary(wkb): TGeogPoint;

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

Reads a TGeogPoint from its WKB or EWKB bytes, as asBinary and asEWKB write them. MEOS: temporal_from_wkb

Parameters ​

wkb ​

Uint8Array

Returns ​

TGeogPoint

Inherited from ​

TGeogPoint.fromBinary


fromEWKB() ​

ts
static fromEWKB(ewkb): TGeogPoint;

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

Reads a TGeogPoint from its EWKB bytes, as asEWKB writes them. MEOS: temporal_from_wkb

Parameters ​

ewkb ​

Uint8Array

Returns ​

TGeogPoint

Inherited from ​

TGeogPoint.fromEWKB


fromHexEWKB() ​

ts
static fromHexEWKB(hexewkb): TGeogPoint;

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

Reads a TGeogPoint from its hex-encoded EWKB, as asHexEWKB writes it. MEOS: temporal_from_hexwkb

Parameters ​

hexewkb ​

string

Returns ​

TGeogPoint

Inherited from ​

TGeogPoint.fromHexEWKB


fromHexWKB() ​

ts
static fromHexWKB(hexwkb): TGeogPoint;

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

Reads a TGeogPoint from its hex-encoded WKB or EWKB, as asHexWKB and asHexEWKB write it. MEOS: temporal_from_hexwkb

Parameters ​

hexwkb ​

string

Returns ​

TGeogPoint

Inherited from ​

TGeogPoint.fromHexWKB


fromInstant() ​

ts
static fromInstant(wkt, timestamp): TGeogPoint;

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

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 ​

bigint

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:121

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

Parameters ​

mfjson ​

string

Returns ​

TGeogPoint

Inherited from ​

TGeogPoint.fromMFJSON


fromSequences() ​

ts
static fromSequences(sequences, normalize?): TGeogPointSeqSet;

Defined in: core/types/basic/tgeogpoint/TGeogPointSeqSet.ts:30

Builds a TGeogPointSeqSet from an array of TGeogPoint sequences.

Parameters ​

sequences ​

TGeogPoint[]

Ordered, disjoint array of TGeogPoint sequences.

normalize? ​

boolean = true

Merge adjacent sequences if possible (default true). MEOS: tsequenceset_make

Returns ​

TGeogPointSeqSet


fromString() ​

ts
static fromString(wkt): TGeogPoint;

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

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:355

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

Parameters ​

temp ​

number

Returns ​

TGeogPoint

Inherited from ​

TGeogPoint.fromTGeography