PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ lwgeom_grid()

LWGEOM* lwgeom_grid ( const LWGEOM lwgeom,
const gridspec grid 

Definition at line 2243 of file lwgeom.c.

References lwgeom_clone_deep(), lwgeom_grid_in_place(), and lwgeom_subdivide_recursive().

Referenced by LWGEOM_snaptogrid(), LWGEOM_snaptogrid_pointoff(), lwgeom_to_text(), and test_grid().

2244 {
2245  LWGEOM *lwgeom_out = lwgeom_clone_deep(lwgeom);
2246  lwgeom_grid_in_place(lwgeom_out, grid);
2247  return lwgeom_out;
2248 }
void lwgeom_grid_in_place(LWGEOM *geom, const gridspec *grid)
Definition: lwgeom.c:2145
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep-clone an LWGEOM object.
Definition: lwgeom.c:520
Here is the call graph for this function:
Here is the caller graph for this function: