412 if (PG_ARGISNULL(0)) PG_RETURN_NULL();
417 PG_FREE_IF_COPY(pgraster, 0);
418 elog(ERROR,
"RASTER_getPixelHeight: Could not deserialize raster");
424 pheight = sqrt(yscale*yscale + xskew*xskew);
427 PG_FREE_IF_COPY(pgraster, 0);
429 PG_RETURN_FLOAT8(pheight);
double rt_raster_get_x_skew(rt_raster raster)
Get skew about the X axis.
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.
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): ...