451 TupleDesc result_tuple;
454 HeapTuple heap_tuple ;
467 PG_FREE_IF_COPY(pgraster, 0);
468 elog(ERROR,
"RASTER_getGeotransform: Could not deserialize raster");
478 &imag, &jmag, &theta_i, &theta_ij) ;
481 PG_FREE_IF_COPY(pgraster, 0);
484 if (get_call_result_type(fcinfo, NULL, &result_tuple) != TYPEFUNC_COMPOSITE) {
486 errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
487 errmsg(
"RASTER_getGeotransform(): function returning record called in context that cannot accept type record" 493 BlessTupleDesc(result_tuple);
498 values[0] = Float8GetDatum(imag);
499 values[1] = Float8GetDatum(jmag);
500 values[2] = Float8GetDatum(theta_i);
501 values[3] = Float8GetDatum(theta_ij);
508 heap_tuple = heap_form_tuple(result_tuple, values, nulls);
511 result = HeapTupleGetDatum(heap_tuple);
513 PG_RETURN_DATUM(result);
double rt_raster_get_x_offset(rt_raster raster)
Get raster x offset, in projection units.
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.
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.
void rt_raster_calc_phys_params(double xscale, double xskew, double yskew, double yscale, double *i_mag, double *j_mag, double *theta_i, double *theta_ij)
Calculates the physically significant descriptors embodied in an arbitrary geotransform.
#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.