PostGIS  2.4.9dev-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 1338 of file rt_raster.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().

1338  {
1339  return (NULL == raster || raster->height <= 0 || raster->width <= 0);
1340 }
uint16_t height
Definition: librtcore.h:2253
uint16_t width
Definition: librtcore.h:2252
Here is the caller graph for this function: