MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
pose.h File Reference
#include <postgres.h>
#include <meos.h>
#include <meos_pose.h>

Go to the source code of this file.

Data Structures

struct  Pose
 Basic functions for static pose objects. More...
 

Macros

#define DatumGetPoseP(X)   ((Pose *) DatumGetPointer(X))
 
#define PG_GETARG_POSE_P(X)   DatumGetPoseP(PG_GETARG_DATUM(X))
 
#define PG_RETURN_POSE_P(X)   PG_RETURN_POINTER(X)
 
#define PosePGetDatum(X)   PointerGetDatum(X)
 

Functions

Datum datum_pose_point (Datum pose)
 Convert a pose into a geometry point. More...
 
Datum datum_pose_rotation (Datum pose)
 Convert a pose into a geometry point. More...
 
Datum datum_pose_round (Datum pose, Datum size)
 Return a pose with the precision of the values set to a number of decimal places. More...
 
bool ensure_valid_pose_geo (const Pose *pose, const GSERIALIZED *gs)
 Ensure the validity of a pose and a geometry/geography. More...
 
bool ensure_valid_pose_pose (const Pose *pose1, const Pose *pose2)
 Ensure the validity of two circular poses. More...
 
bool ensure_valid_pose_stbox (const Pose *pose, const STBox *box)
 Ensure the validity of a pose and a spatiotemporal box. More...
 
bool ensure_valid_poseset_pose (const Set *s, const Pose *pose)
 Return true if a set and a pose are valid for set operations. More...
 
bool pose_collinear (const Pose *pose1, const Pose *pose2, const Pose *pose3, double ratio)
 Return true if the three values are collinear. More...
 
Datum pose_distance (Datum pose1, Datum pose2)
 Return the distance between the two poses. More...
 
Posepose_parse (const char **str, bool end)
 Parse a pose value from the buffer. More...
 
bool pose_set_stbox (const Pose *pose, STBox *box)
 Set the spatiotemporal box from the pose value. More...
 
bool pose_timestamptz_set_stbox (const Pose *pose, TimestampTz t, STBox *box)
 Return in the last argument a spatiotemporal box constructed from a pose and a timestamptz. More...
 
bool pose_tstzspan_set_stbox (const Pose *pose, const Span *p, STBox *box)
 Return in the last argument a spatiotemporal box constructed from a pose and a timestamptz span. More...
 
char * pose_wkt_out (const Pose *pose, bool extended, int maxdd)
 Output a pose in the Well-Known Text (WKT) representation. More...
 
void posearr_set_stbox (const Datum *values, int count, STBox *box)
 Return in the last argument a spatiotemporal box contructed from an array of poses. More...
 
Poseposesegm_interpolate (const Pose *start, const Pose *end, double ratio)
 Return the pose value interpolated from the two poses and a ratio. More...
 
long double posesegm_locate (const Pose *start, const Pose *end, const Pose *value)
 Return a float in (0,1) if a network point segment intersects a network point, return -1.0 if the network point is not located in the segment or if it is approximately equal to the start or the end valuess. More...