Appearance
meos.js / TGeogPoint
Class: TGeogPoint
Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:98
Temporal geography point type.
Like TGeomPoint but uses geodetic (WGS-84 or other ellipsoidal) coordinates. Distance and area functions operate on the sphere/spheroid rather than on a flat plane.
Geometry values are exchanged as WKT strings at the JS boundary.
Example
ts
await initMeos();
const t = TGeogPoint.fromString('[POINT(2.35 48.85)@2001-01-01, POINT(2.29 48.86)@2001-01-02]');
console.log(t.startValue()); // POINT(2.35 48.85)
console.log(t.length()); // geodetic distance in metres
t.free();Extends
Temporal<string>
Extended by
Constructors
Constructor
ts
new TGeogPoint(inner): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:99
Parameters
inner
number
Returns
TGeogPoint
Overrides
ts
Temporal<string>.constructorAccessors
inner
Get Signature
ts
get inner(): number;Defined in: core/types/temporal/Temporal.ts:173
Raw WASM pointer. Use when passing this value to low-level functions.
Returns
number
Inherited from
ts
Temporal.innerMethods
[dispose]()
ts
dispose: void;Defined in: core/types/temporal/Temporal.ts:191
Explicit Resource Management support. Allows using t = TBool.fromString(...) to free automatically.
Returns
void
Inherited from
ts
Temporal.[dispose]alwaysEq()
ts
alwaysEq(wkt): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:462
Returns true if the point always equals geometry wkt. MEOS: always_eq_tgeo_geo
Parameters
wkt
string
Returns
boolean
alwaysEqTemporal()
ts
alwaysEqTemporal(other): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:488
Returns true if this always equals other TGeogPoint. MEOS: always_eq_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
boolean
alwaysNe()
ts
alwaysNe(wkt): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:470
Returns true if the point is never equal to geometry wkt. MEOS: always_ne_tgeo_geo
Parameters
wkt
string
Returns
boolean
alwaysNeTemporal()
ts
alwaysNeTemporal(other): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:493
Returns true if this never differs from other TGeogPoint. MEOS: always_ne_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
boolean
angularDifference()
ts
angularDifference(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:362
Returns the angular difference at each instant as a TFloat (Ptr). MEOS: tpoint_angular_difference
Returns
number
appendInstant()
ts
appendInstant(
inst,
maxdist?,
maxt?,
expand?): this;Defined in: core/types/temporal/Temporal.ts:528
Appends an instant to this temporal, returning a new temporal. MEOS: temporal_append_tinstant
Parameters
inst
this
The instant to append (same subtype as this).
maxdist?
number = 0
Maximum distance gap allowed (0 = no limit).
maxt?
number = 0
Maximum time gap as interval pointer (0 = no limit).
expand?
boolean = false
Whether to expand the sequence in-place.
Returns
this
Inherited from
ts
Temporal.appendInstantappendSequence()
ts
appendSequence(seq, expand?): this;Defined in: core/types/temporal/Temporal.ts:538
Appends a sequence to this temporal, returning a new temporal. MEOS: temporal_append_tsequence
Parameters
seq
this
expand?
boolean = false
Returns
this
Inherited from
ts
Temporal.appendSequenceasEWKT()
ts
asEWKT(maxdd?): string;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:223
EWKT string (includes SRID prefix). MEOS: tspatial_as_ewkt
Parameters
maxdd?
number = 15
Returns
string
asHexWKB()
ts
asHexWKB(): string;Defined in: core/types/temporal/Temporal.ts:213
Returns the hex-encoded WKB representation.
Uses the hand-written temporal_as_hexwkb_w wrapper which internally passes variant=4 (extended WKB) and discards size_out.
MEOS: temporal_as_hexwkb
Returns
string
Inherited from
ts
Temporal.asHexWKBasMFJSON()
ts
asMFJSON(
withBbox?,
flags?,
precision?,
srs?): string;Defined in: core/types/temporal/Temporal.ts:235
Returns the MF-JSON representation.
The hand-written wrapper converts an empty srs string to C NULL so that callers can omit the SRS without passing a null pointer directly.
MEOS: temporal_as_mfjson
Parameters
withBbox?
boolean = true
Include bounding box in the output (default true)
flags?
number = 3
Output flags (default 3)
precision?
number = 6
Coordinate decimal precision (default 6)
srs?
string | null
Spatial Reference System string, or null to omit
Returns
string
Inherited from
ts
Temporal.asMFJSONasText()
ts
asText(maxdd?): string;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:218
WKT string with coordinate precision. MEOS: tspatial_as_text
Parameters
maxdd?
number = 15
Returns
string
atGeo()
ts
atGeo(wkt): TGeogPoint | null;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:426
Restrict to instants where the geometry equals wkt. MEOS: tgeo_at_geom
Parameters
wkt
string
Returns
TGeogPoint | null
atGeom()
ts
atGeom(wkt): TGeogPoint | null;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:410
Restrict to instants inside geometry wkt. MEOS: tpoint_at_geom
Parameters
wkt
string
Returns
TGeogPoint | null
atMax()
ts
atMax(): this;Defined in: core/types/temporal/Temporal.ts:406
Restricts to instants where the value is the maximum. MEOS: temporal_at_max
Returns
this
Inherited from
ts
Temporal.atMaxatMin()
ts
atMin(): this;Defined in: core/types/temporal/Temporal.ts:401
Restricts to instants where the value is the minimum. MEOS: temporal_at_min
Returns
this
Inherited from
ts
Temporal.atMinatTsTzSet()
ts
atTsTzSet(s): this;Defined in: core/types/temporal/Temporal.ts:425
Restricts to the given timestamp set. MEOS: temporal_at_tstzset
Parameters
s
number
Returns
this
Inherited from
ts
Temporal.atTsTzSetatTsTzSpan()
ts
atTsTzSpan(s): this;Defined in: core/types/temporal/Temporal.ts:430
Restricts to the given timestamp span. MEOS: temporal_at_tstzspan
Parameters
s
number
Returns
this
Inherited from
ts
Temporal.atTsTzSpanatTsTzSpanSet()
ts
atTsTzSpanSet(ss): this;Defined in: core/types/temporal/Temporal.ts:435
Restricts to the given timestamp span set. MEOS: temporal_at_tstzspanset
Parameters
ss
number
Returns
this
Inherited from
ts
Temporal.atTsTzSpanSetazimuth()
ts
azimuth(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:336
Returns the azimuth at each instant as a TFloat (Ptr). MEOS: tpoint_azimuth
Returns
number
bearingToPoint()
ts
bearingToPoint(wkt, invert?): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:344
Returns the bearing from each instant toward a fixed point as a TFloat (Ptr). MEOS: bearing_tpoint_point
Parameters
wkt
string
invert?
boolean = false
Returns
number
bearingToTemporal()
ts
bearingToTemporal(other): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:352
Returns the bearing between this and another TGeogPoint as a TFloat (Ptr). MEOS: bearing_tpoint_tpoint
Parameters
other
TGeogPoint
Returns
number
copy()
ts
copy(): this;Defined in: core/types/temporal/Temporal.ts:199
Returns a deep copy of this temporal value. MEOS: temporal_copy
Returns
this
Inherited from
ts
Temporal.copycumulativeLength()
ts
cumulativeLength(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:357
Returns the cumulative geodetic length as a TFloat (Ptr). MEOS: tpoint_cumulative_length
Returns
number
direction()
ts
direction(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:331
Returns the geodetic direction (azimuth) in radians. MEOS: tpoint_direction
Returns
number
durationMs()
ts
durationMs(ignoreGaps?): number;Defined in: core/types/temporal/Temporal.ts:385
Returns the total duration as a number of milliseconds.
Uses the hand-written temporal_duration_us_w wrapper which converts the MEOS Interval* return value to a plain int64 (total microseconds). The result is divided by 1000 to return milliseconds.
Pass ignoreGaps=true to sum only sequence durations, ignoring the time gaps between sequences in a SequenceSet.
MEOS: temporal_duration
Parameters
ignoreGaps?
boolean = false
Returns
number
Inherited from
ts
Temporal.durationMsendInstant()
ts
endInstant(): this;Defined in: core/types/temporal/Temporal.ts:286
Returns the last instant as a new instance of the same subtype. MEOS: temporal_end_instant
Returns
this
Inherited from
ts
Temporal.endInstantendTimestamp()
ts
endTimestamp(): number;Defined in: core/types/temporal/Temporal.ts:362
Returns the last timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_end_timestamptz
Returns
number
Inherited from
ts
Temporal.endTimestampendValue()
ts
endValue(): string;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:206
Returns the ending geometry as a WKT string. MEOS: tgeo_end_value + geo_as_text
Returns
string
Overrides
ts
Temporal.endValueequals()
ts
equals(other): boolean;Defined in: core/types/temporal/Temporal.ts:558
Pointer-based identity check. For value equality, use the generated teq_* / temporal_eq functions.
Parameters
other
Temporal<string>
Returns
boolean
Inherited from
ts
Temporal.equalseverDisjoint()
ts
everDisjoint(wkt): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:522
Returns true if this is ever disjoint from geometry wkt. MEOS: edisjoint_tgeo_geo
Parameters
wkt
string
Returns
boolean
everDisjointTemporal()
ts
everDisjointTemporal(other): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:546
Returns true if this is ever disjoint from other TGeogPoint. MEOS: edisjoint_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
boolean
everDWithin()
ts
everDWithin(wkt, dist): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:538
Returns true if this is ever within dist of geometry wkt. MEOS: edwithin_tgeo_geo
Parameters
wkt
string
dist
number
Returns
boolean
everDWithinTemporal()
ts
everDWithinTemporal(other, dist): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:556
Returns true if this is ever within dist of other TGeogPoint. MEOS: edwithin_tgeo_tgeo
Parameters
other
TGeogPoint
dist
number
Returns
boolean
everEq()
ts
everEq(wkt): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:446
Returns true if the point ever equals geometry wkt. MEOS: ever_eq_tgeo_geo
Parameters
wkt
string
Returns
boolean
everEqTemporal()
ts
everEqTemporal(other): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:478
Returns true if this ever equals other TGeogPoint. MEOS: ever_eq_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
boolean
everIntersects()
ts
everIntersects(wkt): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:530
Returns true if this ever intersects geometry wkt. MEOS: eintersects_tgeo_geo
Parameters
wkt
string
Returns
boolean
everIntersectsTemporal()
ts
everIntersectsTemporal(other): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:551
Returns true if this ever intersects other TGeogPoint. MEOS: eintersects_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
boolean
everNe()
ts
everNe(wkt): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:454
Returns true if the point is ever not equal to geometry wkt. MEOS: ever_ne_tgeo_geo
Parameters
wkt
string
Returns
boolean
everNeTemporal()
ts
everNeTemporal(other): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:483
Returns true if this ever differs from other TGeogPoint. MEOS: ever_ne_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
boolean
free()
ts
free(): void;Defined in: core/types/temporal/Temporal.ts:183
Frees the underlying MEOS allocation.
After calling free(), the instance must not be used. Calls the hand-written meos_free wrapper from res/bindings_c_header.txt.
Returns
void
Inherited from
ts
Temporal.freegetX()
ts
getX(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:367
Returns the longitude sequence as a TFloat (Ptr). MEOS: tpoint_get_x
Returns
number
getY()
ts
getY(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:372
Returns the latitude sequence as a TFloat (Ptr). MEOS: tpoint_get_y
Returns
number
getZ()
ts
getZ(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:377
Returns the altitude sequence as a TFloat (Ptr), or 0 if no Z. MEOS: tpoint_get_z
Returns
number
hasZ()
ts
hasZ(): boolean;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:398
Returns true if the points have a Z coordinate. MEOS: tspatial_to_stbox + stbox_hasz
Returns
boolean
instantN()
ts
instantN(n): this;Defined in: core/types/temporal/Temporal.ts:320
Returns the n-th instant (0-based index).
Uses the hand-written temporal_instant_n_w wrapper which converts the 0-based JS index to the 1-based index expected by MEOS internally.
MEOS: temporal_instant_n
Parameters
n
number
Returns
this
Inherited from
ts
Temporal.instantNinterpolation()
ts
interpolation(): TInterpolation;Defined in: core/types/temporal/Temporal.ts:248
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/tgeogpoint/TGeogPoint.ts:382
Returns true if the trajectory never self-intersects. MEOS: tpoint_is_simple
Returns
boolean
length()
ts
length(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:321
Returns the total geodetic length in metres. MEOS: tpoint_length
Returns
number
maxInstant()
ts
maxInstant(): this;Defined in: core/types/temporal/Temporal.ts:306
Returns the instant with the maximum value. MEOS: temporal_max_instant
Returns
this
Inherited from
ts
Temporal.maxInstantmerge()
ts
merge(other): this;Defined in: core/types/temporal/Temporal.ts:546
Merges this temporal with another, returning a new temporal. MEOS: temporal_merge
Parameters
other
this
Returns
this
Inherited from
ts
Temporal.mergeminInstant()
ts
minInstant(): this;Defined in: core/types/temporal/Temporal.ts:296
Returns the instant with the minimum value. MEOS: temporal_min_instant
Returns
this
Inherited from
ts
Temporal.minInstantminusGeo()
ts
minusGeo(wkt): TGeogPoint | null;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:434
Restrict to instants where the geometry differs from wkt. MEOS: tgeo_minus_geom
Parameters
wkt
string
Returns
TGeogPoint | null
minusGeom()
ts
minusGeom(wkt): TGeogPoint | null;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:418
Restrict to instants outside geometry wkt. MEOS: tpoint_minus_geom
Parameters
wkt
string
Returns
TGeogPoint | null
minusMax()
ts
minusMax(): this;Defined in: core/types/temporal/Temporal.ts:416
Excludes instants where the value is the maximum. MEOS: temporal_minus_max
Returns
this
Inherited from
ts
Temporal.minusMaxminusMin()
ts
minusMin(): this;Defined in: core/types/temporal/Temporal.ts:411
Excludes instants where the value is the minimum. MEOS: temporal_minus_min
Returns
this
Inherited from
ts
Temporal.minusMinminusTsTzSet()
ts
minusTsTzSet(s): this;Defined in: core/types/temporal/Temporal.ts:440
Excludes the given timestamp set. MEOS: temporal_minus_tstzset
Parameters
s
number
Returns
this
Inherited from
ts
Temporal.minusTsTzSetminusTsTzSpan()
ts
minusTsTzSpan(s): this;Defined in: core/types/temporal/Temporal.ts:445
Excludes the given timestamp span. MEOS: temporal_minus_tstzspan
Parameters
s
number
Returns
this
Inherited from
ts
Temporal.minusTsTzSpanminusTsTzSpanSet()
ts
minusTsTzSpanSet(ss): this;Defined in: core/types/temporal/Temporal.ts:450
Excludes the given timestamp span set. MEOS: temporal_minus_tstzspanset
Parameters
ss
number
Returns
this
Inherited from
ts
Temporal.minusTsTzSpanSetnad()
ts
nad(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:648
Returns the nearest approach distance (NAD) to geometry wkt. MEOS: nad_tgeo_geo
Parameters
wkt
string
Returns
number
nadSTBox()
ts
nadSTBox(box): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:656
Returns the nearest approach distance to an STBox (raw Ptr). MEOS: nad_tgeo_stbox
Parameters
box
number
Returns
number
nadTemporal()
ts
nadTemporal(other): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:661
Returns the nearest approach distance to another TGeogPoint. MEOS: nad_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
number
nai()
ts
nai(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:666
Returns the nearest approach instant to geometry wkt as a TGeogPoint (Ptr). MEOS: nai_tgeo_geo
Parameters
wkt
string
Returns
number
naiTemporal()
ts
naiTemporal(other): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:674
Returns the nearest approach instant to another TGeogPoint as a TGeogPoint (Ptr). MEOS: nai_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
number
numInstants()
ts
numInstants(): number;Defined in: core/types/temporal/Temporal.ts:263
Returns the number of distinct instants in this temporal value. MEOS: temporal_num_instants
Returns
number
Inherited from
ts
Temporal.numInstantsnumTimestamps()
ts
numTimestamps(): number;Defined in: core/types/temporal/Temporal.ts:334
Returns the number of distinct timestamps. MEOS: temporal_num_timestamps
Returns
number
Inherited from
ts
Temporal.numTimestampsround()
ts
round(maxdd): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:390
Returns a new TGeogPoint with coordinates rounded to maxdd decimal digits. MEOS: temporal_round
Parameters
maxdd
number
Returns
TGeogPoint
scaleTime()
ts
scaleTime(duration): this;Defined in: core/types/temporal/Temporal.ts:464
Scales the temporal domain to the given duration interval pointer. MEOS: temporal_scale_time
Parameters
duration
number
Returns
this
Inherited from
ts
Temporal.scaleTimesetInterp()
ts
setInterp(interp): this;Defined in: core/types/temporal/Temporal.ts:478
Returns a new temporal with the interpolation changed to interp. Pass TInterpolation values as numbers: Discrete=0, Stepwise=1, Linear=2. MEOS: temporal_set_interp
Parameters
interp
Returns
this
Inherited from
ts
Temporal.setInterpsetSrid()
ts
setSrid(srid): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:264
Returns a new TGeogPoint with the SRID set to srid. MEOS: tspatial_set_srid
Parameters
srid
number
Returns
TGeogPoint
shiftScaleTime()
ts
shiftScaleTime(shift, duration): this;Defined in: core/types/temporal/Temporal.ts:469
Shifts and scales the temporal domain. MEOS: temporal_shift_scale_time
Parameters
shift
number
duration
number
Returns
this
Inherited from
ts
Temporal.shiftScaleTimeshiftTime()
ts
shiftTime(shift): this;Defined in: core/types/temporal/Temporal.ts:459
Shifts the temporal domain by the given interval pointer. MEOS: temporal_shift_time
Parameters
shift
number
Returns
this
Inherited from
ts
Temporal.shiftTimespeed()
ts
speed(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:326
Returns the instantaneous speed as a TFloat (Ptr). MEOS: tpoint_speed
Returns
number
srid()
ts
srid(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:259
Returns the SRID. MEOS: tspatial_srid
Returns
number
startInstant()
ts
startInstant(): this;Defined in: core/types/temporal/Temporal.ts:276
Returns the first instant as a new instance of the same subtype. MEOS: temporal_start_instant
Returns
this
Inherited from
ts
Temporal.startInstantstartTimestamp()
ts
startTimestamp(): number;Defined in: core/types/temporal/Temporal.ts:347
Returns the first timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_start_timestamptz
Returns
number
Inherited from
ts
Temporal.startTimestampstartValue()
ts
startValue(): string;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:195
Returns the starting geometry as a WKT string. MEOS: tgeo_start_value + geo_as_text
Returns
string
Overrides
ts
Temporal.startValuetemporalContainedIn()
ts
temporalContainedIn(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:581
Returns a TBool (Ptr) that is true at instants where wkt contains this. MEOS: tcontains_geo_tgeo
Parameters
wkt
string
Returns
number
temporalContains()
ts
temporalContains(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:589
Returns a TBool (Ptr) that is true at instants where this contains wkt. MEOS: tcontains_tgeo_geo
Parameters
wkt
string
Returns
number
temporalContainsTemporal()
ts
temporalContainsTemporal(other): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:615
Returns a TBool (Ptr) for temporal containment between two TGeogPoints. MEOS: tcontains_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
number
temporalDisjoint()
ts
temporalDisjoint(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:565
Returns a TBool (Ptr) that is true at instants where this is disjoint from wkt. MEOS: tdisjoint_tgeo_geo
Parameters
wkt
string
Returns
number
temporalDisjointTemporal()
ts
temporalDisjointTemporal(other): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:605
Returns a TBool (Ptr) for temporal disjoint with other TGeogPoint. MEOS: tdisjoint_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
number
temporalDistance()
ts
temporalDistance(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:632
Returns a TFloat (Ptr) of the geodetic distance to geometry wkt at each instant. MEOS: tdistance_tgeo_geo
Parameters
wkt
string
Returns
number
temporalDistanceTemporal()
ts
temporalDistanceTemporal(other): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:643
Returns a TFloat (Ptr) of the distance to other TGeogPoint at each instant. MEOS: tdistance_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
number
temporalDWithin()
ts
temporalDWithin(wkt, dist): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:597
Returns a TBool (Ptr) that is true at instants where this is within dist of wkt. MEOS: tdwithin_tgeo_geo
Parameters
wkt
string
dist
number
Returns
number
temporalDWithinTemporal()
ts
temporalDWithinTemporal(other, dist): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:620
Returns a TBool (Ptr) for temporal dwithin with other TGeogPoint. MEOS: tdwithin_tgeo_tgeo
Parameters
other
TGeogPoint
dist
number
Returns
number
temporalEq()
ts
temporalEq(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:502
Returns a TBool (Ptr) that is true where this == wkt. MEOS: teq_tgeo_geo
Parameters
wkt
string
Returns
number
temporalIntersects()
ts
temporalIntersects(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:573
Returns a TBool (Ptr) that is true at instants where this intersects wkt. MEOS: tintersects_tgeo_geo
Parameters
wkt
string
Returns
number
temporalIntersectsTemporal()
ts
temporalIntersectsTemporal(other): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:610
Returns a TBool (Ptr) for temporal intersection with other TGeogPoint. MEOS: tintersects_tgeo_tgeo
Parameters
other
TGeogPoint
Returns
number
temporalNe()
ts
temporalNe(wkt): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:510
Returns a TBool (Ptr) that is true where this != wkt. MEOS: tne_tgeo_geo
Parameters
wkt
string
Returns
number
toInstant()
ts
toInstant(): this;Defined in: core/types/temporal/Temporal.ts:489
Converts to TInstant (must already be an instant). MEOS: temporal_to_tinstant
Returns
this
Inherited from
ts
Temporal.toInstanttoSequence()
ts
toSequence(interp): this;Defined in: core/types/temporal/Temporal.ts:494
Converts to TSequence with the given interpolation. MEOS: temporal_to_tsequence
Parameters
interp
Returns
this
Inherited from
ts
Temporal.toSequencetoSequenceSet()
ts
toSequenceSet(interp): this;Defined in: core/types/temporal/Temporal.ts:505
Converts to TSequenceSet with the given interpolation. MEOS: temporal_to_tsequenceset
Parameters
interp
Returns
this
Inherited from
ts
Temporal.toSequenceSettoSTBox()
ts
toSTBox(): number;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:269
Returns the bounding STBox as a raw Ptr. MEOS: tspatial_to_stbox
Returns
number
toString()
ts
toString(maxdd?): string;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:187
WKT string representation.
Parameters
maxdd?
number = 15
Maximum decimal digits for coordinates (default 15).
Returns
string
Overrides
ts
Temporal.toStringtoTGeography()
ts
toTGeography(): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:293
Converts to a tgeography (removes point constraint, keeps geography). MEOS: tgeogpoint_to_tgeography
Returns
TGeogPoint
trajectory()
ts
trajectory(unaryUnion?): string;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:313
Returns the trajectory as a WKT string (geodetic LineString or Point). MEOS: tpoint_trajectory + geo_as_text
Parameters
unaryUnion?
boolean = false
Returns
string
transform()
ts
transform(srid): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:278
Reprojects to the given SRID. MEOS: tspatial_transform
Parameters
srid
number
Returns
TGeogPoint
transformPipeline()
ts
transformPipeline(
pipelinestr,
srid,
isForward?): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:283
Reprojects using a PROJ pipeline string. MEOS: tspatial_transform_pipeline
Parameters
pipelinestr
string
srid
number
isForward?
boolean = true
Returns
TGeogPoint
valueAtTimestamp()
ts
valueAtTimestamp(t): string | null;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:248
Evaluates the temporal geography at a specific timestamp. Returns the WKT string or null if outside the domain. MEOS: temporal_at_timestamptz + tgeo_start_value + geo_as_text
Parameters
t
number
Returns
string | null
valueN()
ts
valueN(n): string | null;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:235
Returns the n-th distinct geometry value (0-based) as a WKT string. MEOS: tgeo_value_n + geo_as_text
Parameters
n
number
Returns
string | null
fromBaseTemporal()
ts
static fromBaseTemporal(wkt, domain): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:141
Create a TGeogPoint with constant geometry wkt spanning the same domain as domain. MEOS: tpoint_from_base_temp
Parameters
wkt
string
domain
TGeogPoint
Returns
TGeogPoint
fromBaseTime()
ts
static fromBaseTime(
wkt,
time,
type,
interp?): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:152
Create a TGeogPoint with constant geometry wkt over a time object. MEOS: tpointseq_from_base_tstzset / tstzspan / tpointseqset_from_base_tstzspanset
Parameters
wkt
string
time
number
type
"tstzset" | "tstzspan" | "tstzspanset"
interp?
number = 3
Returns
TGeogPoint
fromInstant()
ts
static fromInstant(wkt, timestamp): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:130
Create a TGeogPointInst from a WKT point string and a timestamp.
Parameters
wkt
string
WKT geography string (e.g. "POINT(2.35 48.85)").
timestamp
number
Microseconds since 2000-01-01 UTC. MEOS: tpointinst_make
Returns
TGeogPoint
fromMFJSON()
ts
static fromMFJSON(mfjson): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:119
Parse a TGeogPoint from a MF-JSON string. MEOS: tgeogpoint_from_mfjson
Parameters
mfjson
string
Returns
TGeogPoint
fromString()
ts
static fromString(wkt): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:111
Parse a TGeogPoint from a WKT/EWKT string. MEOS: tgeogpoint_in
Parameters
wkt
string
Returns
TGeogPoint
fromTGeography()
ts
static fromTGeography(temp): TGeogPoint;Defined in: core/types/basic/tgeogpoint/TGeogPoint.ts:301
Converts from tgeography to TGeogPoint (requires point geography). MEOS: tgeography_to_tgeogpoint
Parameters
temp
number
Returns
TGeogPoint