57 uint16 width = 0, height = 0;
58 double ipx = 0, ipy = 0, scalex = 0, scaley = 0, skewx = 0, skewy = 0;
64 elog(ERROR,
"RASTER_makeEmpty: ST_MakeEmptyRaster requires 9 args");
69 width = PG_GETARG_UINT16(0);
72 height = PG_GETARG_UINT16(1);
75 ipx = PG_GETARG_FLOAT8(2);
78 ipy = PG_GETARG_FLOAT8(3);
81 scalex = PG_GETARG_FLOAT8(4);
84 scaley = PG_GETARG_FLOAT8(5);
87 skewx = PG_GETARG_FLOAT8(6);
90 skewy = PG_GETARG_FLOAT8(7);
93 srid = PG_GETARG_INT32(8);
96 width, height, ipx, ipy, scalex, scaley,
113 SET_VARSIZE(pgraster, pgraster->
size);
114 PG_RETURN_POINTER(pgraster);
void * rt_raster_serialize(rt_raster raster)
Return this raster in serialized form.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
void rt_raster_set_skews(rt_raster raster, double skewX, double skewY)
Set skews about the X and Y axis.
#define POSTGIS_RT_DEBUGF(level, msg,...)
void rt_raster_set_scale(rt_raster raster, double scaleX, double scaleY)
Set scale in projection units.
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
#define SRID_UNKNOWN
Unknown SRID value.
void rt_raster_set_srid(rt_raster raster, int32_t srid)
Set raster's SRID.
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.