PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcircstring_grid()

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

Definition at line 318 of file lwcircstring.c.

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

Referenced by lwgeom_grid().

319 {
320  LWCIRCSTRING *oline;
321  POINTARRAY *opa;
322 
323  opa = ptarray_grid(line->points, grid);
324 
325  /* Skip line3d with less then 2 points */
326  if ( opa->npoints < 2 ) return NULL;
327 
328  /* TODO: grid bounding box... */
329  oline = lwcircstring_construct(line->srid, NULL, opa);
330 
331  return oline;
332 }
int npoints
Definition: liblwgeom.h:371
int32_t srid
Definition: liblwgeom.h:443
POINTARRAY * ptarray_grid(const POINTARRAY *pa, const gridspec *grid)
Definition: ptarray.c:1890
POINTARRAY * points
Definition: liblwgeom.h:444
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwcircstring.c:51
Here is the call graph for this function:
Here is the caller graph for this function: