PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ _lwt_describe_point()

static bool _lwt_describe_point ( const LWPOINT pt,
char *  buf,
size_t  bufsize 
)
static

Definition at line 89 of file lwgeom_topo.c.

90{
91 POINT2D p;
92
93 if (!pt || !pt->point || !pt->point->npoints)
94 return false;
95
96 getPoint2d_p(pt->point, 0, &p);
97 snprintf(buf, bufsize, " at POINT(%.15g %.15g)", p.x, p.y);
98 return true;
99}
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
Definition lwgeom_api.c:342
POINTARRAY * point
Definition liblwgeom.h:471
double y
Definition liblwgeom.h:390
double x
Definition liblwgeom.h:390
uint32_t npoints
Definition liblwgeom.h:427

References getPoint2d_p(), POINTARRAY::npoints, LWPOINT::point, POINT2D::x, and POINT2D::y.

Referenced by _lwt_AddIsoNode().

Here is the call graph for this function:
Here is the caller graph for this function: