557 bool hasnoband =
FALSE;
560 if (PG_ARGISNULL(0)) PG_RETURN_NULL();
567 (errcode(ERRCODE_OUT_OF_MEMORY),
568 errmsg(
"RASTER_hasNoBand: Could not deserialize raster")));
569 PG_FREE_IF_COPY(pgraster, 0);
574 bandindex = PG_GETARG_INT32(1);
578 PG_FREE_IF_COPY(pgraster, 0);
580 PG_RETURN_BOOL(hasnoband);
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
int rt_raster_has_band(rt_raster raster, int nband)
Return TRUE if the raster has a band of this number.
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
rt_raster rt_raster_deserialize(void *serialized, int header_only)
Return a raster from a serialized form.