895 int32_t newSRID = PG_GETARG_INT32(1);
897 if (PG_ARGISNULL(0)) PG_RETURN_NULL();
898 pgraster = (
rt_pgraster *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
902 PG_FREE_IF_COPY(pgraster, 0);
903 elog(ERROR,
"RASTER_setSRID: Could not deserialize raster");
911 PG_FREE_IF_COPY(pgraster, 0);
912 if (!pgrtn) PG_RETURN_NULL();
914 SET_VARSIZE(pgrtn, pgrtn->
size);
916 PG_RETURN_POINTER(pgrtn);
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.
void rt_raster_set_srid(rt_raster raster, int32_t srid)
Set raster's SRID.
rt_raster rt_raster_deserialize(void *serialized, int header_only)
Return a raster from a serialized form.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...