PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWCIRCSTRING * lwcirc_grid ( LWCIRCSTRING line,
gridspec grid 
)

Definition at line 360 of file lwgeom_functions_analytic.c.

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

Referenced by lwgeom_grid().

361 {
362  LWCIRCSTRING *oline;
363  POINTARRAY *opa;
364 
365  opa = ptarray_grid(line->points, grid);
366 
367  /* Skip line3d with less then 2 points */
368  if ( opa->npoints < 2 ) return NULL;
369 
370  /* TODO: grid bounding box... */
371  oline = lwcircstring_construct(line->srid, NULL, opa);
372 
373  return oline;
374 }
POINTARRAY * ptarray_grid(POINTARRAY *pa, gridspec *grid)
int npoints
Definition: liblwgeom.h:327
int32_t srid
Definition: liblwgeom.h:399
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:38
POINTARRAY * points
Definition: liblwgeom.h:400

Here is the call graph for this function:

Here is the caller graph for this function: