Function initializing 3dshortestline and 3dlongestline calculations.
112 LWDEBUG(2,
"lw_dist3d_distanceline is called");
113 double x1,x2,y1,y2, z1, z2,
x,
y;
114 double initdistance = ( mode ==
DIST_MIN ? FLT_MAX : -1.0);
129 lwnotice(
"One or both of the geometries is missing z-value. The unknown z-value will be regarded as \"any value\"");
141 lwerror(
"Some unspecified error.");
155 lwerror(
"Some unspecified error.");
170 lwerror(
"Some unspecified error.");
182 lwerror(
"Some unspecified error.");
189 LWDEBUG(3,
"didn't find geometries to measure between, returning null");
int lw_dist2d_comp(const LWGEOM *lw1, const LWGEOM *lw2, DISTPTS *dl)
This function just deserializes geometries Bboxes is not checked here since it is the subgeometries b...
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
LWLINE * lwline_from_ptarray(int srid, uint32_t npoints, LWPOINT **points)
#define LWDEBUG(level, msg)
Structure used in distance-calculations.
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
LWGEOM * lw_dist2d_distanceline(const LWGEOM *lw1, const LWGEOM *lw2, int srid, int mode)
Function initializing shortestline and longestline calculations.
LWPOINT * lwpoint_make3dz(int srid, double x, double y, double z)
int lw_dist3d_recursive(const LWGEOM *lwg1, const LWGEOM *lwg2, DISTPTS3D *dl)
This is a recursive function delivering every possible combination of subgeometries.
static LWGEOM * create_v_line(const LWGEOM *lwgeom, double x, double y, int srid)
This function is used to create a vertical line used for cases where one if the geometries lacks z-va...
Structure used in distance-calculations.
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.