175 CU_ASSERT(hull == NULL);
179 CU_ASSERT(
raster != NULL);
188 CU_ASSERT(
raster != NULL);
197 CU_ASSERT(
raster != NULL);
206 CU_ASSERT(
raster != NULL);
215 CU_ASSERT_EQUAL(poly->
nrings, 1);
217 ring = poly->
rings[0];
218 CU_ASSERT(ring != NULL);
219 CU_ASSERT_EQUAL(ring->
npoints, 5);
222 CU_ASSERT_DOUBLE_EQUAL(pt.
x, 0.5, DBL_EPSILON);
223 CU_ASSERT_DOUBLE_EQUAL(pt.
y, 0.5, DBL_EPSILON);
226 CU_ASSERT_DOUBLE_EQUAL(pt.
x, 256.5, DBL_EPSILON);
227 CU_ASSERT_DOUBLE_EQUAL(pt.
y, 1280.5, DBL_EPSILON);
230 CU_ASSERT_DOUBLE_EQUAL(pt.
x, 1280.5, DBL_EPSILON);
231 CU_ASSERT_DOUBLE_EQUAL(pt.
y, 1536.5, DBL_EPSILON);
234 CU_ASSERT_DOUBLE_EQUAL(pt.
x, 1024.5, DBL_EPSILON);
235 CU_ASSERT_DOUBLE_EQUAL(pt.
y, 256.5, DBL_EPSILON);
238 CU_ASSERT_DOUBLE_EQUAL(pt.
x, 0.5, DBL_EPSILON);
239 CU_ASSERT_DOUBLE_EQUAL(pt.
y, 0.5, DBL_EPSILON);
void lwgeom_free(LWGEOM *geom)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
LWPOLY * lwgeom_as_lwpoly(const LWGEOM *lwgeom)
int32_t rt_raster_get_srid(rt_raster raster)
Get raster's SRID.
void rt_raster_set_scale(rt_raster raster, double scaleX, double scaleY)
Set scale in projection units.
void rt_raster_set_skews(rt_raster raster, double skewX, double skewY)
Set skews about the X and Y axis.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
rt_errorstate rt_raster_get_convex_hull(rt_raster raster, LWGEOM **hull)
Get raster's convex hull.
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
void cu_free_raster(rt_raster raster)