32 #ifndef __TPOINT_DISTANCE_H__ 33 #define __TPOINT_DISTANCE_H__ 36 #include <catalog/pg_type.h> 39 #include <liblwgeom.h> 45 int mode,
long double *fraction);
55 const TInstant *end2,
bool linear2, Datum *value, TimestampTz *t);
68 const Temporal *temp, GSERIALIZED *gs);
Datum shortestline_tpoint_geo(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the temporal instant point and the geo...
Definition: tpoint_distance.c:1242
Temporal * distance_tpoint_geo_internal(const Temporal *temp, Datum geo)
Returns the temporal distance between the temporal point and the geometry/geography point (distpatch ...
Definition: tpoint_distance.c:391
bool tpoint_min_dist_at_timestamp(const TInstant *start1, const TInstant *end1, bool linear1, const TInstant *start2, const TInstant *end2, bool linear2, Datum *value, TimestampTz *t)
Returns the value and timestamp at which the two temporal point segments are at the minimum distance ...
Definition: tpoint_distance.c:373
Datum distance_tpoint_geo(PG_FUNCTION_ARGS)
Returns the temporal distance between the temporal point and the geometry/geography point...
Definition: tpoint_distance.c:438
Datum NAI_geo_tpoint(PG_FUNCTION_ARGS)
Returns the nearest approach instant between the geometry and the temporal point. ...
Definition: tpoint_distance.c:813
Datum NAD_geo_stbox(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the geometry and the spatiotemporal box...
Definition: tpoint_distance.c:978
double lw_dist_sphere_point_dist(const LWGEOM *lw1, const LWGEOM *lw2, int mode, long double *fraction)
Compute the projected point and the distance between the closest point (geodetic version).
Definition: tpoint_distance.c:119
Datum shortestline_tpoint_tpoint(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the temporal points.
Definition: tpoint_distance.c:1281
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: temporal.h:241
Structure to represent spatiotemporal boxes.
Definition: stbox.h:51
Datum NAD_geo_tpoint(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the geometry and the temporal point.
Definition: tpoint_distance.c:910
Datum NAD_tpoint_stbox(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the temporal point and the spatio-temporal box...
Definition: tpoint_distance.c:1149
double NAD_stbox_stbox_internal(const STBOX *box1, const STBOX *box2)
Returns the nearest approach distance between the spatio-temporal boxes (internal function) ...
Definition: tpoint_distance.c:1011
Functions for temporal points.
Basic functions for temporal types of any subtype.
Datum NAD_stbox_geo(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the spatiotemporal box and the geometry.
Definition: tpoint_distance.c:995
Datum distance_tpoint_tpoint(PG_FUNCTION_ARGS)
Returns the temporal distance between the two temporal points.
Definition: tpoint_distance.c:482
Datum distance_geo_tpoint(PG_FUNCTION_ARGS)
Returns the temporal distance between the geometry/geography point and the temporal point...
Definition: tpoint_distance.c:415
Datum NAI_tpoint_geo(PG_FUNCTION_ARGS)
Returns the nearest approach instant between the temporal point and the geometry. ...
Definition: tpoint_distance.c:831
Datum NAD_stbox_stbox(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the spatio-temporal boxes.
Definition: tpoint_distance.c:1062
TInstant * NAI_tpoint_geo_internal(FunctionCallInfo fcinfo, const Temporal *temp, GSERIALIZED *gs)
Returns the nearest approach instant between the temporal point and the geometry (dispatch function) ...
Definition: tpoint_distance.c:782
Datum NAI_tpoint_tpoint(PG_FUNCTION_ARGS)
Returns the nearest approach instant between the temporal points.
Definition: tpoint_distance.c:848
bool shortestline_tpoint_tpoint_internal(const Temporal *temp1, const Temporal *temp2, Datum *line)
Returns the line connecting the nearest approach point between the temporal points.
Definition: tpoint_distance.c:1259
Datum NAD_tpoint_tpoint(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the temporal points.
Definition: tpoint_distance.c:1167
Datum NAD_stbox_tpoint(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the spatio-temporal box and the temporal point...
Definition: tpoint_distance.c:1130
Datum NAD_tpoint_geo(PG_FUNCTION_ARGS)
Returns the nearest approach distance between the temporal point and the geometry.
Definition: tpoint_distance.c:928
Datum shortestline_geo_tpoint(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the geometry and the temporal instant ...
Definition: tpoint_distance.c:1224
Temporal * distance_tpoint_tpoint_internal(const Temporal *temp1, const Temporal *temp2)
Returns the temporal distance between the two temporal points (dispatch function) ...
Definition: tpoint_distance.c:460
Structure to represent temporal values of instant subtype.
Definition: temporal.h:253