622 PG_FREE_IF_COPY(pgraster, 0);
623 elog(ERROR,
"RASTER_metadata; Could not deserialize raster");
650 PG_FREE_IF_COPY(pgraster, 0);
653 if (get_call_result_type(fcinfo, NULL, &tupdesc) != TYPEFUNC_COMPOSITE) {
655 errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
657 "function returning record called in context " 658 "that cannot accept type record" 663 BlessTupleDesc(tupdesc);
665 values[0] = Float8GetDatum(ipX);
666 values[1] = Float8GetDatum(ipY);
667 values[2] = UInt32GetDatum(width);
668 values[3] = UInt32GetDatum(height);
669 values[4] = Float8GetDatum(scaleX);
670 values[5] = Float8GetDatum(scaleY);
671 values[6] = Float8GetDatum(skewX);
672 values[7] = Float8GetDatum(skewY);
673 values[8] = Int32GetDatum(srid);
674 values[9] = UInt32GetDatum(numBands);
679 tuple = heap_form_tuple(tupdesc, values, nulls);
682 result = HeapTupleGetDatum(tuple);
684 PG_RETURN_DATUM(result);
double rt_raster_get_x_offset(rt_raster raster)
Get raster x offset, in projection units.
int rt_raster_get_num_bands(rt_raster raster)
double rt_raster_get_y_skew(rt_raster raster)
Get skew about the Y axis.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
double rt_raster_get_x_scale(rt_raster raster)
Get scale X in projection units.
int32_t rt_raster_get_srid(rt_raster raster)
Get raster's SRID.
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
double rt_raster_get_y_scale(rt_raster raster)
Get scale Y in projection units.
double rt_raster_get_x_skew(rt_raster raster)
Get skew about the X axis.
uint16_t rt_raster_get_width(rt_raster raster)
uint16_t rt_raster_get_height(rt_raster raster)
#define POSTGIS_RT_DEBUG(level, msg)
rt_raster rt_raster_deserialize(void *serialized, int header_only)
Return a raster from a serialized form.
double rt_raster_get_y_offset(rt_raster raster)
Get raster y offset, in projection units.