1040 double min_dist = FLT_MAX;
1041 double max_dist = FLT_MAX;
1056 circ_tree1, circ_tree2, threshold_radians,
1057 &min_dist, &max_dist, &closest1, &closest2);
char result[OUT_DOUBLE_BUFFER_SIZE]
int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
LWPOINT * lwpoint_make2d(int32_t srid, double x, double y)
void circ_tree_free(CIRC_NODE *node)
Recurse from top of node tree and free all children.
static double circ_tree_distance_tree_internal(const CIRC_NODE *n1, const CIRC_NODE *n2, double threshold, double *min_dist, double *max_dist, GEOGRAPHIC_POINT *closest1, GEOGRAPHIC_POINT *closest2)
CIRC_NODE * lwgeom_calculate_circ_tree(const LWGEOM *lwgeom)
Point in spherical coordinates on the world.
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.