Skip to content

meos.js


meos.js / TGeomPoint

Class: TGeomPoint ​

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:101

Temporal geometry point type.

Wraps a MEOS TGeomPoint pointer. Geometry values are exchanged as WKT strings at the JS boundary; GSERIALIZED pointers never leak out of this class.

Supports all three subtypes (Instant, Sequence, SequenceSet). Linear interpolation is the default for sequences.

Example ​

ts
await initMeos();
const t = TGeomPoint.fromString('[POINT(1 1)@2001-01-01, POINT(2 2)@2001-01-02]');
console.log(t.startValue()); // POINT(1 1)
console.log(t.length());     // ~157249.59...
t.free();

Extends ​

  • Temporal<string>

Extended by ​

Constructors ​

Constructor ​

ts
new TGeomPoint(inner): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:102

Parameters ​

inner ​

number

Returns ​

TGeomPoint

Overrides ​

ts
Temporal<string>.constructor

Accessors ​

inner ​

Get Signature ​

ts
get inner(): number;

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

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

Returns ​

number

Inherited from ​

ts
Temporal.inner

Methods ​

[dispose]() ​

ts
dispose: void;

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

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

Returns ​

void

Inherited from ​

ts
Temporal.[dispose]

alwaysEq() ​

ts
alwaysEq(wkt): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:551

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

Parameters ​

wkt ​

string

Returns ​

boolean


alwaysEqTemporal() ​

ts
alwaysEqTemporal(other): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:577

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

Parameters ​

other ​

TGeomPoint

Returns ​

boolean


alwaysNe() ​

ts
alwaysNe(wkt): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:559

Returns true if the point never equals geometry wkt. MEOS: always_ne_tgeo_geo

Parameters ​

wkt ​

string

Returns ​

boolean


alwaysNeTemporal() ​

ts
alwaysNeTemporal(other): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:582

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

Parameters ​

other ​

TGeomPoint

Returns ​

boolean


angularDifference() ​

ts
angularDifference(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:418

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

Returns ​

number


appendInstant() ​

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

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

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 ​

ts
Temporal.appendInstant

appendSequence() ​

ts
appendSequence(seq, expand?): this;

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

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

Parameters ​

seq ​

this

expand? ​

boolean = false

Returns ​

this

Inherited from ​

ts
Temporal.appendSequence

asEWKT() ​

ts
asEWKT(maxdd?): string;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:240

EWKT string (includes SRID prefix). MEOS: tspatial_as_ewkt

Parameters ​

maxdd? ​

number = 15

Returns ​

string


asHexWKB() ​

ts
asHexWKB(): string;

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

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 ​

ts
Temporal.asHexWKB

asMFJSON() ​

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

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

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 ​

ts
Temporal.asMFJSON

asText() ​

ts
asText(maxdd?): string;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:232

WKT string with coordinate precision. MEOS: tspatial_as_text

Parameters ​

maxdd? ​

number = 15

Returns ​

string


atGeo() ​

ts
atGeo(wkt, srid?): TGeomPoint | null;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:510

Restrict to instants where the geometry equals wkt.

srid defaults to this temporal's own SRID (see atGeom). MEOS: tgeo_at_geom

Parameters ​

wkt ​

string

srid? ​

number = ...

Returns ​

TGeomPoint | null


atGeom() ​

ts
atGeom(wkt, srid?): TGeomPoint | null;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:484

Restrict to instants inside geometry wkt.

srid defaults to this temporal's own SRID so the geometry and the trajectory share a coordinate system (MEOS rejects mixed-SRID operands). MEOS: tpoint_at_geom

Parameters ​

wkt ​

string

srid? ​

number = ...

Returns ​

TGeomPoint | null


atMax() ​

ts
atMax(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.atMax

atMin() ​

ts
atMin(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.atMin

atTsTzSet() ​

ts
atTsTzSet(s): this;

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

Restricts to the given timestamp set. MEOS: temporal_at_tstzset

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

ts
Temporal.atTsTzSet

atTsTzSpan() ​

ts
atTsTzSpan(s): this;

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

Restricts to the given timestamp span. MEOS: temporal_at_tstzspan

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

ts
Temporal.atTsTzSpan

atTsTzSpanSet() ​

ts
atTsTzSpanSet(ss): this;

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

Restricts to the given timestamp span set. MEOS: temporal_at_tstzspanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

ts
Temporal.atTsTzSpanSet

azimuth() ​

ts
azimuth(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:381

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

Returns ​

number


bearingToPoint() ​

ts
bearingToPoint(wkt, invert?): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:391

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

Parameters ​

wkt ​

string

WKT string of the reference point.

invert? ​

boolean = false

If true, returns the bearing from the point toward the trajectory. MEOS: bearing_tpoint_point

Returns ​

number


bearingToTemporal() ​

ts
bearingToTemporal(other): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:402

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

Parameters ​

other ​

TGeomPoint

Returns ​

number


copy() ​

ts
copy(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.copy

cumulativeLength() ​

ts
cumulativeLength(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:410

Returns the cumulative length at each instant as a TFloat (Ptr). MEOS: tpoint_cumulative_length

Returns ​

number


direction() ​

ts
direction(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:373

Returns the direction (azimuth from start to end) in radians. MEOS: tpoint_direction

Returns ​

number


durationMs() ​

ts
durationMs(ignoreGaps?): number;

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

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 ​

ts
Temporal.durationMs

endInstant() ​

ts
endInstant(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.endInstant

endTimestamp() ​

ts
endTimestamp(): number;

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

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

Returns ​

number

Inherited from ​

ts
Temporal.endTimestamp

endValue() ​

ts
endValue(): string;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:217

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

Returns ​

string

Overrides ​

ts
Temporal.endValue

equals() ​

ts
equals(other): boolean;

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

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

Parameters ​

other ​

Temporal<string>

Returns ​

boolean

Inherited from ​

ts
Temporal.equals

everDisjoint() ​

ts
everDisjoint(wkt): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:611

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

Parameters ​

wkt ​

string

Returns ​

boolean


everDisjointTemporal() ​

ts
everDisjointTemporal(other): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:635

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

Parameters ​

other ​

TGeomPoint

Returns ​

boolean


everDWithin() ​

ts
everDWithin(wkt, dist): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:627

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

Parameters ​

wkt ​

string

dist ​

number

Returns ​

boolean


everDWithinTemporal() ​

ts
everDWithinTemporal(other, dist): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:645

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

Parameters ​

other ​

TGeomPoint

dist ​

number

Returns ​

boolean


everEq() ​

ts
everEq(wkt): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:535

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

Parameters ​

wkt ​

string

Returns ​

boolean


everEqTemporal() ​

ts
everEqTemporal(other): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:567

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

Parameters ​

other ​

TGeomPoint

Returns ​

boolean


everIntersects() ​

ts
everIntersects(wkt): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:619

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

Parameters ​

wkt ​

string

Returns ​

boolean


everIntersectsTemporal() ​

ts
everIntersectsTemporal(other): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:640

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

Parameters ​

other ​

TGeomPoint

Returns ​

boolean


everNe() ​

ts
everNe(wkt): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:543

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

Parameters ​

wkt ​

string

Returns ​

boolean


everNeTemporal() ​

ts
everNeTemporal(other): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:572

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

Parameters ​

other ​

TGeomPoint

Returns ​

boolean


free() ​

ts
free(): void;

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

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 ​

ts
Temporal.free

getX() ​

ts
getX(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:426

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

Returns ​

number


getY() ​

ts
getY(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:434

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

Returns ​

number


getZ() ​

ts
getZ(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:442

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

Returns ​

number


hasZ() ​

ts
hasZ(): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:466

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

Returns ​

boolean


instantN() ​

ts
instantN(n): this;

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

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 ​

ts
Temporal.instantN

interpolation() ​

ts
interpolation(): TInterpolation;

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

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

Returns ​

TInterpolation

Inherited from ​

ts
Temporal.interpolation

isSimple() ​

ts
isSimple(): boolean;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:450

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

Returns ​

boolean


length() ​

ts
length(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:357

Returns the total length of the trajectory in the units of the CRS. MEOS: tpoint_length

Returns ​

number


maxInstant() ​

ts
maxInstant(): this;

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

Returns the instant with the maximum value. MEOS: temporal_max_instant

Returns ​

this

Inherited from ​

ts
Temporal.maxInstant

merge() ​

ts
merge(other): this;

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

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

Parameters ​

other ​

this

Returns ​

this

Inherited from ​

ts
Temporal.merge

minInstant() ​

ts
minInstant(): this;

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

Returns the instant with the minimum value. MEOS: temporal_min_instant

Returns ​

this

Inherited from ​

ts
Temporal.minInstant

minusGeo() ​

ts
minusGeo(wkt, srid?): TGeomPoint | null;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:523

Restrict to instants where the geometry differs from wkt.

srid defaults to this temporal's own SRID (see atGeom). MEOS: tgeo_minus_geom

Parameters ​

wkt ​

string

srid? ​

number = ...

Returns ​

TGeomPoint | null


minusGeom() ​

ts
minusGeom(wkt, srid?): TGeomPoint | null;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:497

Restrict to instants outside geometry wkt.

srid defaults to this temporal's own SRID (see atGeom). MEOS: tpoint_minus_geom

Parameters ​

wkt ​

string

srid? ​

number = ...

Returns ​

TGeomPoint | null


minusMax() ​

ts
minusMax(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.minusMax

minusMin() ​

ts
minusMin(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.minusMin

minusTsTzSet() ​

ts
minusTsTzSet(s): this;

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

Excludes the given timestamp set. MEOS: temporal_minus_tstzset

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

ts
Temporal.minusTsTzSet

minusTsTzSpan() ​

ts
minusTsTzSpan(s): this;

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

Excludes the given timestamp span. MEOS: temporal_minus_tstzspan

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

ts
Temporal.minusTsTzSpan

minusTsTzSpanSet() ​

ts
minusTsTzSpanSet(ss): this;

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

Excludes the given timestamp span set. MEOS: temporal_minus_tstzspanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

ts
Temporal.minusTsTzSpanSet

nad() ​

ts
nad(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:740

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

Parameters ​

wkt ​

string

Returns ​

number


nadSTBox() ​

ts
nadSTBox(box): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:751

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

Parameters ​

box ​

number

Returns ​

number


nadTemporal() ​

ts
nadTemporal(other): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:759

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

Parameters ​

other ​

TGeomPoint

Returns ​

number


nai() ​

ts
nai(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:767

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

Parameters ​

wkt ​

string

Returns ​

number


naiTemporal() ​

ts
naiTemporal(other): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:778

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

Parameters ​

other ​

TGeomPoint

Returns ​

number


numInstants() ​

ts
numInstants(): number;

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

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

Returns ​

number

Inherited from ​

ts
Temporal.numInstants

numTimestamps() ​

ts
numTimestamps(): number;

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

Returns the number of distinct timestamps. MEOS: temporal_num_timestamps

Returns ​

number

Inherited from ​

ts
Temporal.numTimestamps

round() ​

ts
round(maxdd): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:458

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

Parameters ​

maxdd ​

number

Returns ​

TGeomPoint


scaleTime() ​

ts
scaleTime(duration): this;

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

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 ​

ts
Temporal.scaleTime

setInterp() ​

ts
setInterp(interp): this;

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

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 ​

ts
Temporal.setInterp

setSrid() ​

ts
setSrid(srid): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:287

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

Parameters ​

srid ​

number

Returns ​

TGeomPoint


shiftScaleTime() ​

ts
shiftScaleTime(shift, duration): this;

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

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 ​

ts
Temporal.shiftScaleTime

shiftTime() ​

ts
shiftTime(shift): this;

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

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 ​

ts
Temporal.shiftTime

speed() ​

ts
speed(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:365

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

Returns ​

number


srid() ​

ts
srid(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:279

Returns the SRID of the spatial reference system. MEOS: tspatial_srid

Returns ​

number


startInstant() ​

ts
startInstant(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.startInstant

startTimestamp() ​

ts
startTimestamp(): number;

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

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

Returns ​

number

Inherited from ​

ts
Temporal.startTimestamp

startValue() ​

ts
startValue(): string;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:206

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

Returns ​

string

Overrides ​

ts
Temporal.startValue

temporalContainedIn() ​

ts
temporalContainedIn(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:670

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

Parameters ​

wkt ​

string

Returns ​

number


temporalContains() ​

ts
temporalContains(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:678

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

Parameters ​

wkt ​

string

Returns ​

number


temporalContainsTemporal() ​

ts
temporalContainsTemporal(other): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:704

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

Parameters ​

other ​

TGeomPoint

Returns ​

number


temporalDisjoint() ​

ts
temporalDisjoint(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:654

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

Parameters ​

wkt ​

string

Returns ​

number


temporalDisjointTemporal() ​

ts
temporalDisjointTemporal(other): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:694

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

Parameters ​

other ​

TGeomPoint

Returns ​

number


temporalDistance() ​

ts
temporalDistance(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:721

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

Parameters ​

wkt ​

string

Returns ​

number


temporalDistanceTemporal() ​

ts
temporalDistanceTemporal(other): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:732

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

Parameters ​

other ​

TGeomPoint

Returns ​

number


temporalDWithin() ​

ts
temporalDWithin(wkt, dist): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:686

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


temporalDWithinTemporal() ​

ts
temporalDWithinTemporal(other, dist): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:709

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

Parameters ​

other ​

TGeomPoint

dist ​

number

Returns ​

number


temporalEq() ​

ts
temporalEq(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:591

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

Parameters ​

wkt ​

string

Returns ​

number


temporalIntersects() ​

ts
temporalIntersects(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:662

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

Parameters ​

wkt ​

string

Returns ​

number


temporalIntersectsTemporal() ​

ts
temporalIntersectsTemporal(other): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:699

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

Parameters ​

other ​

TGeomPoint

Returns ​

number


temporalNe() ​

ts
temporalNe(wkt): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:599

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

Parameters ​

wkt ​

string

Returns ​

number


toInstant() ​

ts
toInstant(): this;

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

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

Returns ​

this

Inherited from ​

ts
Temporal.toInstant

toSequence() ​

ts
toSequence(interp): this;

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

Converts to TSequence with the given interpolation. MEOS: temporal_as_tsequence

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

ts
Temporal.toSequence

toSequenceSet() ​

ts
toSequenceSet(interp): this;

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

Converts to TSequenceSet with the given interpolation. MEOS: temporal_as_tsequenceset

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

ts
Temporal.toSequenceSet

toSTBox() ​

ts
toSTBox(): number;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:295

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

Returns ​

number


toString() ​

ts
toString(maxdd?): string;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:198

WKT string representation.

Parameters ​

maxdd? ​

number = 15

Maximum decimal digits for coordinates (default 15).

Returns ​

string

Overrides ​

ts
Temporal.toString

toTGeometry() ​

ts
toTGeometry(): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:325

Converts to a tgeometry (removes point constraint, keeps geometry). MEOS: tgeompoint_to_tgeometry

Returns ​

TGeomPoint


trajectory() ​

ts
trajectory(unaryUnion?): string;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:346

Returns the trajectory as a WKT geometry string. For a sequence this is typically a LineString; for an instant it is a Point. MEOS: tpoint_trajectory + geo_as_text

Parameters ​

unaryUnion? ​

boolean = false

Returns ​

string


transform() ​

ts
transform(srid): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:307

Reprojects to the given SRID. MEOS: tspatial_transform

Parameters ​

srid ​

number

Returns ​

TGeomPoint


transformPipeline() ​

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

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:315

Reprojects using a PROJ pipeline string. MEOS: tspatial_transform_pipeline

Parameters ​

pipelinestr ​

string

srid ​

number

isForward? ​

boolean = true

Returns ​

TGeomPoint


valueAtTimestamp() ​

ts
valueAtTimestamp(t): string | null;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:265

Evaluates the temporal geometry 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


valueN() ​

ts
valueN(n): string | null;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:252

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


fromBaseTemporal() ​

ts
static fromBaseTemporal(wkt, domain): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:152

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

Parameters ​

wkt ​

string

domain ​

TGeomPoint

Returns ​

TGeomPoint


fromBaseTime() ​

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

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:163

Create a TGeomPoint 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 ​

TGeomPoint


fromHexWKB() ​

ts
static fromHexWKB(hexwkb): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:130

Parse a TGeomPoint from a hex-encoded WKB string. MEOS: temporal_from_hexwkb

Parameters ​

hexwkb ​

string

Returns ​

TGeomPoint


fromInstant() ​

ts
static fromInstant(wkt, timestamp): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:141

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

Parameters ​

wkt ​

string

WKT geometry string (e.g. "POINT(1 2)").

timestamp ​

number

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

Returns ​

TGeomPoint


fromMFJSON() ​

ts
static fromMFJSON(mfjson): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:122

Parse a TGeomPoint from a MF-JSON string. MEOS: tgeompoint_from_mfjson

Parameters ​

mfjson ​

string

Returns ​

TGeomPoint


fromString() ​

ts
static fromString(wkt): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:114

Parse a TGeomPoint from a WKT/EWKT string. MEOS: tgeompoint_in

Parameters ​

wkt ​

string

Returns ​

TGeomPoint


fromTGeometry() ​

ts
static fromTGeometry(temp): TGeomPoint;

Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:333

Converts from tgeometry to TGeomPoint (requires point geometry). MEOS: tgeometry_to_tgeompoint

Parameters ​

temp ​

number

Returns ​

TGeomPoint