144{
145 bytea *bytea_data;
147 int data_len = 0;
148
150 void *result = NULL;
151
153
154 bytea_data = (bytea *) PG_GETARG_BYTEA_P(0);
155 data = (uint8_t *) VARDATA(bytea_data);
156 data_len = VARSIZE_ANY_EXHDR(bytea_data);
157
159 PG_FREE_IF_COPY(bytea_data, 0);
160 if (raster == NULL)
161 PG_RETURN_NULL();
162
165 if (result == NULL)
166 PG_RETURN_NULL();
167
169 PG_RETURN_POINTER(result);
170}
rt_raster rt_raster_from_wkb(const uint8_t *wkb, uint32_t wkbsize)
Construct an rt_raster from a binary WKB representation.
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
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): ...
#define POSTGIS_RT_DEBUG(level, msg)