PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwcircstring_grid()

LWCIRCSTRING* lwcircstring_grid ( const LWCIRCSTRING line,
const gridspec grid 
)

Definition at line 305 of file lwcircstring.c.

References lwcircstring_construct(), POINTARRAY::npoints, LWCIRCSTRING::points, ptarray_grid(), and LWCIRCSTRING::srid.

Referenced by lwgeom_grid().

306 {
307  LWCIRCSTRING *oline;
308  POINTARRAY *opa;
309 
310  opa = ptarray_grid(line->points, grid);
311 
312  /* Skip line3d with less then 2 points */
313  if ( opa->npoints < 2 ) return NULL;
314 
315  /* TODO: grid bounding box... */
316  oline = lwcircstring_construct(line->srid, NULL, opa);
317 
318  return oline;
319 }
int npoints
Definition: liblwgeom.h:355
int32_t srid
Definition: liblwgeom.h:427
POINTARRAY * ptarray_grid(const POINTARRAY *pa, const gridspec *grid)
Definition: ptarray.c:1843
POINTARRAY * points
Definition: liblwgeom.h:428
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:38
Here is the call graph for this function:
Here is the caller graph for this function: