79 for (uint32_t i = 0; i < 7; ++i)
81 double height = size * 2 *
H;
83 pt.
x = origin_x + size * (1.5 * cell_i +
hex_x[i]);
84 pt.
y = origin_y + height * (cell_j + 0.5 * (abs(cell_i) % 2) +
hex_y[i]);
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
POINTARRAY * ptarray_construct(char hasz, char hasm, uint32_t npoints)
Construct an empty pointarray, allocating storage and setting the npoints, but not filling in any inf...
void * lwalloc(size_t size)
LWPOLY * lwpoly_construct(int32_t srid, GBOX *bbox, uint32_t nrings, POINTARRAY **points)
void ptarray_set_point4d(POINTARRAY *pa, uint32_t n, const POINT4D *p4d)
static const double hex_x[]
static const double hex_y[]