PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWGEOM* lwgeom_grid ( const LWGEOM lwgeom,
const gridspec grid 

Definition at line 2236 of file lwgeom.c.

References lwgeom_clone_deep(), and lwgeom_grid_in_place().

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

2237 {
2238  LWGEOM *lwgeom_out = lwgeom_clone_deep(lwgeom);
2239  lwgeom_grid_in_place(lwgeom_out, grid);
2240  return lwgeom_out;
2241 }
void lwgeom_grid_in_place(LWGEOM *geom, const gridspec *grid)
Definition: lwgeom.c:2138
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep-clone an LWGEOM object.
Definition: lwgeom.c:513

Here is the call graph for this function:

Here is the caller graph for this function: