PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ square()

static LWGEOM* square ( double  origin_x,
double  origin_y,
double  size,
int  cell_i,
int  cell_j,
int32_t  srid 
)
static

Definition at line 166 of file lwgeom_generate_grid.c.

167 {
168  double ll_x = origin_x + (size * cell_i);
169  double ll_y = origin_y + (size * cell_j);
170  double ur_x = origin_x + (size * (cell_i + 1));
171  double ur_y = origin_y + (size * (cell_j + 1));
172  return (LWGEOM*)lwpoly_construct_envelope(srid, ll_x, ll_y, ur_x, ur_y);
173 }
LWPOLY * lwpoly_construct_envelope(int32_t srid, double x1, double y1, double x2, double y2)
Definition: lwpoly.c:98

References lwpoly_construct_envelope().

Referenced by ST_ShapeGrid(), and ST_Square().

Here is the call graph for this function:
Here is the caller graph for this function: