MobilityDB 1.3
Loading...
Searching...
No Matches
Functions

Spatial processing functions for static geometries. More...

Functions

uint32_t * geo_cluster_dbscan (const GSERIALIZED **geoms, uint32_t ngeoms, double tolerance, int minpoints)
 Return an array of integers specifying the cluster number assigned to the input geometries using the DBSCAN algorithm contains a geometry. More...
 
GSERIALIZED ** geo_cluster_intersecting (const GSERIALIZED **geoms, uint32_t ngeoms, int *count)
 Return an array of GeometryCollections partitioning the input geometries into connected clusters that are disjoint. More...
 
int * geo_cluster_kmeans (const GSERIALIZED **geoms, uint32_t n, uint32_t k)
 Return an array of integers specifying the cluster number assigned to the input geometries using the k-means algorithm contains a geometry. More...
 
GSERIALIZED ** geo_cluster_within (const GSERIALIZED **geoms, uint32_t ngeoms, double tolerance, int *count)
 Return an array of GeometryCollections partitioning the input geometries into clusters in which each geometry is within the specified distance of at least one other geometry in the same cluster. More...
 
GSERIALIZEDgeo_collect_garray (GSERIALIZED **gsarr, int nelems)
 Collect the array of geometries/geographies into a geo collection. More...
 
GSERIALIZEDgeo_geoN (const GSERIALIZED *geom, int n)
 Return a copy of the n-th composing geometry of a geometry. More...
 
GSERIALIZEDgeo_makeline_garray (GSERIALIZED **gsarr, int count)
 Return a line from an array of geometries/geographies. More...
 
int geo_ngeos (const GSERIALIZED *geo)
 Return the number of composing geometries of a geometry. More...
 
int geo_npoints (const GSERIALIZED *gs)
 Return the number of points of a geometry. More...
 
GSERIALIZEDgeom_array_union (GSERIALIZED **gsarr, int count)
 Return the union of an array of geometries. More...
 
GSERIALIZEDgeom_boundary (const GSERIALIZED *gs)
 Return the boundary of a geometry. More...
 
GSERIALIZEDgeom_buffer (const GSERIALIZED *gs, double size, char *params)
 Return a POLYGON or a MULTIPOLYGON that represents all points whose distance from a geometry/geography is less than or equal to a given distance. More...
 
GSERIALIZEDgeom_centroid (const GSERIALIZED *gs)
 Return the centroid of a geometry. More...
 
GSERIALIZEDgeom_convex_hull (const GSERIALIZED *gs)
 Return the convex hull of the geometry. More...
 
GSERIALIZEDgeom_difference2d (const GSERIALIZED *gs1, const GSERIALIZED *gs2)
 Return the difference of two geometries. More...
 
GSERIALIZEDgeom_intersection2d (const GSERIALIZED *gs1, const GSERIALIZED *gs2)
 Return the intersection of two geometries. More...
 
GSERIALIZEDgeom_shortestline2d (const GSERIALIZED *gs1, const GSERIALIZED *gs2)
 Return the shortest 2D line between two geometries. More...
 
GSERIALIZEDgeom_shortestline3d (const GSERIALIZED *gs1, const GSERIALIZED *gs2)
 Return the shortest line between two 3D geometries. More...
 
GSERIALIZEDgeom_unary_union (GSERIALIZED *gs, double prec)
 Return the unary union of a geometry. More...
 
GSERIALIZEDline_interpolate_point (GSERIALIZED *gs, double fraction, bool repeat)
 Interpolate one or several points from a line. More...
 
double line_locate_point (const GSERIALIZED *gs1, const GSERIALIZED *gs2)
 Locate a point into a line. More...
 
GSERIALIZEDline_substring (const GSERIALIZED *gs, double from, double to)
 Return a subline from a line. More...
 

Detailed Description

Spatial processing functions for static geometries.