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

◆ lwcircstring_addpoint()

LWCIRCSTRING * lwcircstring_addpoint ( LWCIRCSTRING curve,
LWPOINT point,
uint32_t  where 
)

Definition at line 220 of file lwcircstring.c.

221{
222 POINTARRAY *newpa;
223 LWCIRCSTRING *ret;
224
225 newpa = ptarray_addPoint(curve->points,
226 getPoint_internal(point->point, 0),
227 FLAGS_NDIMS(point->flags), where);
228 ret = lwcircstring_construct(curve->srid, NULL, newpa);
229
230 return ret;
231}
#define FLAGS_NDIMS(flags)
Definition liblwgeom.h:179
POINTARRAY * ptarray_addPoint(const POINTARRAY *pa, uint8_t *p, size_t pdims, uint32_t where)
Add a point in a pointarray.
Definition ptarray.c:530
LWCIRCSTRING * lwcircstring_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
Definition lwinline.h:75
int32_t srid
Definition liblwgeom.h:508
POINTARRAY * points
Definition liblwgeom.h:507
POINTARRAY * point
Definition liblwgeom.h:471
lwflags_t flags
Definition liblwgeom.h:473

References LWPOINT::flags, FLAGS_NDIMS, getPoint_internal(), lwcircstring_construct(), LWPOINT::point, LWCIRCSTRING::points, ptarray_addPoint(), and LWCIRCSTRING::srid.

Here is the call graph for this function: