PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 8550 of file rt_api.c.

References rt_raster_t::height, and rt_raster_t::width.

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().

8550  {
8551  return (NULL == raster || raster->height <= 0 || raster->width <= 0);
8552 }
uint16_t height
Definition: rt_api.h:2227
uint16_t width
Definition: rt_api.h:2226

Here is the caller graph for this function: