337{
340 double yul;
341
342 if (PG_ARGISNULL(0)) PG_RETURN_NULL();
344
346 if ( ! raster ) {
347 PG_FREE_IF_COPY(pgraster, 0);
348 elog(ERROR, "RASTER_getYUpperLeft: Could not deserialize raster");
349 PG_RETURN_NULL();
350 }
351
353
355 PG_FREE_IF_COPY(pgraster, 0);
356
357 PG_RETURN_FLOAT8(yul);
358}
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.
double rt_raster_get_y_offset(rt_raster raster)
Get raster y offset, in projection units.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...