PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWPOINT * lwpoint_grid ( LWPOINT point,
gridspec grid 
)

Definition at line 463 of file lwgeom_functions_analytic.c.

References lwpoint_construct(), LWPOINT::point, ptarray_grid(), and LWPOINT::srid.

Referenced by lwgeom_grid().

464 {
465  LWPOINT *opoint;
466  POINTARRAY *opa;
467 
468  opa = ptarray_grid(point->point, grid);
469 
470  /* TODO: grid bounding box ? */
471  opoint = lwpoint_construct(point->srid, NULL, opa);
472 
473  POSTGIS_DEBUG(2, "lwpoint_grid called");
474 
475  return opoint;
476 }
POINTARRAY * ptarray_grid(POINTARRAY *pa, gridspec *grid)
POINTARRAY * point
Definition: liblwgeom.h:367
int32_t srid
Definition: liblwgeom.h:366
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:96

Here is the call graph for this function:

Here is the caller graph for this function: