Appearance
meos.js / TGeomPoint
Class: TGeomPoint
Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:102
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:103
Parameters
inner
number
Returns
TGeomPoint
Overrides
ts
Temporal<string>.constructorAccessors
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
ts
Temporal.innerMethods
[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
ts
Temporal.[dispose]alwaysEq()
ts
alwaysEq(wkt): boolean;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:596
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:622
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:604
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:627
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:463
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: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
ts
Temporal.appendInstantappendSequence()
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
ts
Temporal.appendSequenceasBinary()
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
ts
Temporal.asBinaryasEWKB()
ts
asEWKB(variant?): Uint8Array;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:275
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
asEWKT()
ts
asEWKT(maxdd?): string;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:265
EWKT string (includes SRID prefix). MEOS: tspatial_as_ewkt
Parameters
maxdd?
number = 15
Returns
string
asHexEWKB()
ts
asHexEWKB(variant?): string;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:285
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
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
ts
Temporal.asHexWKBasMFJSON()
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
ts
Temporal.asMFJSONasText()
ts
asText(maxdd?): string;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:257
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:555
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:529
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: tgeo_at_geom
Parameters
wkt
string
srid?
number = ...
Returns
TGeomPoint | null
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
ts
Temporal.atMaxatMin()
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
ts
Temporal.atMinatTsTzSet()
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
ts
Temporal.atTsTzSetatTsTzSpan()
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
ts
Temporal.atTsTzSpanatTsTzSpanSet()
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
ts
Temporal.atTsTzSpanSetazimuth()
ts
azimuth(): number;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:426
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:436
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:447
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:258
Returns a deep copy of this temporal value. MEOS: temporal_copy
Returns
this
Inherited from
ts
Temporal.copycumulativeLength()
ts
cumulativeLength(): number;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:455
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:418
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: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
ts
Temporal.durationMsendInstant()
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
ts
Temporal.endInstantendTimestamp()
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
ts
Temporal.endTimestampendValue()
ts
endValue(): string;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:242
Returns the ending geometry as a WKT string. MEOS: tgeo_end_value + geo_as_text
Returns
string
Overrides
ts
Temporal.endValueequals()
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
ts
Temporal.equalseverDisjoint()
ts
everDisjoint(wkt): boolean;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:656
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:680
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:672
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:690
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:580
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:612
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:664
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:685
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:588
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:617
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: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
ts
Temporal.freegetX()
ts
getX(): number;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:471
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:479
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:487
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:511
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: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
ts
Temporal.instantNinterpolation()
ts
interpolation(): TInterpolation;Defined in: core/types/temporal/Temporal.ts:311
Returns the interpolation mode of this temporal value. MEOS: temporal_interp
Returns
Inherited from
ts
Temporal.interpolationisSimple()
ts
isSimple(): boolean;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:495
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:402
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:369
Returns the instant with the maximum value. MEOS: temporal_max_instant
Returns
this
Inherited from
ts
Temporal.maxInstantmerge()
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
ts
Temporal.mergeminInstant()
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
ts
Temporal.minInstantminusGeo()
ts
minusGeo(wkt, srid?): TGeomPoint | null;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:568
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:542
Restrict to instants outside geometry wkt.
srid defaults to this temporal's own SRID (see atGeom). MEOS: tgeo_minus_geom
Parameters
wkt
string
srid?
number = ...
Returns
TGeomPoint | null
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
ts
Temporal.minusMaxminusMin()
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
ts
Temporal.minusMinminusTsTzSet()
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
ts
Temporal.minusTsTzSetminusTsTzSpan()
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
ts
Temporal.minusTsTzSpanminusTsTzSpanSet()
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
ts
Temporal.minusTsTzSpanSetnad()
ts
nad(wkt): number;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:785
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:796
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:804
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:812
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:823
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:326
Returns the number of distinct instants in this temporal value. MEOS: temporal_num_instants
Returns
number
Inherited from
ts
Temporal.numInstantsnumTimestamps()
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
ts
Temporal.numTimestampsround()
ts
round(maxdd): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:503
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: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
ts
Temporal.scaleTimesetInterp()
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
Returns
this
Inherited from
ts
Temporal.setInterpsetSrid()
ts
setSrid(srid): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:332
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: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
ts
Temporal.shiftScaleTimeshiftTime()
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
ts
Temporal.shiftTimespeed()
ts
speed(): number;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:410
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:324
Returns the SRID of the spatial reference system. MEOS: tspatial_srid
Returns
number
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
ts
Temporal.startInstantstartTimestamp()
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
ts
Temporal.startTimestampstartValue()
ts
startValue(): string;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:231
Returns the starting geometry as a WKT string. MEOS: tgeo_start_value + geo_as_text
Returns
string
Overrides
ts
Temporal.startValuetemporalContainedIn()
ts
temporalContainedIn(wkt): number;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:715
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:723
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:749
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:699
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:739
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:766
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:777
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:731
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:754
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:636
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:707
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:744
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:644
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:567
Converts to TInstant (must already be an instant). MEOS: temporal_as_tinstant
Returns
this
Inherited from
ts
Temporal.toInstanttoSequence()
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
Returns
this
Inherited from
ts
Temporal.toSequencetoSequenceSet()
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
Returns
this
Inherited from
ts
Temporal.toSequenceSettoSTBox()
ts
toSTBox(): number;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:340
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:223
WKT string representation.
Parameters
maxdd?
number = 15
Maximum decimal digits for coordinates (default 15).
Returns
string
Overrides
ts
Temporal.toStringtoTGeometry()
ts
toTGeometry(): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:370
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:391
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:352
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:360
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:310
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
bigint
Returns
string | null
valueN()
ts
valueN(n): string | null;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:297
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:177
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:188
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
fromBinary()
ts
static fromBinary(wkb): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:139
Reads a TGeomPoint from its WKB or EWKB bytes, as asBinary and asEWKB write them. MEOS: temporal_from_wkb
Parameters
wkb
Uint8Array
Returns
TGeomPoint
fromEWKB()
ts
static fromEWKB(ewkb): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:155
Reads a TGeomPoint from its EWKB bytes, as asEWKB writes them. MEOS: temporal_from_wkb
Parameters
ewkb
Uint8Array
Returns
TGeomPoint
fromHexEWKB()
ts
static fromHexEWKB(hexewkb): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:147
Reads a TGeomPoint from its hex-encoded EWKB, as asHexEWKB writes it. MEOS: temporal_from_hexwkb
Parameters
hexewkb
string
Returns
TGeomPoint
fromHexWKB()
ts
static fromHexWKB(hexwkb): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:131
Reads a TGeomPoint from its hex-encoded WKB or EWKB, as asHexWKB and asHexEWKB write it. MEOS: temporal_from_hexwkb
Parameters
hexwkb
string
Returns
TGeomPoint
fromInstant()
ts
static fromInstant(wkt, timestamp): TGeomPoint;Defined in: core/types/basic/tgeompoint/TGeomPoint.ts:166
Create a TGeomPointInst from a WKT point string and a timestamp.
Parameters
wkt
string
WKT geometry string (e.g. "POINT(1 2)").
timestamp
bigint
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:123
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:115
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:378
Converts from tgeometry to TGeomPoint (requires point geometry). MEOS: tgeometry_to_tgeompoint
Parameters
temp
number
Returns
TGeomPoint