PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_raster_is_empty()

int rt_raster_is_empty ( rt_raster  raster)

Return TRUE if the raster is empty.

i.e. is NULL, width = 0 or height = 0

raster: the raster to get info from
TRUE if the raster is empty, FALSE otherwise

Definition at line 1334 of file rt_raster.c.

1334  {
1335  return (!raster || raster->height == 0 || raster->width == 0);
1336 }
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...

References rtrowdump::raster.

Referenced by _rti_iterator_arg_populate(), RASTER_addBandOutDB(), RASTER_clip(), RASTER_dumpValues(), RASTER_getPixelPolygons(), RASTER_isEmpty(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_nMapAlgebra(), RASTER_union_transfn(), rt_raster_colormap(), rt_raster_get_perimeter(), rt_raster_iterator(), rt_raster_surface(), rtpg_nmapalgebra_rastbandarg_process(), rtpg_union_noarg(), test_raster_empty(), and test_raster_from_band().

Here is the caller graph for this function: