Definition at line 435 of file rt_util.c.
References lwpoly_construct(), rt_envelope::MaxX, rt_envelope::MaxY, rt_envelope::MinX, rt_envelope::MinY, ptarray_construct(), ptarray_set_point4d(), rtalloc(), rterror(), SRID_UNKNOWN, POINT4D::x, and POINT4D::y.
Referenced by rt_raster_compute_skewed_raster(), and rt_raster_gdal_rasterize().
445 rterror(
"rt_util_envelope_to_lwpoly: Out of memory building envelope's geometry");
450 rterror(
"rt_util_envelope_to_lwpoly: Out of memory building envelope's geometry ring");
479 rterror(
"rt_util_envelope_to_lwpoly: Could not build envelope's geometry");
void ptarray_set_point4d(POINTARRAY *pa, int n, const POINT4D *p4d)
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 rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.
LWPOLY * lwpoly_construct(int srid, GBOX *bbox, uint32_t nrings, POINTARRAY **points)
#define SRID_UNKNOWN
Unknown SRID value.