PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwcircstring_addpoint()

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

Definition at line 226 of file lwcircstring.c.

227 {
228  POINTARRAY *newpa;
229  LWCIRCSTRING *ret;
230 
231  newpa = ptarray_addPoint(curve->points,
232  getPoint_internal(point->point, 0),
233  FLAGS_NDIMS(point->flags), where);
234  ret = lwcircstring_construct(curve->srid, NULL, newpa);
235 
236  return ret;
237 }
uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
Definition: ptarray.c:1750
POINTARRAY * ptarray_addPoint(const POINTARRAY *pa, uint8_t *p, size_t pdims, uint32_t where)
Add a point in a pointarray.
Definition: ptarray.c:503
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:50
int32_t srid
Definition: liblwgeom.h:446
POINTARRAY * points
Definition: liblwgeom.h:447
POINTARRAY * point
Definition: liblwgeom.h:414
uint8_t flags
Definition: liblwgeom.h:411

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: