MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
tgeo_spatialfuncs.c File Reference

Spatial functions for temporal geos. More...

#include <assert.h>
#include <postgres.h>
#include <funcapi.h>
#include <liblwgeom.h>
#include <meos.h>
#include <meos_internal.h>
#include <meos_internal_geo.h>
#include "temporal/set.h"
#include "temporal/span.h"
#include "temporal/temporal.h"
#include "temporal/type_util.h"
#include "geo/tspatial.h"
#include "geo/tgeo_spatialfuncs.h"
#include "geo/stbox.h"
#include "pg_temporal/temporal.h"
#include "pg_temporal/type_util.h"
#include "pg_geo/postgis.h"

Functions

Datum Bearing_point_point (PG_FUNCTION_ARGS)
 Return the temporal bearing between two geometry/geography points. More...
 
Datum Bearing_point_tpoint (PG_FUNCTION_ARGS)
 Return the temporal bearing between a geometry/geography point and a temporal point @sqlfn bearing() More...
 
Datum Bearing_tpoint_point (PG_FUNCTION_ARGS)
 Return the temporal bearing between a temporal point and a geometry/geography point @sqlfn bearing() More...
 
Datum Bearing_tpoint_tpoint (PG_FUNCTION_ARGS)
 Return the temporal bearing between two temporal points @sqlfn bearing() More...
 
Datum Geo_round (PG_FUNCTION_ARGS)
 Return a geometry/geography with the precision of the coordinates set to a number of decimal places @sqlfn round() More...
 
Datum Geomeas_to_tpoint (PG_FUNCTION_ARGS)
 Convert a geometry/geography with M measure into a temporal point @sqlfn tgeompoint(), tgeogpoint() More...
 
Datum Tgeo_affine (PG_FUNCTION_ARGS)
 Return the 3D affine transform of a temporal point to do things like translate, rotate, scale in one step @sqlfn affine() More...
 
Datum Tgeo_at_geom (PG_FUNCTION_ARGS)
 Return a temporal geo restricted to a geometry @sqlfn atGeometry() More...
 
Datum Tgeo_at_stbox (PG_FUNCTION_ARGS)
 Return a temporal geo restricted to a spatiotemporal box @sqlfn atStbox() More...
 
Datum Tgeo_centroid (PG_FUNCTION_ARGS)
 Return the centroid of a temporal geo as a temporal point @sqlfn centroid() More...
 
Datum Tgeo_convex_hull (PG_FUNCTION_ARGS)
 Return the convex hull of a temporal geo @sqlfn convexHull() More...
 
Datum Tgeo_minus_geom (PG_FUNCTION_ARGS)
 Return a temporal geo restricted to the complement of a geometry @sqlfn minusGeometry() More...
 
Datum Tgeo_minus_stbox (PG_FUNCTION_ARGS)
 Return a temporal geo restricted to the complement of a spatiotemporal box @sqlfn minusStbox() More...
 
static Datum Tgeo_restrict_geom (FunctionCallInfo fcinfo, bool atfunc)
 Return a temporal geo restricted to (the complement of) a geometry. More...
 
static Datum Tgeo_restrict_stbox (FunctionCallInfo fcinfo, bool atfunc)
 Return a temporal geo restricted to a spatiotemporal box @sqlfn atStbox() More...
 
Datum Tgeo_scale (PG_FUNCTION_ARGS)
 Return the temporal geo rotated counter-clockwise around the origin point @sqlfn scale() More...
 
Datum Tgeo_to_tpoint (PG_FUNCTION_ARGS)
 Convert a temporal geo into a temporal point @sqlfn tgeompoint(), tgeogpoint() More...
 
Datum Tgeo_traversed_area (PG_FUNCTION_ARGS)
 Return the area traversed by a temporal geo @sqlfn traversedArea() More...
 
Datum Tgeography_to_tgeometry (PG_FUNCTION_ARGS)
 Convert a temporal geography into a temporal geometry @sqlfn tgeometry() More...
 
Datum Tgeometry_to_tgeography (PG_FUNCTION_ARGS)
 Convert a temporal geometry into a temporal geography @sqlfn tgeography() More...
 
Datum Tpoint_angular_difference (PG_FUNCTION_ARGS)
 Return the temporal angular difference of a temporal geometry point @sqlfn angularDifference() More...
 
Datum Tpoint_AsMVTGeom (PG_FUNCTION_ARGS)
 Return a temporal point transformed to the Mapbox Vector Tile representation @sqlfn asMVTGeom() More...
 
Datum Tpoint_azimuth (PG_FUNCTION_ARGS)
 Return the temporal azimuth of a temporal geometry point @sqlfn azimuth() More...
 
Datum Tpoint_cumulative_length (PG_FUNCTION_ARGS)
 Return the cumulative length traversed by a temporal sequence (set) point @sqlfn cumulativeLength() More...
 
Datum Tpoint_direction (PG_FUNCTION_ARGS)
 Return the azimuth between the first and the last points a temporal point @sqlfn direction() More...
 
Datum Tpoint_get_x (PG_FUNCTION_ARGS)
 Return the X coordinates of a temporal point as a temporal float @sqlfn getX() More...
 
Datum Tpoint_get_y (PG_FUNCTION_ARGS)
 Return the Y coordinates of a temporal point as a temporal float @sqlfn getY() More...
 
Datum Tpoint_get_z (PG_FUNCTION_ARGS)
 Return the Z coordinates of a temporal point as a temporal float @sqlfn getZ() More...
 
Datum Tpoint_is_simple (PG_FUNCTION_ARGS)
 Return true if a temporal point does not self-intersect @sqlfn isSimple() More...
 
Datum Tpoint_length (PG_FUNCTION_ARGS)
 Return the length traversed by a temporal sequence (set) point @sqlfn length() More...
 
Datum Tpoint_make_simple (PG_FUNCTION_ARGS)
 Return the array of non self-intersecting fragments of a temporal point @sqlfn makeSimple() More...
 
Datum Tpoint_speed (PG_FUNCTION_ARGS)
 Return the speed of a temporal point @sqlfn speed() More...
 
Datum Tpoint_tfloat_to_geomeas (PG_FUNCTION_ARGS)
 Convert a geometry/geography with M measure into a temporal point and a temporal float @sqlfn geoMeasure() More...
 
Datum Tpoint_to_geomeas (PG_FUNCTION_ARGS)
 Convert a temporal point into a geometry/geography with M measure @sqlfn geometry(), geography() More...
 
Datum Tpoint_to_tgeo (PG_FUNCTION_ARGS)
 Convert a temporal point into a temporal geo @sqlfn tgeometry(), tgeography() More...
 
Datum Tpoint_trajectory (PG_FUNCTION_ARGS)
 Return the trajectory of a temporal point @sqlfn trajectory() More...
 
Datum Tpoint_twcentroid (PG_FUNCTION_ARGS)
 Return the time-weighed centroid of a temporal geometry point @sqlfn twCentroid() More...
 

Detailed Description

Spatial functions for temporal geos.